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>
8 
9 namespace edm {
10  class ParameterSet;
11  class Event;
12  class Run;
13 }
14 
15 class TH1F;
16 class TH2F;
17 class TProfile;
18 class TFileDirectory;
19 
21 
22  public:
25 
27 
28  void book(const std::string dirname="");
29  void beginRun(const edm::Run& iRun);
30  void fill(const edm::Event& iEvent, const reco::VertexCollection& vertices, const double weight=1.);
31 
32  private:
33 
34  void fill(const unsigned int orbit, const int bx, const float bxlumi, const reco::VertexCollection& vertices, const double weight=1.);
35 
37  const unsigned int m_maxLS;
38  const double m_weightThreshold;
39  const bool m_trueOnly;
40  const bool m_runHisto;
41  const bool m_runHistoProfile;
42  const bool m_runHistoBXProfile;
44  const bool m_runHisto2D;
45  const bool m_bsConstrained;
47 
50  TH1F* m_hnvtx;
51  TH1F* m_hntruevtx;
52  TProfile* m_hntruevtxvslumi;
54  TH1F* m_hntracks;
55  TH1F* m_hsqsumptsq;
58  TH1F* m_hndof;
59  TH1F* m_haveweight;
61  TProfile* m_hndofvsvtxz;
62  TProfile* m_hntracksvsvtxz;
63  TProfile* m_haveweightvsvtxz;
65  TH1F* m_hweights;
66  TH1F* m_hvtxx;
67  TH1F* m_hvtxy;
68  TH1F* m_hvtxz;
69  TH1F** m_hvtxxrun;
70  TH1F** m_hvtxyrun;
71  TH1F** m_hvtxzrun;
72  TProfile** m_hvtxxvsorbrun;
73  TProfile** m_hvtxyvsorbrun;
74  TProfile** m_hvtxzvsorbrun;
75  TProfile** m_hnvtxvsorbrun;
76  TProfile2D** m_hnvtxvsbxvsorbrun;
78 
79  TProfile** m_hvtxxvsbxrun;
80  TProfile** m_hvtxyvsbxrun;
81  TProfile** m_hvtxzvsbxrun;
82  TProfile** m_hnvtxvsbxrun;
83 
84  TProfile2D** m_hnvtxvsbxvslumirun;
85 
89 
90 };
91 
92 
93 #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.)
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:36
RunHistogramManager m_fhm