#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 36 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_, and input_simvertex_token_.
JetMatchingTools::~JetMatchingTools | ( | ) |
Definition at line 65 of file JetMatchingTools.cc.
int JetMatchingTools::generatorId | ( | unsigned | fSimTrackId | ) |
Generator ID.
Definition at line 242 of file JetMatchingTools.cc.
References MessageLogger_cfi::cerr, SimTrack::genpartIndex(), getSimVertexCollection(), getTrack(), SimTrack::noGenpart(), SimVertex::noParent(), SimTrack::noVertex(), SimVertex::parentIndex(), HiIsolationCommonParameters_cff::track, and SimTrack::vertIndex().
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 165 of file JetMatchingTools.cc.
References MessageLogger_cfi::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 206 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 157 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 67 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_ebrechits_token_, mEBRecHitCollection, and mEvent.
Referenced by getConstituentHits().
const PCaloHitContainer * JetMatchingTools::getEBSimHitCollection | ( | ) |
Definition at line 107 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_pcalohits_ebcal_token_, mEBSimHitCollection, mEvent, and trackerHits::simHits.
Referenced by getPCaloHits().
const EERecHitCollection * JetMatchingTools::getEERecHitCollection | ( | ) |
Definition at line 75 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_eerechits_token_, mEERecHitCollection, and mEvent.
Referenced by getConstituentHits().
const PCaloHitContainer * JetMatchingTools::getEESimHitCollection | ( | ) |
Definition at line 115 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_pcalohits_eecal_token_, mEESimHitCollection, mEvent, and trackerHits::simHits.
Referenced by getPCaloHits().
const reco::GenParticle * JetMatchingTools::getGenParticle | ( | int | fGeneratorId | ) |
Definition at line 261 of file JetMatchingTools.cc.
References MessageLogger_cfi::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 270 of file JetMatchingTools.cc.
References MessageLogger_cfi::cerr, generatorId(), getConstituentIds(), getConstituents(), getGenParticle(), getPCaloHits(), getTrackId(), and mps_fire::result.
Referenced by IsolatedParticlesGeneratedJets::analyze().
std::vector< const reco::GenParticle * > JetMatchingTools::getGenParticles | ( | const reco::GenJet & | fJet | ) |
GenParticles for GenJet.
Definition at line 305 of file JetMatchingTools.cc.
References reco::GenJet::getGenConstituents().
const reco::CandidateCollection * JetMatchingTools::getGenParticlesCollection | ( | ) |
Definition at line 147 of file JetMatchingTools.cc.
References edm::Event::getByToken(), cmsBatch::handle, input_cands_token_, mEvent, and mGenParticleCollection.
Referenced by getGenParticle().
const HBHERecHitCollection * JetMatchingTools::getHBHERecHitCollection | ( | ) |
Definition at line 83 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_hbherechits_token_, mEvent, and mHBHERecHitCollection.
Referenced by getConstituentHits().
const PCaloHitContainer * JetMatchingTools::getHcalSimHitCollection | ( | ) |
Definition at line 123 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_pcalohits_hcal_token_, mEvent, mHcalSimHitCollection, and trackerHits::simHits.
Referenced by getPCaloHits().
const HFRecHitCollection * JetMatchingTools::getHFRecHitCollection | ( | ) |
Definition at line 99 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_hfrechits_token_, mEvent, and mHFRecHitCollection.
Referenced by getConstituentHits().
const HORecHitCollection * JetMatchingTools::getHORecHitCollection | ( | ) |
Definition at line 91 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_horechits_token_, mEvent, and mHORecHitCollection.
Referenced by getConstituentHits().
get PCaloHits contributing to the detId
Definition at line 215 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 131 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_simtrack_token_, mEvent, mSimTrackCollection, and trackerHits::simHits.
Referenced by getTrack().
const SimVertexContainer * JetMatchingTools::getSimVertexCollection | ( | ) |
Definition at line 139 of file JetMatchingTools.cc.
References edm::Event::getByToken(), input_simvertex_token_, mEvent, mSimVertexCollection, and trackerHits::simHits.
Referenced by generatorId().
const SimTrack * JetMatchingTools::getTrack | ( | unsigned | fSimTrackId | ) |
convert trackId to SimTrack
Definition at line 235 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 231 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 310 of file JetMatchingTools.cc.
References generatorId(), getConstituentHits(), getConstituents(), getPCaloHits(), and getTrackId().
double JetMatchingTools::overlapEnergyFraction | ( | const std::vector< const reco::GenParticle * > & | fObject, |
const std::vector< const reco::GenParticle * > & | fReference | ||
) | const |
energy overlap
Definition at line 337 of file JetMatchingTools.cc.
References randomXiThetaGunProducer_cfi::energy, spr::find(), and mps_fire::i.
|
private |
Definition at line 117 of file JetMatchingTools.h.
Referenced by getGenParticlesCollection(), and JetMatchingTools().
|
private |
Definition at line 107 of file JetMatchingTools.h.
Referenced by getEBRecHitCollection(), and JetMatchingTools().
|
private |
Definition at line 108 of file JetMatchingTools.h.
Referenced by getEERecHitCollection(), and JetMatchingTools().
|
private |
Definition at line 109 of file JetMatchingTools.h.
Referenced by getHBHERecHitCollection(), and JetMatchingTools().
|
private |
Definition at line 111 of file JetMatchingTools.h.
Referenced by getHFRecHitCollection(), and JetMatchingTools().
|
private |
Definition at line 110 of file JetMatchingTools.h.
Referenced by getHORecHitCollection(), and JetMatchingTools().
|
private |
Definition at line 113 of file JetMatchingTools.h.
Referenced by getEBSimHitCollection(), and JetMatchingTools().
|
private |
Definition at line 112 of file JetMatchingTools.h.
Referenced by getEESimHitCollection(), and JetMatchingTools().
|
private |
Definition at line 114 of file JetMatchingTools.h.
Referenced by getHcalSimHitCollection(), and JetMatchingTools().
|
private |
Definition at line 115 of file JetMatchingTools.h.
Referenced by getSimTrackCollection(), and JetMatchingTools().
|
private |
Definition at line 116 of file JetMatchingTools.h.
Referenced by getSimVertexCollection(), and JetMatchingTools().
|
private |
Definition at line 95 of file JetMatchingTools.h.
Referenced by getEBRecHitCollection().
|
private |
Definition at line 100 of file JetMatchingTools.h.
Referenced by getEBSimHitCollection().
|
private |
Definition at line 96 of file JetMatchingTools.h.
Referenced by getEERecHitCollection().
|
private |
Definition at line 101 of file JetMatchingTools.h.
Referenced by getEESimHitCollection().
|
private |
Definition at line 94 of file JetMatchingTools.h.
Referenced by getEBRecHitCollection(), getEBSimHitCollection(), getEERecHitCollection(), getEESimHitCollection(), getGenParticlesCollection(), getHBHERecHitCollection(), getHcalSimHitCollection(), getHFRecHitCollection(), getHORecHitCollection(), getSimTrackCollection(), and getSimVertexCollection().
|
private |
Definition at line 105 of file JetMatchingTools.h.
Referenced by getGenParticlesCollection().
|
private |
Definition at line 97 of file JetMatchingTools.h.
Referenced by getHBHERecHitCollection().
|
private |
Definition at line 102 of file JetMatchingTools.h.
Referenced by getHcalSimHitCollection().
|
private |
Definition at line 99 of file JetMatchingTools.h.
Referenced by getHFRecHitCollection().
|
private |
Definition at line 98 of file JetMatchingTools.h.
Referenced by getHORecHitCollection().
|
private |
Definition at line 103 of file JetMatchingTools.h.
Referenced by getSimTrackCollection().
|
private |
Definition at line 104 of file JetMatchingTools.h.
Referenced by getSimVertexCollection().