#include <JetMatchingTools.h>
Classes | |
struct | JetConstituent |
Definition at line 28 of file JetMatchingTools.h.
JetMatchingTools::JetMatchingTools | ( | const edm::Event & | fEvent, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 37 of file JetMatchingTools.cc.
References input_cands_token_, input_ebrechits_token_, input_eerechits_token_, input_hbherechits_token_, input_hfrechits_token_, input_horechits_token_, input_pcalohits_ebcal_token_, input_pcalohits_eecal_token_, input_pcalohits_hcal_token_, input_simtrack_token_, input_simvertex_token_, and HLT_FULL_cff::InputTag.
JetMatchingTools::~JetMatchingTools | ( | ) |
Definition at line 63 of file JetMatchingTools.cc.
int JetMatchingTools::generatorId | ( | unsigned | fSimTrackId | ) |
Generator ID.
Definition at line 240 of file JetMatchingTools.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, getSimVertexCollection(), getTrack(), HLT_FULL_cff::track, and bphysicsOniaDQM_cfi::vertex.
Referenced by getGenParticles(), and lostEnergyFraction().
std::vector<const CaloTower*> JetMatchingTools::getCaloTowers | ( | int | fGeneratorId | ) |
CaloTowers.
std::vector< JetMatchingTools::JetConstituent > JetMatchingTools::getConstituentHits | ( | const CaloTower & | fTower | ) |
get CaloRecHits contributing to the tower
Definition at line 164 of file JetMatchingTools.cc.
References cms::cuda::assert(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, CaloTower::constituent(), CaloTower::constituentsSize(), DetId::Ecal, EcalBarrel, EcalEndcap, getEBRecHitCollection(), getEERecHitCollection(), getHBHERecHitCollection(), getHFRecHitCollection(), getHORecHitCollection(), DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, mps_fire::i, and mps_fire::result.
Referenced by lostEnergyFraction().
get cells contributing to the tower
Definition at line 207 of file JetMatchingTools.cc.
References CaloTower::constituent(), CaloTower::constituentsSize(), mps_fire::i, and mps_fire::result.
Referenced by getGenParticles().
std::vector< const CaloTower * > JetMatchingTools::getConstituents | ( | const reco::CaloJet & | fJet | ) |
get towers contributing to CaloJet
Definition at line 155 of file JetMatchingTools.cc.
References reco::CaloJet::getCaloConstituents(), mps_fire::i, and mps_fire::result.
Referenced by getGenParticles(), and lostEnergyFraction().
const EBRecHitCollection * JetMatchingTools::getEBRecHitCollection | ( | ) |
Definition at line 65 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_ebrechits_token_, mEBRecHitCollection, mEvent, and FastTrackerRecHitMaskProducer_cfi::recHits.
Referenced by getConstituentHits().
const PCaloHitContainer * JetMatchingTools::getEBSimHitCollection | ( | ) |
Definition at line 105 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_pcalohits_ebcal_token_, mEBSimHitCollection, mEvent, and FastTrackerRecHitCombiner_cfi::simHits.
Referenced by getPCaloHits().
const EERecHitCollection * JetMatchingTools::getEERecHitCollection | ( | ) |
Definition at line 73 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_eerechits_token_, mEERecHitCollection, mEvent, and FastTrackerRecHitMaskProducer_cfi::recHits.
Referenced by getConstituentHits().
const PCaloHitContainer * JetMatchingTools::getEESimHitCollection | ( | ) |
Definition at line 113 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_pcalohits_eecal_token_, mEESimHitCollection, mEvent, and FastTrackerRecHitCombiner_cfi::simHits.
Referenced by getPCaloHits().
const reco::GenParticle * JetMatchingTools::getGenParticle | ( | int | fGeneratorId | ) |
Definition at line 260 of file JetMatchingTools.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, reco::GenJet::genParticle(), getGenParticlesCollection(), edm::OwnVector< T, P >::size(), and findQualityFiles::size.
Referenced by getGenParticles().
std::vector< const reco::GenParticle * > JetMatchingTools::getGenParticles | ( | const reco::CaloJet & | fJet, |
bool | fVerbose = true |
||
) |
GenParticles for CaloJet.
Definition at line 271 of file JetMatchingTools.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, generatorId(), getConstituentIds(), getConstituents(), getGenParticle(), getPCaloHits(), getTrackId(), phits, mps_fire::result, and HLT_FULL_cff::towers.
std::vector< const reco::GenParticle * > JetMatchingTools::getGenParticles | ( | const reco::GenJet & | fJet | ) |
GenParticles for GenJet.
Definition at line 306 of file JetMatchingTools.cc.
References reco::GenJet::getGenConstituents().
const reco::CandidateCollection * JetMatchingTools::getGenParticlesCollection | ( | ) |
Definition at line 145 of file JetMatchingTools.cc.
References edm::Event::getByToken(), patZpeak::handle, input_cands_token_, mEvent, and mGenParticleCollection.
Referenced by getGenParticle().
const HBHERecHitCollection * JetMatchingTools::getHBHERecHitCollection | ( | ) |
Definition at line 81 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_hbherechits_token_, mEvent, mHBHERecHitCollection, and FastTrackerRecHitMaskProducer_cfi::recHits.
Referenced by getConstituentHits().
const PCaloHitContainer * JetMatchingTools::getHcalSimHitCollection | ( | ) |
Definition at line 121 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_pcalohits_hcal_token_, mEvent, mHcalSimHitCollection, and FastTrackerRecHitCombiner_cfi::simHits.
Referenced by getPCaloHits().
const HFRecHitCollection * JetMatchingTools::getHFRecHitCollection | ( | ) |
Definition at line 97 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_hfrechits_token_, mEvent, mHFRecHitCollection, and FastTrackerRecHitMaskProducer_cfi::recHits.
Referenced by getConstituentHits().
const HORecHitCollection * JetMatchingTools::getHORecHitCollection | ( | ) |
Definition at line 89 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_horechits_token_, mEvent, mHORecHitCollection, and FastTrackerRecHitMaskProducer_cfi::recHits.
Referenced by getConstituentHits().
get PCaloHits contributing to the detId
Definition at line 216 of file JetMatchingTools.cc.
References DetId::det(), DetId::Ecal, EcalBarrel, EcalEndcap, getEBSimHitCollection(), getEESimHitCollection(), getHcalSimHitCollection(), DetId::Hcal, mps_fire::result, and DetId::subdetId().
Referenced by getGenParticles(), and lostEnergyFraction().
std::vector<const PCaloHit*> JetMatchingTools::getPCaloHits | ( | int | fGeneratorId | ) |
CaloSimHits.
const SimTrackContainer * JetMatchingTools::getSimTrackCollection | ( | ) |
Definition at line 129 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_simtrack_token_, mEvent, mSimTrackCollection, and FastTrackerRecHitCombiner_cfi::simHits.
Referenced by getTrack().
const SimVertexContainer * JetMatchingTools::getSimVertexCollection | ( | ) |
Definition at line 137 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_simvertex_token_, mEvent, mSimVertexCollection, and FastTrackerRecHitCombiner_cfi::simHits.
Referenced by generatorId().
const SimTrack * JetMatchingTools::getTrack | ( | unsigned | fSimTrackId | ) |
convert trackId to SimTrack
Definition at line 232 of file JetMatchingTools.cc.
References getSimTrackCollection(), and mps_fire::i.
Referenced by generatorId().
int JetMatchingTools::getTrackId | ( | const PCaloHit & | fHit | ) |
GEANT track ID.
Definition at line 230 of file JetMatchingTools.cc.
References PCaloHit::geantTrackId().
Referenced by getGenParticles(), and lostEnergyFraction().
double JetMatchingTools::lostEnergyFraction | ( | const reco::CaloJet & | fJet | ) |
energy in broken links
Definition at line 311 of file JetMatchingTools.cc.
References generatorId(), getConstituentHits(), getConstituents(), getPCaloHits(), getTrackId(), phits, FastTrackerRecHitMaskProducer_cfi::recHits, and HLT_FULL_cff::towers.
double JetMatchingTools::overlapEnergyFraction | ( | const std::vector< const reco::GenParticle * > & | fObject, |
const std::vector< const reco::GenParticle * > & | fReference | ||
) | const |
energy overlap
Definition at line 340 of file JetMatchingTools.cc.
References HCALHighEnergyHPDFilter_cfi::energy, spr::find(), and mps_fire::i.
|
private |
Definition at line 114 of file JetMatchingTools.h.
Referenced by getGenParticlesCollection(), and JetMatchingTools().
|
private |
Definition at line 104 of file JetMatchingTools.h.
Referenced by getEBRecHitCollection(), and JetMatchingTools().
|
private |
Definition at line 105 of file JetMatchingTools.h.
Referenced by getEERecHitCollection(), and JetMatchingTools().
|
private |
Definition at line 106 of file JetMatchingTools.h.
Referenced by getHBHERecHitCollection(), and JetMatchingTools().
|
private |
Definition at line 108 of file JetMatchingTools.h.
Referenced by getHFRecHitCollection(), and JetMatchingTools().
|
private |
Definition at line 107 of file JetMatchingTools.h.
Referenced by getHORecHitCollection(), and JetMatchingTools().
|
private |
Definition at line 110 of file JetMatchingTools.h.
Referenced by getEBSimHitCollection(), and JetMatchingTools().
|
private |
Definition at line 109 of file JetMatchingTools.h.
Referenced by getEESimHitCollection(), and JetMatchingTools().
|
private |
Definition at line 111 of file JetMatchingTools.h.
Referenced by getHcalSimHitCollection(), and JetMatchingTools().
|
private |
Definition at line 112 of file JetMatchingTools.h.
Referenced by getSimTrackCollection(), and JetMatchingTools().
|
private |
Definition at line 113 of file JetMatchingTools.h.
Referenced by getSimVertexCollection(), and JetMatchingTools().
|
private |
Definition at line 92 of file JetMatchingTools.h.
Referenced by getEBRecHitCollection().
|
private |
Definition at line 97 of file JetMatchingTools.h.
Referenced by getEBSimHitCollection().
|
private |
Definition at line 93 of file JetMatchingTools.h.
Referenced by getEERecHitCollection().
|
private |
Definition at line 98 of file JetMatchingTools.h.
Referenced by getEESimHitCollection().
|
private |
Definition at line 91 of file JetMatchingTools.h.
Referenced by getEBRecHitCollection(), getEBSimHitCollection(), getEERecHitCollection(), getEESimHitCollection(), getGenParticlesCollection(), getHBHERecHitCollection(), getHcalSimHitCollection(), getHFRecHitCollection(), getHORecHitCollection(), getSimTrackCollection(), and getSimVertexCollection().
|
private |
Definition at line 102 of file JetMatchingTools.h.
Referenced by getGenParticlesCollection().
|
private |
Definition at line 94 of file JetMatchingTools.h.
Referenced by getHBHERecHitCollection().
|
private |
Definition at line 99 of file JetMatchingTools.h.
Referenced by getHcalSimHitCollection().
|
private |
Definition at line 96 of file JetMatchingTools.h.
Referenced by getHFRecHitCollection().
|
private |
Definition at line 95 of file JetMatchingTools.h.
Referenced by getHORecHitCollection().
|
private |
Definition at line 100 of file JetMatchingTools.h.
Referenced by getSimTrackCollection().
|
private |
Definition at line 101 of file JetMatchingTools.h.
Referenced by getSimVertexCollection().