#include <HOTriggerPrimitiveDigi.h>
Public Types | |
typedef HcalDetId | key_type |
For the sorted collection. More... | |
Public Member Functions | |
int | bits () const |
get the single-bit data More... | |
bool | data (int whichbit=HO_TP_SAMPLES_MAX) const |
HOTriggerPrimitiveDigi () | |
HOTriggerPrimitiveDigi (uint32_t data) | |
HOTriggerPrimitiveDigi (int ieta, int iphi, int nsamples, int whichSampleTriggered, int databits) | |
const HcalDetId | id () const |
int | ieta () const |
get the signed ieta value More... | |
int | ieta_abs () const |
get the absolute value of ieta More... | |
int | ieta_sign () const |
get the sign of ieta (int: +/- 1) More... | |
int | iphi () const |
get the iphi value More... | |
int | nsamples () const |
get the number of samples used to compute the TP More... | |
uint32_t | operator() () |
for streaming More... | |
uint32_t | raw () const |
get the raw (packed) Triger Primitive More... | |
int | raw_ieta () const |
get the raw ieta value More... | |
int | whichSampleTriggered () const |
get the number of the triggering sample More... | |
Static Public Attributes | |
static const int | HO_TP_SAMPLES_MAX = 10 |
Private Attributes | |
uint32_t | theHO_TP |
Definition at line 15 of file HOTriggerPrimitiveDigi.h.
For the sorted collection.
Definition at line 17 of file HOTriggerPrimitiveDigi.h.
|
inline |
|
inline |
Definition at line 20 of file HOTriggerPrimitiveDigi.h.
References data(), and theHO_TP.
HOTriggerPrimitiveDigi::HOTriggerPrimitiveDigi | ( | int | ieta, |
int | iphi, | ||
int | nsamples, | ||
int | whichSampleTriggered, | ||
int | databits | ||
) |
Definition at line 4 of file HOTriggerPrimitiveDigi.cc.
References funct::abs(), HO_TP_SAMPLES_MAX, ieta(), iphi(), nsamples(), EgammaValidation_cff::samples, theHO_TP, and whichSampleTriggered().
|
inline |
get the single-bit data
Definition at line 42 of file HOTriggerPrimitiveDigi.h.
References theHO_TP.
bool HOTriggerPrimitiveDigi::data | ( | int | whichbit = HO_TP_SAMPLES_MAX | ) | const |
get one bit from the single-bit data. required to be called with a legal value.
Definition at line 23 of file HOTriggerPrimitiveDigi.cc.
References nsamples(), and theHO_TP.
Referenced by HOTriggerPrimitiveDigi(), and operator<<().
|
inline |
Definition at line 23 of file HOTriggerPrimitiveDigi.h.
References HcalOuter, ieta(), and iphi().
|
inline |
get the signed ieta value
Definition at line 34 of file HOTriggerPrimitiveDigi.h.
References ieta_abs(), and ieta_sign().
Referenced by HOTriggerPrimitiveDigi(), id(), and operator<<().
|
inline |
get the absolute value of ieta
Definition at line 32 of file HOTriggerPrimitiveDigi.h.
References theHO_TP.
Referenced by ieta().
|
inline |
get the sign of ieta (int: +/- 1)
Definition at line 30 of file HOTriggerPrimitiveDigi.h.
References theHO_TP.
Referenced by ieta().
|
inline |
get the iphi value
Definition at line 36 of file HOTriggerPrimitiveDigi.h.
References theHO_TP.
Referenced by HOTriggerPrimitiveDigi(), id(), and operator<<().
|
inline |
get the number of samples used to compute the TP
Definition at line 38 of file HOTriggerPrimitiveDigi.h.
References theHO_TP.
Referenced by data(), HOTriggerPrimitiveDigi(), and operator<<().
|
inline |
|
inline |
get the raw (packed) Triger Primitive
Definition at line 26 of file HOTriggerPrimitiveDigi.h.
References theHO_TP.
|
inline |
|
inline |
get the number of the triggering sample
Definition at line 40 of file HOTriggerPrimitiveDigi.h.
References theHO_TP.
Referenced by HOTriggerPrimitiveDigi(), and operator<<().
|
static |
Definition at line 44 of file HOTriggerPrimitiveDigi.h.
Referenced by HOTriggerPrimitiveDigi().
|
private |
Definition at line 54 of file HOTriggerPrimitiveDigi.h.
Referenced by bits(), data(), HOTriggerPrimitiveDigi(), ieta_abs(), ieta_sign(), iphi(), nsamples(), operator()(), raw(), raw_ieta(), and whichSampleTriggered().