89 if(IsSignal())
return fPtGen;
147 cout<<
"fill data tree\n";
152 event.GenerateDataEvent(
g_rnd);
155 ptRec=
event.GetPtRec();
156 discr=
event.GetDiscriminator();
159 ptGen=
event.GetPtGen();
164 if(!(
nEvent%100000)) cout<<
" data event "<<
nEvent<<
"\n";
188 cout<<
"fill signal tree\n";
192 event.GenerateSignalEvent(
g_rnd);
195 ptRec=
event.GetPtRec();
196 discr=
event.GetDiscriminator();
199 ptGen=
event.GetPtGen();
201 if(!(
ievent%100000)) cout<<
" signal event "<<
ievent<<
"\n";
221 cout<<
"fill background tree\n";
225 event.GenerateBgrEvent(
g_rnd);
227 ptRec=
event.GetPtRec();
228 discr=
event.GetDiscriminator();
231 if(!(
ievent%100000)) cout<<
" background event "<<
ievent<<
"\n";
241Double_t ToyEvent::kDataSignalFraction=0.8;
243void ToyEvent::GenerateDataEvent(
TRandom *
rnd) {
253void ToyEvent::GenerateSignalEvent(
TRandom *
rnd) {
259void ToyEvent::GenerateBgrEvent(
TRandom *
rnd) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
Random number generator class based on M.
This is the base class for the ROOT Random number generators.
A TTree represents a columnar dataset.
T etaMax()
Function providing the maximum possible value of pseudorapidity for a non-zero rho,...
Double_t Exp(Double_t x)
Returns the base-e exponential function of x, which is e raised to the power x.
Double_t Sqrt(Double_t x)
Returns the square root of x.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Returns x raised to the power y.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.