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
PDWG_BPHSkim_cff.muons
muons
Definition: PDWG_BPHSkim_cff.py:47
genParticles2HepMC_cfi.genParticles
genParticles
Definition: genParticles2HepMC_cfi.py:4
MuScleFitPlotter::fillHistoMap
void fillHistoMap()
Definition: MuScleFitPlotter.cc:378
edm
HLT enums.
Definition: AlignableModifier.h:19
MuScleFitPlotter::fillTreeRec
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.
Definition: MuScleFitPlotter.cc:334
reco::GenParticleCollection
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
Definition: GenParticleFwd.h:13
TrackCandidateProducer_cfi.simTracks
simTracks
Definition: TrackCandidateProducer_cfi.py:15
MuScleFitPlotter::fillGenSim
void fillGenSim(edm::Handle< edm::HepMCProduct > evtMC, edm::Handle< edm::SimTrackContainer > simTracks)
Definition: MuScleFitPlotter.cc:290
edm::Handle< edm::SimTrackContainer >
GenParticleFwd.h
MuScleFitPlotter::mapHisto
std::map< std::string, Histograms * > mapHisto
Definition: MuScleFitPlotter.h:61
MuScleFitPlotter::fillTreeGen
void fillTreeGen(const std::vector< std::pair< reco::Particle::LorentzVector, reco::Particle::LorentzVector > > &genPairs)
Definition: MuScleFitPlotter.cc:354
MuScleFitPlotter::fillGen
void fillGen(const reco::GenParticleCollection &genParticles, bool=false)
Definition: MuScleFitPlotter.cc:48
Event
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Histograms.h
ParameterSet
Definition: Functions.h:16
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
MuScleFitPlotter::fillSim
void fillSim(edm::Handle< edm::SimTrackContainer > simTracks)
Definition: MuScleFitPlotter.cc:245
MuScleFitPlotter::fillRec
void fillRec(std::vector< MuScleFitMuon > &muons)
Used when running on the root tree containing preselected muon pairs.
Definition: MuScleFitPlotter.cc:319
MuScleFitPlotter::debug
bool debug
Definition: MuScleFitPlotter.h:55
MuScleFitPlotter
Definition: MuScleFitPlotter.h:27
MuScleFitPlotter::outputFile
TFile * outputFile
Definition: MuScleFitPlotter.h:62
EventSetup
edm::HepMCProduct
Definition: HepMCProduct.h:21
HepMCProduct.h
SimTrackContainer.h
MuScleFitPlotter::~MuScleFitPlotter
virtual ~MuScleFitPlotter()
Definition: MuScleFitPlotter.cc:40
MuScleFitPlotter::MuScleFitPlotter
MuScleFitPlotter(std::string)
Definition: MuScleFitPlotter.cc:35
MuScleFitPlotter::writeHistoMap
void writeHistoMap()
Definition: MuScleFitPlotter.cc:417
Muon.h