#include <PCaloHit.h>
Public Member Functions | |
uint16_t | depth () const |
double | energy () const |
double | energyEM () const |
double | energyHad () const |
EncodedEventId | eventId () const |
int | geantTrackId () const |
const char * | getName () const |
unsigned int | id () const |
bool | operator< (const PCaloHit &d) const |
bool | operator== (const PCaloHit &d) const |
PCaloHit (unsigned int id, float e=0., float t=0., int i=0, float emFraction=1., uint16_t d=0) | |
PCaloHit (float e=0., float t=0., int i=0, float emFraction=1., uint16_t d=0) | |
PCaloHit (unsigned int id, float eEM, float eHad, float t, int i=0, uint16_t d=0) | |
PCaloHit (float eEM, float eHad, float t, int i=0, uint16_t d=0) | |
void | setDepth (uint16_t depth) |
void | setEventId (EncodedEventId e) |
void | setID (unsigned int id) |
void | setTime (float t) |
double | time () const |
Static Public Member Functions | |
static const char * | name () |
Protected Attributes | |
unsigned int | detId |
uint16_t | myDepth |
float | myEMFraction |
float | myEnergy |
int | myItra |
float | myTime |
EncodedEventId | theEventId |
Definition at line 8 of file PCaloHit.h.
PCaloHit::PCaloHit | ( | float | e = 0. , |
float | t = 0. , |
||
int | i = 0 , |
||
float | emFraction = 1. , |
||
uint16_t | d = 0 |
||
) | [inline] |
Definition at line 12 of file PCaloHit.h.
PCaloHit::PCaloHit | ( | unsigned int | id, |
float | e = 0. , |
||
float | t = 0. , |
||
int | i = 0 , |
||
float | emFraction = 1. , |
||
uint16_t | d = 0 |
||
) | [inline] |
PCaloHit::PCaloHit | ( | float | eEM, |
float | eHad, | ||
float | t, | ||
int | i = 0 , |
||
uint16_t | d = 0 |
||
) |
Definition at line 4 of file PCaloHit.cc.
References myEMFraction, and myEnergy.
PCaloHit::PCaloHit | ( | unsigned int | id, |
float | eEM, | ||
float | eHad, | ||
float | t, | ||
int | i = 0 , |
||
uint16_t | d = 0 |
||
) |
Definition at line 10 of file PCaloHit.cc.
References myEMFraction, and myEnergy.
uint16_t PCaloHit::depth | ( | void | ) | const [inline] |
Definition at line 47 of file PCaloHit.h.
References myDepth.
Referenced by HFHitFilter::accepts(), EBHitResponse::add(), EBHitResponse::apdSignalAmplitude(), operator<<(), EBHitResponse::run(), and setDepth().
{ return myDepth; }
double PCaloHit::energy | ( | void | ) | const [inline] |
Definition at line 29 of file PCaloHit.h.
References myEnergy.
Referenced by HcalSiPMHitResponse::add(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::analyzeEE(), EBHitResponse::apdSignalAmplitude(), CastorHitCorrection::charge(), HcalHitCorrection::charge(), CaloHitResponse::makeAnalogSignal(), HcalSiPMHitResponse::makeSiPMSignal(), EcalHitResponse::putAnalogSignal(), and CaloHitRespoNew::putAnalogSignal().
{ return myEnergy; }
double PCaloHit::energyEM | ( | ) | const [inline] |
Definition at line 30 of file PCaloHit.h.
References myEMFraction, and myEnergy.
Referenced by operator<<().
{ return myEMFraction*myEnergy; }
double PCaloHit::energyHad | ( | ) | const [inline] |
Definition at line 31 of file PCaloHit.h.
References myEMFraction, and myEnergy.
Referenced by operator<<().
{ return (1.-myEMFraction)*myEnergy; }
EncodedEventId PCaloHit::eventId | ( | ) | const [inline] |
int PCaloHit::geantTrackId | ( | ) | const [inline] |
Definition at line 37 of file PCaloHit.h.
References myItra.
Referenced by JetMatchingTools::getTrackId(), and operator<<().
{ return myItra; }
const char* PCaloHit::getName | ( | void | ) | const [inline] |
unsigned int PCaloHit::id | ( | void | ) | const [inline] |
Definition at line 41 of file PCaloHit.h.
References detId.
Referenced by ZDCHitFilter::accepts(), HFHitFilter::accepts(), HOHitFilter::accepts(), CastorHitFilter::accepts(), HBHEHitFilter::accepts(), HcalHitFilter::accepts(), HcalSiPMHitResponse::add(), EBHitResponse::add(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::analyzeEE(), EBHitResponse::apdSignalAmplitude(), CastorHitCorrection::charge(), HcalHitCorrection::charge(), HcalHitCorrection::delay(), CastorHitCorrection::delay(), CaloHitResponse::makeAnalogSignal(), operator<<(), EcalHitResponse::putAnalogSignal(), CaloHitRespoNew::putAnalogSignal(), EBHitResponse::run(), setID(), HcalHitCorrection::timeBin(), and CastorHitCorrection::timeBin().
{ return detId; }
static const char* PCaloHit::name | ( | void | ) | [inline, static] |
bool PCaloHit::operator< | ( | const PCaloHit & | d | ) | const [inline] |
bool PCaloHit::operator== | ( | const PCaloHit & | d | ) | const [inline] |
void PCaloHit::setDepth | ( | uint16_t | depth | ) | [inline] |
void PCaloHit::setEventId | ( | EncodedEventId | e | ) | [inline] |
Definition at line 51 of file PCaloHit.h.
References alignCSCRings::e, and theEventId.
{ theEventId = e; }
void PCaloHit::setID | ( | unsigned int | id | ) | [inline] |
void PCaloHit::setTime | ( | float | t | ) | [inline] |
Definition at line 55 of file PCaloHit.h.
References myTime, and lumiQTWidget::t.
Referenced by HcalSiPMHitResponse::makeSiPMSignal().
double PCaloHit::time | ( | ) | const [inline] |
Definition at line 34 of file PCaloHit.h.
References myTime.
Referenced by CaloHitResponse::add(), EcalHitResponse::add(), CaloHitRespoNew::add(), HcalSiPMHitResponse::add(), EBHitResponse::add(), CaloHitResponse::makeAnalogSignal(), HcalSiPMHitResponse::makeSiPMSignal(), PCaloHitCompareTimes::operator()(), operator<<(), EcalHitResponse::putAnalogSignal(), CaloHitRespoNew::putAnalogSignal(), EcalHitResponse::run(), EBHitResponse::run(), HcalSiPMHitResponse::run(), HcalHitCorrection::timeBin(), and CastorHitCorrection::timeBin().
{ return myTime; }
unsigned int PCaloHit::detId [protected] |
Definition at line 71 of file PCaloHit.h.
Referenced by id(), operator==(), and setID().
uint16_t PCaloHit::myDepth [protected] |
Definition at line 72 of file PCaloHit.h.
Referenced by depth(), and setDepth().
float PCaloHit::myEMFraction [protected] |
Definition at line 68 of file PCaloHit.h.
Referenced by energyEM(), energyHad(), and PCaloHit().
float PCaloHit::myEnergy [protected] |
Definition at line 67 of file PCaloHit.h.
Referenced by energy(), energyEM(), energyHad(), operator<(), operator==(), and PCaloHit().
int PCaloHit::myItra [protected] |
Definition at line 70 of file PCaloHit.h.
Referenced by geantTrackId().
float PCaloHit::myTime [protected] |
Definition at line 69 of file PCaloHit.h.
EncodedEventId PCaloHit::theEventId [protected] |
Definition at line 73 of file PCaloHit.h.
Referenced by eventId(), and setEventId().