22 if (m_cal_taiwan)
delete m_cal_taiwan;
23 if (m_cal_v1495 )
delete m_cal_v1495;
33 SQParamDeco* param_deco = findNode::getClass<SQParamDeco>(topNode,
"SQParamDeco");
34 SQRun* run_header = findNode::getClass<SQRun >(topNode,
"SQRun");
52 SQHitVector* hit_vec = findNode::getClass<SQHitVector>(topNode,
"SQHitVector");
53 SQHitVector* trig_hit_vec = findNode::getClass<SQHitVector>(topNode,
"SQTriggerHitVector");
60 if (det == 0)
continue;
63 if (! m_cal_taiwan->
Find(det, ele, center, width)) {
64 cerr <<
" WARNING: Cannot find the in-time parameter for det=" << det <<
" ele=" << ele <<
".\n";
72 for (
SQHitVector::Iter it = trig_hit_vec->begin(); it != trig_hit_vec->end(); it++) {
77 if (det == 0)
continue;
80 if (! m_cal_v1495->
Find(det, ele, lvl, center, width)) {
81 cerr <<
" WARNING: Cannot find the in-time parameter for trigger det=" << det <<
" ele=" << ele <<
" lvl=" << lvl <<
".\n";
bool Find(const short det, const short ele, const short lvl, double ¢er, double &width)
An SQ interface class to hold one detector hit.
virtual ConstIter end() const
void SetMapIDbyDB(const std::string map_id)
int Init(PHCompositeNode *topNode)
int End(PHCompositeNode *topNode)
Called at the end of all processing.
std::vector< SQHit * >::iterator Iter
virtual void set_variable(const std::string name, const std::string value)=0
virtual short get_detector_id() const
Return the detector ID of this hit.
int process_event(PHCompositeNode *topNode)
virtual float get_tdc_time() const
Return the TDC time (nsec) of this hit.
CalibInTime(const std::string &name="CalibInTime")
An SQ interface class to hold a list of SQHit objects.
virtual void set_in_time(const bool a)
An SQ interface class to hold the run-level info.
virtual short get_level() const
Return the trigger level of this hit. Meaningful only if this hit is of V1495 TDC.
virtual short get_element_id() const
Return the element ID of this hit.
int InitRun(PHCompositeNode *topNode)
virtual ConstIter begin() const