LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
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 |
TRandom * | GetRandomGenerator () const |
bool | IsRandomGeneratorOwned () const |
void | SetRandomGenerator (TRandom *gen, bool isOwned) |
Protected Attributes | |
TRandom * | fRndmGen |
bool | fIsOwned |
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... | |
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 20 of file EvtTimeFNALBeam.cxx.
References Config(), and SetBatchIntensities().
|
virtual |
Definition at line 34 of file EvtTimeFNALBeam.cxx.
|
private |
Definition at line 126 of file EvtTimeFNALBeam.cxx.
References fCummulativeBatchPDF, and fDisallowedBatchMask.
Referenced by GetGlobalOffset(), SetBatchIntensities(), and TimeOffset().
|
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 36 of file EvtTimeFNALBeam.cxx.
References PrintConfig().
Referenced by EvtTimeFNALBeam().
|
inline |
Definition at line 51 of file EvtTimeFNALBeam.h.
References fBucketTimeSigma.
|
inline |
Definition at line 61 of file EvtTimeFNALBeam.h.
References CalculateCPDF(), and fGlobalOffset.
|
inline |
|
inline |
Definition at line 55 of file EvtTimeFNALBeam.h.
References fNFilledBucketsPerBatch, SetBatchIntensities(), and SetDisallowedBatchMask().
|
inlineinherited |
Allow users some control over random # sequences An "owned" object is expected to be deleted by the EvtTimeShift obj
Definition at line 61 of file EvtTimeShiftI.h.
References evgb::EvtTimeShiftI::fRndmGen.
|
inline |
Definition at line 49 of file EvtTimeFNALBeam.h.
References fTimeBetweenBuckets.
|
inlineinherited |
Definition at line 62 of file EvtTimeShiftI.h.
References evgb::EvtTimeShiftI::fIsOwned, and evgb::EvtTimeShiftI::SetRandomGenerator().
|
virtual |
provide a means of printing the configuration
Implements evgb::EvtTimeShiftI.
Definition at line 88 of file EvtTimeFNALBeam.cxx.
References fBucketTimeSigma, fCummulativeBatchPDF, fDisallowedBatchMask, fGlobalOffset, fNBucketsPerBatch, fNFilledBucketsPerBatch, and fTimeBetweenBuckets.
Referenced by Config().
void evgb::EvtTimeFNALBeam::SetBatchIntensities | ( | std::vector< double > | bi | ) |
Definition at line 111 of file EvtTimeFNALBeam.cxx.
References CalculateCPDF().
Referenced by EvtTimeFNALBeam(), and GetNFilledBucketsPerBatch().
|
inline |
Definition at line 50 of file EvtTimeFNALBeam.h.
References fBucketTimeSigma.
void evgb::EvtTimeFNALBeam::SetDisallowedBatchMask | ( | std::vector< int > | disallow | ) |
Definition at line 116 of file EvtTimeFNALBeam.cxx.
References fCummulativeBatchPDF, and fDisallowedBatchMask.
Referenced by GetNFilledBucketsPerBatch().
|
inline |
Definition at line 60 of file EvtTimeFNALBeam.h.
References fGlobalOffset.
|
inline |
|
inline |
Definition at line 54 of file EvtTimeFNALBeam.h.
References fNFilledBucketsPerBatch.
|
inherited |
Definition at line 28 of file EvtTimeShiftI.cxx.
References evgb::EvtTimeShiftI::fIsOwned, and evgb::EvtTimeShiftI::fRndmGen.
Referenced by evgb::EvtTimeShiftI::IsRandomGeneratorOwned().
|
inline |
specific methods for this variant
Definition at line 48 of file EvtTimeFNALBeam.h.
References fTimeBetweenBuckets.
|
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 52 of file EvtTimeFNALBeam.cxx.
References fBucketTimeSigma, fCummulativeBatchPDF, fDisallowedBatchMask, fGlobalOffset, fNBucketsPerBatch, fNFilledBucketsPerBatch, evgb::EvtTimeShiftI::fRndmGen, and fTimeBetweenBuckets.
Referenced by TimeOffset().
|
virtual |
Implements evgb::EvtTimeShiftI.
Definition at line 82 of file EvtTimeFNALBeam.cxx.
References CalculateCPDF(), and TimeOffset().
|
private |
how wide is distribution in bucket
Definition at line 68 of file EvtTimeFNALBeam.h.
Referenced by GetBucketTimeSigma(), PrintConfig(), SetBucketTimeSigma(), and TimeOffset().
|
private |
summed prob for batches
Definition at line 71 of file EvtTimeFNALBeam.h.
Referenced by CalculateCPDF(), PrintConfig(), SetDisallowedBatchMask(), and TimeOffset().
|
private |
disallow individual batches
Definition at line 72 of file EvtTimeFNALBeam.h.
Referenced by CalculateCPDF(), PrintConfig(), SetDisallowedBatchMask(), and TimeOffset().
|
private |
always displaced by this (in ns)
Definition at line 73 of file EvtTimeFNALBeam.h.
Referenced by GetGlobalOffset(), PrintConfig(), SetGlobalOffset(), and TimeOffset().
|
protectedinherited |
Definition at line 69 of file EvtTimeShiftI.h.
Referenced by evgb::EvtTimeShiftI::IsRandomGeneratorOwned(), evgb::EvtTimeShiftI::SetRandomGenerator(), and evgb::EvtTimeShiftI::~EvtTimeShiftI().
|
private |
Definition at line 69 of file EvtTimeFNALBeam.h.
Referenced by GetNBucketsPerBatch(), PrintConfig(), SetNBucketsPerBatch(), and TimeOffset().
|
private |
Definition at line 70 of file EvtTimeFNALBeam.h.
Referenced by GetNFilledBucketsPerBatch(), PrintConfig(), SetNFilledBucketsPerBatch(), and TimeOffset().
|
protectedinherited |
Definition at line 68 of file EvtTimeShiftI.h.
Referenced by evgb::EvtTimeShiftI::GetRandomGenerator(), evgb::EvtTimeShiftI::SetRandomGenerator(), evgb::EvtTimeFlat::TimeOffset(), TimeOffset(), and evgb::EvtTimeShiftI::~EvtTimeShiftI().
|
private |
time between buckets
Definition at line 67 of file EvtTimeFNALBeam.h.
Referenced by GetTimeBetweenBuckets(), PrintConfig(), SetTimeBetweenBuckets(), and TimeOffset().