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 pdfDW{};
35  Float_t pdfAltDW[100]{};
36  Float_t genParam[NMAX]{};
37 
38  /* BEGIN CUSTOM GenReweight.h.classdef */
39  /* END CUSTOM */
40 
41  static utils::BranchList getListOfBranches();
42 
43  protected:
44  void doSetStatus_(TTree&, utils::BranchList const&) override;
45  utils::BranchList doGetStatus_(TTree&) const override;
46  utils::BranchList doGetBranchNames_(Bool_t) const override;
47  void doSetAddress_(TTree&, utils::BranchList const& = {"*"}, Bool_t setStatus = kTRUE) override;
48  void doBook_(TTree&, utils::BranchList const& = {"*"}) override;
49  void doInit_() override;
50  };
51 
52  /* BEGIN CUSTOM GenReweight.h.global */
53  /* END CUSTOM */
54 
55 }
56 
57 #endif
Float_t pdfDW
Kept for reading 009 files. Remove me when those aren't used anymore.
Definition: GenReweight.h:34
void print(std::ostream &=std::cout, UInt_t level=1) const override
Print the object content.
Definition: GenReweight.cc:149
void dump(std::ostream &=std::cout) const override
Dump the object content.
Definition: GenReweight.cc:157
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