#include <SimG4CMS/Forward/interface/TotemG4Hit.h>
Usage: One Hit object should be created -for each new particle entering the calorimeter -for each detector unit (= cristal or fiber or scintillator layer) -for each nanosecond of the shower development
This implies that all hit objects created for a given shower have the same value for
Definition at line 40 of file TotemG4Hit.h.
TotemG4Hit::TotemG4Hit | ( | ) |
Definition at line 23 of file TotemG4Hit.cc.
References elem, hadr, setEntry(), theEnergyLoss, theEntryPoint, theExitPoint, theIncidentEnergy, thePabs, theParentId, theParticleType, thePhiAtEntry, theThetaAtEntry, theTimeSlice, theTof, theTrackID, theUnitID, theVx, theVy, theVz, theX, theY, and theZ.
00023 { 00024 00025 setEntry(0.,0.,0.); 00026 theEntryPoint.SetCoordinates(0.,0.,0.); 00027 theExitPoint.SetCoordinates(0.,0.,0.); 00028 00029 elem = 0.; 00030 hadr = 0.; 00031 theIncidentEnergy = 0.; 00032 theTrackID = -1; 00033 theUnitID = 0; 00034 theTimeSlice = 0.; 00035 00036 theX = 0.; 00037 theY = 0.; 00038 theZ = 0.; 00039 thePabs = 0.; 00040 theTof = 0.; 00041 theEnergyLoss = 0.; 00042 theParticleType = 0; 00043 theThetaAtEntry = 0.; 00044 thePhiAtEntry = 0.; 00045 theParentId = 0; 00046 theVx = 0.; 00047 theVy = 0.; 00048 theVz = 0.; 00049 }
TotemG4Hit::~TotemG4Hit | ( | ) |
TotemG4Hit::TotemG4Hit | ( | const TotemG4Hit & | right | ) |
Definition at line 53 of file TotemG4Hit.cc.
References elem, entry, hadr, theEnergyLoss, theEntryPoint, theExitPoint, theIncidentEnergy, thePabs, theParentId, theParticleType, thePhiAtEntry, theThetaAtEntry, theTimeSlice, theTof, theTrackID, theUnitID, theVx, theVy, theVz, theX, theY, and theZ.
00053 { 00054 00055 entry = right.entry; 00056 elem = right.elem; 00057 hadr = right.hadr; 00058 theIncidentEnergy = right.theIncidentEnergy; 00059 theTrackID = right.theTrackID; 00060 theUnitID = right.theUnitID; 00061 theTimeSlice = right.theTimeSlice; 00062 00063 theX = right.theX; 00064 theY = right.theY; 00065 theZ = right.theZ; 00066 thePabs = right.thePabs; 00067 theTof = right.theTof; 00068 theEnergyLoss = right.theEnergyLoss; 00069 theParticleType = right.theParticleType; 00070 00071 theThetaAtEntry = right.theThetaAtEntry; 00072 thePhiAtEntry = right.thePhiAtEntry; 00073 theEntryPoint = right.theEntryPoint; 00074 theExitPoint = right.theExitPoint; 00075 theParentId = right.theParentId; 00076 theVx = right.theVx; 00077 theVy = right.theVy; 00078 theVz = right.theVz; 00079 }
void TotemG4Hit::addEnergyDeposit | ( | const TotemG4Hit & | aHit | ) |
void TotemG4Hit::addEnergyDeposit | ( | double | em, | |
double | hd | |||
) |
void TotemG4Hit::Draw | ( | ) | [inline] |
double TotemG4Hit::getEM | ( | ) | const |
Definition at line 126 of file TotemG4Hit.cc.
References elem.
Referenced by addEnergyDeposit().
00126 {return elem; }
double TotemG4Hit::getEnergyDeposit | ( | ) | const |
float TotemG4Hit::getEnergyLoss | ( | ) | const |
Definition at line 151 of file TotemG4Hit.cc.
References theEnergyLoss.
Referenced by TotemSD::EndOfEvent(), TotemTestGem::fillEvent(), and operator<<().
00151 {return theEnergyLoss;}
math::XYZPoint TotemG4Hit::getEntry | ( | ) | const |
Definition at line 124 of file TotemG4Hit.cc.
References entry.
Referenced by TotemSD::EndOfEvent(), TotemTestGem::fillEvent(), and operator<<().
00124 {return entry;}
double TotemG4Hit::getHadr | ( | ) | const |
Definition at line 129 of file TotemG4Hit.cc.
References hadr.
Referenced by addEnergyDeposit().
00129 {return hadr; }
double TotemG4Hit::getIncidentEnergy | ( | ) | const |
Definition at line 132 of file TotemG4Hit.cc.
References theIncidentEnergy.
Referenced by operator<<().
00132 {return theIncidentEnergy; }
float TotemG4Hit::getPabs | ( | ) | const |
Definition at line 149 of file TotemG4Hit.cc.
References thePabs.
Referenced by TotemSD::EndOfEvent(), and TotemTestGem::fillEvent().
00149 {return thePabs;}
int TotemG4Hit::getParentId | ( | ) | const |
Definition at line 174 of file TotemG4Hit.cc.
References theParentId.
Referenced by TotemTestGem::fillEvent().
00174 {return theParentId;}
int TotemG4Hit::getParticleType | ( | ) | const |
Definition at line 152 of file TotemG4Hit.cc.
References theParticleType.
Referenced by TotemSD::EndOfEvent(), and TotemTestGem::fillEvent().
00152 {return theParticleType;}
float TotemG4Hit::getPhiAtEntry | ( | ) | const |
Definition at line 160 of file TotemG4Hit.cc.
References thePhiAtEntry.
Referenced by TotemSD::EndOfEvent().
00160 {return thePhiAtEntry;}
float TotemG4Hit::getThetaAtEntry | ( | ) | const |
Definition at line 159 of file TotemG4Hit.cc.
References theThetaAtEntry.
Referenced by TotemSD::EndOfEvent().
00159 {return theThetaAtEntry;}
double TotemG4Hit::getTimeSlice | ( | ) | const |
Definition at line 141 of file TotemG4Hit.cc.
References theTimeSlice.
00141 {return theTimeSlice; }
int TotemG4Hit::getTimeSliceID | ( | ) | const |
Definition at line 143 of file TotemG4Hit.cc.
References theTimeSlice.
Referenced by TotemSD::HitExists(), and operator<<().
00143 {return (int)theTimeSlice;}
float TotemG4Hit::getTof | ( | ) | const |
Definition at line 150 of file TotemG4Hit.cc.
References theTof.
Referenced by TotemSD::EndOfEvent().
00150 {return theTof;}
int TotemG4Hit::getTrackID | ( | ) | const |
Definition at line 135 of file TotemG4Hit.cc.
References theTrackID.
Referenced by TotemSD::EndOfEvent(), TotemTestGem::fillEvent(), TotemSD::HitExists(), and operator<<().
00135 {return theTrackID; }
uint32_t TotemG4Hit::getUnitID | ( | ) | const |
Definition at line 138 of file TotemG4Hit.cc.
References theUnitID.
Referenced by TotemSD::EndOfEvent(), TotemTestGem::fillEvent(), TotemSD::HitExists(), and operator<<().
00138 {return theUnitID; }
float TotemG4Hit::getVx | ( | ) | const |
Definition at line 177 of file TotemG4Hit.cc.
References theVx.
Referenced by TotemTestGem::fillEvent().
00177 {return theVx;}
float TotemG4Hit::getVy | ( | ) | const |
Definition at line 180 of file TotemG4Hit.cc.
References theVy.
Referenced by TotemTestGem::fillEvent().
00180 {return theVy;}
float TotemG4Hit::getVz | ( | ) | const |
Definition at line 183 of file TotemG4Hit.cc.
References theVz.
Referenced by TotemTestGem::fillEvent().
00183 {return theVz;}
float TotemG4Hit::getX | ( | ) | const |
float TotemG4Hit::getY | ( | ) | const |
float TotemG4Hit::getZ | ( | ) | const |
const TotemG4Hit & TotemG4Hit::operator= | ( | const TotemG4Hit & | right | ) |
Definition at line 82 of file TotemG4Hit.cc.
References elem, entry, hadr, theEnergyLoss, theEntryPoint, theExitPoint, theIncidentEnergy, thePabs, theParentId, theParticleType, thePhiAtEntry, theThetaAtEntry, theTimeSlice, theTof, theTrackID, theUnitID, theVx, theVy, theVz, theX, theY, and theZ.
00082 { 00083 00084 entry = right.entry; 00085 elem = right.elem; 00086 hadr = right.hadr; 00087 theIncidentEnergy = right.theIncidentEnergy; 00088 theTrackID = right.theTrackID; 00089 theUnitID = right.theUnitID; 00090 theTimeSlice = right.theTimeSlice; 00091 00092 theX = right.theX; 00093 theY = right.theY; 00094 theZ = right.theZ; 00095 thePabs = right.thePabs; 00096 theTof = right.theTof ; 00097 theEnergyLoss = right.theEnergyLoss ; 00098 theParticleType = right.theParticleType ; 00099 00100 theThetaAtEntry = right.theThetaAtEntry; 00101 thePhiAtEntry = right.thePhiAtEntry; 00102 theEntryPoint = right.theEntryPoint; 00103 theExitPoint = right.theExitPoint; 00104 theParentId = right.theParentId; 00105 theVx = right.theVx; 00106 theVy = right.theVy; 00107 theVz = right.theVz; 00108 00109 return *this; 00110 }
int TotemG4Hit::operator== | ( | const TotemG4Hit & | ) | [inline] |
void TotemG4Hit::Print | ( | ) |
Definition at line 119 of file TotemG4Hit.cc.
References GenMuonPlsPt100GeV_cfg::cout.
00119 { 00120 std::cout << (*this); 00121 }
void TotemG4Hit::setEM | ( | double | e | ) |
void TotemG4Hit::setEnergyLoss | ( | float | e | ) |
Definition at line 156 of file TotemG4Hit.cc.
References theEnergyLoss.
Referenced by TotemSD::CreateNewHit(), TotemSD::CreateNewHitEvo(), and TotemSD::UpdateHit().
00156 {theEnergyLoss = e;}
void TotemG4Hit::setEntry | ( | double | x, | |
double | y, | |||
double | z | |||
) | [inline] |
Definition at line 58 of file TotemG4Hit.h.
References entry.
Referenced by TotemSD::CreateNewHit(), TotemSD::CreateNewHitEvo(), and TotemG4Hit().
void TotemG4Hit::setHadr | ( | double | e | ) |
void TotemG4Hit::setIncidentEnergy | ( | double | e | ) |
Definition at line 133 of file TotemG4Hit.cc.
References theIncidentEnergy.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
00133 {theIncidentEnergy = e; }
void TotemG4Hit::setPabs | ( | float | e | ) |
Definition at line 154 of file TotemG4Hit.cc.
References thePabs.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
Definition at line 175 of file TotemG4Hit.cc.
References theParentId.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
00175 {theParentId = p;}
void TotemG4Hit::setParticleType | ( | short | i | ) |
Definition at line 157 of file TotemG4Hit.cc.
References theParticleType.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
00157 {theParticleType = i;}
void TotemG4Hit::setPhiAtEntry | ( | float | f | ) |
Definition at line 163 of file TotemG4Hit.cc.
References thePhiAtEntry.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
00163 {thePhiAtEntry = f ;}
void TotemG4Hit::setThetaAtEntry | ( | float | t | ) |
Definition at line 162 of file TotemG4Hit.cc.
References theThetaAtEntry.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
00162 {theThetaAtEntry = t;}
void TotemG4Hit::setTimeSlice | ( | double | d | ) |
Definition at line 142 of file TotemG4Hit.cc.
References theTimeSlice.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
00142 { theTimeSlice = d; }
void TotemG4Hit::setTof | ( | float | e | ) |
Definition at line 155 of file TotemG4Hit.cc.
References theTof.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
Definition at line 136 of file TotemG4Hit.cc.
References theTrackID.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
00136 { theTrackID = i; }
void TotemG4Hit::setUnitID | ( | uint32_t | i | ) |
Definition at line 139 of file TotemG4Hit.cc.
References theUnitID.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
void TotemG4Hit::setVx | ( | float | p | ) |
Definition at line 178 of file TotemG4Hit.cc.
References theVx.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
void TotemG4Hit::setVy | ( | float | p | ) |
Definition at line 181 of file TotemG4Hit.cc.
References theVy.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
void TotemG4Hit::setVz | ( | float | p | ) |
Definition at line 184 of file TotemG4Hit.cc.
References theVz.
Referenced by TotemSD::CreateNewHit(), and TotemSD::CreateNewHitEvo().
void TotemG4Hit::setX | ( | float | t | ) |
void TotemG4Hit::setY | ( | float | t | ) |
void TotemG4Hit::setZ | ( | float | t | ) |
double TotemG4Hit::elem [private] |
Definition at line 120 of file TotemG4Hit.h.
Referenced by addEnergyDeposit(), getEM(), getEnergyDeposit(), operator=(), setEM(), and TotemG4Hit().
math::XYZPoint TotemG4Hit::entry [private] |
Definition at line 119 of file TotemG4Hit.h.
Referenced by getEntry(), operator=(), setEntry(), and TotemG4Hit().
double TotemG4Hit::hadr [private] |
Definition at line 121 of file TotemG4Hit.h.
Referenced by addEnergyDeposit(), getEnergyDeposit(), getHadr(), operator=(), setHadr(), and TotemG4Hit().
float TotemG4Hit::theEnergyLoss [private] |
Definition at line 134 of file TotemG4Hit.h.
Referenced by getEnergyLoss(), operator=(), setEnergyLoss(), and TotemG4Hit().
math::XYZPoint TotemG4Hit::theEntryPoint [private] |
math::XYZPoint TotemG4Hit::theExitPoint [private] |
double TotemG4Hit::theIncidentEnergy [private] |
Definition at line 122 of file TotemG4Hit.h.
Referenced by getIncidentEnergy(), operator=(), setIncidentEnergy(), and TotemG4Hit().
float TotemG4Hit::thePabs [private] |
Definition at line 132 of file TotemG4Hit.h.
Referenced by getPabs(), operator=(), setPabs(), and TotemG4Hit().
int TotemG4Hit::theParentId [private] |
Definition at line 142 of file TotemG4Hit.h.
Referenced by getParentId(), operator=(), setParentId(), and TotemG4Hit().
int TotemG4Hit::theParticleType [private] |
Definition at line 135 of file TotemG4Hit.h.
Referenced by getParticleType(), operator=(), setParticleType(), and TotemG4Hit().
float TotemG4Hit::thePhiAtEntry [private] |
Definition at line 138 of file TotemG4Hit.h.
Referenced by getPhiAtEntry(), operator=(), setPhiAtEntry(), and TotemG4Hit().
float TotemG4Hit::theThetaAtEntry [private] |
Definition at line 137 of file TotemG4Hit.h.
Referenced by getThetaAtEntry(), operator=(), setThetaAtEntry(), and TotemG4Hit().
double TotemG4Hit::theTimeSlice [private] |
Definition at line 126 of file TotemG4Hit.h.
Referenced by getTimeSlice(), getTimeSliceID(), operator=(), setTimeSlice(), and TotemG4Hit().
float TotemG4Hit::theTof [private] |
Definition at line 133 of file TotemG4Hit.h.
Referenced by getTof(), operator=(), setTof(), and TotemG4Hit().
int TotemG4Hit::theTrackID [private] |
Definition at line 123 of file TotemG4Hit.h.
Referenced by getTrackID(), operator=(), setTrackID(), and TotemG4Hit().
uint32_t TotemG4Hit::theUnitID [private] |
Definition at line 125 of file TotemG4Hit.h.
Referenced by getUnitID(), operator=(), setUnitID(), and TotemG4Hit().
float TotemG4Hit::theVx [private] |
Definition at line 143 of file TotemG4Hit.h.
Referenced by getVx(), operator=(), setVx(), and TotemG4Hit().
float TotemG4Hit::theVy [private] |
Definition at line 144 of file TotemG4Hit.h.
Referenced by getVy(), operator=(), setVy(), and TotemG4Hit().
float TotemG4Hit::theVz [private] |
Definition at line 145 of file TotemG4Hit.h.
Referenced by getVz(), operator=(), setVz(), and TotemG4Hit().
float TotemG4Hit::theX [private] |
Definition at line 129 of file TotemG4Hit.h.
Referenced by getX(), operator=(), setX(), and TotemG4Hit().
float TotemG4Hit::theY [private] |
Definition at line 130 of file TotemG4Hit.h.
Referenced by getY(), operator=(), setY(), and TotemG4Hit().
float TotemG4Hit::theZ [private] |
Definition at line 131 of file TotemG4Hit.h.
Referenced by getZ(), operator=(), setZ(), and TotemG4Hit().