#include <BesTofHit.hh>
Public Member Functions | |
BesTofHit () | |
virtual | ~BesTofHit () |
BesTofHit (const BesTofHit &) | |
const BesTofHit & | operator= (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) |
Private Attributes | |
G4double | m_event |
G4int | m_trackIndex |
G4int | m_g4Index |
G4int | m_partId |
G4int | m_scinNb |
G4int | m_gapNb |
G4double | m_edep |
G4double | m_stepL |
G4double | m_trackL |
G4ThreeVector | m_pos |
G4double | m_time |
G4double | m_deltaT |
G4ThreeVector | m_pDirection |
G4ThreeVector | m_momentum |
G4double | m_charge |
G4int | m_number_of_ions |
G4int | m_pdgcode |
G4int | m_strip |
G4ThreeVector | m_locPos |
Definition at line 22 of file BesTofHit.hh.
BesTofHit::BesTofHit | ( | ) |
BesTofHit::~BesTofHit | ( | ) | [virtual] |
BesTofHit::BesTofHit | ( | const BesTofHit & | ) |
Definition at line 26 of file BesTofHit.cc.
References m_charge, m_deltaT, m_edep, m_g4Index, m_gapNb, m_locPos, m_momentum, m_number_of_ions, m_partId, m_pDirection, m_pos, m_scinNb, m_stepL, m_strip, m_time, m_trackIndex, and m_trackL.
00027 :G4VHit() 00028 { 00029 m_trackIndex=right.m_trackIndex; 00030 m_g4Index=right.m_g4Index; 00031 m_partId=right.m_partId; 00032 m_scinNb=right.m_scinNb; 00033 m_gapNb=right.m_gapNb; 00034 m_edep=right.m_edep; 00035 m_stepL=right.m_stepL; 00036 m_trackL=right.m_trackL; 00037 m_pos=right.m_pos; 00038 m_time=right.m_time; 00039 m_deltaT=right.m_deltaT; 00040 m_pDirection=right.m_pDirection; 00041 m_momentum=right.m_momentum; 00042 //m_scinMaterial = right.m_scinMaterial; 00043 m_charge = right.m_charge; 00044 m_number_of_ions=right.m_number_of_ions; 00045 m_strip = right.m_strip; 00046 m_locPos = right.m_locPos; 00047 }
void BesTofHit::AddEdep | ( | G4double | de | ) | [inline] |
void BesTofHit::AddHit | ( | const BesTofHit & | ) |
void BesTofHit::Draw | ( | ) | [virtual] |
Definition at line 91 of file BesTofHit.cc.
References m_pos.
00092 { 00093 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance(); 00094 if (pVVisManager) 00095 { 00096 G4Circle circle(m_pos); 00097 circle.SetScreenSize(1.); 00098 circle.SetFillStyle(G4Circle::filled); 00099 G4Colour colour(0.,0.,1.); 00100 G4VisAttributes attribs(colour); 00101 circle.SetVisAttributes(attribs); 00102 pVVisManager->Draw(circle); 00103 } 00104 }
G4double BesTofHit::GetCharge | ( | ) | [inline] |
Definition at line 80 of file BesTofHit.hh.
References m_charge.
Referenced by BesTofDigitizerEcV3::BirksLaw(), BesTofDigitizerBrV2::BirksLaw(), and BesRootIO::SaveTofHitRoot().
00080 {return m_charge; }
G4double BesTofHit::GetDeltaT | ( | ) | [inline] |
Definition at line 75 of file BesTofHit.hh.
References m_deltaT.
Referenced by BesRootIO::SaveTofHitRoot(), BesTofDigitizerEcV3::TofPmtAccum(), BesTofDigitizerEcV2::TofPmtAccum(), and BesTofDigitizerBrV2::TofPmtAccum().
00075 {return m_deltaT;}
G4double BesTofHit::GetEdep | ( | ) | [inline] |
Definition at line 70 of file BesTofHit.hh.
References m_edep.
Referenced by BesTofDigitizerEcV3::BirksLaw(), BesTofDigitizerBrV2::BirksLaw(), BesTofDigitizer::GroupHits(), BesRootIO::SaveTofHitRoot(), BesTofDigitizerEcV3::TofPmtAccum(), BesTofDigitizerEcV2::TofPmtAccum(), BesTofDigitizerEcV1::TofPmtAccum(), BesTofDigitizerBrV2::TofPmtAccum(), and BesTofDigitizerBrV1::TofPmtAccum().
00070 { return m_edep; }
G4double BesTofHit::GetEvent | ( | ) | [inline] |
Definition at line 42 of file BesTofHit.hh.
References m_event.
Referenced by BesTofDigitizerEcV4::Digitize().
00042 {return m_event; }
G4int BesTofHit::GetG4Index | ( | ) | [inline] |
Definition at line 67 of file BesTofHit.hh.
References m_g4Index.
Referenced by BesTofDigitizerEcV4::Digitize(), and BesRootIO::SaveTofHitRoot().
00067 {return m_g4Index;}
G4int BesTofHit::GetGapNb | ( | ) | [inline] |
Definition at line 87 of file BesTofHit.hh.
References m_gapNb.
Referenced by BesTofDigitizerEcV4::Digitize().
00087 { return m_gapNb; }
G4int BesTofHit::GetIons | ( | ) | [inline] |
Definition at line 85 of file BesTofHit.hh.
References m_number_of_ions.
Referenced by BesTofDigitizerEcV4::Digitize().
00085 { return m_number_of_ions; }
G4ThreeVector BesTofHit::GetLocPos | ( | ) | [inline] |
Definition at line 86 of file BesTofHit.hh.
References m_locPos.
Referenced by BesTofDigitizerEcV4::Digitize().
00086 { return m_locPos; }
G4int BesTofHit::GetModule | ( | ) | [inline] |
Definition at line 83 of file BesTofHit.hh.
References m_scinNb.
Referenced by BesMcTruthWriter::SaveTofTruth().
00083 {return m_scinNb; }
G4ThreeVector BesTofHit::GetMomentum | ( | ) | [inline] |
Definition at line 77 of file BesTofHit.hh.
References m_momentum.
Referenced by BesTofDigitizerEcV4::Digitize(), BesRootIO::SaveTofHitRoot(), BesMcTruthWriter::SaveTofTruth(), and BesAsciiIO::SaveTofTruth().
00077 {return m_momentum;}
G4int BesTofHit::GetPartId | ( | ) | [inline] |
Definition at line 68 of file BesTofHit.hh.
References m_partId.
Referenced by BesTofDigitizer::GroupHits(), BesRootIO::SaveTofHitRoot(), BesMcTruthWriter::SaveTofTruth(), BesAsciiIO::SaveTofTruth(), BesTofDigitizerEcV3::TofPmtAccum(), BesTofDigitizerEcV2::TofPmtAccum(), BesTofDigitizerBrV2::TofPmtAccum(), and BesTofDigitizerBrV1::TofPmtAccum().
00068 { return m_partId; }
G4int BesTofHit::GetPDGcode | ( | ) | [inline] |
Definition at line 81 of file BesTofHit.hh.
References m_pdgcode.
Referenced by BesTofDigitizerEcV4::Digitize().
00081 {return m_pdgcode;}
G4ThreeVector BesTofHit::GetPDirection | ( | ) | [inline] |
Definition at line 76 of file BesTofHit.hh.
References m_pDirection.
Referenced by BesRootIO::SaveTofHitRoot(), BesTofDigitizerEcV3::TofPmtAccum(), BesTofDigitizerEcV2::TofPmtAccum(), and BesTofDigitizerBrV2::TofPmtAccum().
00076 {return m_pDirection;}
G4ThreeVector BesTofHit::GetPos | ( | ) | [inline] |
Definition at line 73 of file BesTofHit.hh.
References m_pos.
Referenced by BesTofDigitizerEcV4::Digitize(), BesRootIO::SaveTofHitRoot(), BesMcTruthWriter::SaveTofTruth(), BesAsciiIO::SaveTofTruth(), BesTofDigitizerEcV3::TofPmtAccum(), BesTofDigitizerEcV2::TofPmtAccum(), BesTofDigitizerEcV1::TofPmtAccum(), BesTofDigitizerBrV2::TofPmtAccum(), and BesTofDigitizerBrV1::TofPmtAccum().
00073 { return m_pos; }
G4int BesTofHit::GetScinNb | ( | ) | [inline] |
Definition at line 69 of file BesTofHit.hh.
References m_scinNb.
Referenced by BesTofDigitizer::GroupHits(), BesRootIO::SaveTofHitRoot(), BesMcTruthWriter::SaveTofTruth(), BesAsciiIO::SaveTofTruth(), BesTofDigitizerEcV1::TofPmtAccum(), and BesTofDigitizerBrV1::TofPmtAccum().
00069 { return m_scinNb; }
G4double BesTofHit::GetStepL | ( | ) | [inline] |
Definition at line 71 of file BesTofHit.hh.
References m_stepL.
Referenced by BesTofDigitizerEcV3::BirksLaw(), BesTofDigitizerBrV2::BirksLaw(), BesRootIO::SaveTofHitRoot(), BesTofDigitizerEcV3::TofPmtAccum(), BesTofDigitizerEcV2::TofPmtAccum(), and BesTofDigitizerBrV2::TofPmtAccum().
00071 { return m_stepL; }
G4int BesTofHit::GetStrip | ( | ) | [inline] |
Definition at line 84 of file BesTofHit.hh.
References m_strip.
Referenced by BesMcTruthWriter::SaveTofTruth().
00084 { return m_strip; }
G4double BesTofHit::GetTime | ( | ) | [inline] |
Definition at line 74 of file BesTofHit.hh.
References m_time.
Referenced by BesTofDigitizerEcV4::Digitize(), BesRootIO::SaveTofHitRoot(), BesMcTruthWriter::SaveTofTruth(), BesAsciiIO::SaveTofTruth(), BesTofDigitizerEcV3::TofPmtAccum(), BesTofDigitizerEcV2::TofPmtAccum(), BesTofDigitizerEcV1::TofPmtAccum(), BesTofDigitizerBrV2::TofPmtAccum(), and BesTofDigitizerBrV1::TofPmtAccum().
00074 { return m_time;}
G4int BesTofHit::GetTrackIndex | ( | ) | [inline] |
Definition at line 66 of file BesTofHit.hh.
References m_trackIndex.
Referenced by BesTofDigitizer::GroupHits(), BesRootIO::SaveTofHitRoot(), BesMcTruthWriter::SaveTofTruth(), BesAsciiIO::SaveTofTruth(), BesTofDigitizerEcV3::TofPmtAccum(), BesTofDigitizerEcV2::TofPmtAccum(), BesTofDigitizerEcV1::TofPmtAccum(), BesTofDigitizerBrV2::TofPmtAccum(), and BesTofDigitizerBrV1::TofPmtAccum().
00066 { return m_trackIndex; }
G4double BesTofHit::GetTrackL | ( | ) | [inline] |
Definition at line 72 of file BesTofHit.hh.
References m_trackL.
Referenced by BesRootIO::SaveTofHitRoot(), BesMcTruthWriter::SaveTofTruth(), and BesAsciiIO::SaveTofTruth().
00072 {return m_trackL; }
void BesTofHit::operator delete | ( | void * | ) | [inline] |
Definition at line 128 of file BesTofHit.hh.
References BesTofHitAllocator.
00128 { 00129 BesTofHitAllocator.FreeSingle((BesTofHit*) aHit); 00130 }
void * BesTofHit::operator new | ( | size_t | ) | [inline] |
Definition at line 121 of file BesTofHit.hh.
References BesTofHitAllocator.
00121 { 00122 void *aHit; 00123 aHit = (void *) BesTofHitAllocator.MallocSingle(); 00124 return aHit; 00125 }
Definition at line 50 of file BesTofHit.cc.
References m_charge, m_deltaT, m_edep, m_g4Index, m_gapNb, m_locPos, m_momentum, m_number_of_ions, m_partId, m_pDirection, m_pos, m_scinNb, m_stepL, m_strip, m_time, m_trackIndex, and m_trackL.
00051 { 00052 m_trackIndex=right.m_trackIndex; 00053 m_g4Index=right.m_g4Index; 00054 m_partId=right.m_partId; 00055 m_scinNb=right.m_scinNb; 00056 m_gapNb=right.m_gapNb; 00057 m_edep=right.m_edep; 00058 m_stepL=right.m_stepL; 00059 m_trackL=right.m_trackL; 00060 m_pos=right.m_pos; 00061 m_time=right.m_time; 00062 m_deltaT=right.m_deltaT; 00063 m_pDirection=right.m_pDirection; 00064 m_momentum=right.m_momentum; 00065 //m_scinMaterial = right.m_scinMaterial; 00066 m_charge = right.m_charge; 00067 m_number_of_ions = right.m_number_of_ions; 00068 m_strip = right.m_strip; 00069 m_locPos = right.m_locPos; 00070 00071 return *this; 00072 }
int BesTofHit::operator== | ( | const BesTofHit & | ) | const [virtual] |
void BesTofHit::Print | ( | ) | [virtual] |
Definition at line 107 of file BesTofHit.cc.
References m_edep, m_g4Index, m_partId, m_pos, m_scinNb, m_stepL, and m_trackIndex.
00108 { 00109 G4cout<<m_trackIndex<<" "<<m_g4Index<<" "<<m_partId<<" "<<m_scinNb<<" "; 00110 G4double posx = m_pos.x(); 00111 G4double posy = m_pos.y(); 00112 G4double posr = sqrt(posx*posx + posy*posy); 00113 G4cout<<posr<<" "<<m_edep<<" "<<m_stepL<<G4endl<<G4endl; 00114 }
void BesTofHit::SetCharge | ( | G4double | charge | ) | [inline] |
Definition at line 57 of file BesTofHit.hh.
References m_charge.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00057 {m_charge = charge;}
void BesTofHit::SetDeltaT | ( | G4double | deltaT | ) | [inline] |
Definition at line 52 of file BesTofHit.hh.
References m_deltaT.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00052 { m_deltaT = deltaT;}
void BesTofHit::SetEdep | ( | G4double | edep | ) | [inline] |
Definition at line 47 of file BesTofHit.hh.
References m_edep.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00047 { m_edep = edep; }
void BesTofHit::SetEvent | ( | G4double | event | ) | [inline] |
Definition at line 41 of file BesTofHit.hh.
References m_event.
Referenced by BesTofSD::ProcessHits().
00041 {m_event = event; };
void BesTofHit::SetG4Index | ( | G4int | index | ) | [inline] |
Definition at line 44 of file BesTofHit.hh.
References m_g4Index.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00044 {m_g4Index = index;}
void BesTofHit::SetGapNb | ( | G4int | gapNb | ) | [inline] |
Definition at line 64 of file BesTofHit.hh.
References m_gapNb.
Referenced by BesTofSD::ProcessHits().
00064 { m_gapNb = gapNb; }
void BesTofHit::SetIons | ( | G4int | ions | ) | [inline] |
Definition at line 62 of file BesTofHit.hh.
References m_number_of_ions.
Referenced by BesTofSD::ProcessHits().
00062 { m_number_of_ions=ions; }
void BesTofHit::SetLocPos | ( | G4ThreeVector | locPos | ) | [inline] |
Definition at line 63 of file BesTofHit.hh.
References m_locPos.
Referenced by BesTofSD::ProcessHits().
00063 { m_locPos = locPos; }
void BesTofHit::SetModule | ( | G4int | module | ) | [inline] |
Definition at line 60 of file BesTofHit.hh.
References m_scinNb.
Referenced by BesTofSD::ProcessHits().
00060 { m_scinNb = module; }
void BesTofHit::SetMomentum | ( | G4ThreeVector | momentum | ) | [inline] |
Definition at line 54 of file BesTofHit.hh.
References m_momentum.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00054 { m_momentum = momentum; }
void BesTofHit::SetPartId | ( | G4int | partId | ) | [inline] |
Definition at line 45 of file BesTofHit.hh.
References m_partId.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00045 {m_partId = partId;}
void BesTofHit::SetPDGcode | ( | G4int | pdgcode | ) | [inline] |
Definition at line 58 of file BesTofHit.hh.
References m_pdgcode.
Referenced by BesTofSD::ProcessHits().
00058 {m_pdgcode=pdgcode;}
void BesTofHit::SetPDirection | ( | G4ThreeVector | pDirection | ) | [inline] |
Definition at line 53 of file BesTofHit.hh.
References m_pDirection.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00053 { m_pDirection = pDirection; }
void BesTofHit::SetPos | ( | G4ThreeVector | pos | ) | [inline] |
Definition at line 50 of file BesTofHit.hh.
References m_pos.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
void BesTofHit::SetScinNb | ( | G4int | scinNb | ) | [inline] |
Definition at line 46 of file BesTofHit.hh.
References m_scinNb.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00046 { m_scinNb = scinNb; }
void BesTofHit::SetStepL | ( | G4double | stepL | ) | [inline] |
Definition at line 48 of file BesTofHit.hh.
References m_stepL.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00048 { m_stepL = stepL;}
void BesTofHit::SetStrip | ( | G4int | strip | ) | [inline] |
Definition at line 61 of file BesTofHit.hh.
References m_strip.
Referenced by BesTofSD::ProcessHits().
00061 { m_strip = strip; }
void BesTofHit::SetTime | ( | G4double | time | ) | [inline] |
Definition at line 51 of file BesTofHit.hh.
References m_time.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00051 { m_time=time;}
void BesTofHit::SetTrackIndex | ( | G4int | trackIndex | ) | [inline] |
Definition at line 43 of file BesTofHit.hh.
References m_trackIndex.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00043 { m_trackIndex = trackIndex; };
void BesTofHit::SetTrackL | ( | G4double | length | ) | [inline] |
Definition at line 49 of file BesTofHit.hh.
References m_trackL.
Referenced by BesTuningIO::GetTofRootHits(), and BesTofSD::ProcessHits().
00049 { m_trackL = length; }
G4double BesTofHit::m_charge [private] |
Definition at line 108 of file BesTofHit.hh.
Referenced by BesTofHit(), GetCharge(), operator=(), and SetCharge().
G4double BesTofHit::m_deltaT [private] |
Definition at line 103 of file BesTofHit.hh.
Referenced by BesTofHit(), GetDeltaT(), operator=(), and SetDeltaT().
G4double BesTofHit::m_edep [private] |
Definition at line 98 of file BesTofHit.hh.
Referenced by AddEdep(), AddHit(), BesTofHit(), GetEdep(), operator=(), Print(), and SetEdep().
G4double BesTofHit::m_event [private] |
G4int BesTofHit::m_g4Index [private] |
Definition at line 94 of file BesTofHit.hh.
Referenced by BesTofHit(), GetG4Index(), operator=(), Print(), and SetG4Index().
G4int BesTofHit::m_gapNb [private] |
Definition at line 97 of file BesTofHit.hh.
Referenced by BesTofHit(), GetGapNb(), operator=(), and SetGapNb().
G4ThreeVector BesTofHit::m_locPos [private] |
Definition at line 112 of file BesTofHit.hh.
Referenced by BesTofHit(), GetLocPos(), operator=(), and SetLocPos().
G4ThreeVector BesTofHit::m_momentum [private] |
Definition at line 105 of file BesTofHit.hh.
Referenced by BesTofHit(), GetMomentum(), operator=(), and SetMomentum().
G4int BesTofHit::m_number_of_ions [private] |
Definition at line 109 of file BesTofHit.hh.
Referenced by BesTofHit(), GetIons(), operator=(), and SetIons().
G4int BesTofHit::m_partId [private] |
Definition at line 95 of file BesTofHit.hh.
Referenced by BesTofHit(), GetPartId(), operator=(), Print(), and SetPartId().
G4int BesTofHit::m_pdgcode [private] |
G4ThreeVector BesTofHit::m_pDirection [private] |
Definition at line 104 of file BesTofHit.hh.
Referenced by BesTofHit(), GetPDirection(), operator=(), and SetPDirection().
G4ThreeVector BesTofHit::m_pos [private] |
Definition at line 101 of file BesTofHit.hh.
Referenced by AddHit(), BesTofHit(), Draw(), GetPos(), operator=(), Print(), and SetPos().
G4int BesTofHit::m_scinNb [private] |
Definition at line 96 of file BesTofHit.hh.
Referenced by BesTofHit(), GetModule(), GetScinNb(), operator=(), Print(), SetModule(), and SetScinNb().
G4double BesTofHit::m_stepL [private] |
Definition at line 99 of file BesTofHit.hh.
Referenced by BesTofHit(), GetStepL(), operator=(), Print(), and SetStepL().
G4int BesTofHit::m_strip [private] |
Definition at line 111 of file BesTofHit.hh.
Referenced by BesTofHit(), GetStrip(), operator=(), and SetStrip().
G4double BesTofHit::m_time [private] |
Definition at line 102 of file BesTofHit.hh.
Referenced by AddHit(), BesTofHit(), GetTime(), operator=(), and SetTime().
G4int BesTofHit::m_trackIndex [private] |
Definition at line 93 of file BesTofHit.hh.
Referenced by BesTofHit(), GetTrackIndex(), operator=(), Print(), and SetTrackIndex().
G4double BesTofHit::m_trackL [private] |
Definition at line 100 of file BesTofHit.hh.
Referenced by BesTofHit(), GetTrackL(), operator=(), and SetTrackL().