// -------------------------------------------------------- // ---- PndSdsDigiStrip header file --- // ---- Created 10.07.07 by Ralf Kliemt --- // -------------------------------------------------------- /** PndSdsDigiStrip.h *@author R.Kliemt **/ #ifndef PNDSDSDIGISTRIP_H #define PNDSDSDIGISTRIP_H #include "PndSdsDigi.h" #include "PndDetectorList.h" #include "TObject.h" #include "TString.h" #include //! Class for digitised strip hits /** * Information about digitised hits from strip detectors * @author HG Zaunick * **/ class PndSdsDigiStrip : public PndSdsDigi { public : PndSdsDigiStrip(); PndSdsDigiStrip(std::vector index, Int_t detID, Int_t sensorID, Int_t fe, Int_t chan, Double_t charge, Int_t timestamp = -1); PndSdsDigiStrip(Int_t index, Int_t detID, Int_t sensorID, Int_t fe, Int_t chan, Double_t charge, Int_t timestamp = -1); ~PndSdsDigiStrip(){}; friend std::ostream& operator<< (std::ostream& out, PndSdsDigiStrip& digi){ out << "PndSds DigiStrip in sensor: " << digi.GetSensorID() << " FE: " << digi.GetFE() << " Channel: " << digi.GetChannel() << " charge: " << digi.GetCharge() << " (e or tot)" << " timestamp: "<< digi.GetTimeStamp() << ", from Point(s): "; std::vectorindices = digi.GetIndices(); for (unsigned int i = 0; i < indices.size(); i++){ std::cout << indices[i] << " "; } std::cout << std::endl; return out; } // Int_t GetIndex() const { return fIndex; } // Int_t GetDetID() const { return fDetID;} // TString GetDetName() const { return fDetName; } // Int_t GetFE() const { return fFE; } Int_t GetChannel() const { return fChannel; } // Int_t GetTimestamp() const { return fTimestamp; } // Double_t GetCharge() const { return fCharge; } // Int_t GetMCID() const { return fMCID; } // void SetIndex ( Int_t index ) { fIndex = index; } // void SetDetID ( Int_t detID ) { fDetID = detID; } // void SetDetName ( const TString& detName ) { fDetName = detName; } // void SetFE ( Int_t fe ) { fFE = fe; } // void SetChannel ( Int_t channel ) { fChannel = channel; } // void SetCharge ( Double_t charge ) { fCharge = charge; } // void SetMCID ( Int_t mcID ) { fMCID = mcID; } // const void Print(); Bool_t operator==(const PndSdsDigiStrip& d2) const; // Bool_t const HasNeighbour(const PndSdsDigiStrip& d2); void Print(){ std::cout << *this; } private : // Int_t fIndex; /// MC Point index // Int_t fDetID; /// Detector ID // TString fDetName; /// Detector Name // Int_t fFE; /// Frontend Number Int_t fChannel; /// Frontend Channel // Int_t fTimestamp; /// Timestamp of ev // Double_t fCharge; /// Charge of Hit // Int_t fMCID; /// MC Track index ClassDef(PndSdsDigiStrip,6); }; #endif