BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
MucRecHit Class Reference

#include <MucRecHit.h>

+ Inheritance diagram for MucRecHit:

Public Member Functions

 MucRecHit ()
 Constructor.
 
 MucRecHit (const Identifier &id)
 Constructor.
 
 MucRecHit (const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1)
 Constructor.
 
 MucRecHit (const MucRecHit &source)
 Copy constructor.
 
MucRecHitoperator= (const MucRecHit &orig)
 Assignment operator.
 
 ~MucRecHit ()
 Destructor.
 
virtual const CLID & clID () const
 
Identifier GetID () const
 Get soft identifier of this hit.
 
int Part () const
 Get Part.
 
int Seg () const
 Get Seg.
 
int Gap () const
 Get Gap.
 
int Strip () const
 Get Strip.
 
MucGeoGapGetGap () const
 Get geometry data for the gap containing this hit.
 
MucGeoStripGetStrip () const
 Get geometry data for the strip containing this hit.
 
Hep3Vector GetCenterPos () const
 Get Center position of the strip (global coords).
 
Hep3Vector GetCenterSigma () const
 Get Center position uncertainty of the strip (global coords).
 
void SetHitMode (int recmode)
 
int GetHitMode () const
 
void SetHitSeed (int seed)
 
int HitIsSeed () const
 
void SetPadID (int padID)
 
void SetIntersectX (float x)
 
void SetIntersectY (float y)
 
void SetIntersectZ (float z)
 
int GetPadID () const
 
float GetIntersectX () const
 
float GetIntersectY () const
 
float GetIntersectZ () const
 
 MucRecHit ()
 Constructor.
 
 MucRecHit (const Identifier &id)
 Constructor.
 
 MucRecHit (const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1)
 Constructor.
 
 MucRecHit (const MucRecHit &source)
 Copy constructor.
 
MucRecHitoperator= (const MucRecHit &orig)
 Assignment operator.
 
 ~MucRecHit ()
 Destructor.
 
virtual const CLID & clID () const
 
Identifier GetID () const
 Get soft identifier of this hit.
 
int Part () const
 Get Part.
 
int Seg () const
 Get Seg.
 
int Gap () const
 Get Gap.
 
int Strip () const
 Get Strip.
 
MucGeoGapGetGap () const
 Get geometry data for the gap containing this hit.
 
MucGeoStripGetStrip () const
 Get geometry data for the strip containing this hit.
 
Hep3Vector GetCenterPos () const
 Get Center position of the strip (global coords).
 
Hep3Vector GetCenterSigma () const
 Get Center position uncertainty of the strip (global coords).
 
void SetHitMode (int recmode)
 
int GetHitMode () const
 
void SetHitSeed (int seed)
 
int HitIsSeed () const
 
void SetPadID (int padID)
 
void SetIntersectX (float x)
 
void SetIntersectY (float y)
 
void SetIntersectZ (float z)
 
int GetPadID () const
 
float GetIntersectX () const
 
float GetIntersectY () const
 
float GetIntersectZ () const
 

Static Public Member Functions

static const CLID & classID ()
 
static const CLID & classID ()
 

Detailed Description

Constructor & Destructor Documentation

◆ MucRecHit() [1/8]

MucRecHit::MucRecHit ( )
inline

Constructor.

Definition at line 42 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

42{;}

◆ MucRecHit() [2/8]

MucRecHit::MucRecHit ( const Identifier id)

Constructor.

Definition at line 17 of file MucRecHit.cxx.

