// ------------------------------------------------------------------------- // ----- CbmEcalHit source file ----- // ----- Created 11/03/05 by Yu.Kharlov ----- // ------------------------------------------------------------------------- #include "CbmEcalHit.h" #include using std::cout; using std::endl; // ----- Default constructor ------------------------------------------- CbmEcalHit::CbmEcalHit() {} // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- CbmEcalHit::~CbmEcalHit() {} // ------------------------------------------------------------------------- // ----- Public method Print ------------------------------------------- void CbmEcalHit::Print(const Option_t* opt) const { cout << "ECAL hit: cellid=" << GetDetectorId() << ", Energy=" << fEnergy; cout << ", PS Energy=" << fPSEnergy; if (fTrackId>0) cout << ", TrackID= " << fTrackId; // cout << ", x=" << GetX() << ", y=" << GetY() << endl << flush; } // ------------------------------------------------------------------------- ClassImp(CbmEcalHit)