BOSS 7.0.8
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 ()
 

Detailed Description

Definition at line 21 of file BesMdcHit.hh.

Constructor & Destructor Documentation

◆ BesMdcHit() [1/2]

BesMdcHit::BesMdcHit ( )

Definition at line 22 of file BesMdcHit.cc.

22{}

◆ ~BesMdcHit()

BesMdcHit::~BesMdcHit ( )

Definition at line 26 of file BesMdcHit.cc.

26{}

◆ BesMdcHit() [2/2]

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}

Member Function Documentation

◆ Draw()

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}

◆ GetCellNo()

G4int BesMdcHit::GetCellNo ( )
inline

◆ GetDriftD()

G4double BesMdcHit::GetDriftD ( )
inline

◆ GetDriftT()

G4double BesMdcHit::GetDriftT ( )
inline

Definition at line 56 of file BesMdcHit.hh.

56{ return driftT;};

Referenced by BesRootIO::SaveMdcHitRoot().

◆ GetEdep()

G4double BesMdcHit::GetEdep ( )
inline

◆ GetEnterAngle()

G4double BesMdcHit::GetEnterAngle ( )
inline

Definition at line 59 of file BesMdcHit.hh.

59{ return enterAngle;};

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

◆ GetGlobalT()

G4double BesMdcHit::GetGlobalT ( )
inline

Definition at line 57 of file BesMdcHit.hh.

57{ return globalT;};

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

◆ GetLayerNo()

G4int BesMdcHit::GetLayerNo ( )
inline

◆ GetPos()

G4ThreeVector BesMdcHit::GetPos ( )
inline

◆ GetPosFlag()

G4int BesMdcHit::GetPosFlag ( )
inline

◆ GetTheta()

G4double BesMdcHit::GetTheta ( )
inline

Definition at line 58 of file BesMdcHit.hh.

58{ return theta;};

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

◆ GetTrackID()

G4int BesMdcHit::GetTrackID ( )
inline

◆ operator delete()

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

Definition at line 93 of file BesMdcHit.hh.

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

◆ operator new()

void * BesMdcHit::operator new ( size_t  )
inline

Definition at line 84 of file BesMdcHit.hh.

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

◆ operator=()

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==()

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

Definition at line 66 of file BesMdcHit.cc.

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

◆ Print()

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}

◆ SetCellNo()

void BesMdcHit::SetCellNo ( G4int  cell)
inline

Definition at line 40 of file BesMdcHit.hh.

40{ cellNo =cell;};

Referenced by BesTuningIO::GetMdcHits(), BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().

◆ SetDriftD()

void BesMdcHit::SetDriftD ( G4double  distance)
inline

Definition at line 43 of file BesMdcHit.hh.

43{ driftD = distance;};

Referenced by BesTuningIO::GetMdcHits(), BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().

◆ SetDriftT()

void BesMdcHit::SetDriftT ( G4double  time)
inline

Definition at line 44 of file BesMdcHit.hh.

44{ driftT = time;};
Double_t time

Referenced by BesTuningIO::GetMdcHits(), BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().

◆ SetEdep()

void BesMdcHit::SetEdep ( G4double  de)
inline

Definition at line 41 of file BesMdcHit.hh.

41{ edep = de; };

Referenced by BesTuningIO::GetMdcHits(), BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().

◆ SetEnterAngle()

void BesMdcHit::SetEnterAngle ( G4double  angle)
inline

Definition at line 47 of file BesMdcHit.hh.

47{ enterAngle = angle;};

Referenced by BesTuningIO::GetMdcHits(), BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().

◆ SetGlobalT()

void BesMdcHit::SetGlobalT ( G4double  time)
inline

Definition at line 45 of file BesMdcHit.hh.

45{ globalT = time;};

Referenced by BesTuningIO::GetMdcHits(), BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().

◆ SetLayerNo()

void BesMdcHit::SetLayerNo ( G4int  layer)
inline

Definition at line 39 of file BesMdcHit.hh.

39{ layerNo = layer; };

Referenced by BesTuningIO::GetMdcHits(), BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().

◆ SetPos()

void BesMdcHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 42 of file BesMdcHit.hh.

42{ pos = xyz; };

Referenced by BesTuningIO::GetMdcHits(), BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().

◆ SetPosFlag()

void BesMdcHit::SetPosFlag ( G4int  flag)
inline

◆ SetTheta()

void BesMdcHit::SetTheta ( G4double  angle)
inline

Definition at line 46 of file BesMdcHit.hh.

46{ theta = angle;};

Referenced by BesTuningIO::GetMdcHits(), BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().

◆ SetTrackID()

void BesMdcHit::SetTrackID ( G4int  track)
inline

Definition at line 38 of file BesMdcHit.hh.

38{ trackID = track; };

Referenced by BesTuningIO::GetMdcHits(), BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().


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