PandaTree
GenReweight.h
1 #ifndef PandaTree_Objects_GenReweight_h
2 #define PandaTree_Objects_GenReweight_h
3 #include "Constants.h"
4 #include "../../Framework/interface/Singlet.h"
5 #include "../../Framework/interface/Array.h"
6 #include "../../Framework/interface/Collection.h"
7 #include "../../Framework/interface/Ref.h"
8 #include "../../Framework/interface/RefVector.h"
9 
10 namespace panda {
11 
12  class GenReweight : public Singlet {
13  public:
14  static unsigned const NMAX = 1024;
15 
16  typedef Singlet base_type;
17 
18  GenReweight(char const* name = "");
19  GenReweight(GenReweight const&);
20  ~GenReweight();
21  GenReweight& operator=(GenReweight const&);
22 
23  static char const* typeName() { return "GenReweight"; }
24 
25  void print(std::ostream& = std::cout, UInt_t level = 1) const override;
26  void dump(std::ostream& = std::cout) const override;
27 
28  Float_t r1f2DW{};
29  Float_t r1f5DW{};
30  Float_t r2f1DW{};
31  Float_t r2f2DW{};
32  Float_t r5f1DW{};
33  Float_t r5f5DW{};
34  Float_t pdfAltDW[100]{};
35  Float_t genParam[NMAX]{};
36 
37  /* BEGIN CUSTOM GenReweight.h.classdef */
38  /* END CUSTOM */
39 
40  static utils::BranchList getListOfBranches();
41 
42  protected:
43  void doSetStatus_(TTree&, utils::BranchList const&) override;
44  utils::BranchList doGetStatus_(TTree&) const override;
45  utils::BranchList doGetBranchNames_(Bool_t) const override;
46  void doSetAddress_(TTree&, utils::BranchList const& = {"*"}, Bool_t setStatus = kTRUE) override;
47  void doBook_(TTree&, utils::BranchList const& = {"*"}) override;
48  void doInit_() override;
49  };
50 
51  /* BEGIN CUSTOM GenReweight.h.global */
52  /* END CUSTOM */
53 
54 }
55 
56 #endif
void print(std::ostream &=std::cout, UInt_t level=1) const override
Print the object content.
Definition: GenReweight.cc:141
void dump(std::ostream &=std::cout) const override
Dump the object content.
Definition: GenReweight.cc:149
List of branch names.
Definition: IOUtils.h:64
Definition: GenReweight.h:12
Base class for singlet objects.
Definition: Singlet.h:16
void setStatus(TTree &, utils::BranchList const &blist) final
Set status of branches to true (matching branch) or false (vetoed branch)
Definition: Singlet.cc:4
Definition: Array.h:11