CGEM BOSS 6.6.5.f
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)
 
 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

Constructor & Destructor Documentation

◆ BesTofHit() [1/4]

BesTofHit::BesTofHit ( )

Definition at line 22 of file BesTofHit.cc.

22{}

◆ ~BesTofHit() [1/2]

BesTofHit::~BesTofHit ( )
virtual

Definition at line 24 of file BesTofHit.cc.

24{}

◆ BesTofHit() [2/4]

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 }

◆ BesTofHit() [3/4]

BesTofHit::BesTofHit ( )

◆ ~BesTofHit() [2/2]

virtual BesTofHit::~BesTofHit ( )
virtual

◆ BesTofHit() [4/4]

BesTofHit::BesTofHit ( const BesTofHit )

Member Function Documentation

◆ AddEdep() [1/2]

void BesTofHit::AddEdep ( G4double  de)
inline

Definition at line 77 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

77{ m_edep += de; }

◆ AddEdep() [2/2]

void BesTofHit::AddEdep ( G4double  de)
inline

Definition at line 77 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

77{ m_edep += de; }

◆ AddHit() [1/2]

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}

◆ AddHit() [2/2]

void BesTofHit::AddHit ( const BesTofHit )

◆ Draw() [1/2]

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}

◆ Draw() [2/2]

virtual void BesTofHit::Draw ( )
virtual

◆ GetCharge() [1/2]

G4double BesTofHit::GetCharge ( )
inline

◆ GetCharge() [2/2]

G4double BesTofHit::GetCharge ( )
inline

Definition at line 72 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

72{return m_charge; }

◆ GetDeltaT() [1/2]

G4double BesTofHit::GetDeltaT ( )
inline

◆ GetDeltaT() [2/2]

G4double BesTofHit::GetDeltaT ( )
inline

Definition at line 67 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

67{return m_deltaT;}

◆ GetEdep() [1/2]

◆ GetEdep() [2/2]

G4double BesTofHit::GetEdep ( )
inline

Definition at line 62 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

62{ return m_edep; }

◆ GetG4Index() [1/2]

G4int BesTofHit::GetG4Index ( )
inline

◆ GetG4Index() [2/2]

G4int BesTofHit::GetG4Index ( )
inline

Definition at line 59 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

59{return m_g4Index;}

◆ GetIons() [1/2]

G4int BesTofHit::GetIons ( )
inline

Definition at line 80 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

80{return m_number_of_ions;}

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

◆ GetIons() [2/2]

G4int BesTofHit::GetIons ( )
inline

Definition at line 80 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

80{return m_number_of_ions;}

◆ GetModule_mrpc() [1/2]

G4int BesTofHit::GetModule_mrpc ( )
inline

Definition at line 83 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

83{return m_scinNb;}

◆ GetModule_mrpc() [2/2]

G4int BesTofHit::GetModule_mrpc ( )
inline

Definition at line 83 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

83{return m_scinNb;}

◆ GetMomentum() [1/2]

G4ThreeVector BesTofHit::GetMomentum ( )
inline

◆ GetMomentum() [2/2]

G4ThreeVector BesTofHit::GetMomentum ( )
inline

Definition at line 69 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

69{return m_momentum;}

◆ GetPartId() [1/2]

◆ GetPartId() [2/2]

G4int BesTofHit::GetPartId ( )
inline

Definition at line 60 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

60{ return m_partId; }

◆ GetPDGcode() [1/2]

G4int BesTofHit::GetPDGcode ( )
inline

◆ GetPDGcode() [2/2]

G4int BesTofHit::GetPDGcode ( )
inline

Definition at line 73 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

73{return m_pdgcode;}

◆ GetPDirection() [1/2]

G4ThreeVector BesTofHit::GetPDirection ( )
inline

◆ GetPDirection() [2/2]

G4ThreeVector BesTofHit::GetPDirection ( )
inline

Definition at line 68 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

68{return m_pDirection;}

◆ GetPos() [1/2]

