// ------------------------------------------------------------------------- // ----- PndDchCylinderHit source file ----- // ----- Created 25/11/08 by A. Wronska ----- // ------------------------------------------------------------------------- // Pnd includes #include "PndDchCylinderHit.h" #include "PndDchDigi.h" #include "PndDetectorList.h" // ROOT includes #include "TMath.h" // C++ includes #include using std::cout; using std::endl; // ----- Default constructor ------------------------------------------- PndDchCylinderHit::PndDchCylinderHit() { fDigiIndex = 0; fWireXcoordLocal = 0.; fWireZcoordGlobal = 0; fDistance = 0.; fAlpha = 0; fWireEnd1 = TVector2(0,0); fWireEnd2 = TVector2(0,0); } // ------------------------------------------------------------------------- // ----- Constructor --------------------------------------------------- PndDchCylinderHit::PndDchCylinderHit(Int_t digiidx, Double_t xLoc, Double_t zGlo, Double_t dist, Double_t distErr, Double_t alpha, TVector2 end1, TVector2 end2){ fDigiIndex = digiidx; fWireXcoordLocal = xLoc; fWireZcoordGlobal = zGlo; fDistance = dist; fDistanceError = distErr; fAlpha = alpha; fWireEnd1 = end1; fWireEnd2 = end2; SetLink(FairLink(kDchDigi, digiidx)); } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- PndDchCylinderHit::~PndDchCylinderHit() {} // ------------------------------------------------------------------------- // ----- Public method Print ------------------------------------------- void PndDchCylinderHit::Print() const { cout << " Hit at zGlobal = "<< fWireZcoordGlobal << " cm, wire's xLocal = "<