#ifndef HRICH700RAW_H #define HRICH700RAW_H #include "TObject.h" /* * a single tdc hit. Inspired by testbeam code from C.Pauly * JAM (j.adamczewski@gsi.de) 8-Jun-2017 * */ class HRich700hit_t { public: HRich700hit_t(Double_t leading=0, Double_t trailing=0, Double_t tot=0, UInt_t flag=0): fLeadingEdgeTime(leading), fTrailingEdgeTime(trailing), fToT(tot), fFlag(flag){} Double_t fLeadingEdgeTime; Double_t fTrailingEdgeTime; Double_t fToT; UInt_t fFlag; //bit 0: valid rising edge, bit 1: valid falling edge }; /* * raw data of a single rich700 pixel. Is kept in rich700raw category. * contains the list of tdc hits during the event. * JAM (j.adamczewski@gsi.de) 8-Jun-2017 * */ class HRich700Raw : public TObject { private: Int_t fPixelCol; // global pixel column index = Y location Int_t fPixelRow; // global pixel row index = X location std::vector fHitlist; // list of hits in this pixel during the event public: HRich700Raw() : TObject(), fPixelCol(-1), fPixelRow(-1) {fHitlist.clear();} virtual ~HRich700Raw(void) {} Int_t getMultiplicity(void) const {return fHitlist.size();} Int_t getPixelColumn(void) const {return fPixelCol;}; Int_t getPixelRow(void) const {return fPixelRow;} const HRich700hit_t* getHit(const UInt_t n) const { return (n