CGEM BOSS 6.6.5.g
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)
 
void SetMomentum (G4ThreeVector xyz)
 
void SetFlightLength (G4double len)
 
void SetPDGCode (G4int code)
 
void SetIsSecondary (G4int isSec)
 
void SetCreatorProcess (G4String proName)
 
void SetDigiId (G4int id)
 
G4int GetTrackID ()
 
G4int GetLayerNo ()
 
G4int GetCellNo ()
 
G4double GetEdep ()
 
G4ThreeVector GetPos ()
 
G4double GetDriftD ()
 
G4double GetDriftT ()
 
G4double GetGlobalT ()
 
G4double GetTheta ()
 
G4double GetEnterAngle ()
 
G4int GetPosFlag ()
 
G4ThreeVector GetMomentum ()
 
G4double GetFlightLength ()
 
G4int GetPDGCode ()
 
G4int GetIsSecondary ()
 
G4String GetCreatorProcess ()
 
G4int GetDigiId ()
 

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 m_p3 = right.m_p3;
45 m_flightLength = right.m_flightLength;
46 m_pdg_code = right.m_pdg_code;
47 m_isSecondary = right.m_isSecondary;
48 m_creatorProcess = right.m_creatorProcess;
49 m_digiId = right.m_digiId;
50}

Member Function Documentation

◆ Draw()

void BesMdcHit::Draw ( )

Definition at line 85 of file BesMdcHit.cc.

86{
87 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
88 if(pVVisManager)
89 {
90 G4Circle circle(pos);
91 circle.SetScreenSize(2.);
92 circle.SetFillStyle(G4Circle::filled);
93 G4Colour colour(1.,0.,0.);
94 G4VisAttributes attribs(colour);
95 circle.SetVisAttributes(attribs);
96 pVVisManager->Draw(circle);
97 }
98}

◆ GetCellNo()

G4int BesMdcHit::GetCellNo ( )
inline

◆ GetCreatorProcess()

G4String BesMdcHit::GetCreatorProcess ( )
inline

Definition at line 71 of file BesMdcHit.hh.

71{ return m_creatorProcess;}

Referenced by BesMcTruthWriter::SaveMdcTruth().

◆ GetDigiId()

G4int BesMdcHit::GetDigiId ( )
inline

Definition at line 72 of file BesMdcHit.hh.

72{ return m_digiId;}

Referenced by BesMcTruthWriter::SaveMdcTruth().

◆ GetDriftD()

G4double BesMdcHit::GetDriftD ( )
inline

◆ GetDriftT()

G4double BesMdcHit::GetDriftT ( )
inline

Definition at line 62 of file BesMdcHit.hh.

62{ return driftT;};

Referenced by BesRootIO::SaveMdcHitRoot().

◆ GetEdep()

G4double BesMdcHit::GetEdep ( )
inline

◆ GetEnterAngle()

G4double BesMdcHit::GetEnterAngle ( )
inline

Definition at line 65 of file BesMdcHit.hh.

65{ return enterAngle;};

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

◆ GetFlightLength()

G4double BesMdcHit::GetFlightLength ( )
inline

Definition at line 68 of file BesMdcHit.hh.

68{ return m_flightLength;}

Referenced by BesMcTruthWriter::SaveMdcTruth().

◆ GetGlobalT()

G4double BesMdcHit::GetGlobalT ( )
inline

Definition at line 63 of file BesMdcHit.hh.

63{ return globalT;};

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

◆ GetIsSecondary()

G4int BesMdcHit::GetIsSecondary ( )
inline

Definition at line 70 of file BesMdcHit.hh.

70{ return m_isSecondary;}

Referenced by BesMcTruthWriter::SaveMdcTruth().

◆ GetLayerNo()

G4int BesMdcHit::GetLayerNo ( )
inline

◆ GetMomentum()

G4ThreeVector BesMdcHit::GetMomentum ( )
inline

Definition at line 67 of file BesMdcHit.hh.

67{ return m_p3;}

Referenced by BesMcTruthWriter::SaveMdcTruth().

◆ GetPDGCode()

G4int BesMdcHit::GetPDGCode ( )
inline

Definition at line 69 of file BesMdcHit.hh.

