Go to the documentation of this file. 1 #ifndef SimG4CMS_CaloG4Hit_h
2 #define SimG4CMS_CaloG4Hit_h 1
29 #include "G4Allocator.hh"
39 inline void*
operator new(size_t);
40 inline void operator delete(
void*
CaloG4Hit);
43 void Print()
override;
94 if (
a->getTrackID() !=
b->getTrackID()) {
95 return (
a->getTrackID() <
b->getTrackID());
96 }
else if (
a->getUnitID() !=
b->getUnitID()) {
97 return (
a->getUnitID() <
b->getUnitID());
98 }
else if (
a->getDepth() !=
b->getDepth()) {
99 return (
a->getDepth() <
b->getDepth());
101 return (
a->getTimeSliceID() <
b->getTimeSliceID());
109 return (
a->getTrackID() ==
b->getTrackID() &&
a->getUnitID() ==
b->getUnitID() &&
a->getDepth() ==
b->getDepth() &&
110 a->getTimeSliceID() ==
b->getTimeSliceID());
void setIncidentEnergy(double e)
uint32_t getUnitID() const
math::XYZPoint getEntryLocal() const
double getTimeSlice() const
bool operator()(const CaloG4Hit *a, const CaloG4Hit *b)
void setID(uint32_t unitID, double timeSlice, int trackID, uint16_t depth=0)
G4ThreadLocal G4Allocator< CaloG4Hit > * fpCaloG4HitAllocator
math::XYZPoint entryLocal
double getEnergyDeposit() const
bool operator()(const CaloG4Hit *a, const CaloG4Hit *b)
XYZPointD XYZPoint
point in space with cartesian internal representation
void setEntryLocal(double x, double y, double z)
void setEntry(double x, double y, double z)
std::ostream & operator<<(std::ostream &, const CaloG4Hit &)
math::XYZPoint getPosition() const
int getTimeSliceID() const
double getIncidentEnergy() const
const CaloG4Hit & operator=(const CaloG4Hit &right)
bool operator==(const CaloG4Hit &)
void setID(uint32_t i, double d, int j, uint16_t k=0)
void addEnergyDeposit(double em, double hd)
math::XYZPoint getEntry() const
void setPosition(double x, double y, double z)
uint16_t getDepth() const
void setID(const CaloHitID &id)