LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Flat time distribution. More...
#include "EvtTimeFlat.h"
Public Member Functions | |
EvtTimeFlat (const std::string &config) | |
virtual | ~EvtTimeFlat () |
virtual void | Config (const std::string &config) |
virtual double | TimeOffset () |
virtual double | TimeOffset (std::vector< double > v) |
virtual void | PrintConfig (bool verbose=true) |
provide a means of printing the configuration More... | |
void | SetDuration (double val) |
specific methods for this variant More... | |
double | GetDuration () const |
void | SetGlobalOffset (double val) |
double | GetGlobalOffset () const |
TRandom * | GetRandomGenerator () const |
bool | IsRandomGeneratorOwned () const |
bool | IsRandomGeneratorSeeded () const |
void | SetRandomGenerator (TRandom *gen, bool isOwned) |
Protected Member Functions | |
std::vector< std::string > | GetConfigTokens (const std::string &config) |
Protected Attributes | |
TRandom * | fRndmGen |
bool | fIsOwned |
bool | fIsSeeded |
Private Attributes | |
double | fDuration |
duration (in ns) More... | |
double | fGlobalOffset |
always displaced by this (in ns) More... | |
Flat time distribution.
2015-06-22
Definition at line 22 of file EvtTimeFlat.h.
evgb::EvtTimeFlat::EvtTimeFlat | ( | const std::string & | config | ) |
Definition at line 20 of file EvtTimeFlat.cxx.
References Config().
|
virtual |
Definition at line 26 of file EvtTimeFlat.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 28 of file EvtTimeFlat.cxx.
References fDuration, fGlobalOffset, and PrintConfig().
Referenced by EvtTimeFlat().
|
protectedinherited |
Definition at line 69 of file EvtTimeShiftI.cxx.
References x.
Referenced by evgb::EvtTimeFNALBeam::Config(), evgb::EvtTimeShiftI::EvtTimeShiftI(), and evgb::EvtTimeShiftI::IsRandomGeneratorSeeded().
|
inline |
|
inline |
Definition at line 51 of file EvtTimeFlat.h.
References fGlobalOffset.
|
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.
Referenced by evgb::GENIEHelper::GENIEHelper().
|
inlineinherited |
|
inlineinherited |
Definition at line 63 of file EvtTimeShiftI.h.
References evgb::EvtTimeShiftI::fIsSeeded, evgb::EvtTimeShiftI::GetConfigTokens(), and evgb::EvtTimeShiftI::SetRandomGenerator().
Referenced by evgb::GENIEHelper::GENIEHelper().
|
virtual |
provide a means of printing the configuration
Implements evgb::EvtTimeShiftI.
Definition at line 52 of file EvtTimeFlat.cxx.
References fDuration, and fGlobalOffset.
Referenced by Config().
|
inline |
specific methods for this variant
Definition at line 48 of file EvtTimeFlat.h.
References fDuration.
|
inline |
Definition at line 50 of file EvtTimeFlat.h.
References fGlobalOffset.
|
inherited |
Definition at line 60 of file EvtTimeShiftI.cxx.
References evgb::EvtTimeShiftI::fIsOwned, and evgb::EvtTimeShiftI::fRndmGen.
Referenced by evgb::EvtTimeShiftI::IsRandomGeneratorSeeded().
|
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 41 of file EvtTimeFlat.cxx.
References fDuration, and evgb::EvtTimeShiftI::fRndmGen.
Referenced by TimeOffset().
|
virtual |
Implements evgb::EvtTimeShiftI.
Definition at line 46 of file EvtTimeFlat.cxx.
References TimeOffset().
|
private |
duration (in ns)
Definition at line 55 of file EvtTimeFlat.h.
Referenced by Config(), GetDuration(), PrintConfig(), SetDuration(), and TimeOffset().
|
private |
always displaced by this (in ns)
Definition at line 56 of file EvtTimeFlat.h.
Referenced by Config(), GetGlobalOffset(), PrintConfig(), and SetGlobalOffset().
|
protectedinherited |
Definition at line 72 of file EvtTimeShiftI.h.
Referenced by evgb::EvtTimeShiftI::IsRandomGeneratorOwned(), evgb::EvtTimeShiftI::SetRandomGenerator(), and evgb::EvtTimeShiftI::~EvtTimeShiftI().
|
protectedinherited |
Definition at line 73 of file EvtTimeShiftI.h.
Referenced by evgb::EvtTimeShiftI::EvtTimeShiftI(), and evgb::EvtTimeShiftI::IsRandomGeneratorSeeded().
|
protectedinherited |
Definition at line 71 of file EvtTimeShiftI.h.
Referenced by evgb::EvtTimeShiftI::EvtTimeShiftI(), evgb::EvtTimeShiftI::GetRandomGenerator(), evgb::EvtTimeShiftI::SetRandomGenerator(), evgb::EvtTimeFNALBeam::TimeOffset(), TimeOffset(), and evgb::EvtTimeShiftI::~EvtTimeShiftI().