//* $Id: *// // ------------------------------------------------------------------------- // ----- CbmStsHit header file ----- // ----- Created 30/08/06 by V. Friese ----- // ------------------------------------------------------------------------- /** CbmStsHit *@author Volker Friese *@since 30.08.06 *@version 1.0 ** ** Data class for a reconstructed hit in the STS ** Data level RECO ** Derived from CbmHit. ** Additional members: Channel numbers and covariance in x and y ** In case of pixel sensor backside channel is -1 **/ #ifndef CBMSTSSHIT_H #define CBMSTSSHIT_H 1 #include "TVector3.h" #include "CbmHit.h" class CbmStsHit : public CbmHit { public: /** Default constructor (not for use) **/ CbmStsHit(); /** Standard constructor *@param detId Unique detector ID *@param pos Position in global c.s. [cm] *@param dPos Errors of position in global c.s. [cm] *@param dxy Covariance of x and y *@param iDigiF Digi index front side *@param iDigiB Digi index back side **/ CbmStsHit(Int_t detId, TVector3& pos, TVector3& dPos, Double_t dxy, Int_t iDigiF, Int_t iDigiB); /** Destructor **/ virtual ~CbmStsHit(); /** Accessors **/ Int_t GetSystemId() const { return ( fDetectorID & (15<<24) ) >> 24; } Int_t GetStationNr() const { return ( fDetectorID & (255<<16) ) >> 16; } Int_t GetSectorNr() const { // sector number within station return ( fDetectorID & (32767<<1) ) >> 1; } Double_t GetCovXY() const { return fDxy; } Int_t GetDigi(Int_t iSide) const; // front side = 0; back side = 1 /** Screen output **/ virtual void Print(Option_t* opt) const; private: Double32_t fDxy; //* Covariance in x and y Int_t fDigiF; //* Channel number front side Int_t fDigiB; //* Channel number back side ClassDef(CbmStsHit,1); }; #endif