18 : m_MucID(id)
19{
20 m_pMucGeoGap = MucGeoGeneral::Instance()->GetGap(m_MucID);
21 m_pMucGeoStrip = MucGeoGeneral::Instance()->GetStrip(m_MucID);
22 m_IsSeed = false;
23 if (m_pMucGeoGap && m_pMucGeoStrip) {
24 float x, y, z, sx, sy, sz;
25
26 m_pMucGeoStrip->GetCenterPos(x, y, z);
27 m_pMucGeoStrip->GetCenterSigma(sx, sy, sz);
28 HepPoint3D pos(x, y, z);
29 HepPoint3D sigma(sx, sy, sz);
30 m_CenterPos = m_pMucGeoGap->TransformToGlobal(pos);
31 m_CenterSigma = m_pMucGeoGap->RotateToGlobal(sigma);
32 }
33 else {
34 cout << "MucRecHit::MucRecHit(const Identifier&), gap or strip pointer lost" << endl;
35 }
36}
Double_t x[10]
Hep3Vector RotateToGlobal(const Hep3Vector pVect) const
Rotate a vector from gap coordinate to global coordinate.
Definition: MucGeoGap.cxx:606
HepPoint3D TransformToGlobal(const HepPoint3D pPoint) const
Transform a point from gap coordinate to global coordinate.
Definition: MucGeoGap.cxx:620
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).
Definition: MucGeoStrip.cxx:40
void GetCenterSigma(float &sx, float &sy, float &sz)
Get uncertainty in the position of this strip (in the gap coordinate system).
Definition: MucGeoStrip.cxx:51

◆ MucRecHit() [3/8]

MucRecHit::MucRecHit ( const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  strip = -1 
)

Constructor.

Definition at line 38 of file MucRecHit.cxx.

42{
43 m_MucID = MucID::channel_id(part, seg, gap, strip);
44 //cout << "part " << part << " seg " << seg << " gap " << gap << " strip " << strip << endl;
45
46 m_pMucGeoGap = MucGeoGeneral::Instance()->GetGap(m_MucID);
47 m_pMucGeoStrip = MucGeoGeneral::Instance()->GetStrip(m_MucID);
48 m_recmode = -1;
49 m_IsSeed = false;
50 //m_pMucGeoGap = MucGeoGeneral::Instance()->GetGap(part, seg, gap);
51 //m_pMucGeoStrip = MucGeoGeneral::Instance()->GetStrip(part, seg, gap, strip);
52 if (m_pMucGeoGap && m_pMucGeoStrip) {
53 float x, y, z, sx, sy, sz;
54
55 m_pMucGeoStrip->GetCenterPos(x, y, z);
56 m_pMucGeoStrip->GetCenterSigma(sx, sy, sz);
57 HepPoint3D pos(x, y, z);
58 HepPoint3D sigma(sx, sy, sz);
59 m_CenterPos = m_pMucGeoGap->TransformToGlobal(pos);
60 //m_CenterSigma = m_pMucGeoGap->RotateToGlobal(sigma); //comment out at 2006.11.30
61 m_CenterSigma = sigma; // do not transform
62 }
63 else {
64 cout << "MucRecHit::MucRecHit(), gap or strip pointer lost" << endl;
65 }
66
67}
static Identifier channel_id(int barrel_ec, int segment, int layer, int channel)
For a single crystal.
Definition: MucID.cxx:135

◆ MucRecHit() [4/8]

MucRecHit::MucRecHit ( const MucRecHit source)

Copy constructor.

Definition at line 70 of file MucRecHit.cxx.

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)
76{ }

◆ ~MucRecHit() [1/2]

MucRecHit::~MucRecHit ( )

Destructor.

Definition at line 94 of file MucRecHit.cxx.

95{
96 // No need to delete MucGeo pointer objects; the allocation/deallocation
97 // is done elsewhere.
98 m_pMucGeoGap = 0L;
99 m_pMucGeoStrip = 0L;
100}

◆ MucRecHit() [5/8]

MucRecHit::MucRecHit ( )
inline

Constructor.

Definition at line 42 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

42{;}

◆ MucRecHit() [6/8]

MucRecHit::MucRecHit ( const Identifier id)

Constructor.

◆ MucRecHit() [7/8]

MucRecHit::MucRecHit ( const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  strip = -1 
)

Constructor.

◆ MucRecHit() [8/8]

MucRecHit::MucRecHit ( const MucRecHit source)

Copy constructor.

◆ ~MucRecHit() [2/2]

MucRecHit::~MucRecHit ( )

Destructor.

Member Function Documentation

◆ classID() [1/2]

static const CLID & MucRecHit::classID ( )
inlinestatic

Definition at line 63 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

63{ return CLID_MucRecHit; }
const CLID & CLID_MucRecHit
Definition: EventModel.cxx:347

Referenced by clID().

◆ classID() [2/2]

static const CLID & MucRecHit::classID ( )
inlinestatic

◆ clID() [1/2]

virtual const CLID & MucRecHit::clID ( ) const
inlinevirtual

