CMS 3D CMS Logo

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