CMS 3D CMS Logo

VertexHistogramMaker.h
Go to the documentation of this file.
1 #ifndef Validation_RecoVertex_VertexHistogramMaker_H
2 #define Validation_RecoVertex_VertexHistogramMaker_H
3 
4 #include <string>
11 
12 class TH1F;
13 class TH2F;
14 class TProfile;
15 class TFileDirectory;
16 
17 namespace edm {
18  class ConsumesCollector;
19 }
20 
21 class LumiDetails;
22 
24 public:
27 
29 
30  void book(const std::string dirname = "");
31  void beginRun(const edm::Run& iRun);
32  void fill(const edm::Event& iEvent, const reco::VertexCollection& vertices, const double weight = 1.);
33 
34 private:
35  void fill(const unsigned int orbit,
36  const int bx,
37  const float bxlumi,
39  const double weight = 1.);
40 
42  const unsigned int m_maxLS;
43  const double m_weightThreshold;
44  const bool m_trueOnly;
45  const bool m_runHisto;
46  const bool m_runHistoProfile;
47  const bool m_runHistoBXProfile;
49  const bool m_runHisto2D;
50  const bool m_bsConstrained;
53 
56  TH1F* m_hnvtx;
57  TH1F* m_hntruevtx;
58  TProfile* m_hntruevtxvslumi;
60  TH1F* m_hntracks;
61  TH1F* m_hsqsumptsq;
64  TH1F* m_hndof;
65  TH1F* m_haveweight;
67  TProfile* m_hndofvsvtxz;
68  TProfile* m_hntracksvsvtxz;
69  TProfile* m_haveweightvsvtxz;
71  TH1F* m_hweights;
72  TH1F* m_hvtxx;
73  TH1F* m_hvtxy;
74  TH1F* m_hvtxz;
75  TH1F** m_hvtxxrun;
76  TH1F** m_hvtxyrun;
77  TH1F** m_hvtxzrun;
78  TProfile** m_hvtxxvsorbrun;
79  TProfile** m_hvtxyvsorbrun;
80  TProfile** m_hvtxzvsorbrun;
81  TProfile** m_hnvtxvsorbrun;
82  TProfile2D** m_hnvtxvsbxvsorbrun;
84 
85  TProfile** m_hvtxxvsbxrun;
86  TProfile** m_hvtxyvsbxrun;
87  TProfile** m_hvtxzvsbxrun;
88  TProfile** m_hnvtxvsbxrun;
89 
90  TProfile2D** m_hnvtxvsbxvslumirun;
91 
95 };
96 
97 #endif // Validation_RecoVertex_VertexHistogramMaker_H
VertexHistogramMaker::m_hvtxyvsbxrun
TProfile ** m_hvtxyvsbxrun
Definition: VertexHistogramMaker.h:86
VertexHistogramMaker::m_hntracksvsvtxz
TProfile * m_hntracksvsvtxz
Definition: VertexHistogramMaker.h:68
VertexHistogramMaker::m_hvtxyrun
TH1F ** m_hvtxyrun
Definition: VertexHistogramMaker.h:76
VertexHistogramMaker::m_fhm
RunHistogramManager m_fhm
Definition: VertexHistogramMaker.h:55
VertexHistogramMaker::fill
void fill(const edm::Event &iEvent, const reco::VertexCollection &vertices, const double weight=1.)
Definition: VertexHistogramMaker.cc:440
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< LumiDetails >
edm
HLT enums.
Definition: AlignableModifier.h:19
VertexHistogramMaker::m_currdir
TFileDirectory * m_currdir
Definition: VertexHistogramMaker.h:41
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
VertexHistogramMaker::m_runHistoProfile
const bool m_runHistoProfile
Definition: VertexHistogramMaker.h:46
VertexHistogramMaker::m_hvtxzrun
TH1F ** m_hvtxzrun
Definition: VertexHistogramMaker.h:77
VertexHistogramMaker::m_runHisto
const bool m_runHisto
Definition: VertexHistogramMaker.h:45
LumiDetails
Definition: LumiDetails.h:20
VertexHistogramMaker::m_runHisto2D
const bool m_runHisto2D
Definition: VertexHistogramMaker.h:49
VertexHistogramMaker::m_hnvtxvsbxvsorbrun
TProfile2D ** m_hnvtxvsbxvsorbrun
Definition: VertexHistogramMaker.h:82
TFileDirectory
Definition: TFileDirectory.h:24
VertexHistogramMaker::m_hvtxxrun
TH1F ** m_hvtxxrun
Definition: VertexHistogramMaker.h:75
VertexHistogramMaker::m_hnvtxvsbxvslumirun
TProfile2D ** m_hnvtxvsbxvslumirun
Definition: VertexHistogramMaker.h:90
VertexHistogramMaker::m_hnvtx
TH1F * m_hnvtx
Definition: VertexHistogramMaker.h:56
AlignmentTracksFromVertexSelector_cfi.vertices
vertices
Definition: AlignmentTracksFromVertexSelector_cfi.py:5
VertexHistogramMaker::m_bsConstrained
const bool m_bsConstrained
Definition: VertexHistogramMaker.h:50
VertexHistogramMaker::m_hnheavytracks
TH1F * m_hnheavytracks
Definition: VertexHistogramMaker.h:63
BTVHLTOfflineSource_cfi.dirname
dirname
Definition: BTVHLTOfflineSource_cfi.py:7
VertexHistogramMaker::m_hvtxyvsorbrun
TProfile ** m_hvtxyvsorbrun
Definition: VertexHistogramMaker.h:79
VertexHistogramMaker::m_hvtxzvsorbrun
TProfile ** m_hvtxzvsorbrun
Definition: VertexHistogramMaker.h:80
VertexHistogramMaker::m_hnvtxvsbxrun
TProfile ** m_hnvtxvsbxrun
Definition: VertexHistogramMaker.h:88
VertexHistogramMaker::m_rhm
RunHistogramManager m_rhm
Definition: VertexHistogramMaker.h:54
RunHistogramManager
Definition: RunHistogramManager.h:210
RunHistogramManager.h
VertexHistogramMaker::m_hvtxxvsorbrun
TProfile ** m_hvtxxvsorbrun
Definition: VertexHistogramMaker.h:78
VertexHistogramMaker::m_hndof
TH1F * m_hndof
Definition: VertexHistogramMaker.h:64
EDGetToken.h
VertexHistogramMaker
Definition: VertexHistogramMaker.h:23
VertexHistogramMaker::m_hvtxzvsbxrun
TProfile ** m_hvtxzvsbxrun
Definition: VertexHistogramMaker.h:87
VertexHistogramMaker::m_haveweightvsvtxz
TProfile * m_haveweightvsvtxz
Definition: VertexHistogramMaker.h:69
VertexHistogramMaker::m_hndofvstracks
TH2F * m_hndofvstracks
Definition: VertexHistogramMaker.h:66
VertexHistogramMaker::m_hnvtxvsorbrun2D
TH2F ** m_hnvtxvsorbrun2D
Definition: VertexHistogramMaker.h:83
VertexHistogramMaker::m_lumiDetailsToken
edm::EDGetTokenT< LumiDetails > m_lumiDetailsToken
Definition: VertexHistogramMaker.h:52
edm::ParameterSet
Definition: ParameterSet.h:47
VertexHistogramMaker::m_hvtxx
TH1F * m_hvtxx
Definition: VertexHistogramMaker.h:72
VertexHistogramMaker::m_hweights
TH1F * m_hweights
Definition: VertexHistogramMaker.h:71
VertexHistogramMaker::m_hndofvsvtxz
TProfile * m_hndofvsvtxz
Definition: VertexHistogramMaker.h:67
VertexHistogramMaker::m_haveweight
TH1F * m_haveweight
Definition: VertexHistogramMaker.h:65
VertexHistogramMaker::m_hvtxyvsbx2drun
TH2F ** m_hvtxyvsbx2drun
Definition: VertexHistogramMaker.h:93
VertexHistogramMaker::m_histoParameters
const edm::ParameterSet m_histoParameters
Definition: VertexHistogramMaker.h:51
iEvent
int iEvent
Definition: GenABIO.cc:224
VertexHistogramMaker::beginRun
void beginRun(const edm::Run &iRun)
Definition: VertexHistogramMaker.cc:257
VertexHistogramMaker::m_hvtxy
TH1F * m_hvtxy
Definition: VertexHistogramMaker.h:73
VertexHistogramMaker::m_hsqsumptsq
TH1F * m_hsqsumptsq
Definition: VertexHistogramMaker.h:61
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
VertexHistogramMaker::m_hnvtxvsorbrun
TProfile ** m_hnvtxvsorbrun
Definition: VertexHistogramMaker.h:81
VertexHistogramMaker::m_hntruevtx
TH1F * m_hntruevtx
Definition: VertexHistogramMaker.h:57
VertexFwd.h
VertexHistogramMaker::m_hntracks
TH1F * m_hntracks
Definition: VertexHistogramMaker.h:60
VertexHistogramMaker::~VertexHistogramMaker
~VertexHistogramMaker()
Definition: VertexHistogramMaker.cc:46
VertexHistogramMaker::m_runHistoBXProfile
const bool m_runHistoBXProfile
Definition: VertexHistogramMaker.h:47
Frameworkfwd.h
VertexHistogramMaker::m_haveweightvsvtxzchk
TProfile * m_haveweightvsvtxzchk
Definition: VertexHistogramMaker.h:70
VertexHistogramMaker::m_weightThreshold
const double m_weightThreshold
Definition: VertexHistogramMaker.h:43
VertexHistogramMaker::m_hvtxxvsbxrun
TProfile ** m_hvtxxvsbxrun
Definition: VertexHistogramMaker.h:85
VertexHistogramMaker::m_hvtxz
TH1F * m_hvtxz
Definition: VertexHistogramMaker.h:74
VertexHistogramMaker::m_hvtxxvsbx2drun
TH2F ** m_hvtxxvsbx2drun
Definition: VertexHistogramMaker.h:92
VertexHistogramMaker::m_maxLS
const unsigned int m_maxLS
Definition: VertexHistogramMaker.h:42
ConsumesCollector.h
VertexHistogramMaker::m_hvtxzvsbx2drun
TH2F ** m_hvtxzvsbx2drun
Definition: VertexHistogramMaker.h:94
ParameterSet.h
VertexHistogramMaker::m_hsqsumptsqheavy
TH1F * m_hsqsumptsqheavy
Definition: VertexHistogramMaker.h:62
VertexHistogramMaker::m_trueOnly
const bool m_trueOnly
Definition: VertexHistogramMaker.h:44
edm::Event
Definition: Event.h:73
VertexHistogramMaker::m_hntruevtxvslumi
TProfile * m_hntruevtxvslumi
Definition: VertexHistogramMaker.h:58
VertexHistogramMaker::book
void book(const std::string dirname="")
Definition: VertexHistogramMaker.cc:48
VertexHistogramMaker::VertexHistogramMaker
VertexHistogramMaker(edm::ConsumesCollector &&iC)
Definition: VertexHistogramMaker.cc:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
weight
Definition: weight.py:1
VertexHistogramMaker::m_runHistoBXProfile2D
const bool m_runHistoBXProfile2D
Definition: VertexHistogramMaker.h:48
VertexHistogramMaker::m_hntruevtxvslumi2D
TH2D * m_hntruevtxvslumi2D
Definition: VertexHistogramMaker.h:59