Main Page
Namespaces
Classes
Package Documentation
MuonAnalysis
MomentumScaleCalibration
plugins
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"
12
#include "
SimDataFormats/GeneratorProducts/interface/HepMCProduct.h
"
13
#include "
DataFormats/HepMCCandidate/interface/GenParticleFwd.h
"
14
#include "
SimDataFormats/Track/interface/SimTrackContainer.h
"
15
#include "
Histograms.h
"
16
#include "
MuonAnalysis/MomentumScaleCalibration/interface/Muon.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
27
class
MuScleFitPlotter
{
28
public
:
29
// Constructor
30
// -----------
31
MuScleFitPlotter
(
std::string
);
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_);
41
void
fillSim(
edm::Handle<edm::SimTrackContainer>
simTracks
);
42
void
fillGenSim(
edm::Handle<edm::HepMCProduct>
evtMC,
edm::Handle<edm::SimTrackContainer>
simTracks);
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
reco::GenParticleCollection
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
Definition:
GenParticleFwd.h:13
MuScleFitPlotter::mapHisto
std::map< std::string, Histograms * > mapHisto
Definition:
MuScleFitPlotter.h:61
Histograms.h
Muon.h
ParameterSet
Definition:
Functions.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::Handle< edm::SimTrackContainer >
MuScleFitPlotter
Definition:
MuScleFitPlotter.h:27
EventSetup
TrackCandidateProducer_cfi.simTracks
simTracks
Definition:
TrackCandidateProducer_cfi.py:15
GenParticleFwd.h
MuScleFitPlotter::outputFile
TFile * outputFile
Definition:
MuScleFitPlotter.h:62
HepMCProduct.h
Event
SimTrackContainer.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::HepMCProduct
Definition:
HepMCProduct.h:18
PDWG_BPHSkim_cff.muons
muons
Definition:
PDWG_BPHSkim_cff.py:47
genParticles2HepMC_cfi.genParticles
genParticles
Definition:
genParticles2HepMC_cfi.py:4
MuScleFitPlotter::debug
bool debug
Definition:
MuScleFitPlotter.h:55
Generated for CMSSW Reference Manual by
1.8.11