BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
BesTofHit Class Reference

#include <BesTofHit.hh>

+ Inheritance diagram for BesTofHit:

Public Member Functions

 BesTofHit ()
 
virtual ~BesTofHit ()
 
 BesTofHit (const BesTofHit &)
 
const BesTofHitoperator= (const BesTofHit &)
 
void AddHit (const BesTofHit &)
 
virtual G4int operator== (const BesTofHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetEvent (G4double event)
 
G4double GetEvent ()
 
void SetTrackIndex (G4int trackIndex)
 
void SetG4Index (G4int index)
 
void SetPartId (G4int partId)
 
void SetScinNb (G4int scinNb)
 
void SetEdep (G4double edep)
 
void SetStepL (G4double stepL)
 
void SetTrackL (G4double length)
 
void SetPos (G4ThreeVector pos)
 
void SetTime (G4double time)
 
void SetDeltaT (G4double deltaT)
 
void SetPDirection (G4ThreeVector pDirection)
 
void SetMomentum (G4ThreeVector momentum)
 
void SetCharge (G4double charge)
 
void SetPDGcode (G4int pdgcode)
 
void SetModule (G4int module)
 
void SetStrip (G4int strip)
 
void SetIons (G4int ions)
 
void SetLocPos (G4ThreeVector locPos)
 
void SetGapNb (G4int gapNb)
 
G4int GetTrackIndex ()
 
G4int GetG4Index ()
 
G4int GetPartId ()
 
G4int GetScinNb ()
 
G4double GetEdep ()
 
G4double GetStepL ()
 
G4double GetTrackL ()
 
G4ThreeVector GetPos ()
 
G4double GetTime ()
 
G4double GetDeltaT ()
 
G4ThreeVector GetPDirection ()
 
G4ThreeVector GetMomentum ()
 
G4double GetCharge ()
 
G4int GetPDGcode ()
 
G4int GetModule ()
 
G4int GetStrip ()
 
G4int GetIons ()
 
G4ThreeVector GetLocPos ()
 
G4int GetGapNb ()
 
void AddEdep (G4double de)
 

Detailed Description

Definition at line 22 of file BesTofHit.hh.

Constructor & Destructor Documentation

◆ BesTofHit() [1/2]

BesTofHit::BesTofHit ( )

Definition at line 22 of file BesTofHit.cc.

22{}

◆ ~BesTofHit()

BesTofHit::~BesTofHit ( )
virtual

Definition at line 24 of file BesTofHit.cc.

24{}

◆ BesTofHit() [2/2]

BesTofHit::BesTofHit ( const BesTofHit & right)

Definition at line 26 of file BesTofHit.cc.

27 :G4VHit()
28{
29 m_trackIndex=right.m_trackIndex;
30 m_g4Index=right.m_g4Index;
31 m_partId=right.m_partId;
32 m_scinNb=right.m_scinNb;
33 m_gapNb=right.m_gapNb;
34 m_edep=right.m_edep;
35 m_stepL=right.m_stepL;
36 m_trackL=right.m_trackL;
37 m_pos=right.m_pos;
38 m_time=right.m_time;
39 m_deltaT=right.m_deltaT;
40 m_pDirection=right.m_pDirection;
41 m_momentum=right.m_momentum;
42 //m_scinMaterial = right.m_scinMaterial;
43 m_charge = right.m_charge;
44 m_number_of_ions=right.m_number_of_ions;
45 m_strip = right.m_strip;
46 m_locPos = right.m_locPos;
47}

Member Function Documentation

◆ AddEdep()

void BesTofHit::AddEdep ( G4double de)
inline

Definition at line 89 of file BesTofHit.hh.

89{ m_edep += de; }

◆ AddHit()

void BesTofHit::AddHit ( const BesTofHit & newHit)

Definition at line 81 of file BesTofHit.cc.

82{
83 m_edep += newHit.m_edep;
84 if (m_edep>newHit.m_edep)
85 {
86 m_time = newHit.m_time;
87 m_pos = newHit.m_pos;
88 }
89}

◆ Draw()

void BesTofHit::Draw ( )
virtual

Definition at line 91 of file BesTofHit.cc.

92{
93 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
94 if (pVVisManager)
95 {
96 G4Circle circle(m_pos);
97 circle.SetScreenSize(1.);
98 circle.SetFillStyle(G4Circle::filled);
99 G4Colour colour(0.,0.,1.);
100 G4VisAttributes attribs(colour);
101 circle.SetVisAttributes(attribs);
102 pVVisManager->Draw(circle);
103 }
104}

◆ GetCharge()

G4double BesTofHit::GetCharge ( )
inline

Definition at line 80 of file BesTofHit.hh.

80{return m_charge; }

Referenced by BesTofDigitizerBrV2::BirksLaw(), BesTofDigitizerEcV3::BirksLaw(), and BesRootIO::SaveTofHitRoot().

◆ GetDeltaT()

G4double BesTofHit::GetDeltaT ( )
inline

◆ GetEdep()

◆ GetEvent()

G4double BesTofHit::GetEvent ( )
inline

Definition at line 42 of file BesTofHit.hh.

42{return m_event; }

Referenced by BesTofDigitizerEcV4::Digitize().

◆ GetG4Index()

G4int BesTofHit::GetG4Index ( )
inline

Definition at line 67 of file BesTofHit.hh.

67{return m_g4Index;}

Referenced by BesTofDigitizerEcV4::Digitize(), and BesRootIO::SaveTofHitRoot().

◆ GetGapNb()

G4int BesTofHit::GetGapNb ( )
inline

Definition at line 87 of file BesTofHit.hh.

87{ return m_gapNb; }

Referenced by BesTofDigitizerEcV4::Digitize().

◆ GetIons()

G4int BesTofHit::GetIons ( )
inline

Definition at line 85 of file BesTofHit.hh.

85{ return m_number_of_ions; }

Referenced by BesTofDigitizerEcV4::Digitize().

◆ GetLocPos()

G4ThreeVector BesTofHit::GetLocPos ( )
inline

Definition at line 86 of file BesTofHit.hh.

86{ return m_locPos; }

Referenced by BesTofDigitizerEcV4::Digitize().

◆ GetModule()

G4int BesTofHit::GetModule ( )
inline

Definition at line 83 of file BesTofHit.hh.

83{return m_scinNb; }

Referenced by BesMcTruthWriter::SaveTofTruth().

◆ GetMomentum()

G4ThreeVector BesTofHit::GetMomentum ( )
inline

◆ GetPartId()

◆ GetPDGcode()

G4int BesTofHit::GetPDGcode ( )
inline

Definition at line 81 of file BesTofHit.hh.

81{return m_pdgcode;}

Referenced by BesTofDigitizerEcV4::Digitize().

◆ GetPDirection()

G4ThreeVector BesTofHit::GetPDirection ( )
inline

◆ GetPos()

◆ GetScinNb()

◆ GetStepL()

◆ GetStrip()

G4int BesTofHit::GetStrip ( )
inline

Definition at line 84 of file BesTofHit.hh.

84{ return m_strip; }

Referenced by BesMcTruthWriter::SaveTofTruth().

◆ GetTime()

◆ GetTrackIndex()

◆ GetTrackL()

G4double BesTofHit::GetTrackL ( )
inline

Definition at line 72 of file BesTofHit.hh.

72{return m_trackL; }

Referenced by BesRootIO::SaveTofHitRoot(), BesAsciiIO::SaveTofTruth(), and BesMcTruthWriter::SaveTofTruth().

◆ operator delete()

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

Definition at line 128 of file BesTofHit.hh.

128 {
129 BesTofHitAllocator.FreeSingle((BesTofHit*) aHit);
130}
G4Allocator< BesTofHit > BesTofHitAllocator
Definition BesTofHit.cc:20

◆ operator new()

void * BesTofHit::operator new ( size_t )
inline

Definition at line 121 of file BesTofHit.hh.

121 {
122 void *aHit;
123 aHit = (void *) BesTofHitAllocator.MallocSingle();
124 return aHit;
125}

◆ operator=()

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

Definition at line 50 of file BesTofHit.cc.

51{
52 m_trackIndex=right.m_trackIndex;
53 m_g4Index=right.m_g4Index;
54 m_partId=right.m_partId;
55 m_scinNb=right.m_scinNb;
56 m_gapNb=right.m_gapNb;
57 m_edep=right.m_edep;
58 m_stepL=right.m_stepL;
59 m_trackL=right.m_trackL;
60 m_pos=right.m_pos;
61 m_time=right.m_time;
62 m_deltaT=right.m_deltaT;
63 m_pDirection=right.m_pDirection;
64 m_momentum=right.m_momentum;
65 //m_scinMaterial = right.m_scinMaterial;
66 m_charge = right.m_charge;
67 m_number_of_ions = right.m_number_of_ions;
68 m_strip = right.m_strip;
69 m_locPos = right.m_locPos;
70
71 return *this;
72}

◆ operator==()

int BesTofHit::operator== ( const BesTofHit & right) const
virtual

Definition at line 76 of file BesTofHit.cc.

77{
78 return (this==&right) ? 1 : 0;
79}

◆ Print()

void BesTofHit::Print ( )
virtual

Definition at line 107 of file BesTofHit.cc.

108{
109 G4cout<<m_trackIndex<<" "<<m_g4Index<<" "<<m_partId<<" "<<m_scinNb<<" ";
110 G4double posx = m_pos.x();
111 G4double posy = m_pos.y();
112 G4double posr = sqrt(posx*posx + posy*posy);
113 G4cout<<posr<<" "<<m_edep<<" "<<m_stepL<<G4endl<<G4endl;
114}

◆ SetCharge()

void BesTofHit::SetCharge ( G4double charge)
inline

Definition at line 57 of file BesTofHit.hh.

57{m_charge = charge;}
float charge

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetDeltaT()

void BesTofHit::SetDeltaT ( G4double deltaT)
inline

Definition at line 52 of file BesTofHit.hh.

52{ m_deltaT = deltaT;}

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetEdep()

void BesTofHit::SetEdep ( G4double edep)
inline

Definition at line 47 of file BesTofHit.hh.

47{ m_edep = edep; }

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetEvent()

void BesTofHit::SetEvent ( G4double event)
inline

Definition at line 41 of file BesTofHit.hh.

41{m_event = event; };

Referenced by BesTofSD::ProcessHits().

◆ SetG4Index()

void BesTofHit::SetG4Index ( G4int index)
inline

Definition at line 44 of file BesTofHit.hh.

44{m_g4Index = index;}

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetGapNb()

void BesTofHit::SetGapNb ( G4int gapNb)
inline

Definition at line 64 of file BesTofHit.hh.

64{ m_gapNb = gapNb; }

Referenced by BesTofSD::ProcessHits().

◆ SetIons()

void BesTofHit::SetIons ( G4int ions)
inline

Definition at line 62 of file BesTofHit.hh.

62{ m_number_of_ions=ions; }

Referenced by BesTofSD::ProcessHits().

◆ SetLocPos()

void BesTofHit::SetLocPos ( G4ThreeVector locPos)
inline

Definition at line 63 of file BesTofHit.hh.

63{ m_locPos = locPos; }

Referenced by BesTofSD::ProcessHits().

◆ SetModule()

void BesTofHit::SetModule ( G4int module)
inline

Definition at line 60 of file BesTofHit.hh.

60{ m_scinNb = module; }

Referenced by BesTofSD::ProcessHits().

◆ SetMomentum()

void BesTofHit::SetMomentum ( G4ThreeVector momentum)
inline

Definition at line 54 of file BesTofHit.hh.

54{ m_momentum = momentum; }
**********INTEGER nmxhep !maximum number of particles DOUBLE PRECISION vhep INTEGER jdahep COMMON hepevt $ !serial number $ !number of particles $ !status code $ !particle ident KF $ !parent particles $ !childreen particles $ !four momentum

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetPartId()

void BesTofHit::SetPartId ( G4int partId)
inline

Definition at line 45 of file BesTofHit.hh.

45{m_partId = partId;}

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetPDGcode()

void BesTofHit::SetPDGcode ( G4int pdgcode)
inline

Definition at line 58 of file BesTofHit.hh.

58{m_pdgcode=pdgcode;}

Referenced by BesTofSD::ProcessHits().

◆ SetPDirection()

void BesTofHit::SetPDirection ( G4ThreeVector pDirection)
inline

Definition at line 53 of file BesTofHit.hh.

53{ m_pDirection = pDirection; }

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetPos()

void BesTofHit::SetPos ( G4ThreeVector pos)
inline

Definition at line 50 of file BesTofHit.hh.

50{ m_pos = pos; }

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetScinNb()

void BesTofHit::SetScinNb ( G4int scinNb)
inline

Definition at line 46 of file BesTofHit.hh.

46{ m_scinNb = scinNb; }

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetStepL()

void BesTofHit::SetStepL ( G4double stepL)
inline

Definition at line 48 of file BesTofHit.hh.

48{ m_stepL = stepL;}

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetStrip()

void BesTofHit::SetStrip ( G4int strip)
inline

Definition at line 61 of file BesTofHit.hh.

61{ m_strip = strip; }

Referenced by BesTofSD::ProcessHits().

◆ SetTime()

void BesTofHit::SetTime ( G4double time)
inline

Definition at line 51 of file BesTofHit.hh.

51{ m_time=time;}
Double_t time

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetTrackIndex()

void BesTofHit::SetTrackIndex ( G4int trackIndex)
inline

Definition at line 43 of file BesTofHit.hh.

43{ m_trackIndex = trackIndex; };

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().

◆ SetTrackL()

void BesTofHit::SetTrackL ( G4double length)
inline

Definition at line 49 of file BesTofHit.hh.

49{ m_trackL = length; }

Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().


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