PandaTree
Event.h
1 #ifndef PandaTree_Objects_Event_h
2 #define PandaTree_Objects_Event_h
3 #include "EventBase.h"
4 #include "Constants.h"
5 #include "GenReweight.h"
6 #include "PFCand.h"
7 #include "RecoVertex.h"
8 #include "SecondaryVertex.h"
9 #include "PackedTrack.h"
10 #include "SuperCluster.h"
11 #include "Electron.h"
12 #include "Muon.h"
13 #include "Tau.h"
14 #include "Photon.h"
15 #include "Jet.h"
16 #include "FatJet.h"
17 #include "MicroJet.h"
18 #include "GenJet.h"
19 #include "GenParticle.h"
20 #include "Proton.h"
21 #include "RecoMet.h"
22 #include "Met.h"
23 #include "MetFilters.h"
24 #include "Recoil.h"
25 
26 namespace panda {
27 
28  class Event : public EventBase {
29  public:
30  Event();
31  Event(Event const&);
32  ~Event();
33  Event& operator=(Event const&);
34 
35  void print(std::ostream& = std::cout, UInt_t level = 1) const override;
36  void dump(std::ostream& = std::cout) const override;
37 
38  GenParticleBaseCollection const* genParticleCollection() const override { return &genParticles; }
39  GenParticleBaseCollection* genParticleCollection() override { return &genParticles; }
40 
41  GenReweight genReweight = GenReweight("genReweight");
42  PFCandCollection pfCandidates = PFCandCollection("pfCandidates", 2048);
43  RecoVertexCollection vertices = RecoVertexCollection("vertices", 64);
44  SecondaryVertexCollection secondaryVertices = SecondaryVertexCollection("secondaryVertices", 64);
45  PackedTrackCollection tracks = PackedTrackCollection("tracks", 1024);
46  SuperClusterCollection superClusters = SuperClusterCollection("superClusters", 64);
47  ElectronCollection electrons = ElectronCollection("electrons", 32);
49  TauCollection taus = TauCollection("taus", 64);
50  PhotonCollection photons = PhotonCollection("photons", 32);
51  JetCollection chsAK4Jets = JetCollection("chsAK4Jets", 64);
52  JetCollection puppiAK4Jets = JetCollection("puppiAK4Jets", 64);
53  FatJetCollection chsAK8Jets = FatJetCollection("chsAK8Jets", 8);
54  MicroJetCollection chsAK8Subjets = MicroJetCollection("chsAK8Subjets", 64);
55  FatJetCollection chsCA15Jets = FatJetCollection("chsCA15Jets", 8);
56  MicroJetCollection chsCA15Subjets = MicroJetCollection("chsCA15Subjets", 64);
57  FatJetCollection puppiAK8Jets = FatJetCollection("puppiAK8Jets", 8);
58  MicroJetCollection puppiAK8Subjets = MicroJetCollection("puppiAK8Subjets", 64);
59  FatJetCollection puppiCA15Jets = FatJetCollection("puppiCA15Jets", 8);
60  MicroJetCollection puppiCA15Subjets = MicroJetCollection("puppiCA15Subjets", 64);
61  GenJetCollection ak4GenJets = GenJetCollection("ak4GenJets", 64);
62  GenJetCollection ak8GenJets = GenJetCollection("ak8GenJets", 32);
63  GenJetCollection ca15GenJets = GenJetCollection("ca15GenJets", 32);
64  GenParticleCollection genParticles = GenParticleCollection("genParticles", 256);
65  ProtonCollection protons = ProtonCollection("protons", 32);
66  RecoMet pfMet = RecoMet("pfMet");
67  RecoMet puppiMet = RecoMet("puppiMet");
68  Met rawMet = Met("rawMet");
69  Met caloMet = Met("caloMet");
70  Met noMuMet = Met("noMuMet");
71  Met noHFMet = Met("noHFMet");
72  Met trkMet = Met("trkMet");
73  Met neutralMet = Met("neutralMet");
74  Met photonMet = Met("photonMet");
75  Met hfMet = Met("hfMet");
76  Met genMet = Met("genMet");
77  MetFilters metFilters = MetFilters("metFilters");
78  Recoil recoil = Recoil("recoil");
79 
80  Float_t rho{};
81  Float_t rhoCentralCalo{};
82 
83  static utils::BranchList getListOfBranches(Bool_t direct = kFALSE);
84 
85  protected:
86  void doSetStatus_(TTree&, utils::BranchList const&) override;
87  utils::BranchList doGetStatus_(TTree&) const override;
88  utils::BranchList doGetBranchNames_() const override;
89  void doSetAddress_(TTree&, utils::BranchList const&, Bool_t setStatus) override;
90  void doBook_(TTree&, utils::BranchList const&) override;
91  void doGetEntry_(TTree&) override;
92  void doInit_() override;
93  void doUnlink_(TTree&) override;
94 
95  public:
96  /* BEGIN CUSTOM Event.h.classdef */
97  /* END CUSTOM */
98  };
99 
100  /* BEGIN CUSTOM Event.h.global */
101  /* END CUSTOM */
102 
103 }
104 
105 #endif
Definition: RecoMet.h:12
void setStatus(TTree &, utils::BranchList const &blist) final
Set status of branches to true (matching branch) or false (vetoed branch)
Definition: TreeEntry.cc:5
List of branch names.
Definition: IOUtils.h:64
void print(std::ostream &=std::cout, UInt_t level=1) const override
Print the object content.
Definition: Event.cc:249
Definition: GenReweight.h:12
Definition: EventBase.h:18
Template class for dynamic-size container implementations. Inherits from base_type::collection_type o...
Definition: Collection.h:19
void dump(std::ostream &=std::cout) const override
Dump the object content.
Definition: Event.cc:270
Definition: Event.h:28
Definition: Met.h:12
Definition: Array.h:11
MuonCollection muons
sortedby=pt
Definition: Event.h:48
Definition: Recoil.h:12
Definition: MetFilters.h:12