1#ifndef __BMN_TOF1_HIT_GEOUTILS_H
2#define __BMN_TOF1_HIT_GEOUTILS_H 1
4#include <TClonesArray.h>
59 void Print(std::ostream& out,
const TVector3& point,
const char* comment =
nullptr)
const;
60 void Dump(
const char* comment, std::ostream& out = std::cout)
const;
62 void Shift(
const TVector3& shift)
85 width = TMath::Abs(
C.Y() -
B.Y());
98 TVector3 ab =
A -
B, bc =
B -
C, cd =
C -
D, da =
D -
A;
99 if (ab.Dot(bc) != 0. || bc.Dot(cd) != 0. || cd.Dot(da) != 0. || da.Dot(ab) != 0.) {
100 std::cerr <<
"\n ---> ERROR: invalid Rectangle.";
116 LStrip1(Int_t uid, Int_t sector, Int_t box, Int_t
detector, Int_t strip);
140 void Dump(
const char* comment =
nullptr, std::ostream& out = std::cout)
const;
149 typedef std::map<Int_t, LStrip1> MStripType;
150 typedef MStripType::const_iterator MStripCIT;
151 typedef MStripType::iterator MStripIT;
160 Int_t
ParseTGeoManager(
bool useMCinput,
bool forced =
false, Int_t verbose = 0);
const Float_t d
Z-ccordinate of the first GEM-station.
const LStrip1 * FindStrip(Int_t UID)
void FindNeighborStrips701(Int_t verbose=0)
const LStrip1 * FindStrip701(Int_t UID)
Int_t ParseTGeoManager701(bool useMCinput, bool forced=false, Int_t verbose=0)
BmnTof1GeoUtils()
indexing strips by detectorUID
Int_t ParseTGeoManager(bool useMCinput, bool forced=false, Int_t verbose=0)
void FindNeighborStrips(Int_t verbose=0)
Double_t GetWidth() const
void GetInteriorAngle(int vertexIndex) const
Double_t MinDistanceToEdge701(const TVector3 *pos, Side_t &side) const
TVector3 GetCenter() const
Double_t GetLength() const
Double_t DistanceFromPointToLineSegment(const TVector3 *pos, const TVector3 &P1, const TVector3 &P2) const
Double_t DistanceFromPointToLine(const TVector3 *pos, const TVector3 &P1, const TVector3 &P2) const
void Shift(const TVector3 &shift)
void Dump(const char *comment, std::ostream &out=std::cout) const
void Print(std::ostream &out, const TVector3 &point, const char *comment=nullptr) const
void CalculateLengthnWidth()
Double_t MinDistanceToEdge(const TVector3 *pos, Side_t &side) const
bool IsSameDetector(const LStrip1 &strip) const
void SetIsKilled(bool status)
void SetIDs(Int_t uid, Int_t sector, Int_t box, Int_t detector, Int_t strip)
bool operator!=(const LStrip1 &rhs)
Double_t Distance701(Side_t side, const LStrip1 &strip)
bool operator==(const LStrip1 &rhs)
Double_t Distance(Side_t side, const LStrip1 &strip)
void Dump(const char *comment=nullptr, std::ostream &out=std::cout) const