trig_info.hh

Go to the documentation of this file.
00001 
00014 #ifndef TRIG_INFO_HH
00015 #define TRIG_INFO_HH
00016 
00017 #include "data_base.hh"
00018 
00023 class trig_info : public data_base {
00024 
00025 public:
00026 
00028   trig_info() : data_base() { init_vars(); };
00029 
00031   trig_info(const trig_info &original);
00032 
00034   virtual ~trig_info(){};
00035 
00037   void set_reminder_16MHz(UShort_t remin){_reminder_16MHz=remin;};
00038 
00040   void set_reminder_64MHz(UShort_t remin){_reminder_64MHz=remin;};
00041 
00043   void set_trig_frame_id(PMT::word_t id){_trig_frame_id=id;};
00044 
00046   void set_trig_timeslice(PMT::word_t t){_trig_timeslice=t;};
00047 
00049   void set_trig_id(UShort_t id){_trig_id=id;};
00050 
00052   void set_pmt_data(UShort_t data){_pmt_data=data;};
00053 
00055   UShort_t reminder_16MHz() {return _reminder_16MHz;};
00056 
00058   UShort_t reminder_64MHz() {return _reminder_64MHz;};
00059 
00061   PMT::word_t trig_frame_id(){return _trig_frame_id;};
00062 
00064   PMT::word_t trig_timeslice(){return _trig_timeslice;};
00065 
00067   PMT::word_t trig_id(){return _trig_id;};
00068   
00070   UShort_t pmt_data(){return _pmt_data;};
00071 
00073   void set_trigger_bits(bool trig_pc,  bool trig_ext,
00074             bool active,   bool gate1_in,
00075             bool gate2_in, bool veto_in,
00076             bool calib)
00077   { _trig_pc  = trig_pc;   _trig_ext = trig_ext;
00078     _active   = active;    _gate1_in = gate1_in;
00079     _gate2_in = gate2_in; _veto_in  = veto_in;
00080     _calib    = calib;
00081   };
00082 
00084   bool trig_pc(){return _trig_pc;};
00085 
00087   bool trig_ext(){return _trig_ext;};
00088 
00090   bool active(){return _active;};
00091 
00093   bool gate1(){return _gate1_in;};
00094 
00096   bool gate2(){return _gate2_in;};
00097 
00099   bool veto_in(){return _veto_in;};
00100 
00102   bool calib(){return _calib;};
00103 
00105   virtual void clear_data();
00106 
00107 protected:
00108 
00109   void init_vars();
00110 
00111   UShort_t    _trig_timeslice;
00112   PMT::word_t _trig_frame_id;
00113   PMT::word_t _trig_id;
00114   UShort_t    _pmt_data;
00115   bool        _trig_pc;
00116   bool        _trig_ext;
00117   bool        _active;
00118   bool        _gate1_in;
00119   bool        _gate2_in;
00120   bool        _veto_in;
00121   bool        _calib;
00122   UShort_t    _reminder_64MHz;
00123   UShort_t    _reminder_16MHz;
00124 
00126   ClassDef(trig_info,3)
00128 
00129 };
00130 
00131 #endif
00132  // end of doxygen group 

Generated on Mon Apr 7 15:35:12 2014 for MyProject by  doxygen 1.4.7