HighLAND
SIPionSystematics.hxx
1 #ifndef SIPionSystematics_h
2 #define SIPionSystematics_h
3 
4 #include "EventWeightBase.hxx"
5 #include "BinnedParams.hxx"
6 #include "PionInteractionSystematic.hxx"
7 
8 const unsigned int NINTERACTIONS=200;
9 const unsigned int NMAXMOMBINS=201;
10 
12  public:
13 
15 
16  virtual ~SIPionSystematics();
17 
18  /// Apply the systematic
19  Weight_h ComputeWeight(const ToyExperiment& , const AnaEventC& , const ToyBoxB&){return 1;}
20  Weight_h ComputeWeight(const ToyExperiment& toy, const AnaEventC& event, const ToyBoxB& box, const SelectionBase& sel);
21 
22  /// Create the array of PionInteractionSystematic
23  void Initialize(Int_t nsel, Int_t isel, Int_t nbranch, Int_t nevents);
24 
25  /// Delete the PionInteractionSystematic for this event
26  void FinalizeEvent(const AnaEventC& event);
27 
28 
29  /// Initilaize the systematics itself, basically the manager
30  virtual void Initialize();
31 
32 protected:
33 
34  /// Fill the SystBox for this event, selection and branch
35  void FillSystBox(const AnaEventC& event, const SelectionBase& sel, Int_t ibranch);
36 
37  Float_t _xsec_data[NINTERACTIONS][NMAXMOMBINS];
38  Float_t _err_data[NINTERACTIONS][NMAXMOMBINS];
39 
40  /// Pion SI systematic associated quantities. TODO: better way of handeling this
42 
43 
44  /// A manager that grabs the needed data for systematics calculation
46 
47 
48  Int_t _interactionID[3];
49 
50  bool _initialized;
51 
52 };
53 
54 #endif
PionInteractionSystematic ** _pionWeightInfo
Pion SI systematic associated quantities. TODO: better way of handeling this.
Weight_h ComputeWeight(const ToyExperiment &, const AnaEventC &, const ToyBoxB &)
Apply the systematic.
void FinalizeEvent(const AnaEventC &event)
Delete the PionInteractionSystematic for this event.
PionSIManager * _pionSIManager
A manager that grabs the needed data for systematics calculation.
virtual void Initialize()
Initilaize the systematics itself, basically the manager.
void FillSystBox(const AnaEventC &event, const SelectionBase &sel, Int_t ibranch)
Fill the SystBox for this event, selection and branch.