#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) |
void | setTime (float time) |
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 checkFlags(), RemoveAddSevLevel::flag, and 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().
Referenced by checkFlag().
float HGCRecHit::chi2 | ( | void | ) | const |
Definition at line 15 of file HGCRecHit.cc.
References CaloRecHit::flags(), and objects.autophobj::float.
Referenced by id().
|
inline |
get the id
Definition at line 69 of file HGCRecHit.h.
References chi2(), CaloRecHit::detid(), CaloRecHit::energy(), isTimeErrorValid(), isTimeValid(), outOfTimeChi2(), outOfTimeEnergy(), setChi2(), setOutOfTimeChi2(), setOutOfTimeEnergy(), setTimeError(), and timeError().
bool HGCRecHit::isTimeErrorValid | ( | ) | const |
Definition at line 88 of file HGCRecHit.cc.
References isTimeValid(), and timeError().
Referenced by id().
bool HGCRecHit::isTimeValid | ( | ) | const |
Definition at line 81 of file HGCRecHit.cc.
References timeError().
Referenced by id(), and isTimeErrorValid().
float HGCRecHit::outOfTimeChi2 | ( | ) | const |
Definition at line 20 of file HGCRecHit.cc.
References CaloRecHit::flags(), and objects.autophobj::float.
Referenced by id().
float HGCRecHit::outOfTimeEnergy | ( | ) | const |
Definition at line 25 of file HGCRecHit.cc.
References dedxEstimators_cff::exponent, CaloRecHit::flags(), and funct::pow().
Referenced by id().
void HGCRecHit::setChi2 | ( | float | chi2 | ) |
Definition at line 32 of file HGCRecHit.cc.
References CaloRecHit::flags(), and CaloRecHit::setFlags().
Referenced by id().
|
inline |
set the flags (from Flags or ESFlags)
Definition at line 91 of file HGCRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
Referenced by HGCalRecHitSimpleAlgo::makeRecHit().
void HGCRecHit::setOutOfTimeChi2 | ( | float | chi2 | ) |
Definition at line 52 of file HGCRecHit.cc.
References CaloRecHit::flags(), and CaloRecHit::setFlags().
Referenced by id().
void HGCRecHit::setOutOfTimeEnergy | ( | float | energy | ) |
Definition at line 41 of file HGCRecHit.cc.
References dedxEstimators_cff::exponent, CaloRecHit::flags(), funct::pow(), and CaloRecHit::setFlags().
Referenced by id().
void HGCRecHit::setTimeError | ( | uint8_t | timeErrBits | ) |
Definition at line 61 of file HGCRecHit.cc.
References CaloRecHit::aux(), and CaloRecHit::setAux().
Referenced by id().
float HGCRecHit::timeError | ( | ) | const |
Definition at line 66 of file HGCRecHit.cc.
References CaloRecHit::aux(), dedxEstimators_cff::exponent, and funct::pow().
Referenced by id(), isTimeErrorValid(), and isTimeValid().
|
inline |
Definition at line 92 of file HGCRecHit.h.
References RemoveAddSevLevel::flag, and 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().