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 
11 // #include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h"
15 #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  void fillRec(std::vector<MuScleFitMuon>& muons);
46 
47  // Root tree specific
48  void fillTreeRec( const std::vector<std::pair<reco::Particle::LorentzVector, reco::Particle::LorentzVector> > & savedPairs );
49  void fillTreeGen( const std::vector<std::pair<reco::Particle::LorentzVector, reco::Particle::LorentzVector> > & genPairs );
50 
51  void fillHistoMap();
52  void writeHistoMap();
53 
54  bool debug;
55 
56  protected:
57 
58  private:
59  // The map of histograms
60  // ---------------------
61  std::map<std::string, Histograms*> mapHisto;
62  TFile * outputFile;
63 
64 };
65 #endif
66 
67 
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)
Definition: Event.h:16
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)