HighLAND
ToyVariations.hxx
1 #ifndef ToyVariations_h
2 #define ToyVariations_h
3 
4 #include "BasicTypes.hxx"
5 
6 
7 /// This class represents a set of variations for a single Systematic
8 ///
9 ///
10 
12 
13 public:
14 
15  /// Create the systematic,
16  ToyVariations(Int_t npar);
17 
18  /// Everyone should have a destructor.
19  virtual ~ToyVariations();
20 
21  /// Number of parameters for this systematic
22  UInt_t GetNParameters() const{return nVariations;}
23 
24  /// Computes the total weight for all systematic parameters
25  Double_t GetWeight() const;
26 
27  /// Computes the total weight for all systematic parameters that were used
28  Double_t GetWeight(const Int_t* bins, int nBins) const;
29 
30 public:
31 
32  /// the vector of Variations, one for each of the systematic parameters
33  Float_t* Variations;
34  Int_t nVariations;
35 
36  /// the vector of Weights, one for each of the systematic parameters
37  Float_t* Weights;
38  Int_t nWeights;
39 
40 
41 };
42 
43 #endif
Float_t * Variations
the vector of Variations, one for each of the systematic parameters
UInt_t GetNParameters() const
Number of parameters for this systematic.
Float_t * Weights
the vector of Weights, one for each of the systematic parameters
ToyVariations(Int_t npar)
Create the systematic,.
Double_t GetWeight() const
Computes the total weight for all systematic parameters.
virtual ~ToyVariations()
Everyone should have a destructor.