HighLAND
ToyExperiment.cxx
1 #include "ToyExperiment.hxx"
2 
3 
4 //******************************************************************
6 //******************************************************************
7 
9 
10  for(UInt_t i = 0; i < NMAXSYSTEMATICS; ++i){
11  _toyVariations[i] = NULL;
12  }
13 
14 }
15 
16 //******************************************************************
18 //******************************************************************
19 
21 
22  for(UInt_t i = 0; i < NMAXSYSTEMATICS; ++i){
23  if(i<_nToyVariations)
25  else
26  _toyVariations[i] = NULL;
27  }
28 }
29 
30 //******************************************************************
32 //******************************************************************
33 
34  for(UInt_t i = 0; i < NMAXSYSTEMATICS; ++i){
35  if (_toyVariations[i]) delete _toyVariations[i];
36  }
37 
38 }
39 
40 //******************************************************************
41 void ToyExperiment::AddToyVariation(Int_t index, UInt_t npar){
42 //******************************************************************
43 
44  ToyVariations* toyVar = new ToyVariations(npar);
45  _toyVariations[index] = toyVar;
47 }
48 
UInt_t GetNParameters() const
Number of parameters for this systematic.
UInt_t GetNToyVariations() const
Get the number of toyVariations in this toy.
ToyVariations * _toyVariations[NMAXSYSTEMATICS]
vector of variations (one for each Systematic)
ToyExperiment()
Create the Toy experiment.
ToyVariations * GetToyVariations(UInt_t index) const
returns the variations for a given systematic (index)
UInt_t _nToyVariations
Total number of toyVariations.
void AddToyVariation(Int_t index, UInt_t npar)
Add a systematic, specifying the systematic index and number of systematic parameters.
virtual ~ToyExperiment()
Everyone should have a destructor.