test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BSvsPVHistogramMaker.h
Go to the documentation of this file.
1 #ifndef Validation_RecoVertex_BSvsPVHistogramMaker_H
2 #define Validation_RecoVertex_BSvsPVHistogramMaker_H
3 
4 #include <string>
9 
10 namespace edm {
11  class ParameterSet;
12  class Event;
13 }
14 
15 namespace reco {
16  class BeamSpot;
17 }
18 
19 
20 class TH1F;
21 class TH2F;
22 class TProfile;
23 class TFileDirectory;
24 
26 
27  public:
30 
32 
33  void book(const std::string dirname="");
34  void beginRun(const unsigned int nrun);
35  void fill(const unsigned int orbit, const int bx, const reco::VertexCollection& vertices, const reco::BeamSpot& bs);
36  void fill(const edm::Event& iEvent, const reco::VertexCollection& vertices, const reco::BeamSpot& bs);
37 
38  double x(const reco::BeamSpot& bs, const double z) const;
39  double y(const reco::BeamSpot& bs, const double z) const;
40 
41  private:
42 
44  const unsigned int m_maxLS;
45  const bool useSlope_;
46  const bool _trueOnly;
47  const bool _runHisto;
48  const bool _runHistoProfile;
49  const bool _runHistoBXProfile;
50  const bool _runHistoBX2D;
52 
54  TH1F* _hdeltax;
55  TH1F* _hdeltay;
56  TH1F* _hdeltaz;
57  TProfile* _hdeltaxvsz;
58  TProfile* _hdeltayvsz;
59  TH1F** _hdeltaxrun;
60  TH1F** _hdeltayrun;
61  TH1F** _hdeltazrun;
62  TProfile** _hdeltaxvszrun;
63  TProfile** _hdeltayvszrun;
64  TProfile** _hdeltaxvsorbrun;
65  TProfile** _hdeltayvsorbrun;
66  TProfile** _hdeltazvsorbrun;
67 
68  TProfile** _hdeltaxvsbxrun;
69  TProfile** _hdeltayvsbxrun;
70  TProfile** _hdeltazvsbxrun;
71 
75 
76 };
77 
78 
79 #endif // Validation_RecoVertex_BSvsPVHistogramMaker_H
BSvsPVHistogramMaker(edm::ConsumesCollector &&iC)
TFileDirectory * _currdir
const unsigned int m_maxLS
const edm::ParameterSet _histoParameters
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
RunHistogramManager _rhm
int iEvent
Definition: GenABIO.cc:230
void book(const std::string dirname="")
double y(const reco::BeamSpot &bs, const double z) const
void beginRun(const unsigned int nrun)
void fill(const unsigned int orbit, const int bx, const reco::VertexCollection &vertices, const reco::BeamSpot &bs)
double x(const reco::BeamSpot &bs, const double z) const