#include <MuScleFitPlotter.h>
Public Member Functions | |
void | fillGen (const reco::GenParticleCollection *genParticles, bool=false) |
void | fillGen (const edm::HepMCProduct *evtMC, bool sherpaFlag_) |
void | fillGenSim (edm::Handle< edm::HepMCProduct > evtMC, edm::Handle< edm::SimTrackContainer > simTracks) |
void | fillHistoMap () |
void | fillRec (std::vector< reco::LeafCandidate > &muons) |
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 | ) |
|
virtual |
void MuScleFitPlotter::fillGen | ( | const reco::GenParticleCollection * | genParticles, |
bool | PATmuons = false |
||
) |
Definition at line 49 of file MuScleFitPlotter.cc.
References abs, gather_cfg::cout, mapHisto, benchmark_cfg::pdgId, and ntuplemaker::status.
Referenced by MuScleFitMuonSelector::selectGeneratedMuons(), and MuScleFitMuonSelector::selectGenSimMuons().
void MuScleFitPlotter::fillGen | ( | const edm::HepMCProduct * | evtMC, |
bool | sherpaFlag_ | ||
) |
Definition at line 123 of file MuScleFitPlotter.cc.
References abs, edm::HepMCProduct::GetEvent(), mapHisto, benchmark_cfg::pdgId, and ntuplemaker::status.
void MuScleFitPlotter::fillGenSim | ( | edm::Handle< edm::HepMCProduct > | evtMC, |
edm::Handle< edm::SimTrackContainer > | simTracks | ||
) |
Definition at line 278 of file MuScleFitPlotter.cc.
References MuScleFitUtils::findSimMuFromRes(), and mapHisto.
Referenced by MuScleFitMuonSelector::selectSimulatedMuons().
void MuScleFitPlotter::fillHistoMap | ( | ) |
Definition at line 350 of file MuScleFitPlotter.cc.
References mapHisto.
Referenced by MuScleFitPlotter().
void MuScleFitPlotter::fillRec | ( | std::vector< reco::LeafCandidate > & | muons | ) |
Definition at line 292 of file MuScleFitPlotter.cc.
References mapHisto.
Referenced by MuScleFitMuonSelector::selectMuons().
void MuScleFitPlotter::fillSim | ( | edm::Handle< edm::SimTrackContainer > | simTracks | ) |
Definition at line 236 of file MuScleFitPlotter.cc.
References MuScleFitUtils::findBestSimuRes(), mapHisto, and Gflash::Z.
Referenced by MuScleFitMuonSelector::selectSimulatedMuons().
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 327 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 308 of file MuScleFitPlotter.cc.
References mapHisto.
Referenced by MuScleFit::selectMuons().
void MuScleFitPlotter::writeHistoMap | ( | ) |
Definition at line 391 of file MuScleFitPlotter.cc.
References timingPdfMaker::histo, mapHisto, and outputFile.
Referenced by ~MuScleFitPlotter().
bool MuScleFitPlotter::debug |
Definition at line 53 of file MuScleFitPlotter.h.
Referenced by MuScleFit::beginOfJobInConstructor().
|
private |
Definition at line 60 of file MuScleFitPlotter.h.
Referenced by fillGen(), fillGenSim(), fillHistoMap(), fillRec(), fillSim(), fillTreeGen(), fillTreeRec(), and writeHistoMap().
|
private |
Definition at line 61 of file MuScleFitPlotter.h.
Referenced by MuScleFitPlotter(), writeHistoMap(), and ~MuScleFitPlotter().