CGEM BOSS 6.6.5.i
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 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)
 
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 ()
 
void AddEdep (G4double de)
 
void SetIons (G4int ions)
 
G4int GetIons ()
 
G4int GetModule_mrpc ()
 
void SetModule_mrpc (G4int module_mrpc)
 

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_edep=right.m_edep;
34 m_stepL=right.m_stepL;
35 m_trackL=right.m_trackL;
36 m_pos=right.m_pos;
37 m_time=right.m_time;
38 m_deltaT=right.m_deltaT;
39 m_pDirection=right.m_pDirection;
40 m_momentum=right.m_momentum;
41 //m_scinMaterial = right.m_scinMaterial;
42 m_charge = right.m_charge;
43 m_number_of_ions=right.m_number_of_ions;
44 }

Member Function Documentation

◆ AddEdep()

void BesTofHit::AddEdep ( G4double de)
inline

Definition at line 77 of file BesTofHit.hh.

77{ m_edep += de; }

◆ AddHit()

void BesTofHit::AddHit ( const BesTofHit & newHit)

Definition at line 75 of file BesTofHit.cc.

76{
77 m_edep += newHit.m_edep;
78 if (m_edep>newHit.m_edep)
79 {
80 m_time = newHit.m_time;
81 m_pos = newHit.m_pos;
82 }
83}

◆ Draw()

void BesTofHit::Draw ( )
virtual

Definition at line 85 of file BesTofHit.cc.

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

◆ GetCharge()

G4double BesTofHit::GetCharge ( )
inline

Definition at line 72 of file BesTofHit.hh.

72{return m_charge; }

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

◆ GetDeltaT()

G4double BesTofHit::GetDeltaT ( )
inline

◆ GetEdep()

◆ GetG4Index()

G4int BesTofHit::GetG4Index ( )
inline

Definition at line 59 of file BesTofHit.hh.

59{return m_g4Index;}

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

◆ GetIons()

G4int BesTofHit::GetIons ( )
inline

Definition at line 80 of file BesTofHit.hh.

80{return m_number_of_ions;}

Referenced by BesTofDigitizerEcV4::Digitize(), and BesTofDigitizerEcV4_dbs::Digitize().

◆ GetModule_mrpc()

G4int BesTofHit::GetModule_mrpc ( )
inline

Definition at line 83 of file BesTofHit.hh.

83{return m_scinNb;}

◆ GetMomentum()

G4ThreeVector BesTofHit::GetMomentum ( )
inline

Definition at line 69 of file BesTofHit.hh.

69{return m_momentum;}

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

◆ GetPartId()

◆ GetPDGcode()

G4int BesTofHit::GetPDGcode ( )
inline

Definition at line 73 of file BesTofHit.hh.

73{return m_pdgcode;}

Referenced by BesTofDigitizerEcV4::Digitize(), and BesTofDigitizerEcV4_dbs::Digitize().

◆ GetPDirection()

G4ThreeVector BesTofHit::GetPDirection ( )
inline

◆ GetPos()

◆ GetScinNb()

◆ GetStepL()

◆ GetTime()

◆ GetTrackIndex()

◆ GetTrackL()

G4double BesTofHit::GetTrackL ( )
inline

Definition at line 64 of file BesTofHit.hh.

64{return m_trackL; }

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

◆ operator delete()

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

Definition at line 121 of file BesTofHit.hh.

122{
123 BesTofHitAllocator.FreeSingle((BesTofHit*) aHit);
124}
G4Allocator< BesTofHit > BesTofHitAllocator
Definition BesTofHit.cc:20

◆ operator new()

void * BesTofHit::operator new ( size_t )
inline

Definition at line 113 of file BesTofHit.hh.

114{
115 void *aHit;
116 aHit = (void *) BesTofHitAllocator.MallocSingle();
117 return aHit;
118}

◆ operator=()

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

Definition at line 47 of file BesTofHit.cc.

