// ------------------------------------------------------------------------- // ----- CbmMvdHit header file ----- // ----- Created 07/11/06 by V. Friese ----- // ------------------------------------------------------------------------- /** CbmMvdHit.h *@author V.Friese ** ** Data class for hits in the CBM-MVD. ** Data level RAW. ** Original source (CbmStsMapsHit) by M. Deveaux. ** ** Hit flag not used up to now (will come later with real hit finding). **/ #ifndef CBMMVDHIT_H #define CBMMVDHIT_H 1 #include "CbmHit.h" #include "CbmMvdDetectorId.h" #include "TClonesArray.h" #include #include "TVector3.h" class CbmMvdHit : public CbmHit, public CbmMvdDetectorId { public: /** Default constructor **/ CbmMvdHit(); /** Standard constructor *@param statNr Station number *@param pos Position coordinates [cm] *@param dpos Errors in position coordinates [cm] *@param flag Hit flag **/ CbmMvdHit(Int_t statNr, TVector3& pos, TVector3& dpos, Int_t indexCentralX, Int_t indexCentralY, Int_t fClusterIndex, Int_t flag); /** Destructor **/ virtual ~CbmMvdHit(); /** Output to screen **/ virtual void Print(const Option_t* opt = 0) const; /** Accessors **/ Int_t GetSystemId() const { return SystemId(fDetectorID); }; virtual Int_t GetStationNr() const { return StationNr(fDetectorID); }; Int_t GetFlag() const { return fFlag; }; Int_t GetClusterIndex() const { return fClusterIndex;}; Int_t GetIndexCentralX() const { return fIndexCentralX;}; // returns index of center of gravity Int_t GetIndexCentralY() const { return fIndexCentralY;}; // returns index of center of gravity void GetDigiIndexVector(TClonesArray* cbmMvdClusterArray, std::vector* digiIndexVector); protected: Int_t fFlag; // Hit flag; to be used later Int_t fClusterIndex; Int_t fIndexCentralX; Int_t fIndexCentralY; ClassDef(CbmMvdHit,1); }; #endif