◆ clID() [2/2]

virtual const CLID & MucRecHit::clID ( ) const
inlinevirtual

◆ Gap() [1/2]

◆ Gap() [2/2]

int MucRecHit::Gap ( ) const
inline

Get Gap.

Definition at line 77 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

77{ return MucID::gap(m_MucID); }

◆ GetCenterPos() [1/2]

Hep3Vector MucRecHit::GetCenterPos ( ) const

Get Center position of the strip (global coords).

Definition at line 104 of file MucRecHit.cxx.

105{
106 Hep3Vector x(m_CenterPos.x(),
107 m_CenterPos.y(),
108 m_CenterPos.z());
109 return x;
110}

Referenced by MucRecTrkExt::execute(), ExtMucKal::GetDistance(), MucRec2DRoad::GetHitDistance(), RecMucTrack::GetHitDistance(), and RecMucTrack::GetHitDistance2().

◆ GetCenterPos() [2/2]

Hep3Vector MucRecHit::GetCenterPos ( ) const

Get Center position of the strip (global coords).

◆ GetCenterSigma() [1/2]

Hep3Vector MucRecHit::GetCenterSigma ( ) const

Get Center position uncertainty of the strip (global coords).

Definition at line 114 of file MucRecHit.cxx.

115{
116 Hep3Vector s(m_CenterSigma.x(),
117 m_CenterSigma.y(),
118 m_CenterSigma.z());
119 return s;
120}
XmlRpcServer s
Definition: HelloServer.cpp:11

Referenced by MucRec3DRoad::MucRec3DRoad().

◆ GetCenterSigma() [2/2]

Hep3Vector MucRecHit::GetCenterSigma ( ) const

Get Center position uncertainty of the strip (global coords).

◆ GetGap() [1/2]

MucGeoGap * MucRecHit::GetGap ( ) const
inline

◆ GetGap() [2/2]

MucGeoGap * MucRecHit::GetGap ( ) const
inline

Get geometry data for the gap containing this hit.

Definition at line 83 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

83{ return m_pMucGeoGap; }

◆ GetHitMode() [1/2]

int MucRecHit::GetHitMode ( ) const
inline

◆ GetHitMode() [2/2]

int MucRecHit::GetHitMode ( ) const
inline

Definition at line 96 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

96{return m_recmode;}

◆ GetID() [1/2]

Identifier MucRecHit::GetID ( ) const
inline

◆ GetID() [2/2]

Identifier MucRecHit::GetID ( ) const
inline

Get soft identifier of this hit.

Definition at line 68 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

68{ return m_MucID; }

◆ GetIntersectX() [1/2]

float MucRecHit::GetIntersectX ( ) const
inline

Definition at line 108 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

108{return m_intersect_x;}

Referenced by MucCalibMgr::ReadEvent().

◆ GetIntersectX() [2/2]

float MucRecHit::GetIntersectX ( ) const
inline

Definition at line 108 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

108{return m_intersect_x;}

◆ GetIntersectY() [1/2]

float MucRecHit::GetIntersectY ( ) const
inline

Definition at line 109 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

109{return m_intersect_y;}

Referenced by MucCalibMgr::ReadEvent().

◆ GetIntersectY() [2/2]

float MucRecHit::GetIntersectY ( ) const
inline

Definition at line 109 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

109{return m_intersect_y;}

◆ GetIntersectZ() [1/2]

float MucRecHit::GetIntersectZ ( ) const
inline

Definition at line 110 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

110{return m_intersect_z;}

Referenced by MucCalibMgr::ReadEvent().

◆ GetIntersectZ() [2/2]

float MucRecHit::GetIntersectZ ( ) const
inline

Definition at line 110 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

110{return m_intersect_z;}

◆ GetPadID() [1/2]

int MucRecHit::GetPadID ( ) const
inline

Definition at line 107 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

107{return m_padID;}

Referenced by MucCalibMgr::ReadEvent().

◆ GetPadID() [2/2]

int MucRecHit::GetPadID ( ) const
inline

Definition at line 107 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

107{return m_padID;}

◆ GetStrip() [1/2]

MucGeoStrip * MucRecHit::GetStrip ( ) const
inline

Get geometry data for the strip containing this hit.

Definition at line 86 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

86{ return m_pMucGeoStrip; }

