// ------------------------------------------------------------------------- // ----- MvdHit source file ----- // ----- Created 07/04/05 by V. Friese ----- // ------------------------------------------------------------------------- #include #include "MvdHit.h" // ----- Default constructor ------------------------------------------- MvdHit::MvdHit() { } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ MvdHit::MvdHit(Int_t trackId, Int_t detID, TString detName, TVector3& pos, TVector3& dpos, Int_t index, Double_t charge, Int_t NPixelHits) : CbmHit(detID, pos, dpos, index) { fDetName = detName; fTrackID = trackId; fCharge = charge; fNPixelHits = NPixelHits; } /*MvdHit::MvdHit(MvdHit& c) : CbmHit() { fDetName = c.GetDetName(); fTrackID = c.GetTrackID(); fCharge = c.GetCharge(); fNPixelHits = c.GetNPixelHits(); SetPosition(c.GetPosition()); SetPositionError(c.GetPositionError()); SetDetectorID(c.GetDetectorID()); SetRefIndex(c.GetRefIndex()); }*/ // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- MvdHit::~MvdHit() {} // ------------------------------------------------------------------------- // ----- Public method Print ------------------------------------------- void MvdHit::Print(const Option_t* opt) const { std::cout << "Hybrid pixel hit in detector " << fDetName << " at (" << fX << ", " << fY << ", " << fZ << ") cm " << ", Point " << fRefIndex << std::endl; } // ------------------------------------------------------------------------- ClassImp(MvdHit)