CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMdcHit Class Reference

#include <BesMdcHit.hh>

+ Inheritance diagram for BesMdcHit:

Public Member Functions

 BesMdcHit ()
 
 ~BesMdcHit ()
 
 BesMdcHit (const BesMdcHit &)
 
const BesMdcHitoperator= (const BesMdcHit &)
 
int operator== (const BesMdcHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print ()
 
void SetTrackID (G4int track)
 
void SetLayerNo (G4int layer)
 
void SetCellNo (G4int cell)
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
void SetDriftD (G4double distance)
 
void SetDriftT (G4double time)
 
void SetGlobalT (G4double time)
 
void SetTheta (G4double angle)
 
void SetEnterAngle (G4double angle)
 
void SetPosFlag (G4int flag)
 
G4int GetTrackID ()
 
G4int GetLayerNo ()
 
G4int GetCellNo ()
 
G4double GetEdep ()
 
G4ThreeVector GetPos ()
 
G4double GetDriftD ()
 
G4double GetDriftT ()
 
G4double GetGlobalT ()
 
G4double GetTheta ()
 
G4double GetEnterAngle ()
 
G4int GetPosFlag ()
 
 BesMdcHit ()
 
 ~BesMdcHit ()
 
 BesMdcHit (const BesMdcHit &)
 
const BesMdcHitoperator= (const BesMdcHit &)
 
int operator== (const BesMdcHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print ()
 
void SetTrackID (G4int track)
 
void SetLayerNo (G4int layer)
 
void SetCellNo (G4int cell)
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
void SetDriftD (G4double distance)
 
void SetDriftT (G4double time)
 
void SetGlobalT (G4double time)
 
void SetTheta (G4double angle)
 
void SetEnterAngle (G4double angle)
 
void SetPosFlag (G4int flag)
 
G4int GetTrackID ()
 
G4int GetLayerNo ()
 
G4int GetCellNo ()
 
G4double GetEdep ()
 
G4ThreeVector GetPos ()
 
G4double GetDriftD ()
 
G4double GetDriftT ()
 
G4double GetGlobalT ()
 
G4double GetTheta ()
 
G4double GetEnterAngle ()
 
G4int GetPosFlag ()
 

Detailed Description

Constructor & Destructor Documentation

◆ BesMdcHit() [1/4]

BesMdcHit::BesMdcHit ( )

Definition at line 22 of file BesMdcHit.cc.

22{}

◆ ~BesMdcHit() [1/2]

BesMdcHit::~BesMdcHit ( )

Definition at line 26 of file BesMdcHit.cc.

26{}

◆ BesMdcHit() [2/4]

BesMdcHit::BesMdcHit ( const BesMdcHit right)

Definition at line 30 of file BesMdcHit.cc.

31 : G4VHit()
32{
33 trackID = right.trackID;
34 layerNo = right.layerNo;
35 cellNo = right.cellNo;
36 edep = right.edep;
37 pos = right.pos;
38 driftD = right.driftD;
39 driftT = right.driftT;
40 globalT = right.globalT;
41 theta = right.theta;
42 enterAngle= right.enterAngle;
43 posFlag = right.posFlag;
44}

◆ BesMdcHit() [3/4]

BesMdcHit::BesMdcHit ( )

◆ ~BesMdcHit() [2/2]

BesMdcHit::~BesMdcHit ( )

◆ BesMdcHit() [4/4]

BesMdcHit::BesMdcHit ( const BesMdcHit )

Member Function Documentation

◆ Draw() [1/2]

void BesMdcHit::Draw ( )

Definition at line 73 of file BesMdcHit.cc.

74{
75 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
76 if(pVVisManager)
77 {
78 G4Circle circle(pos);
79 circle.SetScreenSize(2.);
80 circle.SetFillStyle(G4Circle::filled);
81 G4Colour colour(1.,0.,0.);
82 G4VisAttributes attribs(colour);
83 circle.SetVisAttributes(attribs);
84 pVVisManager->Draw(circle);
85 }
86}

◆ Draw() [2/2]

void BesMdcHit::Draw ( )

◆ GetCellNo() [1/2]

◆ GetCellNo() [2/2]

G4int BesMdcHit::GetCellNo ( )
inline

Definition at line 52 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

52{ return cellNo;};

◆ GetDriftD() [1/2]

◆ GetDriftD() [2/2]

G4double BesMdcHit::GetDriftD ( )
inline

Definition at line 55 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

55{ return driftD;};

◆ GetDriftT() [1/2]

G4double BesMdcHit::GetDriftT ( )
inline

Definition at line 56 of file InstallArea/include/MdcSim/MdcSim/BesMdcHit.hh.

56{ return driftT;};

Referenced by BesRootIO::SaveMdcHitRoot().

◆ GetDriftT() [2/2]

G4double BesMdcHit::GetDriftT ( )
inline

Definition at line 56 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

56{ return driftT;};

◆ GetEdep() [1/2]

◆ GetEdep() [2/2]

G4double BesMdcHit::GetEdep ( )
inline

Definition at line 53 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

53{ return edep; };

◆ GetEnterAngle() [1/2]

G4double BesMdcHit::GetEnterAngle ( )
inline

◆ GetEnterAngle() [2/2]

G4double BesMdcHit::GetEnterAngle ( )
inline

Definition at line 59 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

59{ return enterAngle;};

◆ GetGlobalT() [1/2]

G4double BesMdcHit::GetGlobalT ( )
inline

Definition at line 57 of file InstallArea/include/MdcSim/MdcSim/BesMdcHit.hh.

57{ return globalT;};

Referenced by BesRootIO::SaveMdcHitRoot(), and BesAsciiIO::SaveMdcHits().

◆ GetGlobalT() [2/2]

G4double BesMdcHit::GetGlobalT ( )
inline

Definition at line 57 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

57{ return globalT;};

◆ GetLayerNo() [1/2]

◆ GetLayerNo() [2/2]

G4int BesMdcHit::GetLayerNo ( )
inline

Definition at line 51 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

51{ return layerNo; };

◆ GetPos() [1/2]

◆ GetPos() [2/2]

G4ThreeVector BesMdcHit::GetPos ( )
inline

Definition at line 54 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

54{ return pos; };

◆ GetPosFlag() [1/2]

◆ GetPosFlag() [2/2]

G4int BesMdcHit::GetPosFlag ( )
inline

Definition at line 60 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

60{ return posFlag;};

◆ GetTheta() [1/2]

G4double BesMdcHit::GetTheta ( )
inline

◆ GetTheta() [2/2]

G4double BesMdcHit::GetTheta ( )
inline

Definition at line 58 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

58{ return theta;};

◆ GetTrackID() [1/2]

G4int BesMdcHit::GetTrackID ( )
inline

◆ GetTrackID() [2/2]

G4int BesMdcHit::GetTrackID ( )
inline

Definition at line 50 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

50{ return trackID; };

◆ operator delete() [1/2]

void BesMdcHit::operator delete ( void *  aHit)
inline

Definition at line 93 of file InstallArea/include/MdcSim/MdcSim/BesMdcHit.hh.

94{
95 BesMdcHitAllocator.FreeSingle((BesMdcHit*) aHit);
96}
G4Allocator< BesMdcHit > BesMdcHitAllocator
Definition: BesMdcHit.cc:18

◆ operator delete() [2/2]

void BesMdcHit::operator delete ( void *  )
inline

◆ operator new() [1/2]

void * BesMdcHit::operator new ( size_t  )
inline

Definition at line 84 of file InstallArea/include/MdcSim/MdcSim/BesMdcHit.hh.

85{
86 void *aHit;
87 aHit = (void *) BesMdcHitAllocator.MallocSingle();
88 return aHit;
89}

◆ operator new() [2/2]

void * BesMdcHit::operator new ( size_t  )
inline

◆ operator=() [1/2]

const BesMdcHit & BesMdcHit::operator= ( const BesMdcHit right)

Definition at line 48 of file BesMdcHit.cc.

49{
50 trackID = right.trackID;
51 layerNo = right.layerNo;
52 cellNo = right.cellNo;
53 edep = right.edep;
54 pos = right.pos;
55 driftD = right.driftD;
56 driftT = right.driftT;
57 globalT = right.globalT;
58 theta = right.theta;
59 enterAngle= right.enterAngle;
60 posFlag = right.posFlag;
61 return *this;
62}

◆ operator=() [2/2]

const BesMdcHit & BesMdcHit::operator= ( const BesMdcHit )

◆ operator==() [1/2]

int BesMdcHit::operator== ( const BesMdcHit right) const

Definition at line 66 of file BesMdcHit.cc.

67{
68 return (this==&right) ? 1 : 0;
69}

◆ operator==() [2/2]

int BesMdcHit::operator== ( const BesMdcHit ) const

◆ Print() [1/2]

void BesMdcHit::Print ( )

Definition at line 90 of file BesMdcHit.cc.

91{
92 G4cout << " trackID: " << trackID
93 << " layerNo: " << layerNo
94 << " cellNo: " << cellNo
95 << " energy deposit: " << G4BestUnit(edep,"Energy")
96 << " position: " << G4BestUnit(pos,"Length")
97 << " driftD: " << G4BestUnit(driftD,"Length")
98 << " driftT: " << G4BestUnit(driftT,"Time")
99 << " globalT: " << G4BestUnit(globalT,"Time")
100 << " theta: " << G4BestUnit(theta,"Angle")
101 << " enterAngle: " << G4BestUnit(enterAngle,"Angle")
102 << " posFlag: " << posFlag
103 <<G4endl;
104}

◆ Print() [2/2]

void BesMdcHit::Print ( )

◆ SetCellNo() [1/2]

void BesMdcHit::SetCellNo ( G4int  cell)
inline

◆ SetCellNo() [2/2]

void BesMdcHit::SetCellNo ( G4int  cell)
inline

Definition at line 40 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

40{ cellNo =cell;};

◆ SetDriftD() [1/2]

void BesMdcHit::SetDriftD ( G4double  distance)
inline

◆ SetDriftD() [2/2]

void BesMdcHit::SetDriftD ( G4double  distance)
inline

Definition at line 43 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

43{ driftD = distance;};

◆ SetDriftT() [1/2]

void BesMdcHit::SetDriftT ( G4double  time)
inline

◆ SetDriftT() [2/2]

void BesMdcHit::SetDriftT ( G4double  time)
inline

Definition at line 44 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

44{ driftT = time;};

◆ SetEdep() [1/2]

void BesMdcHit::SetEdep ( G4double  de)
inline

◆ SetEdep() [2/2]

void BesMdcHit::SetEdep ( G4double  de)
inline

Definition at line 41 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

41{ edep = de; };

◆ SetEnterAngle() [1/2]

void BesMdcHit::SetEnterAngle ( G4double  angle)
inline

◆ SetEnterAngle() [2/2]

void BesMdcHit::SetEnterAngle ( G4double  angle)
inline

Definition at line 47 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

47{ enterAngle = angle;};

◆ SetGlobalT() [1/2]

void BesMdcHit::SetGlobalT ( G4double  time)
inline

◆ SetGlobalT() [2/2]

void BesMdcHit::SetGlobalT ( G4double  time)
inline

Definition at line 45 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

45{ globalT = time;};

◆ SetLayerNo() [1/2]

void BesMdcHit::SetLayerNo ( G4int  layer)
inline

◆ SetLayerNo() [2/2]

void BesMdcHit::SetLayerNo ( G4int  layer)
inline

Definition at line 39 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

39{ layerNo = layer; };

◆ SetPos() [1/2]

void BesMdcHit::SetPos ( G4ThreeVector  xyz)
inline

◆ SetPos() [2/2]

void BesMdcHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 42 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

42{ pos = xyz; };

◆ SetPosFlag() [1/2]

void BesMdcHit::SetPosFlag ( G4int  flag)
inline

◆ SetPosFlag() [2/2]

void BesMdcHit::SetPosFlag ( G4int  flag)
inline

Definition at line 48 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

48{ posFlag = flag;};

◆ SetTheta() [1/2]

void BesMdcHit::SetTheta ( G4double  angle)
inline

◆ SetTheta() [2/2]

void BesMdcHit::SetTheta ( G4double  angle)
inline

Definition at line 46 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

46{ theta = angle;};

◆ SetTrackID() [1/2]

void BesMdcHit::SetTrackID ( G4int  track)
inline

◆ SetTrackID() [2/2]

void BesMdcHit::SetTrackID ( G4int  track)
inline

Definition at line 38 of file Simulation/BOOST/MdcSim/MdcSim-00-04-05/MdcSim/BesMdcHit.hh.

38{ trackID = track; };

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