// ------------------------------------------------------------------------- // ----- 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 ** CbmHit, it holds the number of the pixel (column and row). **/ #ifndef MVDHIT_H #define MVDHIT_H #include "TVector3.h" #include "TString.h" #include "CbmHit.h" class MvdHit : public CbmHit { public: /** Default constructor (not for use) **/ MvdHit(); /** 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 **/ MvdHit(Int_t trackID, Int_t detID, TString detName, TVector3& pos, TVector3& dpos, Int_t index, Double_t charge, Int_t NPixelHits); //MvdHit(MvdHit& c); /** Destructor **/ virtual ~MvdHit(); /** Accessors **/ void SetTrackID(Int_t id){fTrackID = id;}; void SetDetName(TString name){fDetName = name;}; void SetCharge(Double_t charge){fCharge = charge;}; void SetNPixelHits(Int_t pixel){fNPixelHits = pixel;}; TString GetDetName()const { return fDetName; } Int_t GetTrackID(){return fTrackID;}; Double_t GetCharge(){return fCharge;}; 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; Int_t fNPixelHits; ClassDef(MvdHit,6); }; #endif