//------------------------------------------------------------------------------------------------------------------------ #include using namespace std; #include "MpdDchHit.h" //------------------------------------------------------------------------------------------------------------------------ MpdDchHit::MpdDchHit() : FairHit(), fFlag(0), fNofDim(1), fPhi(0.) { fMeas[1] = fError[1] = 0.; } //------------------------------------------------------------------------------------------------------------------------ MpdDchHit::MpdDchHit(Int_t detID, TVector3 pos, TVector3 dpos, Int_t index, Int_t flag) : FairHit(detID, pos, dpos, index), fFlag(flag), fNofDim(1), fPhi(0.) { fMeas[1] = fError[1] = 0.; } //------------------------------------------------------------------------------------------------------------------------ MpdDchHit::MpdDchHit(Int_t detID, TVector3 pos, TVector3 dpos, Int_t index) : FairHit(detID, pos, dpos, index), fFlag(0), fNofDim(1), fPhi(0.) { fMeas[1] = fError[1] = 0.; } //------------------------------------------------------------------------------------------------------------------------ MpdDchHit::~MpdDchHit() { } //------------------------------------------------------------------------------------------------------------------------ void MpdDchHit::Print(const Option_t* opt) const { cout<<"-I- MpdDchHit"<GetLayer()) return -1; else if (GetLayer() > kHit->GetLayer()) return 1; else { if (TMath::Abs(fZ) < TMath::Abs(kHit->GetZ())) return -1; else if (TMath::Abs(fZ) > TMath::Abs(kHit->GetZ())) return 1; else return 0; } } //------------------------------------------------------------------------------------------------------------------------ ClassImp(MpdDchHit)