CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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>
10 
11 class TH1F;
12 class TH2F;
13 class TProfile;
14 class TFileDirectory;
15 
16 namespace edm {
17  class ConsumesCollector;
18 }
19 
20 class LumiDetails;
21 
23 
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 
36  void fill(const unsigned int orbit, const int bx, const float bxlumi, const reco::VertexCollection& vertices, const double weight=1.);
37 
39  const unsigned int m_maxLS;
40  const double m_weightThreshold;
41  const bool m_trueOnly;
42  const bool m_runHisto;
43  const bool m_runHistoProfile;
44  const bool m_runHistoBXProfile;
46  const bool m_runHisto2D;
47  const bool m_bsConstrained;
50 
53  TH1F* m_hnvtx;
54  TH1F* m_hntruevtx;
55  TProfile* m_hntruevtxvslumi;
57  TH1F* m_hntracks;
58  TH1F* m_hsqsumptsq;
61  TH1F* m_hndof;
62  TH1F* m_haveweight;
64  TProfile* m_hndofvsvtxz;
65  TProfile* m_hntracksvsvtxz;
66  TProfile* m_haveweightvsvtxz;
68  TH1F* m_hweights;
69  TH1F* m_hvtxx;
70  TH1F* m_hvtxy;
71  TH1F* m_hvtxz;
72  TH1F** m_hvtxxrun;
73  TH1F** m_hvtxyrun;
74  TH1F** m_hvtxzrun;
75  TProfile** m_hvtxxvsorbrun;
76  TProfile** m_hvtxyvsorbrun;
77  TProfile** m_hvtxzvsorbrun;
78  TProfile** m_hnvtxvsorbrun;
79  TProfile2D** m_hnvtxvsbxvsorbrun;
81 
82  TProfile** m_hvtxxvsbxrun;
83  TProfile** m_hvtxyvsbxrun;
84  TProfile** m_hvtxzvsbxrun;
85  TProfile** m_hnvtxvsbxrun;
86 
87  TProfile2D** m_hnvtxvsbxvslumirun;
88 
92 
93 };
94 
95 
96 #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
void fill(const edm::Event &iEvent, const reco::VertexCollection &vertices, const double weight=1.)
edm::EDGetTokenT< LumiDetails > m_lumiDetailsToken
int iEvent
Definition: GenABIO.cc:243
void book(const std::string dirname="")
void beginRun(const edm::Run &iRun)
int weight
Definition: histoStyle.py:50
const unsigned int m_maxLS
Definition: Run.h:41
RunHistogramManager m_fhm