HighLAND
OOFVSystematics.hxx
1 #ifndef OOFVSystematics_h
2 #define OOFVSystematics_h
3 
4 #include "EventWeightBase.hxx"
5 #include "BinnedParams.hxx"
6 
8 public:
9 
11 
12  virtual ~OOFVSystematics() {
13  if (_fgd1) delete _fgd1; _fgd1 = NULL;
14  if (_fgd2) delete _fgd2; _fgd2 = NULL;
15  if (_rate) delete _rate; _rate = NULL;
16  }
17 
18  /// Apply this systematic
20  Weight_h ComputeWeight(const ToyExperiment& toy, const AnaEventC& event, const ToyBoxB& box){(void)toy;(void)event;(void)box;return 1;};
21  Weight_h ComputeWeight(const ToyExperiment& toy, const AnaEventC& event, const ToyBoxB& box, const SelectionBase& sel);
22 
23 protected:
24 
25  Int_t GetDetNumber(SubDetId::SubDetEnum det);
26  Int_t GetBeamNumber(Int_t runperiod,AnaTrackB *maintrack);
27 
28 protected:
29 
30  /// Mean of the rate correction
31  Float_t _rate_corr[2][9];
32 
33  /// Uncertainty on the rate correction
34  Float_t _rate_error[2][9];
35 
36  /// Mean of the reco eff correction
37  Float_t _reco_corr[2][9];
38 
39  /// Uncertainty on the reco eff correction
40  Float_t _reco_error[2][9];
41 
42  //Index for rate corrections
43  Int_t _rate_index[2][9];
44 
45  //Index for reco corrections
46  Int_t _reco_index[2][9];
47 
48  BinnedParams* _fgd1;
49  BinnedParams* _fgd2;
50  BinnedParams* _rate;
51 
52 };
53 
54 #endif
Float_t _rate_error[2][9]
Uncertainty on the rate correction.
Float_t _reco_error[2][9]
Uncertainty on the reco eff correction.
SubDetEnum
Enumeration of all detector systems and subdetectors.
Definition: SubDetId.hxx:25
Representation of a global track.
Float_t _rate_corr[2][9]
Mean of the rate correction.
virtual Weight_h ComputeWeight(const ToyExperiment &toy, const AnaEventC &event, const ToyBoxB &box, const SelectionBase &sel)
This is now the actual method called by SystematicManager, which allows further selection tunning of ...
Weight_h ComputeWeight(const ToyExperiment &toy, const AnaEventC &event, const ToyBoxB &box)
Float_t _reco_corr[2][9]
Mean of the reco eff correction.