CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
MuScleFitPlotter Class Reference

#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< 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
 

Detailed Description

Plotter of the muon info (sim,gen,rec)

Author
C.Mariotti, S.Bolognesi - INFN Torino / T.Dorigo - INFN Padova revised S. Casasso, E. Migliore - UniTo & INFN Torino

Definition at line 27 of file MuScleFitPlotter.h.

Constructor & Destructor Documentation

MuScleFitPlotter::MuScleFitPlotter ( std::string  theGenInfoRootFileName)

Definition at line 35 of file MuScleFitPlotter.cc.

MuScleFitPlotter::~MuScleFitPlotter ( )
virtual

Definition at line 40 of file MuScleFitPlotter.cc.

Member Function Documentation

void MuScleFitPlotter::fillGen ( const reco::GenParticleCollection genParticles,
bool  PATmuons = false 
)

Definition at line 48 of file MuScleFitPlotter.cc.

void MuScleFitPlotter::fillGen ( const edm::HepMCProduct evtMC,
bool  sherpaFlag_ 
)

Definition at line 122 of file MuScleFitPlotter.cc.

void MuScleFitPlotter::fillGenSim ( edm::Handle< edm::HepMCProduct evtMC,
edm::Handle< edm::SimTrackContainer simTracks 
)

Definition at line 277 of file MuScleFitPlotter.cc.

void MuScleFitPlotter::fillHistoMap ( )

Definition at line 366 of file MuScleFitPlotter.cc.

void MuScleFitPlotter::fillRec ( std::vector< MuScleFitMuon > &  muons)

Used when running on the root tree containing preselected muon pairs.

Definition at line 307 of file MuScleFitPlotter.cc.

void MuScleFitPlotter::fillSim ( edm::Handle< edm::SimTrackContainer simTracks)

Definition at line 235 of file MuScleFitPlotter.cc.

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 343 of file MuScleFitPlotter.cc.

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 324 of file MuScleFitPlotter.cc.

void MuScleFitPlotter::writeHistoMap ( )

Definition at line 407 of file MuScleFitPlotter.cc.

Member Data Documentation

bool MuScleFitPlotter::debug

Definition at line 54 of file MuScleFitPlotter.h.

std::map<std::string, Histograms*> MuScleFitPlotter::mapHisto
private

Definition at line 61 of file MuScleFitPlotter.h.

TFile* MuScleFitPlotter::outputFile
private

Definition at line 62 of file MuScleFitPlotter.h.