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
}
23
24
class
TFile;
25
class
LeafCandidate;
26
27
class
MuScleFitPlotter
{
28
29
public
:
30
// Constructor
31
// -----------
32
MuScleFitPlotter
(
std::string
);
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_);
42
void
fillSim(
edm::Handle<edm::SimTrackContainer>
simTracks
);
43
void
fillGenSim(
edm::Handle<edm::HepMCProduct>
evtMC,
edm::Handle<edm::SimTrackContainer>
simTracks);
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
reco::GenParticleCollection
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
Definition:
GenParticleFwd.h:10
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:255
edm::Handle< edm::SimTrackContainer >
tkConvValidator_cfi.simTracks
simTracks
Definition:
tkConvValidator_cfi.py:137
MuScleFitPlotter
Definition:
MuScleFitPlotter.h:27
EventSetup
GenParticleFwd.h
MuScleFitPlotter::outputFile
TFile * outputFile
Definition:
MuScleFitPlotter.h:62
GenHFHadronMatcher_cfi.genParticles
genParticles
Definition:
GenHFHadronMatcher_cfi.py:4
HepMCProduct.h
nano_cff.muons
muons
Definition:
nano_cff.py:27
Event
SimTrackContainer.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::HepMCProduct
Definition:
HepMCProduct.h:18
MuScleFitPlotter::debug
bool debug
Definition:
MuScleFitPlotter.h:54
Generated for CMSSW Reference Manual by
1.8.11