CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuScleFitPlotter.h
Go to the documentation of this file.
1 #ifndef MuScleFitPlotter_H
2 #define MuScleFitPlotter_H
3 
10 // #include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h"
14 #include "Histograms.h"
15 
16 namespace edm {
17  class ParameterSet;
18  class Event;
19  class EventSetup;
20 }
21 
22 class TFile;
23 class LeafCandidate;
24 
26 
27  public:
28  // Constructor
29  // -----------
31 
32  // Destructor
33  // ----------
34  virtual ~MuScleFitPlotter();
35 
36  // Operations
37  // ----------
38  void fillGen(const reco::GenParticleCollection* genParticles, bool=false);
39  void fillGen(const edm::HepMCProduct* evtMC, bool sherpaFlag_);
42  void fillRec(std::vector<reco::LeafCandidate>& muons);
43 
44  // Root tree specific
45  void fillTreeRec( const std::vector<std::pair<reco::Particle::LorentzVector, reco::Particle::LorentzVector> > & savedPairs );
46  void fillTreeGen( const std::vector<std::pair<reco::Particle::LorentzVector, reco::Particle::LorentzVector> > & genPairs );
47 
48  void fillHistoMap();
49  void writeHistoMap();
50 
51  bool debug;
52 
53  protected:
54 
55  private:
56  // The map of histograms
57  // ---------------------
58  std::map<std::string, Histograms*> mapHisto;
59  TFile * outputFile;
60 
61 };
62 #endif
63 
64 
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
std::map< std::string, Histograms * > mapHisto
void fillGenSim(edm::Handle< edm::HepMCProduct > evtMC, edm::Handle< edm::SimTrackContainer > simTracks)
void fillRec(std::vector< reco::LeafCandidate > &muons)
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.
virtual ~MuScleFitPlotter()
MuScleFitPlotter(std::string)
void fillSim(edm::Handle< edm::SimTrackContainer > simTracks)
void fillTreeGen(const std::vector< std::pair< reco::Particle::LorentzVector, reco::Particle::LorentzVector > > &genPairs)
tuple muons
Definition: patZpeak.py:38
void fillGen(const reco::GenParticleCollection *genParticles, bool=false)