Class Reference for E1039 Core & Analysis Software
SQSpill.h
Go to the documentation of this file.
1 /*
2  * SQSpill.h
3  *
4  * Created on: Oct 29, 2017
5  * Author: yuhw
6  */
7 
8 #ifndef _H_SQSpill_H_
9 #define _H_SQSpill_H_
10 
11 #include <phool/PHObject.h>
12 
13 #include <iostream>
14 #include <limits>
15 #include <string>
16 class SQStringMap;
17 
19 class SQSpill : public PHObject {
20 public:
21  virtual ~SQSpill() {}
22 
23  // PHObject virtual overloads
24 
25  virtual void identify(std::ostream& os = std::cout) const {
26  os << "---SQSpill base class------------" << std::endl;
27  }
28  virtual void Reset() {};
29  virtual int isValid() const {return 0;}
30  virtual SQSpill* Clone() const {return NULL;}
31 
33  virtual int get_run_id() const {return std::numeric_limits<int>::max();}
34  virtual void set_run_id(const int a) {}
35 
37  virtual int get_spill_id() const {return std::numeric_limits<int>::max();}
38  virtual void set_spill_id(const int a) {}
39 
41  virtual short get_target_pos() const {return std::numeric_limits<short>::max();}
42  virtual void set_target_pos(const short a) {}
43 
45  virtual int get_bos_coda_id() const {return std::numeric_limits<int>::max();}
46  virtual void set_bos_coda_id(const int a) {};
47 
49  virtual int get_bos_vme_time() const {return std::numeric_limits<int>::max();}
50  virtual void set_bos_vme_time(const int a) {};
51 
53  virtual int get_eos_coda_id() const {return std::numeric_limits<int>::max();}
54  virtual void set_eos_coda_id(const int a) {};
55 
57  virtual int get_eos_vme_time() const {return std::numeric_limits<int>::max();}
58  virtual void set_eos_vme_time(const int a) {};
59 
61  virtual SQStringMap* get_bos_scaler_list() { return 0; }
62 
64  virtual SQStringMap* get_eos_scaler_list() { return 0; }
65 
67  virtual SQStringMap* get_slow_cont_list() { return 0; }
68 
69 protected:
70  SQSpill() {}
71 
72 private:
73 
74  ClassDef(SQSpill, 1);
75 };
76 
77 
78 
79 
80 #endif /* _H_SQSpill_H_ */
#define NULL
Definition: Pdb.h:9
An SQ interface class to hold the data of one spill.
Definition: SQSpill.h:19
virtual short get_target_pos() const
Return the target position in this spill.
Definition: SQSpill.h:41
virtual int get_spill_id() const
Return the spill ID.
Definition: SQSpill.h:37
virtual int get_eos_vme_time() const
[Obsolete] Use SQHardSpill instead.
Definition: SQSpill.h:57
virtual SQStringMap * get_slow_cont_list()
Return the list of slow control variables.
Definition: SQSpill.h:67
virtual void set_spill_id(const int a)
Definition: SQSpill.h:38
virtual void set_target_pos(const short a)
Definition: SQSpill.h:42
virtual int isValid() const
isValid returns non zero if object contains vailid data
Definition: SQSpill.h:29
virtual SQStringMap * get_bos_scaler_list()
Return the list of scaler variables read out at BOS.
Definition: SQSpill.h:61
virtual int get_run_id() const
Return the run ID when this spill was taken.
Definition: SQSpill.h:33
virtual SQSpill * Clone() const
Definition: SQSpill.h:30
virtual int get_bos_coda_id() const
[Obsolete] Use SQHardSpill instead.
Definition: SQSpill.h:45
virtual void set_run_id(const int a)
Definition: SQSpill.h:34
virtual void Reset()
Clear Event.
Definition: SQSpill.h:28
virtual void set_bos_coda_id(const int a)
Definition: SQSpill.h:46
virtual void set_bos_vme_time(const int a)
Definition: SQSpill.h:50
virtual SQStringMap * get_eos_scaler_list()
Return the list of scaler variables read out at EOS.
Definition: SQSpill.h:64
SQSpill()
Definition: SQSpill.h:70
virtual void set_eos_coda_id(const int a)
Definition: SQSpill.h:54
virtual ~SQSpill()
Definition: SQSpill.h:21
virtual void identify(std::ostream &os=std::cout) const
Definition: SQSpill.h:25
virtual int get_bos_vme_time() const
[Obsolete] Use SQHardSpill instead.
Definition: SQSpill.h:49
virtual void set_eos_vme_time(const int a)
Definition: SQSpill.h:58
virtual int get_eos_coda_id() const
[Obsolete] Use SQHardSpill instead.
Definition: SQSpill.h:53
A general-purpose SQ interface class that holds a list of PHObjects with key = string.
Definition: SQStringMap.h:14