◆ GetPos() [2/2]

G4ThreeVector BesTofHit::GetPos ( )
inline

Definition at line 65 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

65{ return m_pos; }

◆ GetScinNb() [1/2]

◆ GetScinNb() [2/2]

G4int BesTofHit::GetScinNb ( )
inline

Definition at line 61 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

61{ return m_scinNb; }

◆ GetStepL() [1/2]

◆ GetStepL() [2/2]

G4double BesTofHit::GetStepL ( )
inline

Definition at line 63 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

63{ return m_stepL; }

◆ GetTime() [1/2]

◆ GetTime() [2/2]

G4double BesTofHit::GetTime ( )
inline

Definition at line 66 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

66{ return m_time;}

◆ GetTrackIndex() [1/2]

◆ GetTrackIndex() [2/2]

G4int BesTofHit::GetTrackIndex ( )
inline

Definition at line 58 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

58{ return m_trackIndex; }

◆ GetTrackL() [1/2]

G4double BesTofHit::GetTrackL ( )
inline

◆ GetTrackL() [2/2]

G4double BesTofHit::GetTrackL ( )
inline

Definition at line 64 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

64{return m_trackL; }

◆ operator delete() [1/2]

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

Definition at line 121 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

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

◆ operator delete() [2/2]

void BesTofHit::operator delete ( void *  )
inline

◆ operator new() [1/2]

void * BesTofHit::operator new ( size_t  )
inline

Definition at line 113 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

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

◆ operator new() [2/2]

void * BesTofHit::operator new ( size_t  )
inline

◆ operator=() [1/2]

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=() [2/2]

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

◆ operator==() [1/2]

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

Definition at line 70 of file BesTofHit.cc.

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

◆ operator==() [2/2]

virtual G4int BesTofHit::operator== ( const BesTofHit ) const
virtual

◆ Print() [1/2]

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}

◆ Print() [2/2]

virtual void BesTofHit::Print ( )
virtual

◆ SetCharge() [1/2]

void BesTofHit::SetCharge ( G4double  charge)
inline

Definition at line 55 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

55{m_charge = charge;}

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

◆ SetCharge() [2/2]

void BesTofHit::SetCharge ( G4double  charge)
inline

Definition at line 55 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

55{m_charge = charge;}

◆ SetDeltaT() [1/2]

void BesTofHit::SetDeltaT ( G4double  deltaT)
inline

Definition at line 50 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

50{ m_deltaT = deltaT;}

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

◆ SetDeltaT() [2/2]

void BesTofHit::SetDeltaT ( G4double  deltaT)
inline

Definition at line 50 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

50{ m_deltaT = deltaT;}

◆ SetEdep() [1/2]

void BesTofHit::SetEdep ( G4double  edep)
inline

Definition at line 45 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

45{ m_edep = edep; }

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

◆ SetEdep() [2/2]

void BesTofHit::SetEdep ( G4double  edep)
inline

Definition at line 45 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

45{ m_edep = edep; }

◆ SetG4Index() [1/2]

void BesTofHit::SetG4Index ( G4int  index)
inline

Definition at line 42 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

42{m_g4Index = index;}

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

◆ SetG4Index() [2/2]

void BesTofHit::SetG4Index ( G4int  index)
inline

Definition at line 42 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

42{m_g4Index = index;}

◆ SetIons() [1/2]

void BesTofHit::SetIons ( G4int  ions)
inline

Definition at line 79 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

79{m_number_of_ions=ions;}

Referenced by BesTofSD::ProcessHits().

◆ SetIons() [2/2]

void BesTofHit::SetIons ( G4int  ions)
inline

Definition at line 79 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

79{m_number_of_ions=ions;}

◆ SetModule_mrpc() [1/2]

void BesTofHit::SetModule_mrpc ( G4int  module_mrpc)
inline

Definition at line 84 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

84{m_scinNb=module_mrpc;}

Referenced by BesTofSD::ProcessHits().

◆ SetModule_mrpc() [2/2]

