// ------------------------------------------------------------------------- // ----- CbmMvdDigiMatch header file ----- // ----- Created 02/04/08 by C.Dritsa ----- // ------------------------------------------------------------------------- #ifndef CBMMVDDIGIMATCH_H #define CBMMVDDIGIMATCH_H 1 #include "CbmDetectorList.h" #include "CbmDigi.h" #include "CbmMvdDetectorId.h" #include "TObject.h" #include "TMath.h" #include "TVector3.h" class CbmMvdDigiMatch : public TObject { public: /** Default constructor **/ CbmMvdDigiMatch(); /** Constructor with all variables **/ CbmMvdDigiMatch(Float_t charge, Int_t flagMC, Int_t* trackID, Int_t* pointID, Float_t* pointX, Float_t* pointY, Short_t contributors, Short_t dominatorIndex, Float_t maxChargeContribution); /** charge : of each fired pixel in electrons */ /** Destructor **/ virtual ~CbmMvdDigiMatch(); /** Accessors **/ Float_t GetCharge() {return fCharge; }; Int_t GetFlag() {return fDigiFlag;} Float_t GetDominatorX() {return fPointX[fDominatorIndex];} Float_t GetDominatorY() {return fPointY[fDominatorIndex];} Int_t GetDominatorPointID(){return fPointIDArray[fDominatorIndex];} Int_t GetDominatorTrackID(){return fTrackIDArray[fDominatorIndex];} Int_t GetNContributors(){return fContributors;} Float_t* GetPointX() {return fPointX;} Float_t* GetPointY() {return fPointY;} Int_t* GetTrackID() {return fTrackIDArray;} Int_t* GetPointID() {return fPointIDArray;} Int_t GetTrackID(UInt_t index); Int_t GetPointID(UInt_t index); Float_t GetPointX (UInt_t index); Float_t GetPointY (UInt_t index); /** Modifiers **/ void SetCharge(Float_t charge) { fCharge = charge; }; void SetFlagMC(Int_t flag) { fDigiFlag = flag; }; private: Int_t fTrackIDArray[5]; Int_t fPointIDArray[5]; Int_t fDigiFlag; // Info from the readout system Float_t fMaxChargeContribution; Float_t fPointX[5]; Float_t fPointY[5]; Short_t fContributors; Short_t fDominatorIndex; Int_t fCharge; ClassDef(CbmMvdDigiMatch,1); }; #endif