1 #ifndef _H_SQEvent_v2_H_
2 #define _H_SQEvent_v2_H_
13 unsigned short _trigger;
27 virtual void identify(std::ostream& os = std::cout)
const;
47 virtual void set_trigger(
const unsigned short a) {_trigger = a;}
50 if (i<4)
return _qie_presums[i];
54 if(i<4) _qie_presums[i] = a;
55 else std::cout<<
"SQEvent_v2::set_qie_presum: i>=4";
68 if (abs(i)<=16)
return _qie_rf_inte[i+16];
72 if(abs(i)<=16) _qie_rf_inte[i+16] = a;
73 else std::cout<<
"SQEvent_v2::set_qie_rf_intensity: abs(i)>16";
virtual void set_qie_trigger_count(const int a)
virtual void set_run_id(const int a)
virtual void set_qie_presum(const unsigned short i, const int a)
virtual bool get_trigger(const SQEvent::TriggerMask i) const
Return the trigger bit (fired or not) of the selected trigger channel.
virtual void Reset()
Clear Event.
virtual void set_qie_rf_intensity(const short i, const int a)
virtual int get_spill_id() const
Return the spill ID.
virtual void set_qie_rf_id(const int a)
virtual void identify(std::ostream &os=std::cout) const
virtual int get_data_quality() const
Return the data-quality bits.
virtual int get_qie_rf_id() const
Return the QIE RF ID.
virtual void set_event_id(const int a)
virtual void set_data_quality(const int a)
virtual int get_run_id() const
Return the run ID.
virtual int get_qie_rf_intensity(const short i) const
Return the i-th QIE RF intensity, where i=-16...+16.
virtual int get_qie_trigger_count() const
Return the QIE trigger counts.
virtual int get_event_id() const
Return the event ID, which is unique per run.
virtual void set_qie_turn_id(const int a)
virtual unsigned short get_trigger() const
Return the full trigger bits.
virtual void set_trigger(const unsigned short a)
virtual int isValid() const
isValid returns non zero if object contains vailid data
virtual void set_spill_id(const int a)
virtual int get_qie_presum(const unsigned short i) const
Return the i-th QIE presum, where i=0...3.
virtual void set_trigger(const SQEvent::TriggerMask i, const bool a)
virtual int get_qie_turn_id() const
Return the QIE turn ID.
virtual SQEvent * Clone() const
An SQ interface class to hold one event header.