23 if (m_pMucGeoGap && m_pMucGeoStrip) {
24 float x, y, z, sx, sy, sz;
34 cout <<
"MucRecHit::MucRecHit(const Identifier&), gap or strip pointer lost" << endl;
52 if (m_pMucGeoGap && m_pMucGeoStrip) {
53 float x, y, z, sx, sy, sz;
61 m_CenterSigma = sigma;
64 cout <<
"MucRecHit::MucRecHit(), gap or strip pointer lost" << endl;
71 : m_MucID(source.m_MucID),
72 m_pMucGeoGap(source.m_pMucGeoGap),
73 m_pMucGeoStrip(source.m_pMucGeoStrip),
74 m_CenterPos(source.m_CenterPos),
75 m_CenterSigma(source.m_CenterSigma)
84 m_MucID = orig.m_MucID;
85 m_pMucGeoGap = orig.m_pMucGeoGap;
86 m_pMucGeoStrip = orig.m_pMucGeoStrip;
87 m_CenterPos = orig.m_CenterPos;
88 m_CenterSigma = orig.m_CenterSigma;
106 Hep3Vector
x(m_CenterPos.x(),
116 Hep3Vector
s(m_CenterSigma.x(),
Hep3Vector RotateToGlobal(const Hep3Vector pVect) const
Rotate a vector from gap coordinate to global coordinate.
HepPoint3D TransformToGlobal(const HepPoint3D pPoint) const
Transform a point from gap coordinate to global coordinate.
MucGeoStrip * GetStrip(const int part, const int seg, const int gap, const int strip) const
Get a pointer to the strip identified by (part,seg,gap,strip).
MucGeoGap * GetGap(const int part, const int seg, const int gap) const
Get a pointer to the gap identified by (part,seg,gap).
static MucGeoGeneral * Instance()
Get a pointer to the single instance of MucGeoGeneral.
void GetCenterPos(float &x, float &y, float &z) const
Get center position of this strip (in the gap coordinate system).
void GetCenterSigma(float &sx, float &sy, float &sz)
Get uncertainty in the position of this strip (in the gap coordinate system).
static Identifier channel_id(int barrel_ec, int segment, int layer, int channel)
For a single crystal.
MucRecHit & operator=(const MucRecHit &orig)
Assignment operator.
Hep3Vector GetCenterPos() const
Get Center position of the strip (global coords).
Hep3Vector GetCenterSigma() const
Get Center position uncertainty of the strip (global coords).