configurable FNAL Beam time distribution More...
#include <EvtTimeFNALBeam.h>
Public Member Functions | |
EvtTimeFNALBeam (const std::string &config) | |
virtual | ~EvtTimeFNALBeam () |
virtual void | Config (const std::string &config) |
virtual double | TimeOffset () |
virtual double | TimeOffset (std::vector< double > bi) |
virtual void | PrintConfig (bool verbose=true) |
provide a means of printing the configuration More... | |
void | SetTimeBetweenBuckets (double val) |
specific methods for this variant More... | |
double | GetTimeBetweenBuckets () const |
void | SetBucketTimeSigma (double val) |
double | GetBucketTimeSigma () const |
void | SetNBucketsPerBatch (int ival) |
int | GetNBucketsPerBatch () const |
void | SetNFilledBucketsPerBatch (int ival) |
int | GetNFilledBucketsPerBatch () const |
void | SetBatchIntensities (std::vector< double > bi) |
void | SetDisallowedBatchMask (std::vector< int > disallow) |
void | SetGlobalOffset (double val) |
double | GetGlobalOffset () const |
Public Member Functions inherited from evgb::EvtTimeShiftI | |
EvtTimeShiftI (const std::string &config) | |
virtual | ~EvtTimeShiftI () |
TRandom * | GetRandomGenerator () const |
bool | IsRandomGeneratorOwned () const |
void | SetRandomGenerator (TRandom *gen, bool isOwned) |
Private Member Functions | |
void | CalculateCPDF (std::vector< double > batchi) |
Private Attributes | |
double | fTimeBetweenBuckets |
time between buckets More... | |
double | fBucketTimeSigma |
how wide is distribution in bucket More... | |
int | fNBucketsPerBatch |
int | fNFilledBucketsPerBatch |
std::vector< double > | fCummulativeBatchPDF |
summed prob for batches More... | |
std::vector< int > | fDisallowedBatchMask |
disallow individual batches More... | |
double | fGlobalOffset |
always displaced by this (in ns) More... | |
Additional Inherited Members | |
Protected Attributes inherited from evgb::EvtTimeShiftI | |
TRandom * | fRndmGen |
bool | fIsOwned |
configurable FNAL Beam time distribution
2015-06-22
Definition at line 22 of file EvtTimeFNALBeam.h.
evgb::EvtTimeFNALBeam::EvtTimeFNALBeam | ( | const std::string & | config | ) |
Definition at line 56 of file EvtTimeFNALBeam.cxx.
|
virtual |
Definition at line 71 of file EvtTimeFNALBeam.cxx.
|
private |
Definition at line 271 of file EvtTimeFNALBeam.cxx.
|
virtual |
each schema must take a string that configures it it is up to the individual model to parse said string and extract parameters
Implements evgb::EvtTimeShiftI.
Definition at line 73 of file EvtTimeFNALBeam.cxx.
|
inline |
Definition at line 51 of file EvtTimeFNALBeam.h.
|
inline |
Definition at line 61 of file EvtTimeFNALBeam.h.
|
inline |
Definition at line 53 of file EvtTimeFNALBeam.h.
|
inline |
Definition at line 55 of file EvtTimeFNALBeam.h.
|
inline |
Definition at line 49 of file EvtTimeFNALBeam.h.
|
virtual |
provide a means of printing the configuration
Implements evgb::EvtTimeShiftI.
Definition at line 228 of file EvtTimeFNALBeam.cxx.
void evgb::EvtTimeFNALBeam::SetBatchIntensities | ( | std::vector< double > | bi | ) |
Definition at line 256 of file EvtTimeFNALBeam.cxx.
|
inline |
Definition at line 50 of file EvtTimeFNALBeam.h.
void evgb::EvtTimeFNALBeam::SetDisallowedBatchMask | ( | std::vector< int > | disallow | ) |
Definition at line 261 of file EvtTimeFNALBeam.cxx.
|
inline |
Definition at line 60 of file EvtTimeFNALBeam.h.
|
inline |
Definition at line 52 of file EvtTimeFNALBeam.h.
|
inline |
Definition at line 54 of file EvtTimeFNALBeam.h.
|
inline |
specific methods for this variant
Definition at line 48 of file EvtTimeFNALBeam.h.
|
virtual |
return time within a 'record' in nanoseconds version taking array might be used for relative batch fractions that vary on a record-by-record basis
Implements evgb::EvtTimeShiftI.
Definition at line 192 of file EvtTimeFNALBeam.cxx.
|
virtual |
Implements evgb::EvtTimeShiftI.
Definition at line 222 of file EvtTimeFNALBeam.cxx.
|
private |
how wide is distribution in bucket
Definition at line 68 of file EvtTimeFNALBeam.h.
|
private |
summed prob for batches
Definition at line 71 of file EvtTimeFNALBeam.h.
|
private |
disallow individual batches
Definition at line 72 of file EvtTimeFNALBeam.h.
|
private |
always displaced by this (in ns)
Definition at line 73 of file EvtTimeFNALBeam.h.
|
private |
Definition at line 69 of file EvtTimeFNALBeam.h.
|
private |
Definition at line 70 of file EvtTimeFNALBeam.h.
|
private |
time between buckets
Definition at line 67 of file EvtTimeFNALBeam.h.