1 #ifndef SimDataFormats_PCaloHit_H 2 #define SimDataFormats_PCaloHit_H 12 PCaloHit(
float e = 0.,
float t = 0.,
int i = 0,
float emFraction = 1.,
16 PCaloHit(
unsigned int id,
float e = 0.,
float t = 0.,
int i = 0,
17 float emFraction = 1., uint16_t
d = 0) :
myEnergy (
e),
19 PCaloHit(
float eEM,
float eHad,
float t,
int i = 0, uint16_t
d = 0);
20 PCaloHit(
unsigned int id,
float eEM,
float eHad,
float t,
int i = 0,
24 static const char *
name() {
return "Hit"; }
85 #endif // _SimDataFormats_SimCaloHit_PCaloHit_h_
static const int kEcalDepthRefz
static const char * name()
EncodedEventId theEventId
PCaloHit(unsigned int id, float e=0., float t=0., int i=0, float emFraction=1., uint16_t d=0)
void setDepth(uint16_t depth)
void setEventId(EncodedEventId e)
std::ostream & operator<<(std::ostream &, const PCaloHit &)
bool operator==(const PCaloHit &d) const
static const int kEcalDepthMask
static const int kEcalDepthOffset
PCaloHit(float e=0., float t=0., int i=0, float emFraction=1., uint16_t d=0)
EncodedEventId eventId() const
void setID(unsigned int id)
const char * getName() const
bool operator<(const PCaloHit &d) const
static const int kEcalDepthIdMask