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