#include <MucRecHit.h>
Inheritance diagram for MucRecHit:
Public Member Functions | |
virtual const CLID & | clID () const |
virtual const CLID & | clID () const |
int | Gap () const |
Get Gap. | |
int | Gap () const |
Get Gap. | |
Hep3Vector | GetCenterPos () const |
Get Center position of the strip (global coords). | |
Hep3Vector | GetCenterPos () const |
Get Center position of the strip (global coords). | |
Hep3Vector | GetCenterSigma () const |
Get Center position uncertainty of the strip (global coords). | |
Hep3Vector | GetCenterSigma () const |
Get Center position uncertainty of the strip (global coords). | |
MucGeoGap * | GetGap () const |
Get geometry data for the gap containing this hit. | |
MucGeoGap * | GetGap () const |
Get geometry data for the gap containing this hit. | |
int | GetHitMode () const |
int | GetHitMode () const |
Identifier | GetID () const |
Get soft identifier of this hit. | |
Identifier | GetID () const |
Get soft identifier of this hit. | |
float | GetIntersectX () const |
float | GetIntersectX () const |
float | GetIntersectY () const |
float | GetIntersectY () const |
float | GetIntersectZ () const |
float | GetIntersectZ () const |
int | GetPadID () const |
int | GetPadID () const |
MucGeoStrip * | GetStrip () const |
Get geometry data for the strip containing this hit. | |
MucGeoStrip * | GetStrip () const |
Get geometry data for the strip containing this hit. | |
int | HitIsSeed () const |
int | HitIsSeed () const |
MucRecHit (const MucRecHit &source) | |
Copy constructor. | |
MucRecHit (const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1) | |
Constructor. | |
MucRecHit (const Identifier &id) | |
Constructor. | |
MucRecHit () | |
Constructor. | |
MucRecHit (const MucRecHit &source) | |
Copy constructor. | |
MucRecHit (const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1) | |
Constructor. | |
MucRecHit (const Identifier &id) | |
Constructor. | |
MucRecHit () | |
Constructor. | |
MucRecHit & | operator= (const MucRecHit &orig) |
Assignment operator. | |
MucRecHit & | operator= (const MucRecHit &orig) |
Assignment operator. | |
int | Part () const |
Get Part. | |
int | Part () const |
Get Part. | |
int | Seg () const |
Get Seg. | |
int | Seg () const |
Get Seg. | |
void | SetHitMode (int recmode) |
void | SetHitMode (int recmode) |
void | SetHitSeed (int seed) |
void | SetHitSeed (int seed) |
void | SetIntersectX (float x) |
void | SetIntersectX (float x) |
void | SetIntersectY (float y) |
void | SetIntersectY (float y) |
void | SetIntersectZ (float z) |
void | SetIntersectZ (float z) |
void | SetPadID (int padID) |
void | SetPadID (int padID) |
int | Strip () const |
Get Strip. | |
int | Strip () const |
Get Strip. | |
~MucRecHit () | |
Destructor. | |
~MucRecHit () | |
Destructor. | |
Static Public Member Functions | |
const CLID & | classID () |
const CLID & | classID () |
Private Attributes | |
HepPoint3D | m_CenterPos |
HepPoint3D | m_CenterSigma |
float | m_intersect_x |
float | m_intersect_y |
float | m_intersect_z |
int | m_IsSeed |
Identifier | m_MucID |
int | m_padID |
MucGeoGap * | m_pMucGeoGap |
MucGeoGap * | m_pMucGeoGap |
MucGeoStrip * | m_pMucGeoStrip |
MucGeoStrip * | m_pMucGeoStrip |
int | m_recmode |
|
Constructor.
00042 {;}
|
|
Constructor.
00018 : m_MucID(id) 00019 { 00020 m_pMucGeoGap = MucGeoGeneral::Instance()->GetGap(m_MucID); 00021 m_pMucGeoStrip = MucGeoGeneral::Instance()->GetStrip(m_MucID); 00022 m_IsSeed = false; 00023 if (m_pMucGeoGap && m_pMucGeoStrip) { 00024 float x, y, z, sx, sy, sz; 00025 00026 m_pMucGeoStrip->GetCenterPos(x, y, z); 00027 m_pMucGeoStrip->GetCenterSigma(sx, sy, sz); 00028 HepPoint3D pos(x, y, z); 00029 HepPoint3D sigma(sx, sy, sz); 00030 m_CenterPos = m_pMucGeoGap->TransformToGlobal(pos); 00031 m_CenterSigma = m_pMucGeoGap->RotateToGlobal(sigma); 00032 } 00033 else { 00034 cout << "MucRecHit::MucRecHit(const Identifier&), gap or strip pointer lost" << endl; 00035 } 00036 }
|
|
Constructor.
00042 { 00043 m_MucID = MucID::channel_id(part, seg, gap, strip); 00044 //cout << "part " << part << " seg " << seg << " gap " << gap << " strip " << strip << endl; 00045 00046 m_pMucGeoGap = MucGeoGeneral::Instance()->GetGap(m_MucID); 00047 m_pMucGeoStrip = MucGeoGeneral::Instance()->GetStrip(m_MucID); 00048 m_recmode = -1; 00049 m_IsSeed = false; 00050 //m_pMucGeoGap = MucGeoGeneral::Instance()->GetGap(part, seg, gap); 00051 //m_pMucGeoStrip = MucGeoGeneral::Instance()->GetStrip(part, seg, gap, strip); 00052 if (m_pMucGeoGap && m_pMucGeoStrip) { 00053 float x, y, z, sx, sy, sz; 00054 00055 m_pMucGeoStrip->GetCenterPos(x, y, z); 00056 m_pMucGeoStrip->GetCenterSigma(sx, sy, sz); 00057 HepPoint3D pos(x, y, z); 00058 HepPoint3D sigma(sx, sy, sz); 00059 m_CenterPos = m_pMucGeoGap->TransformToGlobal(pos); 00060 //m_CenterSigma = m_pMucGeoGap->RotateToGlobal(sigma); //comment out at 2006.11.30 00061 m_CenterSigma = sigma; // do not transform 00062 } 00063 else { 00064 cout << "MucRecHit::MucRecHit(), gap or strip pointer lost" << endl; 00065 } 00066 00067 }
|
|
Copy constructor.
00071 : m_MucID(source.m_MucID), 00072 m_pMucGeoGap(source.m_pMucGeoGap), 00073 m_pMucGeoStrip(source.m_pMucGeoStrip), 00074 m_CenterPos(source.m_CenterPos), 00075 m_CenterSigma(source.m_CenterSigma) 00076 { }
|
|
Destructor.
00095 { 00096 // No need to delete MucGeo pointer objects; the allocation/deallocation 00097 // is done elsewhere. 00098 m_pMucGeoGap = 0L; 00099 m_pMucGeoStrip = 0L; 00100 }
|
|
Constructor.
00042 {;}
|
|
Constructor.
|
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
00063 { return CLID_MucRecHit; }
|
|
00063 { return CLID_MucRecHit; }
|
|
00062 { return MucRecHit::classID(); }
|
|
00062 { return MucRecHit::classID(); }
|
|
Get Gap.
00077 { return MucID::gap(m_MucID); }
|
|
Get Gap.
00077 { return MucID::gap(m_MucID); }
|
|
Get Center position of the strip (global coords).
|
|
Get Center position of the strip (global coords).
00105 { 00106 Hep3Vector x(m_CenterPos.x(), 00107 m_CenterPos.y(), 00108 m_CenterPos.z()); 00109 return x; 00110 }
|
|
Get Center position uncertainty of the strip (global coords).
|
|
Get Center position uncertainty of the strip (global coords).
00115 { 00116 Hep3Vector s(m_CenterSigma.x(), 00117 m_CenterSigma.y(), 00118 m_CenterSigma.z()); 00119 return s; 00120 }
|
|
Get geometry data for the gap containing this hit.
00083 { return m_pMucGeoGap; }
|
|
Get geometry data for the gap containing this hit.
00083 { return m_pMucGeoGap; }
|
|
00096 {return m_recmode;}
|
|
00096 {return m_recmode;}
|
|
Get soft identifier of this hit.
00068 { return m_MucID; }
|
|
Get soft identifier of this hit.
00068 { return m_MucID; }
|
|
00108 {return m_intersect_x;}
|
|
00108 {return m_intersect_x;}
|
|
00109 {return m_intersect_y;}
|
|
00109 {return m_intersect_y;}
|
|
00110 {return m_intersect_z;}
|
|
00110 {return m_intersect_z;}
|
|
00107 {return m_padID;}
|
|
00107 {return m_padID;}
|
|
Get geometry data for the strip containing this hit.
00086 { return m_pMucGeoStrip; }
|
|
Get geometry data for the strip containing this hit.
00086 { return m_pMucGeoStrip; }
|
|
00100 {return m_IsSeed;}
|
|
00100 {return m_IsSeed;}
|
|
Assignment operator.
|
|
Assignment operator.
00081 { 00082 // Assignment operator. 00083 if (this != &orig) { // Watch out for self-assignment! 00084 m_MucID = orig.m_MucID; 00085 m_pMucGeoGap = orig.m_pMucGeoGap; 00086 m_pMucGeoStrip = orig.m_pMucGeoStrip; 00087 m_CenterPos = orig.m_CenterPos; 00088 m_CenterSigma = orig.m_CenterSigma; 00089 } 00090 return *this; 00091 }
|
|
Get Part.
00071 { return MucID::part(m_MucID); }
|
|
Get Part.
00071 { return MucID::part(m_MucID); }
|
|
Get Seg.
00074 { return MucID::seg(m_MucID); }
|
|
Get Seg.
00074 { return MucID::seg(m_MucID); }
|
|
00094 { m_recmode = recmode;}
|
|
00094 { m_recmode = recmode;}
|
|
00098 {m_IsSeed = seed;}
|
|
00098 {m_IsSeed = seed;}
|
|
00103 {m_intersect_x = x;}
|
|
00103 {m_intersect_x = x;}
|
|
00104 {m_intersect_y = y;}
|
|
00104 {m_intersect_y = y;}
|
|
00105 {m_intersect_z = z;}
|
|
00105 {m_intersect_z = z;}
|
|
00102 {m_padID = padID;}
|
|
00102 {m_padID = padID;}
|
|
Get Strip.
00080 { return MucID::strip(m_MucID); }
|
|
Get Strip.
00080 { return MucID::strip(m_MucID); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|