DESY Hbb Analysis Framework
Vertices.h
Go to the documentation of this file.
1 #ifndef Analysis_Ntuplizer_Vertices_h
2 #define Analysis_Ntuplizer_Vertices_h 1
3 
4 // -*- C++ -*-
5 //
6 // Package: Analysis/Ntuplizer
7 // Class: Vertices
8 //
16 //
17 // Original Author: Roberval Walsh Bastos Rangel
18 // Created: Mon, 20 Oct 2014 14:24:08 GMT
19 //
20 //
21 
22 // system include files
23 #include <memory>
24 //
25 // user include files
26 #include "FWCore/Framework/interface/Event.h"
27 //
28 #include "FWCore/ParameterSet/interface/ParameterSet.h"
29 
30 #include "CommonTools/UtilAlgos/interface/TFileService.h"
31 #include "FWCore/ServiceRegistry/interface/Service.h"
32 
33 #include "DataFormats/VertexReco/interface/Vertex.h"
34 #include "DataFormats/VertexReco/interface/VertexFwd.h"
35 
36 #include "TTree.h"
37 
38 //
39 // class declaration
40 //
41 
42 namespace analysis {
43  namespace ntuple {
44 
45  class Vertices {
46  public:
47  Vertices();
48  Vertices(const edm::InputTag&, TTree*);
49  ~Vertices();
50  void ReadFromEvent(const edm::Event&);
51  void Fill(const edm::Event&);
52  static const int maxPVs = 100;
53 
54  protected:
55  // ----------member data ---------------------------
56  reco::VertexCollection candidates_;
57  std::string configParameter_;
58  edm::InputTag input_collection_;
59 
60 
61  // particles kinematics for the ntuple
62  int n_;
63  float x_[maxPVs];
64  float y_[maxPVs];
65  float z_[maxPVs];
66  float xe_[maxPVs];
67  float ye_[maxPVs];
68  float ze_[maxPVs];
69  bool fake_[maxPVs];
70  float chi2_[maxPVs];
71  float ndof_[maxPVs];
72  float rho_[maxPVs];
73 
74  TTree * tree_;
75 
76  private:
77  };
78 
79  }
80 }
81 
82 #endif // Analysis_Ntuplizer_Vertices_h
float ndof_[maxPVs]
Definition: Vertices.h:71
std::string configParameter_
Definition: Vertices.h:57
static const int maxPVs
Definition: Vertices.h:52
reco::VertexCollection candidates_
Definition: Vertices.h:56
edm::InputTag input_collection_
Definition: Vertices.h:58
float rho_[maxPVs]
Definition: Vertices.h:72
float chi2_[maxPVs]
Definition: Vertices.h:70
void ReadFromEvent(const edm::Event &)
Definition: Vertices.cc:80
void Fill(const edm::Event &)
Definition: Vertices.cc:112