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 
25  public:
28 
30 
31  void book(const std::string dirname="");
32  void beginRun(const edm::Run& iRun);
33  void fill(const edm::Event& iEvent, const reco::VertexCollection& vertices, const double weight=1.);
34 
35  private:
36 
37  void fill(const unsigned int orbit, const int bx, const float bxlumi, const reco::VertexCollection& vertices, const double weight=1.);
38 
40  const unsigned int m_maxLS;
41  const double m_weightThreshold;
42  const bool m_trueOnly;
43  const bool m_runHisto;
44  const bool m_runHistoProfile;
45  const bool m_runHistoBXProfile;
47  const bool m_runHisto2D;
48  const bool m_bsConstrained;
51 
54  TH1F* m_hnvtx;
55  TH1F* m_hntruevtx;
56  TProfile* m_hntruevtxvslumi;
58  TH1F* m_hntracks;
59  TH1F* m_hsqsumptsq;
62  TH1F* m_hndof;
63  TH1F* m_haveweight;
65  TProfile* m_hndofvsvtxz;
66  TProfile* m_hntracksvsvtxz;
67  TProfile* m_haveweightvsvtxz;
69  TH1F* m_hweights;
70  TH1F* m_hvtxx;
71  TH1F* m_hvtxy;
72  TH1F* m_hvtxz;
73  TH1F** m_hvtxxrun;
74  TH1F** m_hvtxyrun;
75  TH1F** m_hvtxzrun;
76  TProfile** m_hvtxxvsorbrun;
77  TProfile** m_hvtxyvsorbrun;
78  TProfile** m_hvtxzvsorbrun;
79  TProfile** m_hnvtxvsorbrun;
80  TProfile2D** m_hnvtxvsbxvsorbrun;
82 
83  TProfile** m_hvtxxvsbxrun;
84  TProfile** m_hvtxyvsbxrun;
85  TProfile** m_hvtxzvsbxrun;
86  TProfile** m_hnvtxvsbxrun;
87 
88  TProfile2D** m_hnvtxvsbxvslumirun;
89 
93 
94 };
95 
96 
97 #endif // Validation_RecoVertex_VertexHistogramMaker_H
TFileDirectory * m_currdir
const edm::ParameterSet m_histoParameters
TProfile2D ** m_hnvtxvsbxvsorbrun
RunHistogramManager m_rhm
TProfile2D ** m_hnvtxvsbxvslumirun
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
Definition: weight.py:1
edm::EDGetTokenT< LumiDetails > m_lumiDetailsToken
int iEvent
Definition: GenABIO.cc:230
HLT enums.
const unsigned int m_maxLS
Definition: Run.h:42
RunHistogramManager m_fhm