69{ return m_pdg_code;}

Referenced by BesMcTruthWriter::SaveMdcTruth().

◆ GetPos()

G4ThreeVector BesMdcHit::GetPos ( )
inline

◆ GetPosFlag()

G4int BesMdcHit::GetPosFlag ( )
inline

◆ GetTheta()

G4double BesMdcHit::GetTheta ( )
inline

Definition at line 64 of file BesMdcHit.hh.

64{ 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 112 of file BesMdcHit.hh.

113{
114 BesMdcHitAllocator.FreeSingle((BesMdcHit*) aHit);
115}
G4Allocator< BesMdcHit > BesMdcHitAllocator
Definition: BesMdcHit.cc:18

◆ operator new()

void * BesMdcHit::operator new ( size_t  )
inline

Definition at line 103 of file BesMdcHit.hh.

104{
105 void *aHit;
106 aHit = (void *) BesMdcHitAllocator.MallocSingle();
107 return aHit;
108}

◆ operator=()

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

Definition at line 54 of file BesMdcHit.cc.

55{
56 trackID = right.trackID;
57 layerNo = right.layerNo;
58 cellNo = right.cellNo;
59 edep = right.edep;
60 pos = right.pos;
61 driftD = right.driftD;
62 driftT = right.driftT;
63 globalT = right.globalT;
64 theta = right.theta;
65 enterAngle= right.enterAngle;
66 posFlag = right.posFlag;
67 m_p3 = right.m_p3;
68 m_flightLength = right.m_flightLength;
69 m_pdg_code = right.m_pdg_code;
70 m_isSecondary = right.m_isSecondary;
71 m_creatorProcess = right.m_creatorProcess;
72 m_digiId = right.m_digiId;
73 return *this;
74}

◆ operator==()

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

Definition at line 78 of file BesMdcHit.cc.

79{
80 return (this==&right) ? 1 : 0;
81}

◆ Print()

void BesMdcHit::Print ( )

Definition at line 102 of file BesMdcHit.cc.

103{
104 G4cout << " trackID: " << trackID
105 << " layerNo: " << layerNo
106 << " cellNo: " << cellNo
107 << " energy deposit: " << G4BestUnit(edep,"Energy")
108 << " position: " << G4BestUnit(pos,"Length")
109 << " driftD: " << G4BestUnit(driftD,"Length")
110 << " driftT: " << G4BestUnit(driftT,"Time")
111 << " globalT: " << G4BestUnit(globalT,"Time")
112 << " theta: " << G4BestUnit(theta,"Angle")
113 << " enterAngle: " << G4BestUnit(enterAngle,"Angle")
114 << " posFlag: " << posFlag
115 <<G4endl;
116}

◆ 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().

◆ SetCreatorProcess()

void BesMdcHit::SetCreatorProcess ( G4String  proName)
inline

Definition at line 53 of file BesMdcHit.hh.

53{m_creatorProcess=proName;};

Referenced by BesMdcSD::ProcessHits().

◆ SetDigiId()

void BesMdcHit::SetDigiId ( G4int  id)
inline

Definition at line 54 of file BesMdcHit.hh.

54{ m_digiId = id; }

Referenced by 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().

◆ SetFlightLength()

void BesMdcHit::SetFlightLength ( G4double  len)
inline

Definition at line 50 of file BesMdcHit.hh.

50{ m_flightLength = len;}

Referenced by 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().

◆ SetIsSecondary()

void BesMdcHit::SetIsSecondary ( G4int  isSec)
inline

Definition at line 52 of file BesMdcHit.hh.

52{ m_isSecondary = isSec;}

Referenced by 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().

◆ SetMomentum()

void BesMdcHit::SetMomentum ( G4ThreeVector  xyz)
inline

Definition at line 49 of file BesMdcHit.hh.

49{ m_p3 = xyz;}

Referenced by BesMdcSD::ProcessHits().

◆ SetPDGCode()

void BesMdcHit::SetPDGCode ( G4int  code)
inline

Definition at line 51 of file BesMdcHit.hh.

51{ m_pdg_code = code;}

Referenced by 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

Definition at line 48 of file BesMdcHit.hh.

48{ posFlag = flag;};

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

◆ 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: