#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 | setSignalOverSigmaNoise (float sOverNoise) |
void | setTimeError (uint8_t timeErrBits) |
float | signalOverSigmaNoise () const |
float | timeError () const |
void | unsetFlag (int flag) |
Public Member Functions inherited from CaloRecHit | |
constexpr uint32_t | aux () const |
constexpr | CaloRecHit () |
constexpr | CaloRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t aux=0) |
constexpr const DetId & | detid () const |
constexpr float | energy () const |
constexpr uint32_t | flagField (int base, int width=1) const |
constexpr uint32_t | flags () const |
constexpr void | setAux (uint32_t value) |
constexpr void | setEnergy (float energy) |
constexpr void | setFlagField (uint32_t value, int base, int width=1) |
constexpr void | setFlags (uint32_t flags) |
constexpr void | setTime (float time) |
constexpr float | time () const |
Private Attributes | |
uint32_t | flagBits_ |
store rechit condition (see Flags enum) in a bit-wise way More... | |
uint8_t | signalOverSigmaNoise_ |
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 9 of file HGCRecHit.cc.
HGCRecHit::HGCRecHit | ( | const DetId & | id, |
float | energy, | ||
float | time, | ||
uint32_t | flags = 0 , |
||
uint32_t | flagBits = 0 |
||
) |
Definition at line 12 of file HGCRecHit.cc.
|
inline |
check if the flag is true
Definition at line 99 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 110 of file HGCRecHit.cc.
References checkFlag().
Referenced by checkFlag().
float HGCRecHit::chi2 | ( | void | ) | const |
Definition at line 16 of file HGCRecHit.cc.
References f, 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(), setSignalOverSigmaNoise(), setTimeError(), signalOverSigmaNoise(), and timeError().
bool HGCRecHit::isTimeErrorValid | ( | ) | const |
Definition at line 100 of file HGCRecHit.cc.
References isTimeValid(), and timeError().
Referenced by id().
bool HGCRecHit::isTimeValid | ( | ) | const |
Definition at line 93 of file HGCRecHit.cc.
References timeError().
Referenced by id(), and isTimeErrorValid().
float HGCRecHit::outOfTimeChi2 | ( | ) | const |
Definition at line 21 of file HGCRecHit.cc.
References f, CaloRecHit::flags(), and objects.autophobj::float.
Referenced by id().
float HGCRecHit::outOfTimeEnergy | ( | ) | const |
Definition at line 26 of file HGCRecHit.cc.
References dedxEstimators_cff::exponent, CaloRecHit::flags(), and funct::pow().
Referenced by id().
void HGCRecHit::setChi2 | ( | float | chi2 | ) |
Definition at line 33 of file HGCRecHit.cc.
References f, CaloRecHit::flags(), and CaloRecHit::setFlags().
Referenced by id().
|
inline |
set the flags (from Flags or ESFlags)
Definition at line 95 of file HGCRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
Referenced by HGCalRecHitSimpleAlgo::makeRecHit().
void HGCRecHit::setOutOfTimeChi2 | ( | float | chi2 | ) |
Definition at line 53 of file HGCRecHit.cc.
References f, CaloRecHit::flags(), and CaloRecHit::setFlags().
Referenced by id().
void HGCRecHit::setOutOfTimeEnergy | ( | float | energy | ) |
Definition at line 42 of file HGCRecHit.cc.
References dedxEstimators_cff::exponent, f, CaloRecHit::flags(), funct::pow(), and CaloRecHit::setFlags().
Referenced by id().
void HGCRecHit::setSignalOverSigmaNoise | ( | float | sOverNoise | ) |
Definition at line 62 of file HGCRecHit.cc.
References f, and signalOverSigmaNoise_.
Referenced by id().
void HGCRecHit::setTimeError | ( | uint8_t | timeErrBits | ) |
Definition at line 73 of file HGCRecHit.cc.
References CaloRecHit::aux(), and CaloRecHit::setAux().
Referenced by id().
float HGCRecHit::signalOverSigmaNoise | ( | ) | const |
Definition at line 69 of file HGCRecHit.cc.
References signalOverSigmaNoise_.
Referenced by id(), and PFRecHitQTestHGCalThresholdSNR::test().
float HGCRecHit::timeError | ( | ) | const |
Definition at line 78 of file HGCRecHit.cc.
References CaloRecHit::aux(), dedxEstimators_cff::exponent, and funct::pow().
Referenced by id(), isTimeErrorValid(), and isTimeValid().
|
inline |
Definition at line 96 of file HGCRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
|
private |
store rechit condition (see Flags enum) in a bit-wise way
Definition at line 108 of file HGCRecHit.h.
Referenced by checkFlag(), setFlag(), and unsetFlag().
|
private |
Definition at line 109 of file HGCRecHit.h.
Referenced by setSignalOverSigmaNoise(), and signalOverSigmaNoise().