#include <METManager.h>
Public Member Functions | |
void | addGenBenchmark (std::string GenBenchmarkName) |
setup a genericBenchmark More... | |
void | coutTailEvents (const int entry, const double DeltaMETcut, const double DeltaPhicut, const double MET1cut) const |
cout events in tail of Delta(MET1,MET2) More... | |
void | FillHisto (std::string) |
reco::MET | getMET1 () |
reco::MET | getMET2 () |
METManager (std::string outmetfilename) | |
void | propagateJECtoMET1 (const std::vector< reco::CaloJet > caloJets, const std::vector< reco::CaloJet > corr_caloJets) |
propagate the Jet Energy Corrections to the MET More... | |
void | propagateJECtoMET2 (const std::vector< reco::CaloJet > caloJets, const std::vector< reco::CaloJet > corr_caloJets) |
void | SetIgnoreParticlesIDs (const std::vector< unsigned int > *) |
void | setMET1 (const reco::MET *) |
void | setMET1 (const reco::GenParticleCollection *) |
set METX with the GenMet computed from the GenParticleCollection with computeGenMET(...) More... | |
void | setMET1 (const reco::PFCandidateCollection &) |
set METX with the pfMet recomputed from the pfCandidates_ with recomputePFMET(...) More... | |
void | setMET2 (const reco::MET *) |
void | setMET2 (const reco::GenParticleCollection *) |
void | setMET2 (const reco::PFCandidateCollection &) |
void | SetSpecificIdCut (const std::vector< unsigned int > *, const std::vector< double > *) |
void | write () |
Write the output root file of the genericBenchmark. More... | |
Private Member Functions | |
reco::MET | computeGenMET (const reco::GenParticleCollection *) const |
private functions More... | |
reco::MET | propagateJEC (const reco::MET &, const std::vector< reco::CaloJet > caloJets, const std::vector< reco::CaloJet > corr_caloJets) const |
reco::MET | recomputePFMET (const reco::PFCandidateCollection &) const |
Private Attributes | |
std::map< std::string, GenericBenchmark > | GenBenchmarkMap_ |
map of GenericBenchmarks, the key is his name More... | |
reco::MET | MET1_ |
data members More... | |
reco::MET | MET2_ |
TFile * | outfile_ |
std::string | outmetfilename_ |
std::vector< double > | trueMetSpecificEtaCut_ |
std::vector< unsigned int > | trueMetSpecificIdCut_ |
std::vector< unsigned int > | vIgnoreParticlesIDs_ |
Definition at line 15 of file METManager.h.
METManager::METManager | ( | std::string | outmetfilename | ) |
Definition at line 12 of file METManager.cc.
References gather_cfg::cout, outfile_, and outmetfilename_.
void METManager::addGenBenchmark | ( | std::string | GenBenchmarkName | ) |
setup a genericBenchmark
Definition at line 145 of file METManager.cc.
References GenBenchmarkMap_, NULL, outfile_, outmetfilename_, getHLTPrescaleColumns::path, GenericBenchmark::setfile(), GenericBenchmark::setup(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
private functions
Definition at line 98 of file METManager.cc.
References abs, funct::cos(), gather_cfg::cout, eta(), i, p4, benchmark_cfg::pdgId, phi, funct::sin(), mathSSE::sqrt(), trueMetSpecificEtaCut_, trueMetSpecificIdCut_, and vIgnoreParticlesIDs_.
Referenced by setMET1(), and setMET2().
void METManager::coutTailEvents | ( | const int | entry, |
const double | DeltaMETcut, | ||
const double | DeltaPhicut, | ||
const double | MET1cut | ||
) | const |
cout events in tail of Delta(MET1,MET2)
Definition at line 240 of file METManager.cc.
References gather_cfg::cout, SiPixelRawToDigiRegional_cfi::deltaPhi, PFBenchmarkAlgo::deltaPhi(), MET1_, MET2_, reco::LeafCandidate::phi(), and reco::LeafCandidate::pt().
void METManager::FillHisto | ( | std::string | Name | ) |
Fill the genericBenchmark histograms string = name of the folder in the root file (=name of the GenBenchmark)
Definition at line 23 of file METManager.cc.
References gather_cfg::cout, GenBenchmarkMap_, i, MET1_, MET2_, outfile_, outmetfilename_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
|
inline |
|
private |
Definition at line 274 of file METManager.cc.
References gather_cfg::cout, p4, reco::LeafCandidate::px(), reco::LeafCandidate::py(), mathSSE::sqrt(), and reco::MET::sumEt().
Referenced by propagateJECtoMET1(), and propagateJECtoMET2().
void METManager::propagateJECtoMET1 | ( | const std::vector< reco::CaloJet > | caloJets, |
const std::vector< reco::CaloJet > | corr_caloJets | ||
) |
propagate the Jet Energy Corrections to the MET
Definition at line 262 of file METManager.cc.
References MET1_, and propagateJEC().
void METManager::propagateJECtoMET2 | ( | const std::vector< reco::CaloJet > | caloJets, |
const std::vector< reco::CaloJet > | corr_caloJets | ||
) |
Definition at line 268 of file METManager.cc.
References MET2_, and propagateJEC().
|
private |
Definition at line 181 of file METManager.cc.
References SpecificPFMETData::ChargedEMFraction, SpecificPFMETData::ChargedHadFraction, funct::cos(), alignCSCRings::e, CaloMET_cfi::met, SpecificPFMETData::MuonFraction, SpecificPFMETData::NeutralEMFraction, SpecificPFMETData::NeutralHadFraction, p4, phi, funct::sin(), timingPdfMaker::specific, mathSSE::sqrt(), theta(), SpecificPFMETData::Type6Fraction, and SpecificPFMETData::Type7Fraction.
Referenced by setMET1(), and setMET2().
void METManager::SetIgnoreParticlesIDs | ( | const std::vector< unsigned int > * | vIgnoreParticlesIDs | ) |
Definition at line 87 of file METManager.cc.
References vIgnoreParticlesIDs_.
void METManager::setMET1 | ( | const reco::MET * | met | ) |
void METManager::setMET1 | ( | const reco::GenParticleCollection * | genParticleList | ) |
set METX with the GenMet computed from the GenParticleCollection with computeGenMET(...)
Definition at line 67 of file METManager.cc.
References computeGenMET(), and MET1_.
void METManager::setMET1 | ( | const reco::PFCandidateCollection & | pfCandidates | ) |
set METX with the pfMet recomputed from the pfCandidates_ with recomputePFMET(...)
Definition at line 77 of file METManager.cc.
References MET1_, and recomputePFMET().
void METManager::setMET2 | ( | const reco::MET * | met | ) |
void METManager::setMET2 | ( | const reco::GenParticleCollection * | genParticleList | ) |
Definition at line 72 of file METManager.cc.
References computeGenMET(), and MET2_.
void METManager::setMET2 | ( | const reco::PFCandidateCollection & | pfCandidates | ) |
Definition at line 82 of file METManager.cc.
References MET2_, and recomputePFMET().
void METManager::SetSpecificIdCut | ( | const std::vector< unsigned int > * | Id, |
const std::vector< double > * | Eta | ||
) |
Definition at line 92 of file METManager.cc.
References trueMetSpecificEtaCut_, and trueMetSpecificIdCut_.
void METManager::write | ( | void | ) |
Write the output root file of the genericBenchmark.
Definition at line 48 of file METManager.cc.
References GenBenchmarkMap_, i, and outmetfilename_.
|
private |
map of GenericBenchmarks, the key is his name
Definition at line 72 of file METManager.h.
Referenced by addGenBenchmark(), FillHisto(), and write().
|
private |
data members
Definition at line 69 of file METManager.h.
Referenced by coutTailEvents(), FillHisto(), getMET1(), propagateJECtoMET1(), and setMET1().
|
private |
Definition at line 70 of file METManager.h.
Referenced by coutTailEvents(), FillHisto(), getMET2(), propagateJECtoMET2(), and setMET2().
|
private |
Definition at line 74 of file METManager.h.
Referenced by addGenBenchmark(), FillHisto(), and METManager().
|
private |
Definition at line 73 of file METManager.h.
Referenced by addGenBenchmark(), FillHisto(), METManager(), and write().
|
private |
Definition at line 77 of file METManager.h.
Referenced by computeGenMET(), and SetSpecificIdCut().
|
private |
Definition at line 76 of file METManager.h.
Referenced by computeGenMET(), and SetSpecificIdCut().
|
private |
Definition at line 75 of file METManager.h.
Referenced by computeGenMET(), and SetIgnoreParticlesIDs().