#include <HGCRecHit.h>
Public Types | |
enum | Flags { kGood =0, kPoorReco, kOutOfTime, kFaultyHardware, kNoisy, kPoorCalib, kSaturated, kDead, kKilled, kWeird, kDiWeird, kUnknown } |
enum | HGCbheFlags { kHGCbheGood, kHGCbheDead, kHGCbheHot, kHGCbhePassBX, kHGCbheSaturated } |
enum | HGCfheFlags { kHGCfheGood, kHGCfheDead, kHGCfheHot, kHGCfhePassBX, kHGCfheSaturated } |
typedef DetId | key_type |
Public Member Functions | |
bool | checkFlag (int flag) const |
check if the flag is true More... | |
bool | checkFlags (const std::vector< int > &flagsvec) const |
check if one of the flags in a set is true More... | |
float | chi2 () const |
HGCRecHit () | |
HGCRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t flagBits=0) | |
DetId | id () const |
get the id More... | |
bool | isTimeErrorValid () const |
bool | isTimeValid () const |
float | outOfTimeChi2 () const |
float | outOfTimeEnergy () const |
void | setChi2 (float chi2) |
void | setFlag (int flag) |
set the flags (from Flags or ESFlags) More... | |
void | setOutOfTimeChi2 (float chi2) |
void | setOutOfTimeEnergy (float energy) |
void | setTimeError (uint8_t timeErrBits) |
float | timeError () const |
void | unsetFlag (int flag) |
Public Member Functions inherited from CaloRecHit | |
uint32_t | aux () const |
CaloRecHit () | |
CaloRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t aux=0) | |
const DetId & | detid () const |
float | energy () const |
uint32_t | flagField (int base, int width=1) const |
uint32_t | flags () const |
void | setAux (uint32_t value) |
void | setEnergy (float energy) |
void | setFlagField (uint32_t value, int base, int width=1) |
void | setFlags (uint32_t flags) |
float | time () const |
Private Attributes | |
uint32_t | flagBits_ |
store rechit condition (see Flags enum) in a bit-wise way More... | |
based on EcalRecHit
Definition at line 14 of file HGCRecHit.h.
typedef DetId HGCRecHit::key_type |
Definition at line 16 of file HGCRecHit.h.
enum HGCRecHit::Flags |
Enumerator | |
---|---|
kGood | |
kPoorReco | |
kOutOfTime | |
kFaultyHardware | |
kNoisy | |
kPoorCalib | |
kSaturated | |
kDead | |
kKilled | |
kWeird | |
kDiWeird | |
kUnknown |
Definition at line 19 of file HGCRecHit.h.
Enumerator | |
---|---|
kHGCbheGood | |
kHGCbheDead | |
kHGCbheHot | |
kHGCbhePassBX | |
kHGCbheSaturated |
Definition at line 45 of file HGCRecHit.h.
Enumerator | |
---|---|
kHGCfheGood | |
kHGCfheDead | |
kHGCfheHot | |
kHGCfhePassBX | |
kHGCfheSaturated |
Definition at line 36 of file HGCRecHit.h.
HGCRecHit::HGCRecHit | ( | ) |
bit structure of CaloRecHit::flags_ used in EcalRecHit:
| 32 | 31...25 | 24...12 | 11...5 | 4...1 | | | | | | | | | | +–> reco flags ( 4 bits) | | | +–> chi2 for in time events ( 7 bits) | | +–> energy for out-of-time events (13 bits) | +–> chi2 for out-of-time events ( 7 bits) +–> spare ( 1 bit )
Definition at line 8 of file HGCRecHit.cc.
HGCRecHit::HGCRecHit | ( | const DetId & | id, |
float | energy, | ||
float | time, | ||
uint32_t | flags = 0 , |
||
uint32_t | flagBits = 0 |
||
) |
Definition at line 11 of file HGCRecHit.cc.
|
inline |
check if the flag is true
Definition at line 95 of file HGCRecHit.h.
References flagBits_.
Referenced by checkFlags().
bool HGCRecHit::checkFlags | ( | const std::vector< int > & | flagsvec | ) | const |
check if one of the flags in a set is true
Definition at line 98 of file HGCRecHit.cc.
References checkFlag().
float HGCRecHit::chi2 | ( | void | ) | const |
|
inline |
get the id
Definition at line 69 of file HGCRecHit.h.
References CaloRecHit::detid().
bool HGCRecHit::isTimeErrorValid | ( | ) | const |
bool HGCRecHit::isTimeValid | ( | ) | const |
Definition at line 81 of file HGCRecHit.cc.
References timeError().
Referenced by isTimeErrorValid().
float HGCRecHit::outOfTimeChi2 | ( | ) | const |
float HGCRecHit::outOfTimeEnergy | ( | ) | const |
Definition at line 25 of file HGCRecHit.cc.
References HLT_FULL_cff::exponent, CaloRecHit::flags(), and funct::pow().
void HGCRecHit::setChi2 | ( | float | chi2 | ) |
Definition at line 32 of file HGCRecHit.cc.
References CaloRecHit::flags(), and CaloRecHit::setFlags().
|
inline |
set the flags (from Flags or ESFlags)
Definition at line 91 of file HGCRecHit.h.
References flagBits_.
Referenced by HGCalRecHitSimpleAlgo::makeRecHit().
void HGCRecHit::setOutOfTimeChi2 | ( | float | chi2 | ) |
Definition at line 52 of file HGCRecHit.cc.
References CaloRecHit::flags(), and CaloRecHit::setFlags().
void HGCRecHit::setOutOfTimeEnergy | ( | float | energy | ) |
Definition at line 41 of file HGCRecHit.cc.
References HLT_FULL_cff::exponent, CaloRecHit::flags(), funct::pow(), and CaloRecHit::setFlags().
void HGCRecHit::setTimeError | ( | uint8_t | timeErrBits | ) |
float HGCRecHit::timeError | ( | ) | const |
Definition at line 66 of file HGCRecHit.cc.
References CaloRecHit::aux(), HLT_FULL_cff::exponent, and funct::pow().
Referenced by isTimeErrorValid(), and isTimeValid().
|
inline |
Definition at line 92 of file HGCRecHit.h.
References flagBits_.
|
private |
store rechit condition (see Flags enum) in a bit-wise way
Definition at line 104 of file HGCRecHit.h.
Referenced by checkFlag(), setFlag(), and unsetFlag().