LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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 |
void | SetRandomGenerator (TRandom *gen, bool isOwned) |
Protected Attributes | |
TRandom * | fRndmGen |
bool | fIsOwned |
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().
|
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.
|
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 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 28 of file EvtTimeShiftI.cxx.
References evgb::EvtTimeShiftI::fIsOwned, and evgb::EvtTimeShiftI::fRndmGen.
Referenced by evgb::EvtTimeShiftI::IsRandomGeneratorOwned().
|
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 69 of file EvtTimeShiftI.h.
Referenced by evgb::EvtTimeShiftI::IsRandomGeneratorOwned(), evgb::EvtTimeShiftI::SetRandomGenerator(), and evgb::EvtTimeShiftI::~EvtTimeShiftI().
|
protectedinherited |
Definition at line 68 of file EvtTimeShiftI.h.
Referenced by evgb::EvtTimeShiftI::GetRandomGenerator(), evgb::EvtTimeShiftI::SetRandomGenerator(), evgb::EvtTimeFNALBeam::TimeOffset(), TimeOffset(), and evgb::EvtTimeShiftI::~EvtTimeShiftI().