Referenced by ExtMucKal::ExtMucFilter(), and ExtMucKal::TrackHit().

◆ GetStrip() [2/2]

MucGeoStrip * MucRecHit::GetStrip ( ) const
inline

Get geometry data for the strip containing this hit.

Definition at line 86 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

86{ return m_pMucGeoStrip; }

◆ HitIsSeed() [1/2]

int MucRecHit::HitIsSeed ( ) const
inline

Definition at line 100 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

100{return m_IsSeed;}

Referenced by MucCalibMgr::ReadEvent().

◆ HitIsSeed() [2/2]

int MucRecHit::HitIsSeed ( ) const
inline

Definition at line 100 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

100{return m_IsSeed;}

◆ operator=() [1/2]

MucRecHit & MucRecHit::operator= ( const MucRecHit orig)

Assignment operator.

Definition at line 80 of file MucRecHit.cxx.

81{
82 // Assignment operator.
83 if (this != &orig) { // Watch out for self-assignment!
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;
89 }
90 return *this;
91}

◆ operator=() [2/2]

MucRecHit & MucRecHit::operator= ( const MucRecHit orig)

Assignment operator.

◆ Part() [1/2]

◆ Part() [2/2]

int MucRecHit::Part ( ) const
inline

Get Part.

Definition at line 71 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

71{ return MucID::part(m_MucID); }

◆ Seg() [1/2]

int MucRecHit::Seg ( ) const
inline

◆ Seg() [2/2]

int MucRecHit::Seg ( ) const
inline

Get Seg.

Definition at line 74 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

74{ return MucID::seg(m_MucID); }

◆ SetHitMode() [1/2]

void MucRecHit::SetHitMode ( int  recmode)
inline

◆ SetHitMode() [2/2]

void MucRecHit::SetHitMode ( int  recmode)
inline

Definition at line 94 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

94{ m_recmode = recmode;}

◆ SetHitSeed() [1/2]

void MucRecHit::SetHitSeed ( int  seed)
inline

Definition at line 98 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

98{m_IsSeed = seed;}

Referenced by MucRecRoadFinder::execute().

◆ SetHitSeed() [2/2]

void MucRecHit::SetHitSeed ( int  seed)
inline

Definition at line 98 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

98{m_IsSeed = seed;}

◆ SetIntersectX() [1/2]

void MucRecHit::SetIntersectX ( float  x)
inline

Definition at line 103 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

103{m_intersect_x = x;}

Referenced by RecMucTrack::LineFit().

◆ SetIntersectX() [2/2]

void MucRecHit::SetIntersectX ( float  x)
inline

Definition at line 103 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

103{m_intersect_x = x;}

◆ SetIntersectY() [1/2]

void MucRecHit::SetIntersectY ( float  y)
inline

Definition at line 104 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

104{m_intersect_y = y;}

Referenced by RecMucTrack::LineFit().

◆ SetIntersectY() [2/2]

void MucRecHit::SetIntersectY ( float  y)
inline

Definition at line 104 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

104{m_intersect_y = y;}

◆ SetIntersectZ() [1/2]

void MucRecHit::SetIntersectZ ( float  z)
inline

Definition at line 105 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

105{m_intersect_z = z;}

Referenced by RecMucTrack::LineFit().

◆ SetIntersectZ() [2/2]

void MucRecHit::SetIntersectZ ( float  z)
inline

Definition at line 105 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

105{m_intersect_z = z;}

◆ SetPadID() [1/2]

void MucRecHit::SetPadID ( int  padID)
inline

Definition at line 102 of file InstallArea/include/MucRecEvent/MucRecEvent/MucRecHit.h.

102{m_padID = padID;}

Referenced by RecMucTrack::LineFit().

◆ SetPadID() [2/2]

void MucRecHit::SetPadID ( int  padID)
inline

Definition at line 102 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

102{m_padID = padID;}

◆ Strip() [1/2]

int MucRecHit::Strip ( ) const
inline

◆ Strip() [2/2]

int MucRecHit::Strip ( ) const
inline

Get Strip.

Definition at line 80 of file Muc/MucRecEvent/MucRecEvent-00-02-52/MucRecEvent/MucRecHit.h.

80{ return MucID::strip(m_MucID); }

The documentation for this class was generated from the following files: