#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 depth) |
int | HBHE_oddness (int iEta) |
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 99 of file JetIDHelper.h.
|
inline |
reco::helper::JetIDHelper::JetIDHelper | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 46 of file JetIDHelper.cc.
References edm::ParameterSet::getParameter().
|
inline |
Definition at line 29 of file JetIDHelper.h.
References calculate(), fillDescription(), initValues(), metsig::jet, and GeneralSetup::setup().
|
inline |
Definition at line 62 of file JetIDHelper.h.
References approximatefHPD_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 63 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 100 of file JetIDHelper.cc.
References funct::abs(), gather_cfg::cout, reco::CaloJet::emEnergyInEB(), reco::CaloJet::emEnergyInEE(), reco::CaloJet::emEnergyInHF(), reco::LeafCandidate::energy(), reco::LeafCandidate::et(), reco::CaloJet::hadEnergyInHB(), reco::CaloJet::hadEnergyInHE(), reco::CaloJet::hadEnergyInHF(), reco::CaloJet::hadEnergyInHO(), reco::helper::hasNonPositiveE(), mps_fire::i, Max(), and reco::LeafCandidate::pt().
Referenced by JetMETHLTOfflineSource::analyze(), HLTCaloJetIDProducer::produce(), JetIDProducer::produce(), and ~JetIDHelper().
|
private |
Definition at line 248 of file JetIDHelper.cc.
References funct::abs(), gather_cfg::cout, egammaForCoreTracking_cff::depth, HcalDetId::depth(), egHLT::errCodes::EBRecHits, DetId::Ecal, egHLT::errCodes::EERecHits, edm::SortedCollection< T, SORT >::end(), reco::LeafCandidate::energy(), edm::SortedCollection< T, SORT >::find(), flags, edm::EventSetup::get(), reco::CaloJet::getCaloConstituents(), egHLT::errCodes::HBHERecHits, DetId::Hcal, HcalForward, HcalOuter, HcalCaloFlagLabels::HFDigiTime, HcalCaloFlagLabels::HFLongShort, egHLT::errCodes::HFRecHits, HcalCaloFlagLabels::HFTimingTrustBits, HcalDetId::ieta(), HcalTopology::mergedDepth29(), ecaldqm::nTowers, reco::helper::select2nd(), edm::SortedCollection< T, SORT >::size(), jetUpdater_cfi::sort, HcalDetId::subdet(), HcalCaloFlagLabels::TimingAddedBit, HcalCaloFlagLabels::TimingErrorBit, HcalCaloFlagLabels::TimingSubtractedBit, create_public_lumi_plots::transform, and globals_cff::x1.
Referenced by reco::helper::JetIDHelper::subtower::subtower().
|
private |
Definition at line 484 of file JetIDHelper.cc.
References funct::abs(), gather_cfg::cout, DetId::Ecal, reco::CaloJet::getCaloConstituents(), DetId::Hcal, HcalOuter, ecaldqm::nTowers, reco::helper::select2nd(), jetUpdater_cfi::sort, HcalDetId::subdet(), reco::helper::subtower_has_greater_E(), create_public_lumi_plots::transform, and globals_cff::x1.
Referenced by reco::helper::JetIDHelper::subtower::subtower().
|
inline |
Definition at line 48 of file JetIDHelper.h.
References fEB_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 49 of file JetIDHelper.h.
References fEE_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 50 of file JetIDHelper.h.
References fHB_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 51 of file JetIDHelper.h.
References fHE_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 56 of file JetIDHelper.h.
References fHFOOT_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 52 of file JetIDHelper.h.
References fHO_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 41 of file JetIDHelper.h.
References fHPD_.
Referenced by JetMETHLTOfflineSource::analyze(), and JetIDProducer::produce().
void reco::helper::JetIDHelper::fillDescription | ( | edm::ParameterSetDescription & | iDesc | ) |
Definition at line 86 of file JetIDHelper.cc.
References edm::ParameterSetDescription::ifValue(), and edm::ParameterDescriptionNode::setComment().
Referenced by ~JetIDHelper().
|
inline |
Definition at line 53 of file JetIDHelper.h.
References fLong_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 55 of file JetIDHelper.h.
References fLS_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 42 of file JetIDHelper.h.
References fRBX_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 54 of file JetIDHelper.h.
References fShort_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 44 of file JetIDHelper.h.
References fSubDetector1_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 45 of file JetIDHelper.h.
References fSubDetector2_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 46 of file JetIDHelper.h.
References fSubDetector3_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 47 of file JetIDHelper.h.
References fSubDetector4_.
Referenced by JetIDProducer::produce().
|
private |
Definition at line 599 of file JetIDHelper.cc.
References Abs().
|
private |
|
private |
Definition at line 606 of file JetIDHelper.cc.
References HcalBarrel, HcalEndcap, and triggerObjects_cff::id.
|
inline |
Definition at line 64 of file JetIDHelper.h.
References hitsInN90_.
Referenced by JetIDProducer::produce().
|
private |
Definition at line 232 of file JetIDHelper.cc.
References mps_fire::i.
Referenced by reco::helper::JetIDHelper::subtower::subtower().
void reco::helper::JetIDHelper::initValues | ( | ) |
|
inline |
Definition at line 43 of file JetIDHelper.h.
References n90Hits_.
Referenced by JetMETHLTOfflineSource::analyze(), HLTCaloJetIDProducer::produce(), and JetIDProducer::produce().
|
private |
Definition at line 215 of file JetIDHelper.cc.
References mps_fire::i.
Referenced by reco::helper::JetIDHelper::subtower::subtower().
|
inline |
Definition at line 60 of file JetIDHelper.h.
References nECALTowers_.
Referenced by JetIDProducer::produce().
|
inline |
Definition at line 59 of file JetIDHelper.h.
References nHCALTowers_.
Referenced by JetIDProducer::produce().
|
private |
Definition at line 625 of file JetIDHelper.cc.
|
inline |
Definition at line 58 of file JetIDHelper.h.
References restrictedEMF_.
Referenced by JetIDProducer::produce().
|
private |
Definition at line 119 of file JetIDHelper.h.
Referenced by approximatefHPD().
|
private |
Definition at line 120 of file JetIDHelper.h.
Referenced by approximatefRBX().
|
private |
Definition at line 122 of file JetIDHelper.h.
|
private |
Definition at line 123 of file JetIDHelper.h.
|
private |
Definition at line 124 of file JetIDHelper.h.
|
private |
Definition at line 125 of file JetIDHelper.h.
|
private |
Definition at line 134 of file JetIDHelper.h.
|
private |
Definition at line 135 of file JetIDHelper.h.
|
private |
Definition at line 127 of file JetIDHelper.h.
Referenced by fEB().
|
private |
Definition at line 127 of file JetIDHelper.h.
Referenced by fEE().
|
private |
Definition at line 127 of file JetIDHelper.h.
Referenced by fHB().
|
private |
Definition at line 127 of file JetIDHelper.h.
Referenced by fHE().
|
private |
Definition at line 128 of file JetIDHelper.h.
Referenced by fHFOOT().
|
private |
Definition at line 127 of file JetIDHelper.h.
Referenced by fHO().
|
private |
Definition at line 109 of file JetIDHelper.h.
Referenced by fHPD().
|
private |
Definition at line 127 of file JetIDHelper.h.
Referenced by fLong().
|
private |
Definition at line 128 of file JetIDHelper.h.
Referenced by fLSbad().
|
private |
Definition at line 110 of file JetIDHelper.h.
Referenced by fRBX().
|
private |
Definition at line 127 of file JetIDHelper.h.
Referenced by fShort().
|
private |
Definition at line 112 of file JetIDHelper.h.
Referenced by fSubDetector1().
|
private |
Definition at line 113 of file JetIDHelper.h.
Referenced by fSubDetector2().
|
private |
Definition at line 114 of file JetIDHelper.h.
Referenced by fSubDetector3().
|
private |
Definition at line 115 of file JetIDHelper.h.
Referenced by fSubDetector4().
|
private |
Definition at line 131 of file JetIDHelper.h.
|
private |
Definition at line 133 of file JetIDHelper.h.
|
private |
Definition at line 121 of file JetIDHelper.h.
Referenced by hitsInN90().
|
private |
Definition at line 132 of file JetIDHelper.h.
|
private |
Definition at line 142 of file JetIDHelper.h.
|
private |
Definition at line 143 of file JetIDHelper.h.
|
private |
Definition at line 139 of file JetIDHelper.h.
|
private |
Definition at line 141 of file JetIDHelper.h.
|
private |
Definition at line 140 of file JetIDHelper.h.
|
private |
Definition at line 111 of file JetIDHelper.h.
Referenced by n90Hits().
|
private |
Definition at line 118 of file JetIDHelper.h.
Referenced by nECALTowers().
|
private |
Definition at line 117 of file JetIDHelper.h.
Referenced by nHCALTowers().
|
private |
Definition at line 116 of file JetIDHelper.h.
Referenced by restrictedEMF().
|
staticprivate |
Definition at line 137 of file JetIDHelper.h.
|
private |
Definition at line 130 of file JetIDHelper.h.