DESY Hbb Analysis Framework
PileupInfo.h
Go to the documentation of this file.
1 #ifndef Analysis_Ntuplizer_PileupInfo_h
2 #define Analysis_Ntuplizer_PileupInfo_h 1
3 
4 // -*- C++ -*-
5 //
6 // Package: Analysis/Ntuplizer
7 // Class: PileupInfo
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 #include "FWCore/ParameterSet/interface/ParameterSet.h"
28 
29 #include "TTree.h"
30 
31 //
32 // class declaration
33 //
34 
35 namespace analysis {
36  namespace ntuple {
37 
38  class PileupInfo {
39  public:
40  PileupInfo();
41  PileupInfo(const edm::InputTag&, TTree*);
42  ~PileupInfo();
43  void ReadFromEvent(const edm::Event&);
44  void Branches();
45  void Fill(const edm::Event&);
46  void Fill();
47  static const int maxParticles = 1000;
48 
49  protected:
50  // ----------member data ---------------------------
51  edm::InputTag input_collection_;
52  //
53  float n_true_pu_;
54  float n_pu_;
55 
56  TTree * tree_;
57 
58  };
59  }
60 }
61 
62 #endif // Analysis_Ntuplizer_PileupInfo_h
edm::InputTag input_collection_
Definition: PileupInfo.h:51
static const int maxParticles
Definition: PileupInfo.h:47
void ReadFromEvent(const edm::Event &)
Definition: PileupInfo.cc:56