48{
49 m_trackIndex=right.m_trackIndex;
50 m_g4Index=right.m_g4Index;
51 m_partId=right.m_partId;
52 m_scinNb=right.m_scinNb;
53 m_edep=right.m_edep;
54 m_stepL=right.m_stepL;
55 m_trackL=right.m_trackL;
56 m_pos=right.m_pos;
57 m_time=right.m_time;
58 m_deltaT=right.m_deltaT;
59 m_pDirection=right.m_pDirection;
60 m_momentum=right.m_momentum;
61 //m_scinMaterial = right.m_scinMaterial;
62 m_charge = right.m_charge;
63 m_number_of_ions = right.m_number_of_ions;
64
65 return *this;
66}

◆ operator==()

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

Definition at line 70 of file BesTofHit.cc.

71{
72 return (this==&right) ? 1 : 0;
73}

◆ Print()

void BesTofHit::Print ( )
virtual

Definition at line 101 of file BesTofHit.cc.

102{
103 G4cout<<m_trackIndex<<" "<<m_g4Index<<" "<<m_partId<<" "<<m_scinNb<<" ";
104 G4double posx = m_pos.x();
105 G4double posy = m_pos.y();
106 G4double posr = sqrt(posx*posx + posy*posy);
107 G4cout<<posr<<" "<<m_edep<<" "<<m_stepL<<G4endl;
108}

◆ SetCharge()

void BesTofHit::SetCharge ( G4double charge)
inline

Definition at line 55 of file BesTofHit.hh.

55{m_charge = charge;}

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

◆ SetDeltaT()

void BesTofHit::SetDeltaT ( G4double deltaT)
inline

Definition at line 50 of file BesTofHit.hh.

50{ m_deltaT = deltaT;}

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

◆ SetEdep()

void BesTofHit::SetEdep ( G4double edep)
inline

Definition at line 45 of file BesTofHit.hh.

45{ m_edep = edep; }

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

◆ SetG4Index()

void BesTofHit::SetG4Index ( G4int index)
inline

Definition at line 42 of file BesTofHit.hh.

42{m_g4Index = index;}

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

◆ SetIons()

void BesTofHit::SetIons ( G4int ions)
inline

Definition at line 79 of file BesTofHit.hh.

79{m_number_of_ions=ions;}

Referenced by BesTofSD::ProcessHits().

◆ SetModule_mrpc()

void BesTofHit::SetModule_mrpc ( G4int module_mrpc)
inline

Definition at line 84 of file BesTofHit.hh.

84{m_scinNb=module_mrpc;}

Referenced by BesTofSD::ProcessHits().

◆ SetMomentum()

void BesTofHit::SetMomentum ( G4ThreeVector momentum)
inline

Definition at line 52 of file BesTofHit.hh.

52{ 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 43 of file BesTofHit.hh.

43{m_partId = partId;}

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

◆ SetPDGcode()

void BesTofHit::SetPDGcode ( G4int pdgcode)
inline

Definition at line 56 of file BesTofHit.hh.

56{m_pdgcode=pdgcode;}

Referenced by BesTofSD::ProcessHits().

◆ SetPDirection()

void BesTofHit::SetPDirection ( G4ThreeVector pDirection)
inline

Definition at line 51 of file BesTofHit.hh.

51{ m_pDirection = pDirection; }

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

◆ SetPos()

void BesTofHit::SetPos ( G4ThreeVector pos)
inline

Definition at line 48 of file BesTofHit.hh.

48{ m_pos = pos; }

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

◆ SetScinNb()

void BesTofHit::SetScinNb ( G4int scinNb)
inline

Definition at line 44 of file BesTofHit.hh.

44{ m_scinNb = scinNb; }

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

◆ SetStepL()

void BesTofHit::SetStepL ( G4double stepL)
inline

Definition at line 46 of file BesTofHit.hh.

46{ m_stepL = stepL;}

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

◆ SetTime()

void BesTofHit::SetTime ( G4double time)
inline

Definition at line 49 of file BesTofHit.hh.

49{ m_time=time;}
Double_t time

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

◆ SetTrackIndex()

void BesTofHit::SetTrackIndex ( G4int trackIndex)
inline

Definition at line 41 of file BesTofHit.hh.

41{ m_trackIndex = trackIndex; };

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

◆ SetTrackL()

void BesTofHit::SetTrackL ( G4double length)
inline

Definition at line 47 of file BesTofHit.hh.

47{ m_trackL = length; }
double length

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


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