PandaTree
EventTP.h
1 #ifndef PandaTree_Objects_EventTP_h
2 #define PandaTree_Objects_EventTP_h
3 #include "EventBase.h"
4 #include "Constants.h"
5 #include "Electron.h"
6 #include "Muon.h"
7 #include "Photon.h"
8 #include "TPPair.h"
9 #include "Jet.h"
10 #include "RecoMet.h"
11 
12 namespace panda {
13 
14  class EventTP : public EventBase {
15  public:
16  EventTP();
17  EventTP(EventTP const&);
18  ~EventTP();
19  EventTP& operator=(EventTP const&);
20 
21  void print(std::ostream& = std::cout, UInt_t level = 1) const override;
22  void dump(std::ostream& = std::cout) const override;
23 
24  ElectronCollection electrons = ElectronCollection("electrons", 32);
25  MuonCollection muons = MuonCollection("muons", 32);
26  PhotonCollection photons = PhotonCollection("photons", 32);
27  TPPairCollection tp = TPPairCollection("tp", 32);
28  JetCollection jets = JetCollection("jets", 64);
29  RecoMet t1Met = RecoMet("t1Met");
30 
31  Float_t rho{};
32  UInt_t sample{};
33 
34  static utils::BranchList getListOfBranches(Bool_t direct = kFALSE);
35 
36  protected:
37  void doSetStatus_(TTree&, utils::BranchList const&) override;
38  utils::BranchList doGetStatus_(TTree&) const override;
39  utils::BranchList doGetBranchNames_() const override;
40  void doSetAddress_(TTree&, utils::BranchList const&, Bool_t setStatus) override;
41  void doBook_(TTree&, utils::BranchList const&) override;
42  void doGetEntry_(TTree&) override;
43  void doInit_() override;
44  void doUnlink_(TTree&) override;
45 
46  public:
47  /* BEGIN CUSTOM EventTP.h.classdef */
48  /* END CUSTOM */
49  };
50 
51  /* BEGIN CUSTOM EventTP.h.global */
52  /* END CUSTOM */
53 
54 }
55 
56 #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
Definition: EventBase.h:18
void print(std::ostream &=std::cout, UInt_t level=1) const override
Print the object content.
Definition: EventTP.cc:62
Definition: EventTP.h:14
Definition: Array.h:11
void dump(std::ostream &=std::cout) const override
Dump the object content.
Definition: EventTP.cc:70