CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEmcHit Class Reference

#include <BesEmcHit.hh>

+ Inheritance diagram for BesEmcHit:

Public Member Functions

 BesEmcHit ()
 
 ~BesEmcHit ()
 
 BesEmcHit (const BesEmcHit &)
 
const BesEmcHitoperator= (const BesEmcHit &)
 
int operator== (const BesEmcHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print (G4int)
 
void Print ()
 
void AddCrystal (G4double de, G4double dl)
 
void SetEdepCrystal (G4double de)
 
void SetEdepCasing (G4double de)
 
void SetTrakCrystal (G4double dl)
 
void SetPosCrystal (G4ThreeVector position)
 
void SetTimeCrystal (G4double t)
 
void SetNumCrystal (G4int id, G4int numTheta, G4int numPhi)
 
void SetTrackIndex (G4int index)
 
void SetG4Index (G4int index)
 
void SetMomentum (G4ThreeVector momen)
 
G4double GetTotalEdepCrystal ()
 
G4double GetTotalTrakCrystal ()
 
G4double GetEdepCrystal ()
 
G4double GetEdepCasing ()
 
G4double GetTrakCrystal ()
 
G4ThreeVector GetPosCrystal ()
 
G4double GetTimeCrystal ()
 
G4int GetPartId ()
 
G4int GetNumThetaCrystal ()
 
G4int GetNumPhiCrystal ()
 
G4int GetTrackIndex ()
 
G4int GetG4Index ()
 
G4ThreeVector GetMomentum ()
 
 BesEmcHit ()
 
 ~BesEmcHit ()
 
 BesEmcHit (const BesEmcHit &)
 
const BesEmcHitoperator= (const BesEmcHit &)
 
int operator== (const BesEmcHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print (G4int)
 
void Print ()
 
void AddCrystal (G4double de, G4double dl)
 
void SetEdepCrystal (G4double de)
 
void SetEdepCasing (G4double de)
 
void SetTrakCrystal (G4double dl)
 
void SetPosCrystal (G4ThreeVector position)
 
void SetTimeCrystal (G4double t)
 
void SetNumCrystal (G4int id, G4int numTheta, G4int numPhi)
 
void SetTrackIndex (G4int index)
 
void SetG4Index (G4int index)
 
void SetMomentum (G4ThreeVector momen)
 
G4double GetTotalEdepCrystal ()
 
G4double GetTotalTrakCrystal ()
 
G4double GetEdepCrystal ()
 
G4double GetEdepCasing ()
 
G4double GetTrakCrystal ()
 
G4ThreeVector GetPosCrystal ()
 
G4double GetTimeCrystal ()
 
G4int GetPartId ()
 
G4int GetNumThetaCrystal ()
 
G4int GetNumPhiCrystal ()
 
G4int GetTrackIndex ()
 
G4int GetG4Index ()
 
G4ThreeVector GetMomentum ()
 

Detailed Description

Constructor & Destructor Documentation

◆ BesEmcHit() [1/4]

BesEmcHit::BesEmcHit ( )

Definition at line 23 of file BesEmcHit.cc.

24{
25 TotalEdepCrystal = 0.; TotalTrackLengthCrystal = 0.;
26 EdepCrystal = 0.; TrackLengthCrystal = 0.;
27 EdepCasing = 0.;
28 PositionCrystal= G4ThreeVector(0,0,0);
29 TimeCrystal=0.;
30 PartId=0;
31 NumTheta=0;
32 NumPhi=0;
33 trackIndex=0;
34 g4Index=0;
35 momentum = G4ThreeVector(0,0,0);
36}

◆ ~BesEmcHit() [1/2]

BesEmcHit::~BesEmcHit ( )

Definition at line 40 of file BesEmcHit.cc.

41{}

◆ BesEmcHit() [2/4]

BesEmcHit::BesEmcHit ( const BesEmcHit right)

Definition at line 45 of file BesEmcHit.cc.

46 : G4VHit()
47{
48 EdepCrystal = right.EdepCrystal;
49 TrackLengthCrystal = right.TrackLengthCrystal;
50 EdepCasing = right.EdepCasing;
51 PositionCrystal= right.PositionCrystal;
52 TimeCrystal = right.TimeCrystal;
53 PartId = right.PartId;
54 NumTheta = right.NumTheta;
55 NumPhi = right.NumPhi;
56 trackIndex = right.trackIndex;
57 g4Index = right.g4Index;
58 momentum = right.momentum;
59}

◆ BesEmcHit() [3/4]

BesEmcHit::BesEmcHit ( )

◆ ~BesEmcHit() [2/2]

BesEmcHit::~BesEmcHit ( )

◆ BesEmcHit() [4/4]

BesEmcHit::BesEmcHit ( const BesEmcHit )

Member Function Documentation

◆ AddCrystal() [1/2]

void BesEmcHit::AddCrystal ( G4double  de,
G4double  dl 
)
inline

Definition at line 42 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

42{TotalEdepCrystal += de; TotalTrackLengthCrystal += dl;};

◆ AddCrystal() [2/2]

void BesEmcHit::AddCrystal ( G4double  de,
G4double  dl 
)
inline

Definition at line 42 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

42{TotalEdepCrystal += de; TotalTrackLengthCrystal += dl;};

◆ Draw() [1/2]

void BesEmcHit::Draw ( )

Definition at line 88 of file BesEmcHit.cc.

89{}

◆ Draw() [2/2]

void BesEmcHit::Draw ( )

◆ GetEdepCasing() [1/2]

G4double BesEmcHit::GetEdepCasing ( )
inline

Definition at line 57 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

57{ return EdepCasing; };

◆ GetEdepCasing() [2/2]

G4double BesEmcHit::GetEdepCasing ( )
inline

Definition at line 57 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

57{ return EdepCasing; };

◆ GetEdepCrystal() [1/2]

◆ GetEdepCrystal() [2/2]

G4double BesEmcHit::GetEdepCrystal ( )
inline

Definition at line 56 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

56{ return EdepCrystal; };

◆ GetG4Index() [1/2]

G4int BesEmcHit::GetG4Index ( )
inline

Definition at line 65 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

65{return g4Index;}

◆ GetG4Index() [2/2]

G4int BesEmcHit::GetG4Index ( )
inline

Definition at line 65 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

65{return g4Index;}

◆ GetMomentum() [1/2]

G4ThreeVector BesEmcHit::GetMomentum ( )
inline

Definition at line 66 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

66{return momentum;}

Referenced by BesMcTruthWriter::SaveEmcTruth(), and BesAsciiIO::SaveEmcTruth().

◆ GetMomentum() [2/2]

G4ThreeVector BesEmcHit::GetMomentum ( )
inline

Definition at line 66 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

66{return momentum;}

◆ GetNumPhiCrystal() [1/2]

G4int BesEmcHit::GetNumPhiCrystal ( )
inline

◆ GetNumPhiCrystal() [2/2]

G4int BesEmcHit::GetNumPhiCrystal ( )
inline

Definition at line 63 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

63{return NumPhi;};

◆ GetNumThetaCrystal() [1/2]

G4int BesEmcHit::GetNumThetaCrystal ( )
inline

◆ GetNumThetaCrystal() [2/2]

G4int BesEmcHit::GetNumThetaCrystal ( )
inline

Definition at line 62 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

62{return NumTheta;};

◆ GetPartId() [1/2]

G4int BesEmcHit::GetPartId ( )
inline

◆ GetPartId() [2/2]

G4int BesEmcHit::GetPartId ( )
inline

Definition at line 61 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

61{return PartId;};

◆ GetPosCrystal() [1/2]

G4ThreeVector BesEmcHit::GetPosCrystal ( )
inline

Definition at line 59 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

59{ return PositionCrystal;};

Referenced by BesMcTruthWriter::SaveEmcTruth(), and BesAsciiIO::SaveEmcTruth().

◆ GetPosCrystal() [2/2]

G4ThreeVector BesEmcHit::GetPosCrystal ( )
inline

Definition at line 59 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

59{ return PositionCrystal;};

◆ GetTimeCrystal() [1/2]

G4double BesEmcHit::GetTimeCrystal ( )
inline

Definition at line 60 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

60{return TimeCrystal;};

Referenced by BesEmcWaveform::updateWaveform().

◆ GetTimeCrystal() [2/2]

G4double BesEmcHit::GetTimeCrystal ( )
inline

Definition at line 60 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

60{return TimeCrystal;};

◆ GetTotalEdepCrystal() [1/2]

G4double BesEmcHit::GetTotalEdepCrystal ( )
inline

Definition at line 54 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

54{ return TotalEdepCrystal; };

◆ GetTotalEdepCrystal() [2/2]

G4double BesEmcHit::GetTotalEdepCrystal ( )
inline

Definition at line 54 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

54{ return TotalEdepCrystal; };

◆ GetTotalTrakCrystal() [1/2]

G4double BesEmcHit::GetTotalTrakCrystal ( )
inline

Definition at line 55 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

55{ return TotalTrackLengthCrystal; };

◆ GetTotalTrakCrystal() [2/2]

G4double BesEmcHit::GetTotalTrakCrystal ( )
inline

Definition at line 55 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

55{ return TotalTrackLengthCrystal; };

◆ GetTrackIndex() [1/2]

G4int BesEmcHit::GetTrackIndex ( )
inline

◆ GetTrackIndex() [2/2]

G4int BesEmcHit::GetTrackIndex ( )
inline

Definition at line 64 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

64{return trackIndex;}

◆ GetTrakCrystal() [1/2]

G4double BesEmcHit::GetTrakCrystal ( )
inline

Definition at line 58 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

58{ return TrackLengthCrystal; };

◆ GetTrakCrystal() [2/2]

G4double BesEmcHit::GetTrakCrystal ( )
inline

Definition at line 58 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

58{ return TrackLengthCrystal; };

◆ operator delete() [1/2]

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

Definition at line 98 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

99{
100 BesEmcHitAllocator.FreeSingle((BesEmcHit*) aHit);
101}
G4Allocator< BesEmcHit > BesEmcHitAllocator
Definition: BesEmcHit.cc:16

◆ operator delete() [2/2]

void BesEmcHit::operator delete ( void *  )
inline

◆ operator new() [1/2]

void * BesEmcHit::operator new ( size_t  )
inline

Definition at line 89 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

90{
91 void* aHit;
92 aHit = (void*) BesEmcHitAllocator.MallocSingle();
93 return aHit;
94}

◆ operator new() [2/2]

void * BesEmcHit::operator new ( size_t  )
inline

◆ operator=() [1/2]

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

Definition at line 63 of file BesEmcHit.cc.

64{
65 EdepCrystal = right.EdepCrystal;
66 TrackLengthCrystal = right.TrackLengthCrystal;
67 EdepCasing = right.EdepCasing;
68 PositionCrystal= right.PositionCrystal;
69 TimeCrystal = right.TimeCrystal;
70 PartId = right.PartId;
71 NumTheta = right.NumTheta;
72 NumPhi = right.NumPhi;
73 trackIndex = right.trackIndex;
74 g4Index = right.g4Index;
75 momentum = right.momentum;
76 return *this;
77}

◆ operator=() [2/2]

const BesEmcHit & BesEmcHit::operator= ( const BesEmcHit )

◆ operator==() [1/2]

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

Definition at line 81 of file BesEmcHit.cc.

82{
83 return (this==&right) ? 1 : 0;
84}

◆ operator==() [2/2]

int BesEmcHit::operator== ( const BesEmcHit ) const

◆ Print() [1/4]

void BesEmcHit::Print ( )

Definition at line 107 of file BesEmcHit.cc.

108{
109 G4cout<<"time: "<<TimeCrystal<<" edep: "<<EdepCrystal<<G4endl;
110}

◆ Print() [2/4]

void BesEmcHit::Print ( )

◆ Print() [3/4]

void BesEmcHit::Print ( G4int  verboseLevel)

Definition at line 93 of file BesEmcHit.cc.

94{
95 if(verboseLevel>0)
96 G4cout << "Hit in crystal:" <<NumTheta<<","<<NumPhi<<G4endl
97 <<"Energy deposited:"<<G4BestUnit(EdepCrystal,"Energy") <<G4endl;
98 if(verboseLevel>1)
99 G4cout <<"Hit time :"<<G4BestUnit(TimeCrystal,"Time")<<G4endl
100 <<" position :"<<G4BestUnit(PositionCrystal,"Length")<<G4endl;
101 if(verboseLevel>2)
102 G4cout <<"Track length :"<<G4BestUnit(TrackLengthCrystal,"Length")<<G4endl;
103
104
105}

◆ Print() [4/4]

void BesEmcHit::Print ( G4int  )

◆ SetEdepCasing() [1/2]

void BesEmcHit::SetEdepCasing ( G4double  de)
inline

Definition at line 45 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

45{EdepCasing=de;};

◆ SetEdepCasing() [2/2]

void BesEmcHit::SetEdepCasing ( G4double  de)
inline

Definition at line 45 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

45{EdepCasing=de;};

◆ SetEdepCrystal() [1/2]

void BesEmcHit::SetEdepCrystal ( G4double  de)
inline

Definition at line 44 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

44{EdepCrystal=de;};

Referenced by BesEmcSD::ProcessHits().

◆ SetEdepCrystal() [2/2]

void BesEmcHit::SetEdepCrystal ( G4double  de)
inline

Definition at line 44 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

44{EdepCrystal=de;};

◆ SetG4Index() [1/2]

void BesEmcHit::SetG4Index ( G4int  index)
inline

Definition at line 51 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

51{ g4Index = index;}

Referenced by BesEmcSD::ProcessHits().

◆ SetG4Index() [2/2]

void BesEmcHit::SetG4Index ( G4int  index)
inline

Definition at line 51 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

51{ g4Index = index;}

◆ SetMomentum() [1/2]

void BesEmcHit::SetMomentum ( G4ThreeVector  momen)
inline

Definition at line 52 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

52{momentum = momen;}

Referenced by BesEmcSD::ProcessHits().

◆ SetMomentum() [2/2]

void BesEmcHit::SetMomentum ( G4ThreeVector  momen)
inline

Definition at line 52 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

52{momentum = momen;}

◆ SetNumCrystal() [1/2]

void BesEmcHit::SetNumCrystal ( G4int  id,
G4int  numTheta,
G4int  numPhi 
)
inline

Definition at line 49 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

49{PartId=id;NumTheta=numTheta;NumPhi=numPhi;};

Referenced by BesEmcSD::ProcessHits().

◆ SetNumCrystal() [2/2]

void BesEmcHit::SetNumCrystal ( G4int  id,
G4int  numTheta,
G4int  numPhi 
)
inline

Definition at line 49 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

49{PartId=id;NumTheta=numTheta;NumPhi=numPhi;};

◆ SetPosCrystal() [1/2]

void BesEmcHit::SetPosCrystal ( G4ThreeVector  position)
inline

Definition at line 47 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

47{PositionCrystal=position;};

Referenced by BesEmcSD::ProcessHits().

◆ SetPosCrystal() [2/2]

void BesEmcHit::SetPosCrystal ( G4ThreeVector  position)
inline

Definition at line 47 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

47{PositionCrystal=position;};

◆ SetTimeCrystal() [1/2]

void BesEmcHit::SetTimeCrystal ( G4double  t)
inline

Definition at line 48 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

48{TimeCrystal=t;};
int t()
Definition: t.c:1

Referenced by BesEmcSD::ProcessHits().

◆ SetTimeCrystal() [2/2]

void BesEmcHit::SetTimeCrystal ( G4double  t)
inline

Definition at line 48 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

48{TimeCrystal=t;};

◆ SetTrackIndex() [1/2]

void BesEmcHit::SetTrackIndex ( G4int  index)
inline

Definition at line 50 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

50{ trackIndex = index;}

Referenced by BesEmcSD::ProcessHits().

◆ SetTrackIndex() [2/2]

void BesEmcHit::SetTrackIndex ( G4int  index)
inline

Definition at line 50 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

50{ trackIndex = index;}

◆ SetTrakCrystal() [1/2]

void BesEmcHit::SetTrakCrystal ( G4double  dl)
inline

Definition at line 46 of file InstallArea/include/EmcSim/EmcSim/BesEmcHit.hh.

46{TrackLengthCrystal=dl;};

Referenced by BesEmcSD::ProcessHits().

◆ SetTrakCrystal() [2/2]

void BesEmcHit::SetTrakCrystal ( G4double  dl)
inline

Definition at line 46 of file Simulation/BOOST/EmcSim/EmcSim-00-00-43/EmcSim/BesEmcHit.hh.

46{TrackLengthCrystal=dl;};

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