22 , fTimeBetweenBuckets(1e9/53.103e6)
23 , fBucketTimeSigma(0.750)
24 , fNBucketsPerBatch(84)
25 , fNFilledBucketsPerBatch(81)
26 , fDisallowedBatchMask(6,0)
29 std::vector<double> bi(6,1.0);
41 <<
"!!!!! EvtTimeFNALBeam - not yet up to parsing Config string " 44 <<
"\"" << config <<
"\"" 65 bool disallowed =
true;
69 while ( disallowed ) {
71 for (ibatch=0; ibatch<nbatch; ++ibatch) {
90 std::cout <<
"EvtTimeFNALBeam config: " << std::endl
95 <<
" Relative Fractions: ";
101 if (skip) std::cout <<
"{{";
103 if (skip) std::cout <<
"}}";
106 std::cout << std::endl
118 size_t ndis = disallow.size();
130 size_t nbi = bi.size();
131 for (
size_t i=0; i < nbi; ++i) {
virtual ~EvtTimeFNALBeam()
void SetBatchIntensities(std::vector< double > bi)
double fGlobalOffset
always displaced by this (in ns)
configurable FNAL Beam time distribution
EvtTimeFNALBeam(const std::string &config)
double fBucketTimeSigma
how wide is distribution in bucket
interface for event time distribution
virtual void PrintConfig(bool verbose=true)
provide a means of printing the configuration
void CalculateCPDF(std::vector< double > batchi)
virtual void Config(const std::string &config)
int fNFilledBucketsPerBatch
virtual double TimeOffset()
std::vector< int > fDisallowedBatchMask
disallow individual batches
double fTimeBetweenBuckets
time between buckets
A class for generating concrete EvtTimeShiftI derived classes based on the factory pattern...
Physics generators for neutrinos, cosmic rays, and others.
std::vector< double > fCummulativeBatchPDF
summed prob for batches
void SetDisallowedBatchMask(std::vector< int > disallow)
#define TIMESHIFTREG3(_ns, _name, _fqname)