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(edm::ConsumesCollector &&iC)
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
void fill(const edm::Event &iEvent, const reco::VertexCollection &vertices, const double weight=1.)
edm::EDGetTokenT< LumiDetails > m_lumiDetailsToken
int iEvent
Definition: GenABIO.cc:224
void book(const std::string dirname="")
void beginRun(const edm::Run &iRun)
HLT enums.
const unsigned int m_maxLS
Definition: Run.h:45
RunHistogramManager m_fhm