// ------------------------------------------------------------------------- // ----- MvdHit header file ----- // ----- Created 07/04/05 by V. Friese ----- // ------------------------------------------------------------------------- /** MvdHit.h *@author V.Friese ** ** A hit in a hybrid pixel station of STS. In addition to the base class ** FairHit, it holds the number of the pixel (column and row). **/ #ifndef PNDTOFHIT_H #define PNDTOFHIT_H #include "TVector3.h" #include "TString.h" #include "FairHit.h" class PndTofHit : public FairHit { public: /** Default constructor (not for use) **/ PndTofHit(); /** Standard constructor with all paramneters *@param trackID Track ID *@param detID Detector ID *@param detName Detector Name *@param pos Position vector [cm] *@param dpos Position error vector [cm] *@param charge Charge measured in hit *@param NPixelHits Number of pixels fired for this event **/ PndTofHit(Int_t trackID, Int_t detID, TString detName,Double_t time,Double_t dt, TVector3& pos,TVector3& dpos,Int_t index, Double_t charge); //PndTofHit(PndTofHit& c); /** Destructor **/ virtual ~PndTofHit(); /** Accessors **/ void SetTrackID(Int_t id){fTrackID = id;}; void SetDetName(TString name){fDetName = name;}; void SetCharge(Double_t charge){fCharge = charge;}; void SetTime(Double_t time){ftime = time;}; //void SetNPixelHits(Int_t pixel){fNPixelHits = pixel;}; TString GetDetName()const { return fDetName; } Int_t GetTrackID(){return fTrackID;}; Double_t GetCharge(){return fCharge;}; Double_t GetTime(){return ftime;}; Double_t GetDt(){return fdt;}; //Int_t GetNPixelHits() const { return fNPixelHits; } TVector3 GetPosition() const { return TVector3(fX, fY, fZ); } /** Screen output **/ virtual void Print(const Option_t* opt = 0) const; public: TString fDetName; // Detector name Int_t fTrackID; Double_t fCharge,ftime,fdt; //Int_t fNPixelHits; ClassDef(PndTofHit,6); }; #endif