#ifndef HFRPCHIT_H #define HFRPCHIT_H #include #include /** * Stores the hit information. Hit is based on a single or overlapping frpc clusters. * The position and variables store the average position from both (or single) cluster. * The track info stores the matched HForwardCand index, the ClusX variables store cluster index * for the FRpcCluster category. */ class HFRpcHit : public TObject { private: Float16_t fX; // position coordinates Float16_t fY; // Float16_t fZ; // Float16_t fTof; // time of flight Short_t fClus1; Short_t fClus2; // contained frpc hit index (hit category) public: HFRpcHit(); Float_t getX() const { return fX; } Float_t getY() const { return fY; } Float_t getZ() const { return fZ; } Float_t getTof() const { return fTof; } Int_t getCluster1() const { return fClus1; } Int_t getCluster2() const { return fClus2; } inline void setHit(Float_t x, Float_t y, Float_t z, Float_t tof, Int_t clus1, Int_t clus2); void print() const; ClassDef(HFRpcHit, 2) }; void HFRpcHit::setHit(Float_t x, Float_t y, Float_t z, Float_t tof, Int_t clus1, Int_t clus2) { fX = x; fY = y; fZ = z; fTof = tof; fClus1 = clus1; fClus2 = clus2; } #endif /* !HFRPCHIT_H */