#ifndef __HPARTICLETOOL_H__ #define __HPARTICLETOOL_H__ #include "TObject.h" #include "TH1.h" class HParticleTool : public TObject { public: HParticleTool(); ~HParticleTool(); static Float_t phiSecToLabDeg(Int_t sec, Float_t phiRad); static Float_t thetaToLabDeg(Float_t thetaRad); static Float_t getOpeningAngle(Float_t phi1,Float_t theta1,Float_t phi2,Float_t theta2); static Int_t findFirstHitInTof (Int_t trackID,Int_t modeTrack = 2); static Int_t findFirstHitShowerInTofino(Int_t trackID,Int_t modeTrack = 2); static Int_t findFirstHitShowerInRpc (Int_t trackID,Int_t modeTrack = 2); static Float_t getInterpolatedValue(TH1* h, Float_t xVal,Bool_t warn = kTRUE); static Stat_t getValue(TH1* h,Float_t xVal, Float_t yVal = 0.0f, Float_t zVal = 0.0f); ClassDef(HParticleTool,0) }; #endif //__HPARTICLETOOL_H__