// -------------------------------------------------------- // ---- PndMvdDigiStrip header file --- // ---- Created 10.07.07 by Ralf Kliemt --- // ---- Modified 17.12.09 by Simone Bianco --- // -------------------------------------------------------- #ifndef PNDTIMEDIGISTRIP_H #define PNDTIMEDIGISTRIP_H #include "TObject.h" #include "TString.h" #include #include "PndMvdDigi.h" //! Class for digitised strip hits /** * Information about digitised hits from strip detectors * @author HG Zaunick * **/ class PndTimeDigiStrip : public PndMvdDigi { public : PndTimeDigiStrip(); PndTimeDigiStrip(Double_t tof, Int_t trackID, Int_t index, Int_t detID, TString detName, Int_t fe, Int_t chan, Int_t timestamp, Double_t charge); PndTimeDigiStrip(Double_t tof, Int_t trackID, Int_t index, Int_t detID, TString detName, Int_t fe, Int_t chan, Double_t charge, Int_t timestamp); ~PndTimeDigiStrip(){}; friend std::ostream& operator<< (std::ostream& out, PndTimeDigiStrip& digi){ out << "PndTime DigiStrip in: " << digi.GetDetName() << " FE: " << digi.GetFE() << " Channel " << digi.GetChannel() << " charge " << digi.GetCharge() << " e" << ", from Point(s) "; std::vectorindices = digi.GetIndices(); for (int i = 0; i < indices.size(); i++){ std::cout << indices[i] << " "; } std::cout << std::endl; return out; } Int_t GetChannel() const { return fChannel; } Int_t GetTimestamp() const { return fTimestamp; } Double_t GetTof() const { return fTof; } Int_t GetTrackID() const { return fTrackID; } void AddTof(Double_t tof){fTof = tof;} void AddTrackID(Int_t trackID){fTrackID = trackID;} // const void Print(); Bool_t operator==(const PndTimeDigiStrip& d2) const; // Bool_t const HasNeighbour(const PndTimeDigiStrip& d2); void Print(){ std::cout << *this; } private : Int_t fChannel; /// Frontend Channel Int_t fTimestamp; /// Timestamp of ev Double_t fTof; // time of flight sicne the events started Int_t fTrackID; // ID of the MC Track ClassDef(PndTimeDigiStrip,3); }; #endif