BOSS 7.0.6
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 ()
 

Detailed Description

Definition at line 23 of file BesEmcHit.hh.

Constructor & Destructor Documentation

◆ BesEmcHit() [1/2]

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

BesEmcHit::~BesEmcHit ( )

Definition at line 40 of file BesEmcHit.cc.

41{}

◆ BesEmcHit() [2/2]

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}

Member Function Documentation

◆ AddCrystal()

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

Definition at line 42 of file BesEmcHit.hh.

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

◆ Draw()

void BesEmcHit::Draw ( )

Definition at line 88 of file BesEmcHit.cc.

89{}

◆ GetEdepCasing()

G4double BesEmcHit::GetEdepCasing ( )
inline

Definition at line 57 of file BesEmcHit.hh.

57{ return EdepCasing; };

◆ GetEdepCrystal()

G4double BesEmcHit::GetEdepCrystal ( )
inline

◆ GetG4Index()

G4int BesEmcHit::GetG4Index ( )
inline

Definition at line 65 of file BesEmcHit.hh.

65{return g4Index;}

◆ GetMomentum()

G4ThreeVector BesEmcHit::GetMomentum ( )
inline

Definition at line 66 of file BesEmcHit.hh.

66{return momentum;}

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

◆ GetNumPhiCrystal()

G4int BesEmcHit::GetNumPhiCrystal ( )
inline

Definition at line 63 of file BesEmcHit.hh.

63{return NumPhi;};

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

◆ GetNumThetaCrystal()

G4int BesEmcHit::GetNumThetaCrystal ( )
inline

Definition at line 62 of file BesEmcHit.hh.

62{return NumTheta;};

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

◆ GetPartId()

G4int BesEmcHit::GetPartId ( )
inline

Definition at line 61 of file BesEmcHit.hh.

61{return PartId;};

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

◆ GetPosCrystal()

G4ThreeVector BesEmcHit::GetPosCrystal ( )
inline

Definition at line 59 of file BesEmcHit.hh.

59{ return PositionCrystal;};

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

◆ GetTimeCrystal()

G4double BesEmcHit::GetTimeCrystal ( )
inline

Definition at line 60 of file BesEmcHit.hh.

60{return TimeCrystal;};

Referenced by BesEmcWaveform::updateWaveform().

◆ GetTotalEdepCrystal()

G4double BesEmcHit::GetTotalEdepCrystal ( )
inline

Definition at line 54 of file BesEmcHit.hh.

54{ return TotalEdepCrystal; };

◆ GetTotalTrakCrystal()

G4double BesEmcHit::GetTotalTrakCrystal ( )
inline

Definition at line 55 of file BesEmcHit.hh.

55{ return TotalTrackLengthCrystal; };

◆ GetTrackIndex()

G4int BesEmcHit::GetTrackIndex ( )
inline

◆ GetTrakCrystal()

G4double BesEmcHit::GetTrakCrystal ( )
inline

Definition at line 58 of file BesEmcHit.hh.

58{ return TrackLengthCrystal; };

◆ operator delete()

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

Definition at line 98 of file BesEmcHit.hh.

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

◆ operator new()

void * BesEmcHit::operator new ( size_t  )
inline

Definition at line 89 of file BesEmcHit.hh.

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

◆ operator=()

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==()

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

Definition at line 81 of file BesEmcHit.cc.

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

◆ Print() [1/2]

void BesEmcHit::Print ( )

Definition at line 107 of file BesEmcHit.cc.

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

◆ Print() [2/2]

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}

◆ SetEdepCasing()

void BesEmcHit::SetEdepCasing ( G4double  de)
inline

Definition at line 45 of file BesEmcHit.hh.

45{EdepCasing=de;};

◆ SetEdepCrystal()

void BesEmcHit::SetEdepCrystal ( G4double  de)
inline

Definition at line 44 of file BesEmcHit.hh.

44{EdepCrystal=de;};

Referenced by BesEmcSD::ProcessHits().

◆ SetG4Index()

void BesEmcHit::SetG4Index ( G4int  index)
inline

Definition at line 51 of file BesEmcHit.hh.

51{ g4Index = index;}

Referenced by BesEmcSD::ProcessHits().

◆ SetMomentum()

void BesEmcHit::SetMomentum ( G4ThreeVector  momen)
inline

Definition at line 52 of file BesEmcHit.hh.

52{momentum = momen;}

Referenced by BesEmcSD::ProcessHits().

◆ SetNumCrystal()

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

Definition at line 49 of file BesEmcHit.hh.

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

Referenced by BesEmcSD::ProcessHits().

◆ SetPosCrystal()

void BesEmcHit::SetPosCrystal ( G4ThreeVector  position)
inline

Definition at line 47 of file BesEmcHit.hh.

47{PositionCrystal=position;};

Referenced by BesEmcSD::ProcessHits().

◆ SetTimeCrystal()

void BesEmcHit::SetTimeCrystal ( G4double  t)
inline

Definition at line 48 of file BesEmcHit.hh.

48{TimeCrystal=t;};
TTree * t
Definition: binning.cxx:23

Referenced by BesEmcSD::ProcessHits().

◆ SetTrackIndex()

void BesEmcHit::SetTrackIndex ( G4int  index)
inline

Definition at line 50 of file BesEmcHit.hh.

50{ trackIndex = index;}

Referenced by BesEmcSD::ProcessHits().

◆ SetTrakCrystal()

void BesEmcHit::SetTrakCrystal ( G4double  dl)
inline

Definition at line 46 of file BesEmcHit.hh.

46{TrackLengthCrystal=dl;};

Referenced by BesEmcSD::ProcessHits().


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