LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
EvtTimeFlat.h
Go to the documentation of this file.
1 
13 #ifndef SIMB_EVTTIMEFLAT_H
14 #define SIMB_EVTTIMEFLAT_H
15 
16 #include "EvtTimeShiftI.h"
17 #include <string>
18 #include <vector>
19 
20 namespace evgb {
21 
23 
24  public:
25 
26  EvtTimeFlat(const std::string& config);
27  virtual ~EvtTimeFlat();
28 
29  //
30  // complete the EvtTimeShiftI interface:
31  //
32 
36  virtual void Config(const std::string& config );
37 
41  virtual double TimeOffset();
42  virtual double TimeOffset(std::vector<double> v);
43 
45  virtual void PrintConfig(bool verbose=true);
46 
48  void SetDuration(double val) { fDuration=val; }
49  double GetDuration() const { return fDuration; }
50  void SetGlobalOffset(double val) { fGlobalOffset=val; }
51  double GetGlobalOffset() const { return fGlobalOffset; }
52 
53  private:
54 
55  double fDuration;
56  double fGlobalOffset;
57 
58  };
59 
60 } // namespace evgb
61 
62 #endif //SIMB_EVTTIMEFLAT_H
double GetGlobalOffset() const
Definition: EvtTimeFlat.h:51
Flat time distribution.
Definition: EvtTimeFlat.h:22
virtual void Config(const std::string &config)
Definition: EvtTimeFlat.cxx:28
interface for event time distribution
Definition: EvtTimeShiftI.h:29
double GetDuration() const
Definition: EvtTimeFlat.h:49
virtual void PrintConfig(bool verbose=true)
provide a means of printing the configuration
Definition: EvtTimeFlat.cxx:52
virtual ~EvtTimeFlat()
Definition: EvtTimeFlat.cxx:26
double fDuration
duration (in ns)
Definition: EvtTimeFlat.h:55
virtual double TimeOffset()
Definition: EvtTimeFlat.cxx:41
double fGlobalOffset
always displaced by this (in ns)
Definition: EvtTimeFlat.h:56
EvtTimeFlat(const std::string &config)
Definition: EvtTimeFlat.cxx:20
Physics generators for neutrinos, cosmic rays, and others.
Definition: CRYHelper.cxx:33
void SetDuration(double val)
specific methods for this variant
Definition: EvtTimeFlat.h:48
void SetGlobalOffset(double val)
Definition: EvtTimeFlat.h:50