void BesTofHit::SetModule_mrpc ( G4int  module_mrpc)
inline

Definition at line 84 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

84{m_scinNb=module_mrpc;}

◆ SetMomentum() [1/2]

void BesTofHit::SetMomentum ( G4ThreeVector  momentum)
inline

Definition at line 52 of file InstallArea/include/TofSim/TofSim/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().

◆ SetMomentum() [2/2]

void BesTofHit::SetMomentum ( G4ThreeVector  momentum)
inline

Definition at line 52 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

52{ m_momentum = momentum; }

◆ SetPartId() [1/2]

void BesTofHit::SetPartId ( G4int  partId)
inline

Definition at line 43 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

43{m_partId = partId;}

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

◆ SetPartId() [2/2]

void BesTofHit::SetPartId ( G4int  partId)
inline

Definition at line 43 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

43{m_partId = partId;}

◆ SetPDGcode() [1/2]

void BesTofHit::SetPDGcode ( G4int  pdgcode)
inline

Definition at line 56 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

56{m_pdgcode=pdgcode;}

Referenced by BesTofSD::ProcessHits().

◆ SetPDGcode() [2/2]

void BesTofHit::SetPDGcode ( G4int  pdgcode)
inline

Definition at line 56 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

56{m_pdgcode=pdgcode;}

◆ SetPDirection() [1/2]

void BesTofHit::SetPDirection ( G4ThreeVector  pDirection)
inline

Definition at line 51 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

51{ m_pDirection = pDirection; }

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

◆ SetPDirection() [2/2]

void BesTofHit::SetPDirection ( G4ThreeVector  pDirection)
inline

Definition at line 51 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

51{ m_pDirection = pDirection; }

◆ SetPos() [1/2]

void BesTofHit::SetPos ( G4ThreeVector  pos)
inline

Definition at line 48 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

48{ m_pos = pos; }

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

◆ SetPos() [2/2]

void BesTofHit::SetPos ( G4ThreeVector  pos)
inline

Definition at line 48 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

48{ m_pos = pos; }

◆ SetScinNb() [1/2]

void BesTofHit::SetScinNb ( G4int  scinNb)
inline

Definition at line 44 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

44{ m_scinNb = scinNb; }

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

◆ SetScinNb() [2/2]

void BesTofHit::SetScinNb ( G4int  scinNb)
inline

Definition at line 44 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

44{ m_scinNb = scinNb; }

◆ SetStepL() [1/2]

void BesTofHit::SetStepL ( G4double  stepL)
inline

Definition at line 46 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

46{ m_stepL = stepL;}

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

◆ SetStepL() [2/2]

void BesTofHit::SetStepL ( G4double  stepL)
inline

Definition at line 46 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

46{ m_stepL = stepL;}

◆ SetTime() [1/2]

void BesTofHit::SetTime ( G4double  time)
inline

Definition at line 49 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

49{ m_time=time;}
Double_t time

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

◆ SetTime() [2/2]

void BesTofHit::SetTime ( G4double  time)
inline

Definition at line 49 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

49{ m_time=time;}

◆ SetTrackIndex() [1/2]

void BesTofHit::SetTrackIndex ( G4int  trackIndex)
inline

Definition at line 41 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

41{ m_trackIndex = trackIndex; };

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

◆ SetTrackIndex() [2/2]

void BesTofHit::SetTrackIndex ( G4int  trackIndex)
inline

Definition at line 41 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

41{ m_trackIndex = trackIndex; };

◆ SetTrackL() [1/2]

void BesTofHit::SetTrackL ( G4double  length)
inline

Definition at line 47 of file InstallArea/include/TofSim/TofSim/BesTofHit.hh.

47{ m_trackL = length; }

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

◆ SetTrackL() [2/2]

void BesTofHit::SetTrackL ( G4double  length)
inline

Definition at line 47 of file Simulation/BOOST/TofSim/TofSim-00-02-12/TofSim/BesTofHit.hh.

47{ m_trackL = length; }

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