#include <CaloG4Hit.h>
Public Member Functions | |
void | addEnergyDeposit (double em, double hd) |
void | addEnergyDeposit (const CaloG4Hit &aHit) |
CaloG4Hit () | |
CaloG4Hit (const CaloG4Hit &right) | |
void | Draw () |
uint16_t | getDepth () const |
double | getEM () const |
double | getEnergyDeposit () const |
math::XYZPoint | getEntry () const |
math::XYZPoint | getEntryLocal () const |
double | getHadr () const |
CaloHitID | getID () const |
double | getIncidentEnergy () const |
math::XYZPoint | getPosition () const |
double | getTimeSlice () const |
int | getTimeSliceID () const |
int | getTrackID () const |
uint32_t | getUnitID () const |
void | operator delete (void *CaloG4Hit) |
void * | operator new (size_t) |
const CaloG4Hit & | operator= (const CaloG4Hit &right) |
bool | operator== (const CaloG4Hit &) |
void | Print () |
void | setEM (double e) |
void | setEntry (double x, double y, double z) |
void | setEntryLocal (double x, double y, double z) |
void | setHadr (double e) |
void | setID (uint32_t i, double d, int j, uint16_t k=0) |
void | setID (CaloHitID id) |
void | setIncidentEnergy (double e) |
void | setPosition (double x, double y, double z) |
~CaloG4Hit () | |
Private Attributes | |
double | elem |
math::XYZPoint | entry |
math::XYZPoint | entryLocal |
double | hadr |
CaloHitID | hitID |
math::XYZPoint | pos |
double | theIncidentEnergy |
Definition at line 33 of file CaloG4Hit.h.
CaloG4Hit::CaloG4Hit | ( | ) |
Definition at line 10 of file CaloG4Hit.cc.
References elem, hadr, setEntry(), setEntryLocal(), and theIncidentEnergy.
{ setEntry(0.,0.,0.); setEntryLocal(0.,0.,0.); elem = 0.; hadr = 0.; theIncidentEnergy = 0.; }
CaloG4Hit::~CaloG4Hit | ( | ) |
Definition at line 19 of file CaloG4Hit.cc.
{}
CaloG4Hit::CaloG4Hit | ( | const CaloG4Hit & | right | ) |
Definition at line 21 of file CaloG4Hit.cc.
References elem, entry, entryLocal, hadr, hitID, pos, and theIncidentEnergy.
{ entry = right.entry; entryLocal = right.entryLocal; pos = right.pos; elem = right.elem; hadr = right.hadr; theIncidentEnergy = right.theIncidentEnergy; hitID = right.hitID; }
void CaloG4Hit::addEnergyDeposit | ( | double | em, |
double | hd | ||
) |
Definition at line 45 of file CaloG4Hit.cc.
Referenced by addEnergyDeposit(), and CaloSD::updateHit().
void CaloG4Hit::addEnergyDeposit | ( | const CaloG4Hit & | aHit | ) |
Definition at line 51 of file CaloG4Hit.cc.
References addEnergyDeposit(), getEM(), and getHadr().
{ addEnergyDeposit(aHit.getEM(),aHit.getHadr()); }
void CaloG4Hit::Draw | ( | ) | [inline] |
Definition at line 45 of file CaloG4Hit.h.
{}
uint16_t CaloG4Hit::getDepth | ( | void | ) | const [inline] |
Definition at line 72 of file CaloG4Hit.h.
References CaloHitID::depth(), and hitID.
Referenced by SimG4HcalValidation::fill(), CaloSD::filterHit(), CaloG4HitEqual::operator()(), CaloG4HitLess::operator()(), and CaloSD::saveHit().
double CaloG4Hit::getEM | ( | ) | const [inline] |
Definition at line 59 of file CaloG4Hit.h.
References elem.
Referenced by addEnergyDeposit(), ZdcSD::getFromLibrary(), operator<<(), CaloSD::saveHit(), ZdcTestAnalysis::update(), and HcalTB02Analysis::update().
{return elem;}
double CaloG4Hit::getEnergyDeposit | ( | ) | const [inline] |
Definition at line 81 of file CaloG4Hit.h.
Referenced by SimG4HcalValidation::fill(), HcalTestAnalysis::fill(), HcalTB06Analysis::fillBuffer(), HcalTB04Analysis::fillBuffer(), CastorShowerLibraryMaker::FillShowerEvent(), HCalSD::filterHit(), CaloSD::filterHit(), CastorTestAnalysis::getCastorBranchData(), ZdcTestAnalysis::update(), DoCastorAnalysis::update(), and EcalSimHitsValidProducer::update().
math::XYZPoint CaloG4Hit::getEntry | ( | ) | const [inline] |
Definition at line 50 of file CaloG4Hit.h.
References entry.
Referenced by HcalTB06Analysis::fillBuffer(), HcalTB04Analysis::fillBuffer(), CastorShowerLibraryMaker::FillShowerEvent(), operator<<(), and EcalSimHitsValidProducer::update().
{return entry;}
math::XYZPoint CaloG4Hit::getEntryLocal | ( | ) | const [inline] |
Definition at line 53 of file CaloG4Hit.h.
References entryLocal.
Referenced by ZdcSD::getFromLibrary(), and operator<<().
{return entryLocal;}
double CaloG4Hit::getHadr | ( | ) | const [inline] |
Definition at line 62 of file CaloG4Hit.h.
References hadr.
Referenced by addEnergyDeposit(), ZdcSD::getFromLibrary(), operator<<(), CaloSD::saveHit(), ZdcTestAnalysis::update(), and HcalTB02Analysis::update().
{return hadr;}
CaloHitID CaloG4Hit::getID | ( | ) | const [inline] |
Definition at line 74 of file CaloG4Hit.h.
References hitID.
Referenced by operator<<().
{return hitID;}
double CaloG4Hit::getIncidentEnergy | ( | ) | const [inline] |
Definition at line 65 of file CaloG4Hit.h.
References theIncidentEnergy.
Referenced by CastorShowerLibraryMaker::FillShowerEvent(), ZdcSD::getFromLibrary(), operator<<(), and HcalTB02Analysis::update().
{return theIncidentEnergy;}
math::XYZPoint CaloG4Hit::getPosition | ( | ) | const [inline] |
Definition at line 56 of file CaloG4Hit.h.
References pos.
Referenced by SimG4HcalValidation::fill(), HcalTestAnalysis::fill(), CastorShowerLibraryMaker::FillShowerEvent(), CastorTestAnalysis::getCastorBranchData(), operator<<(), ZdcTestAnalysis::update(), and DoCastorAnalysis::update().
{return pos;}
double CaloG4Hit::getTimeSlice | ( | ) | const [inline] |
Definition at line 70 of file CaloG4Hit.h.
References hitID, and CaloHitID::timeSlice().
Referenced by CaloSD::cleanHitCollection(), SimG4HcalValidation::fill(), HcalTestAnalysis::fill(), HcalTB06Analysis::fillBuffer(), HcalTB04Analysis::fillBuffer(), CastorShowerLibraryMaker::FillShowerEvent(), CaloSD::saveHit(), and EcalSimHitsValidProducer::update().
int CaloG4Hit::getTimeSliceID | ( | ) | const [inline] |
Definition at line 71 of file CaloG4Hit.h.
References hitID, and CaloHitID::timeSliceID().
Referenced by CaloG4HitLess::operator()(), CaloG4HitEqual::operator()(), ZdcTestAnalysis::update(), and HcalTB02Analysis::update().
{return hitID.timeSliceID();}
int CaloG4Hit::getTrackID | ( | ) | const [inline] |
Definition at line 68 of file CaloG4Hit.h.
References hitID, and CaloHitID::trackID().
Referenced by HcalTB06Analysis::fillBuffer(), HcalTB04Analysis::fillBuffer(), CastorShowerLibraryMaker::FillShowerEvent(), ZdcSD::getFromLibrary(), CaloG4HitLess::operator()(), CaloG4HitEqual::operator()(), CaloSD::saveHit(), ZdcTestAnalysis::update(), and HcalTB02Analysis::update().
uint32_t CaloG4Hit::getUnitID | ( | ) | const [inline] |
Definition at line 69 of file CaloG4Hit.h.
References hitID, and CaloHitID::unitID().
Referenced by SimG4HcalValidation::fill(), HcalTestAnalysis::fill(), HcalTB06Analysis::fillBuffer(), HcalTB04Analysis::fillBuffer(), CastorShowerLibraryMaker::FillShowerEvent(), HCalSD::filterHit(), CastorTestAnalysis::getCastorBranchData(), ZdcSD::getFromLibrary(), CaloG4HitEqual::operator()(), CaloG4HitLess::operator()(), CaloSD::saveHit(), ZdcTestAnalysis::update(), HcalTB02Analysis::update(), DoCastorAnalysis::update(), and EcalSimHitsValidProducer::update().
void CaloG4Hit::operator delete | ( | void * | CaloG4Hit | ) | [inline] |
Definition at line 129 of file CaloG4Hit.h.
References CaloG4HitAllocator.
{ CaloG4HitAllocator.FreeSingle((CaloG4Hit*) aHit); }
void * CaloG4Hit::operator new | ( | size_t | ) | [inline] |
Definition at line 123 of file CaloG4Hit.h.
References CaloG4HitAllocator.
{ void * aHit; aHit = (void *) CaloG4HitAllocator.MallocSingle(); return aHit; }
Definition at line 32 of file CaloG4Hit.cc.
References elem, entry, entryLocal, hadr, hitID, pos, and theIncidentEnergy.
{ entry = right.entry; entryLocal = right.entryLocal; pos = right.pos; elem = right.elem; hadr = right.hadr; theIncidentEnergy = right.theIncidentEnergy; hitID = right.hitID; return *this; }
bool CaloG4Hit::operator== | ( | const CaloG4Hit & | ) | [inline] |
Definition at line 41 of file CaloG4Hit.h.
{return false;}
void CaloG4Hit::Print | ( | void | ) |
Definition at line 57 of file CaloG4Hit.cc.
References LogDebug.
{ LogDebug("CaloSim") << (*this); }
void CaloG4Hit::setEM | ( | double | e | ) | [inline] |
Definition at line 60 of file CaloG4Hit.h.
References alignCSCRings::e, and elem.
Referenced by CaloSD::createNewHit().
void CaloG4Hit::setEntry | ( | double | x, |
double | y, | ||
double | z | ||
) | [inline] |
Definition at line 51 of file CaloG4Hit.h.
Referenced by CaloG4Hit(), and CaloSD::createNewHit().
void CaloG4Hit::setEntryLocal | ( | double | x, |
double | y, | ||
double | z | ||
) | [inline] |
Definition at line 54 of file CaloG4Hit.h.
References entryLocal.
Referenced by CaloG4Hit(), and CaloSD::createNewHit().
{entryLocal.SetCoordinates(x,y,z);}
void CaloG4Hit::setHadr | ( | double | e | ) | [inline] |
Definition at line 63 of file CaloG4Hit.h.
References alignCSCRings::e, and hadr.
Referenced by CaloSD::createNewHit().
void CaloG4Hit::setID | ( | CaloHitID | id | ) | [inline] |
void CaloG4Hit::setID | ( | uint32_t | i, |
double | d, | ||
int | j, | ||
uint16_t | k = 0 |
||
) | [inline] |
Definition at line 75 of file CaloG4Hit.h.
References hitID, gen::k, and CaloHitID::setID().
Referenced by CaloSD::createNewHit().
void CaloG4Hit::setIncidentEnergy | ( | double | e | ) | [inline] |
Definition at line 66 of file CaloG4Hit.h.
References alignCSCRings::e, and theIncidentEnergy.
Referenced by CaloSD::createNewHit(), and ZdcSD::getFromLibrary().
{theIncidentEnergy = e;}
void CaloG4Hit::setPosition | ( | double | x, |
double | y, | ||
double | z | ||
) | [inline] |
double CaloG4Hit::elem [private] |
Definition at line 88 of file CaloG4Hit.h.
Referenced by addEnergyDeposit(), CaloG4Hit(), getEM(), getEnergyDeposit(), operator=(), and setEM().
math::XYZPoint CaloG4Hit::entry [private] |
Definition at line 85 of file CaloG4Hit.h.
Referenced by CaloG4Hit(), getEntry(), and operator=().
math::XYZPoint CaloG4Hit::entryLocal [private] |
Definition at line 86 of file CaloG4Hit.h.
Referenced by CaloG4Hit(), getEntryLocal(), operator=(), and setEntryLocal().
double CaloG4Hit::hadr [private] |
Definition at line 89 of file CaloG4Hit.h.
Referenced by addEnergyDeposit(), CaloG4Hit(), getEnergyDeposit(), getHadr(), operator=(), and setHadr().
CaloHitID CaloG4Hit::hitID [private] |
Definition at line 91 of file CaloG4Hit.h.
Referenced by CaloG4Hit(), getDepth(), getID(), getTimeSlice(), getTimeSliceID(), getTrackID(), getUnitID(), operator=(), and setID().
math::XYZPoint CaloG4Hit::pos [private] |
Definition at line 87 of file CaloG4Hit.h.
Referenced by CaloG4Hit(), getPosition(), operator=(), and setPosition().
double CaloG4Hit::theIncidentEnergy [private] |
Definition at line 90 of file CaloG4Hit.h.
Referenced by CaloG4Hit(), getIncidentEnergy(), operator=(), and setIncidentEnergy().