#include <JetIDHelper.h>
Classes | |
struct | subtower |
Public Member Functions | |
double | approximatefHPD () const |
double | approximatefRBX () const |
void | calculate (const edm::Event &event, const edm::EventSetup &setup, const reco::CaloJet &jet, const int iDbg=0) |
double | fEB () const |
double | fEE () const |
double | fHB () const |
double | fHE () const |
double | fHFOOT () const |
double | fHO () const |
double | fHPD () const |
void | fillDescription (edm::ParameterSetDescription &iDesc) |
double | fLong () const |
double | fLSbad () const |
double | fRBX () const |
double | fShort () const |
double | fSubDetector1 () const |
double | fSubDetector2 () const |
double | fSubDetector3 () const |
double | fSubDetector4 () const |
int | hitsInN90 () const |
void | initValues () |
JetIDHelper () | |
JetIDHelper (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC) | |
int | n90Hits () const |
int | nECALTowers () const |
int | nHCALTowers () const |
double | restrictedEMF () const |
~JetIDHelper () | |
Private Types | |
enum | Region { unknown_region = -1, HFneg, HEneg, HBneg, HBpos, HEpos, HFpos } |
Private Member Functions | |
void | classifyJetComponents (const edm::Event &event, const edm::EventSetup &setup, const reco::CaloJet &jet, std::vector< double > &energies, std::vector< double > &subdet_energies, std::vector< double > &Ecal_energies, std::vector< double > &Hcal_energies, std::vector< double > &HO_energies, std::vector< double > &HPD_energies, std::vector< double > &RBX_energies, double &LS_bad_energy, double &HF_OOT_energy, const int iDbg=0) |
void | classifyJetTowers (const edm::Event &event, const reco::CaloJet &jet, std::vector< subtower > &subtowers, std::vector< subtower > &Ecal_subtowers, std::vector< subtower > &Hcal_subtowers, std::vector< subtower > &HO_subtowers, std::vector< double > &HPD_energies, std::vector< double > &RBX_energies, const int iDbg=0) |
int | HBHE_oddness (int iEta) |
int | HBHE_oddness (int iEta, int depth) |
Region | HBHE_region (uint32_t) |
unsigned int | hitsInNCarrying (double fraction, const std::vector< subtower > &descending_towers) |
unsigned int | nCarrying (double fraction, const std::vector< double > &descending_energies) |
Region | region (int iEta) |
Private Attributes | |
double | approximatefHPD_ |
double | approximatefRBX_ |
double | approximatefSubDetector1_ |
double | approximatefSubDetector2_ |
double | approximatefSubDetector3_ |
double | approximatefSubDetector4_ |
edm::InputTag | ebRecHitsColl_ |
edm::InputTag | eeRecHitsColl_ |
double | fEB_ |
double | fEE_ |
double | fHB_ |
double | fHE_ |
double | fHFOOT_ |
double | fHO_ |
double | fHPD_ |
double | fLong_ |
double | fLS_ |
double | fRBX_ |
double | fShort_ |
double | fSubDetector1_ |
double | fSubDetector2_ |
double | fSubDetector3_ |
double | fSubDetector4_ |
edm::InputTag | hbheRecHitsColl_ |
edm::InputTag | hfRecHitsColl_ |
int | hitsInN90_ |
edm::InputTag | hoRecHitsColl_ |
edm::EDGetTokenT< EBRecHitCollection > | input_EBRecHits_token_ |
edm::EDGetTokenT< EERecHitCollection > | input_EERecHits_token_ |
edm::EDGetTokenT< HBHERecHitCollection > | input_HBHERecHits_token_ |
edm::EDGetTokenT< HFRecHitCollection > | input_HFRecHits_token_ |
edm::EDGetTokenT< HORecHitCollection > | input_HORecHits_token_ |
int | n90Hits_ |
int | nECALTowers_ |
int | nHCALTowers_ |
double | restrictedEMF_ |
bool | useRecHits_ |
Static Private Attributes | |
static std::atomic< int > | sanity_checks_left_ {100} |
Definition at line 23 of file JetIDHelper.h.
|
private |
Enumerator | |
---|---|
unknown_region | |
HFneg | |
HEneg | |
HBneg | |
HBpos | |
HEpos | |
HFpos |
Definition at line 107 of file JetIDHelper.h.
|
inline |
Definition at line 26 of file JetIDHelper.h.
reco::helper::JetIDHelper::JetIDHelper | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC | ||
) |
|
inline |
Definition at line 28 of file JetIDHelper.h.
|
inline |
Definition at line 64 of file JetIDHelper.h.
References approximatefHPD_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 65 of file JetIDHelper.h.
References approximatefRBX_.
Referenced by JetIDProducer::produce().
void reco::helper::JetIDHelper::calculate | ( | const edm::Event & | event, |
const edm::EventSetup & | setup, | ||
const reco::CaloJet & | jet, | ||
const int | iDbg = 0 |
||
) |
Definition at line 93 of file JetIDHelper.cc.
References funct::abs(), gather_cfg::cout, reco::helper::hasNonPositiveE(), mps_fire::i, metsig::jet, Max(), and singleTopDQM_cfi::setup.
Referenced by JetMETHLTOfflineSource::analyze(), HLTCaloJetIDProducer::produce(), and JetIDProducer::produce().
|
private |
Definition at line 269 of file JetIDHelper.cc.
References funct::abs(), gather_cfg::cout, LEDCalibrationChannels::depth, HcalDetId::depth(), filterRecHits_cfi::EBRecHits, DetId::Ecal, filterRecHits_cfi::EERecHits, edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), HLT_FULL_cff::flags, get, egHLT::errCodes::HBHERecHits, DetId::Hcal, HcalForward, HcalOuter, HcalCaloFlagLabels::HFDigiTime, HcalCaloFlagLabels::HFLongShort, egHLT::errCodes::HFRecHits, HcalCaloFlagLabels::HFTimingTrustBits, L1TowerCalibrationProducer_cfi::iEta, metsig::jet, HcalTopology::mergedDepth29(), nCells, ecaldqm::nTowers, HLT_FULL_cff::region, reco::helper::select2nd(), singleTopDQM_cfi::setup, edm::SortedCollection< T, SORT >::size(), jetUpdater_cfi::sort, HcalDetId::subdet(), HcalCaloFlagLabels::TimingAddedBit, HcalCaloFlagLabels::TimingErrorBit, HcalCaloFlagLabels::TimingSubtractedBit, hgcalTowerProducer_cfi::tower, HLT_FULL_cff::towers, HcalDetIdTransform::transform(), and testProducerWithPsetDescEmpty_cfi::x1.
|
private |
Definition at line 520 of file JetIDHelper.cc.
References funct::abs(), gather_cfg::cout, DetId::Ecal, DetId::Hcal, HcalOuter, L1TowerCalibrationProducer_cfi::iEta, metsig::jet, nCells, ecaldqm::nTowers, HLT_FULL_cff::region, reco::helper::select2nd(), jetUpdater_cfi::sort, HcalDetId::subdet(), reco::helper::subtower_has_greater_E(), hgcalTowerProducer_cfi::tower, HLT_FULL_cff::towers, HcalDetIdTransform::transform(), and testProducerWithPsetDescEmpty_cfi::x1.
|
inline |
Definition at line 50 of file JetIDHelper.h.
References fEB_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 51 of file JetIDHelper.h.
References fEE_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 52 of file JetIDHelper.h.
References fHB_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 53 of file JetIDHelper.h.
References fHE_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 58 of file JetIDHelper.h.
References fHFOOT_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 54 of file JetIDHelper.h.
References fHO_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 43 of file JetIDHelper.h.
References fHPD_.
Referenced by JetMETHLTOfflineSource::analyze(), and JetIDProducer::produce().
void reco::helper::JetIDHelper::fillDescription | ( | edm::ParameterSetDescription & | iDesc | ) |
Definition at line 80 of file JetIDHelper.cc.
References edm::ParameterSetDescription::ifValue(), and edm::ParameterDescriptionNode::setComment().
|
inline |
Definition at line 55 of file JetIDHelper.h.
References fLong_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 57 of file JetIDHelper.h.
References fLS_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 44 of file JetIDHelper.h.
References fRBX_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 56 of file JetIDHelper.h.
References fShort_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 46 of file JetIDHelper.h.
References fSubDetector1_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 47 of file JetIDHelper.h.
References fSubDetector2_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 48 of file JetIDHelper.h.
References fSubDetector3_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 49 of file JetIDHelper.h.
References fSubDetector4_.
Referenced by JetIDProducer::produce().
|
private |
Definition at line 663 of file JetIDHelper.cc.
References Abs(), and L1TowerCalibrationProducer_cfi::iEta.
|
private |
Definition at line 643 of file JetIDHelper.cc.
References Abs(), LEDCalibrationChannels::depth, and L1TowerCalibrationProducer_cfi::iEta.
|
private |
Definition at line 650 of file JetIDHelper.cc.
References HcalBarrel, HcalEndcap, triggerObjects_cff::id, and LEDCalibrationChannels::ieta.
|
inline |
Definition at line 66 of file JetIDHelper.h.
References hitsInN90_.
Referenced by JetIDProducer::produce().
|
private |
Definition at line 251 of file JetIDHelper.cc.
References HLT_FULL_cff::fraction, and mps_fire::i.
void reco::helper::JetIDHelper::initValues | ( | ) |
Definition at line 62 of file JetIDHelper.cc.
|
inline |
Definition at line 45 of file JetIDHelper.h.
References n90Hits_.
Referenced by JetMETHLTOfflineSource::analyze(), HLTCaloJetIDProducer::produce(), and JetIDProducer::produce().
|
private |
Definition at line 234 of file JetIDHelper.cc.
References HLT_FULL_cff::fraction, and mps_fire::i.
|
inline |
Definition at line 62 of file JetIDHelper.h.
References nECALTowers_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 61 of file JetIDHelper.h.
References nHCALTowers_.
Referenced by JetIDProducer::produce().
|
private |
|
inline |
Definition at line 60 of file JetIDHelper.h.
References restrictedEMF_.
Referenced by JetIDProducer::produce().
|
private |
Definition at line 125 of file JetIDHelper.h.
Referenced by approximatefHPD().
|
private |
Definition at line 126 of file JetIDHelper.h.
Referenced by approximatefRBX().
|
private |
Definition at line 128 of file JetIDHelper.h.
|
private |
Definition at line 129 of file JetIDHelper.h.
|
private |
Definition at line 130 of file JetIDHelper.h.
|
private |
Definition at line 131 of file JetIDHelper.h.
|
private |
Definition at line 140 of file JetIDHelper.h.
|
private |
Definition at line 141 of file JetIDHelper.h.
|
private |
Definition at line 133 of file JetIDHelper.h.
Referenced by fEB().
|
private |
Definition at line 133 of file JetIDHelper.h.
Referenced by fEE().
|
private |
Definition at line 133 of file JetIDHelper.h.
Referenced by fHB().
|
private |
Definition at line 133 of file JetIDHelper.h.
Referenced by fHE().
|
private |
Definition at line 134 of file JetIDHelper.h.
Referenced by fHFOOT().
|
private |
Definition at line 133 of file JetIDHelper.h.
Referenced by fHO().
|
private |
Definition at line 115 of file JetIDHelper.h.
Referenced by fHPD().
|
private |
Definition at line 133 of file JetIDHelper.h.
Referenced by fLong().
|
private |
Definition at line 134 of file JetIDHelper.h.
Referenced by fLSbad().
|
private |
Definition at line 116 of file JetIDHelper.h.
Referenced by fRBX().
|
private |
Definition at line 133 of file JetIDHelper.h.
Referenced by fShort().
|
private |
Definition at line 118 of file JetIDHelper.h.
Referenced by fSubDetector1().
|
private |
Definition at line 119 of file JetIDHelper.h.
Referenced by fSubDetector2().
|
private |
Definition at line 120 of file JetIDHelper.h.
Referenced by fSubDetector3().
|
private |
Definition at line 121 of file JetIDHelper.h.
Referenced by fSubDetector4().
|
private |
Definition at line 137 of file JetIDHelper.h.
|
private |
Definition at line 139 of file JetIDHelper.h.
|
private |
Definition at line 127 of file JetIDHelper.h.
Referenced by hitsInN90().
|
private |
Definition at line 138 of file JetIDHelper.h.
|
private |
Definition at line 148 of file JetIDHelper.h.
|
private |
Definition at line 149 of file JetIDHelper.h.
|
private |
Definition at line 145 of file JetIDHelper.h.
|
private |
Definition at line 147 of file JetIDHelper.h.
|
private |
Definition at line 146 of file JetIDHelper.h.
|
private |
Definition at line 117 of file JetIDHelper.h.
Referenced by n90Hits().
|
private |
Definition at line 124 of file JetIDHelper.h.
Referenced by nECALTowers().
|
private |
Definition at line 123 of file JetIDHelper.h.
Referenced by nHCALTowers().
|
private |
Definition at line 122 of file JetIDHelper.h.
Referenced by restrictedEMF().
|
staticprivate |
Definition at line 143 of file JetIDHelper.h.
|
private |
Definition at line 136 of file JetIDHelper.h.