HighLAND
baseToyMaker.hxx
1 #ifndef baseToyMaker_h
2 #define baseToyMaker_h
3 
4 #include "ToyMaker.hxx"
5 #include "BinnedPDF.hxx"
6 #include "TRandom3.h"
7 
8 /// Creates ToyExperiments
9 
10 class baseToyMaker: public ToyMaker{
11 
12 public:
13 
14  /// Create the Toy experiment
15  baseToyMaker(UInt_t seed, bool zero_var=false);
16 
17  /// Everyone should have a destructor.
18  virtual ~baseToyMaker() {}
19 
20  /// Fills the Toy Experiment with a given index
22 
23  /// returns the random seed
24  UInt_t GetSeed() const {return _seed;}
25 
26  // Use a random generator for each systematic
27  void SetIndividualRandomGenerator(bool ok){ _individualRandomGenerator=ok;}
28 
29 
30 
31 protected:
32 
33  // A binned PDF
34  BinnedPDF* _binnedPDF;
35 
36  /// A random generator that can be used to generate throws.
37  TRandom3 _RandomGenerator;
38 
39  TRandom3 _RandomGenerators[NMAXSYSTEMATICS];
40 
41  /// The random seed used
42  UInt_t _seed;
43 
44  UInt_t _seeds[NMAXSYSTEMATICS];
45 
46  // Use a random generator for each systematic
47  bool _individualRandomGenerator;
48 
49 
50  /// Apply 0 variation
51  bool _zero_var;
52 };
53 
54 #endif
bool _zero_var
Apply 0 variation.
TRandom3 _RandomGenerator
A random generator that can be used to generate throws.
baseToyMaker(UInt_t seed, bool zero_var=false)
Create the Toy experiment.
Definition: baseToyMaker.cxx:5
UInt_t _seed
The random seed used.
UInt_t GetSeed() const
returns the random seed
virtual ~baseToyMaker()
Everyone should have a destructor.
Creates ToyExperiments.
This class defines a binned probability density function.
Definition: BinnedPDF.hxx:11
void FillToyExperiment(ToyExperiment &toy)
Fills the Toy Experiment with a given index.