#include <JetMatchingTools.h>
Public Member Functions | |
int | generatorId (unsigned fSimTrackId) |
Generator ID. More... | |
std::vector< const CaloRecHit * > | getCaloRecHits (int fGeneratorId) |
CaloRecHits. More... | |
std::vector< const CaloTower * > | getCaloTowers (int fGeneratorId) |
CaloTowers. More... | |
std::vector< DetId > | getConstituentIds (const CaloTower &fTower) |
get cells contributing to the tower More... | |
std::vector< const CaloTower * > | getConstituents (const reco::CaloJet &fJet) |
get towers contributing to CaloJet More... | |
std::vector< const CaloRecHit * > | getConstituents (const CaloTower &fTower) |
get CaloRecHits contributing to the tower More... | |
const EBRecHitCollection * | getEBRecHitCollection () |
const edm::PCaloHitContainer * | getEBSimHitCollection () |
const EERecHitCollection * | getEERecHitCollection () |
const edm::PCaloHitContainer * | getEESimHitCollection () |
const reco::GenParticle * | getGenParticle (int fGeneratorId) |
GenParticle. More... | |
std::vector< const reco::GenParticle * > | getGenParticles (const reco::CaloJet &fJet, bool fVerbose=true) |
GenParticles for CaloJet. More... | |
std::vector< const reco::GenParticle * > | getGenParticles (const reco::GenJet &fJet) |
GenParticles for GenJet. More... | |
const reco::CandidateCollection * | getGenParticlesCollection () |
const HBHERecHitCollection * | getHBHERecHitCollection () |
const edm::PCaloHitContainer * | getHcalSimHitCollection () |
const HFRecHitCollection * | getHFRecHitCollection () |
const HORecHitCollection * | getHORecHitCollection () |
std::vector< const PCaloHit * > | getPCaloHits (DetId fId) |
get PCaloHits contributing to the detId More... | |
std::vector< const PCaloHit * > | getPCaloHits (int fGeneratorId) |
CaloSimHits. More... | |
const edm::SimTrackContainer * | getSimTrackCollection () |
const edm::SimVertexContainer * | getSimVertexCollection () |
const SimTrack * | getTrack (unsigned fSimTrackId) |
convert trackId to SimTrack More... | |
int | getTrackId (const PCaloHit &fHit) |
GEANT track ID. More... | |
JetMatchingTools (const edm::Event &fEvent) | |
double | lostEnergyFraction (const reco::CaloJet &fJet) |
energy in broken links More... | |
double | overlapEnergyFraction (const std::vector< const reco::GenParticle * > &fObject, const std::vector< const reco::GenParticle * > &fReference) const |
energy overlap More... | |
~JetMatchingTools () | |
Private Attributes | |
const EBRecHitCollection * | mEBRecHitCollection |
const edm::PCaloHitContainer * | mEBSimHitCollection |
const EERecHitCollection * | mEERecHitCollection |
const edm::PCaloHitContainer * | mEESimHitCollection |
const edm::Event * | mEvent |
const reco::CandidateCollection * | mGenParticleCollection |
const HBHERecHitCollection * | mHBHERecHitCollection |
const edm::PCaloHitContainer * | mHcalSimHitCollection |
const HFRecHitCollection * | mHFRecHitCollection |
const HORecHitCollection * | mHORecHitCollection |
const edm::SimTrackContainer * | mSimTrackCollection |
const edm::SimVertexContainer * | mSimVertexCollection |
Definition at line 25 of file JetMatchingTools.h.
JetMatchingTools::JetMatchingTools | ( | const edm::Event & | fEvent | ) |
Definition at line 40 of file JetMatchingTools.cc.
JetMatchingTools::~JetMatchingTools | ( | ) |
Definition at line 55 of file JetMatchingTools.cc.
int JetMatchingTools::generatorId | ( | unsigned | fSimTrackId | ) |
Generator ID.
Definition at line 221 of file JetMatchingTools.cc.
References dtNoiseDBValidation_cfg::cerr, SimTrack::genpartIndex(), getSimVertexCollection(), getTrack(), SimTrack::noGenpart(), SimVertex::noParent(), SimTrack::noVertex(), SimVertex::parentIndex(), and SimTrack::vertIndex().
Referenced by getGenParticles(), and lostEnergyFraction().
std::vector<const CaloRecHit*> JetMatchingTools::getCaloRecHits | ( | int | fGeneratorId | ) |
CaloRecHits.
std::vector<const CaloTower*> JetMatchingTools::getCaloTowers | ( | int | fGeneratorId | ) |
CaloTowers.
get cells contributing to the tower
Definition at line 185 of file JetMatchingTools.cc.
References CaloTower::constituent(), CaloTower::constituentsSize(), i, and query::result.
Referenced by getGenParticles().
std::vector< const CaloTower * > JetMatchingTools::getConstituents | ( | const reco::CaloJet & | fJet | ) |
get towers contributing to CaloJet
Definition at line 147 of file JetMatchingTools.cc.
References reco::CaloJet::getCaloConstituents(), i, and query::result.
Referenced by getGenParticles(), and lostEnergyFraction().
std::vector< const CaloRecHit * > JetMatchingTools::getConstituents | ( | const CaloTower & | fTower | ) |
get CaloRecHits contributing to the tower
Definition at line 154 of file JetMatchingTools.cc.
References dtNoiseDBValidation_cfg::cerr, CaloTower::constituent(), CaloTower::constituentsSize(), DetId::Ecal, EcalBarrel, EcalEndcap, getEBRecHitCollection(), getEERecHitCollection(), getHBHERecHitCollection(), getHFRecHitCollection(), getHORecHitCollection(), DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, i, and query::result.
const EBRecHitCollection * JetMatchingTools::getEBRecHitCollection | ( | ) |
Definition at line 57 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), mEBRecHitCollection, and mEvent.
Referenced by getConstituents().
const PCaloHitContainer * JetMatchingTools::getEBSimHitCollection | ( | ) |
Definition at line 97 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), mEBSimHitCollection, mEvent, and trackerHits::simHits.
Referenced by getPCaloHits().
const EERecHitCollection * JetMatchingTools::getEERecHitCollection | ( | ) |
Definition at line 65 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), mEERecHitCollection, and mEvent.
Referenced by getConstituents().
const PCaloHitContainer * JetMatchingTools::getEESimHitCollection | ( | ) |
Definition at line 105 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), mEESimHitCollection, mEvent, and trackerHits::simHits.
Referenced by getPCaloHits().
const reco::GenParticle * JetMatchingTools::getGenParticle | ( | int | fGeneratorId | ) |
GenParticle.
Definition at line 240 of file JetMatchingTools.cc.
References dtNoiseDBValidation_cfg::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 249 of file JetMatchingTools.cc.
References dtNoiseDBValidation_cfg::cerr, generatorId(), getConstituentIds(), getConstituents(), getGenParticle(), getPCaloHits(), getTrackId(), and query::result.
Referenced by IsolatedParticlesGeneratedJets::analyze().
std::vector< const reco::GenParticle * > JetMatchingTools::getGenParticles | ( | const reco::GenJet & | fJet | ) |
GenParticles for GenJet.
Definition at line 284 of file JetMatchingTools.cc.
References reco::GenJet::getGenConstituents().
const reco::CandidateCollection * JetMatchingTools::getGenParticlesCollection | ( | ) |
Definition at line 137 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), patZpeak::handle, mEvent, and mGenParticleCollection.
Referenced by getGenParticle().
const HBHERecHitCollection * JetMatchingTools::getHBHERecHitCollection | ( | ) |
Definition at line 73 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), mEvent, and mHBHERecHitCollection.
Referenced by getConstituents().
const PCaloHitContainer * JetMatchingTools::getHcalSimHitCollection | ( | ) |
Definition at line 113 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), mEvent, mHcalSimHitCollection, and trackerHits::simHits.
Referenced by getPCaloHits().
const HFRecHitCollection * JetMatchingTools::getHFRecHitCollection | ( | ) |
Definition at line 89 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), mEvent, and mHFRecHitCollection.
Referenced by getConstituents().
const HORecHitCollection * JetMatchingTools::getHORecHitCollection | ( | ) |
Definition at line 81 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), mEvent, and mHORecHitCollection.
Referenced by getConstituents().
get PCaloHits contributing to the detId
Definition at line 194 of file JetMatchingTools.cc.
References DetId::det(), DetId::Ecal, EcalBarrel, EcalEndcap, getEBSimHitCollection(), getEESimHitCollection(), getHcalSimHitCollection(), DetId::Hcal, query::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 121 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), mEvent, mSimTrackCollection, and trackerHits::simHits.
Referenced by getTrack().
const SimVertexContainer * JetMatchingTools::getSimVertexCollection | ( | ) |
Definition at line 129 of file JetMatchingTools.cc.
References edm::Event::getByLabel(), mEvent, mSimVertexCollection, and trackerHits::simHits.
Referenced by generatorId().
const SimTrack * JetMatchingTools::getTrack | ( | unsigned | fSimTrackId | ) |
convert trackId to SimTrack
Definition at line 214 of file JetMatchingTools.cc.
References getSimTrackCollection(), and i.
Referenced by generatorId().
int JetMatchingTools::getTrackId | ( | const PCaloHit & | fHit | ) |
GEANT track ID.
Definition at line 210 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 289 of file JetMatchingTools.cc.
References cond::rpcobgas::detid, generatorId(), 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 316 of file JetMatchingTools.cc.
References relval_parameters_module::energy, spr::find(), and i.
|
private |
Definition at line 83 of file JetMatchingTools.h.
Referenced by getEBRecHitCollection().
|
private |
Definition at line 88 of file JetMatchingTools.h.
Referenced by getEBSimHitCollection().
|
private |
Definition at line 84 of file JetMatchingTools.h.
Referenced by getEERecHitCollection().
|
private |
Definition at line 89 of file JetMatchingTools.h.
Referenced by getEESimHitCollection().
|
private |
Definition at line 82 of file JetMatchingTools.h.
Referenced by getEBRecHitCollection(), getEBSimHitCollection(), getEERecHitCollection(), getEESimHitCollection(), getGenParticlesCollection(), getHBHERecHitCollection(), getHcalSimHitCollection(), getHFRecHitCollection(), getHORecHitCollection(), getSimTrackCollection(), and getSimVertexCollection().
|
private |
Definition at line 93 of file JetMatchingTools.h.
Referenced by getGenParticlesCollection().
|
private |
Definition at line 85 of file JetMatchingTools.h.
Referenced by getHBHERecHitCollection().
|
private |
Definition at line 90 of file JetMatchingTools.h.
Referenced by getHcalSimHitCollection().
|
private |
Definition at line 87 of file JetMatchingTools.h.
Referenced by getHFRecHitCollection().
|
private |
Definition at line 86 of file JetMatchingTools.h.
Referenced by getHORecHitCollection().
|
private |
Definition at line 91 of file JetMatchingTools.h.
Referenced by getSimTrackCollection().
|
private |
Definition at line 92 of file JetMatchingTools.h.
Referenced by getSimVertexCollection().