#include <MuScleFitPlotter.h>
Public Member Functions | |
void | fillGen (const edm::HepMCProduct &evtMC, bool sherpaFlag_) |
void | fillGen (const reco::GenParticleCollection &genParticles, bool=false) |
void | fillGenSim (edm::Handle< edm::HepMCProduct > evtMC, edm::Handle< edm::SimTrackContainer > simTracks) |
void | fillHistoMap () |
void | fillRec (std::vector< MuScleFitMuon > &muons) |
Used when running on the root tree containing preselected muon pairs. More... | |
void | fillSim (edm::Handle< edm::SimTrackContainer > simTracks) |
void | fillTreeGen (const std::vector< std::pair< reco::Particle::LorentzVector, reco::Particle::LorentzVector > > &genPairs) |
void | fillTreeRec (const std::vector< std::pair< reco::Particle::LorentzVector, reco::Particle::LorentzVector > > &savedPairs) |
Used when running on the root tree containing preselected muon pairs. More... | |
MuScleFitPlotter (std::string) | |
void | writeHistoMap () |
virtual | ~MuScleFitPlotter () |
Public Attributes | |
bool | debug |
Private Attributes | |
std::map< std::string, Histograms * > | mapHisto |
TFile * | outputFile |
Plotter of the muon info (sim,gen,rec)
Definition at line 27 of file MuScleFitPlotter.h.
MuScleFitPlotter::MuScleFitPlotter | ( | std::string | theGenInfoRootFileName | ) |
Definition at line 35 of file MuScleFitPlotter.cc.
References fillHistoMap(), and outputFile.
|
virtual |
Definition at line 40 of file MuScleFitPlotter.cc.
References outputFile, and writeHistoMap().
void MuScleFitPlotter::fillGen | ( | const edm::HepMCProduct & | evtMC, |
bool | sherpaFlag_ | ||
) |
Definition at line 127 of file MuScleFitPlotter.cc.
References funct::abs(), edm::HepMCProduct::GetEvent(), mapHisto, EgammaValidation_cff::pdgId, and mps_update::status.
void MuScleFitPlotter::fillGen | ( | const reco::GenParticleCollection & | genParticles, |
bool | PATmuons = false |
||
) |
Definition at line 48 of file MuScleFitPlotter.cc.
References funct::abs(), gather_cfg::cout, genParticles2HepMC_cfi::genParticles, mapHisto, MuScleFit_cfi::PATmuons, EgammaValidation_cff::pdgId, and mps_update::status.
void MuScleFitPlotter::fillGenSim | ( | edm::Handle< edm::HepMCProduct > | evtMC, |
edm::Handle< edm::SimTrackContainer > | simTracks | ||
) |
Definition at line 290 of file MuScleFitPlotter.cc.
References MuScleFitUtils::findSimMuFromRes(), mapHisto, and TrackCandidateProducer_cfi::simTracks.
void MuScleFitPlotter::fillHistoMap | ( | ) |
Definition at line 378 of file MuScleFitPlotter.cc.
References mapHisto.
Referenced by MuScleFitPlotter().
void MuScleFitPlotter::fillRec | ( | std::vector< MuScleFitMuon > & | muons | ) |
Used when running on the root tree containing preselected muon pairs.
Definition at line 319 of file MuScleFitPlotter.cc.
References mapHisto, and PDWG_BPHSkim_cff::muons.
void MuScleFitPlotter::fillSim | ( | edm::Handle< edm::SimTrackContainer > | simTracks | ) |
Definition at line 245 of file MuScleFitPlotter.cc.
References funct::abs(), MuScleFitUtils::findBestSimuRes(), createfilelist::int, mapHisto, cscDigiValidation_cfi::simTrack, TrackCandidateProducer_cfi::simTracks, and BeamSpotPI::Z.
void MuScleFitPlotter::fillTreeGen | ( | const std::vector< std::pair< reco::Particle::LorentzVector, reco::Particle::LorentzVector > > & | genPairs | ) |
Used when running on the root tree and there is genInfo.
ATTENTION: since we do not have any id information when reading from the root tree, we always fill the Z histograms by default.
Definition at line 354 of file MuScleFitPlotter.cc.
References mapHisto.
Referenced by MuScleFit::selectMuons().
void MuScleFitPlotter::fillTreeRec | ( | const std::vector< std::pair< reco::Particle::LorentzVector, reco::Particle::LorentzVector > > & | savedPairs | ) |
Used when running on the root tree containing preselected muon pairs.
Definition at line 334 of file MuScleFitPlotter.cc.
References mapHisto.
Referenced by MuScleFit::selectMuons().
void MuScleFitPlotter::writeHistoMap | ( | ) |
Definition at line 417 of file MuScleFitPlotter.cc.
References timingPdfMaker::histo, mapHisto, and outputFile.
Referenced by ~MuScleFitPlotter().
bool MuScleFitPlotter::debug |
Definition at line 55 of file MuScleFitPlotter.h.
Referenced by MuScleFit::beginOfJobInConstructor(), runTauIdMVA.TauIDEmbedder::loadMVA_WPs_run2_2017(), and runTauIdMVA.TauIDEmbedder::runTauID().
|
private |
Definition at line 61 of file MuScleFitPlotter.h.
Referenced by fillGen(), fillGenSim(), fillHistoMap(), fillRec(), fillSim(), fillTreeGen(), fillTreeRec(), and writeHistoMap().
|
private |
Definition at line 62 of file MuScleFitPlotter.h.
Referenced by MuScleFitPlotter(), writeHistoMap(), and ~MuScleFitPlotter().