2 #include <TGraphErrors.h>
22 if (m_cal_xt )
delete m_cal_xt ;
23 if (m_cal_int)
delete m_cal_int;
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");
58 TGraphErrors* gr_t2dx;
60 if (m_cal_xt->
Find(det, gr_t2x, gr_t2dx)) {
63 if (! m_cal_int->
Find(det, ele, center, width)) {
64 cerr <<
" WARNING: Cannot find the in-time parameter for det=" << det <<
" ele=" << ele <<
" in CalibXT.\n";
68 float t0 = center + width / 2;
int InitRun(PHCompositeNode *topNode)
An SQ interface class to hold one detector hit.
virtual ConstIter end() const
void SetMapIDbyDB(const std::string map_id)
CalibXT(const std::string &name="CalibXT")
virtual void set_drift_distance(const float a)
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.
virtual float get_tdc_time() const
Return the TDC time (nsec) of this hit.
An SQ interface class to hold a list of SQHit objects.
An SQ interface class to hold the run-level info.
bool Find(const short det, TGraphErrors *&gr_t2x, TGraphErrors *&gr_t2dx)
virtual short get_element_id() const
Return the element ID of this hit.
virtual ConstIter begin() const
int Init(PHCompositeNode *topNode)
int process_event(PHCompositeNode *topNode)
int End(PHCompositeNode *topNode)
Called at the end of all processing.