27 SQEvent*
event = findNode::getClass<SQEvent>(topNode,
"SQEvent");
30 int run_id =
event->get_run_id();
31 int qual =
event->get_data_quality();
34 if (run_id >= 28664) n_tdc = 101;
42 if (event->get_n_board_taiwan() != n_tdc) qual |= ERR_N_TDC;
43 if (event->get_n_board_v1495 () < 2) qual |= ERR_N_V1495_0;
44 else if (event->get_n_board_v1495 () > 2) qual |= ERR_N_V1495_2;
45 if (event->get_n_board_trig_bit () < 1) qual |= ERR_N_TRIGB_0;
46 else if (event->get_n_board_trig_bit () > 1) qual |= ERR_N_TRIGB_2;
47 if (event->get_n_board_trig_count () < 1) qual |= ERR_N_TRIGC_0;
48 else if (event->get_n_board_trig_count () > 1) qual |= ERR_N_TRIGC_2;
49 if (event->get_n_board_qie () < 1) qual |= ERR_N_QIE_0;
50 else if (event->get_n_board_qie () > 1) qual |= ERR_N_QIE_2;
52 event->set_data_quality(qual);
66 void CalibEvtQual::PrintEvent(
SQEvent* evt)
CalibEvtQual(const std::string &name="CalibEvtQual")
virtual int get_run_id() const =0
Return the run ID.
virtual int get_data_quality() const =0
Return the data-quality bits.
virtual int get_event_id() const =0
Return the event ID, which is unique per run.
virtual int get_spill_id() const =0
Return the spill ID.
virtual int get_vme_time() const =0
Return the VME time.
int End(PHCompositeNode *topNode)
Called at the end of all processing.
An SQ interface class to hold one event header.
int InitRun(PHCompositeNode *topNode)
virtual int get_coda_event_id() const =0
Return the Coda-event ID, which is unique per run.
int Init(PHCompositeNode *topNode)
int process_event(PHCompositeNode *topNode)