Diana Software
QPulseFiller.hh
Go to the documentation of this file.
1 #ifndef _Q_PULSEFILLER_HH_
2 #define _Q_PULSEFILLER_HH_
3 
15 #include "QObject.hh"
16 #include "QVectorI.hh"
17 #include "QBaseType.hh"
18 
19 class QPulseFiller : public Diana::QObject {
20 
21  public:
22  QPulseFiller();
23 
24  QPulseFiller(int run, int chan, Diana::QLong64 start, Diana::QLong64 stop);
25 
26  virtual QError Fill(Diana::QVectorI& samples) const;
27 
28  virtual QError Fill(Diana::QVector& samples) const;
29 
30  void SetChannel(const int channel) { fChannel = channel; }
31 
32  Int_t GetRun() const { return fRun; }
33 
34  void SetRun(const int run) { fRun=run; }
35 
36  Int_t GetChannel() const { return fChannel; }
37 
38  ULong64_t GetStartTime() const { return fStartT; }
39 
40  ULong64_t GetStopTime() const { return fStopT; }
41 
42  void SetStartTime(Long64_t start) {fStartT = (ULong64_t)start; }
43 
44  void SetStopTime(Long64_t stop) { fStopT = (ULong64_t) stop; }
45 
46  void SetStartTime(ULong64_t start) {fStartT = start; }
47 
48  void SetStopTime(ULong64_t stop) { fStopT = stop; }
49 
50 
52  void Clear() ;
53 
54  protected:
55  int fRun;
56  int fChannel;
59 
61 };
62 
63 #endif
const int channel
QBaseType< Long64_t > QLong64
double wrapped in a QObject
Definition: QBaseType.hh:189
QBaseType< ULong64_t > QULong64
unsigned long wrapped in a QObject
Definition: QBaseType.hh:196
error class with error type and description
Definition: QError.hh:115
coordinates to filla QPulse from a continuous file
Definition: QPulseFiller.hh:19
Diana::QULong64 fStartT
Definition: QPulseFiller.hh:57
void Clear()
clear members
Definition: QPulseFiller.cc:39
QObjectDef(QPulseFiller, 4)
void SetRun(const int run)
Definition: QPulseFiller.hh:34
Int_t GetChannel() const
Definition: QPulseFiller.hh:36
ULong64_t GetStartTime() const
Definition: QPulseFiller.hh:38
Int_t GetRun() const
Definition: QPulseFiller.hh:32
ULong64_t GetStopTime() const
Definition: QPulseFiller.hh:40
virtual QError Fill(Diana::QVectorI &samples) const
Definition: QPulseFiller.cc:32
void SetStopTime(Long64_t stop)
Definition: QPulseFiller.hh:44
void SetStartTime(Long64_t start)
Definition: QPulseFiller.hh:42
void SetStopTime(ULong64_t stop)
Definition: QPulseFiller.hh:48
void SetChannel(const int channel)
Definition: QPulseFiller.hh:30
Diana::QULong64 fStopT
Definition: QPulseFiller.hh:58
void SetStartTime(ULong64_t start)
Definition: QPulseFiller.hh:46