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 
12 // #include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h"
16 #include "Histograms.h"
17 
18 namespace edm {
19  class ParameterSet;
20  class Event;
21  class EventSetup;
22 }
23 
24 class TFile;
25 class LeafCandidate;
26 
28 
29  public:
30  // Constructor
31  // -----------
33 
34  // Destructor
35  // ----------
36  virtual ~MuScleFitPlotter();
37 
38  // Operations
39  // ----------
40  void fillGen(const reco::GenParticleCollection* genParticles, bool=false);
41  void fillGen(const edm::HepMCProduct* evtMC, bool sherpaFlag_);
44  void fillRec(std::vector<reco::LeafCandidate>& muons);
45 
46  // Root tree specific
47  void fillTreeRec( const std::vector<std::pair<reco::Particle::LorentzVector, reco::Particle::LorentzVector> > & savedPairs );
48  void fillTreeGen( const std::vector<std::pair<reco::Particle::LorentzVector, reco::Particle::LorentzVector> > & genPairs );
49 
50  void fillHistoMap();
51  void writeHistoMap();
52 
53  bool debug;
54 
55  protected:
56 
57  private:
58  // The map of histograms
59  // ---------------------
60  std::map<std::string, Histograms*> mapHisto;
61  TFile * outputFile;
62 
63 };
64 #endif
65 
66 
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)