HighLAND
P0dTrackerOOFVSystematics.hxx
1 #ifndef P0DOOFVSystematics_h
2 #define P0DOOFVSystematics_h
3 
4 #include "EventWeightBase.hxx"
5 #include "BinnedParams.hxx"
6 
7 /*
8 Class to change the weights of out of fiducial volume events appearing in the P0D
9 
10 Note: 2016/07/15 - an identical class also exists in p0dNumuCCQEAnalysis. Do not
11 enable both at once.
12 
13 Should be merged with the psycheSystematics OOFVSystematics class.
14 
15 
16  */
17 
19 public:
20 
23 
24  virtual ~P0dTrackerOOFVSystematics() {
25  delete _p0d;
26  delete _rate;
27  }
28 
29  Weight_h ComputeWeight(const ToyExperiment& toy, const AnaEventC& event, const ToyBoxB& box);
30 
31 protected:
32 
33  Int_t GetDetNumber(SubDetId::SubDetEnum det);
34  Int_t GetBeamNumber(Int_t runperiod,AnaTrackB *maintrack);
35 
36 protected:
37 
38  /// Mean of the rate correction
39  Float_t _rate_corr;
40 
41  /// Uncertainty on the rate correction
42  Float_t _rate_error;
43 
44  /// Mean of the reco eff correction
45  Float_t _reco_corr[9];
46 
47  /// Uncertainty on the reco eff correction
48  Float_t _reco_error[9];
49 
50  //Index for rate corrections
51  Int_t _rate_index;
52 
53  //Index for reco corrections
54  Int_t _reco_index[9];
55 
56  BinnedParams* _p0d;
57  BinnedParams* _rate;
58 
59 };
60 
61 #endif
Float_t _rate_corr
Mean of the rate correction.
Float_t _reco_corr[9]
Mean of the reco eff correction.
Weight_h ComputeWeight(const ToyExperiment &toy, const AnaEventC &event, const ToyBoxB &box)
SubDetEnum
Enumeration of all detector systems and subdetectors.
Definition: SubDetId.hxx:25
Representation of a global track.
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 ...
Float_t _rate_error
Uncertainty on the rate correction.
Float_t _reco_error[9]
Uncertainty on the reco eff correction.