er  dev
ERTrack.cxx
1 /********************************************************************************
2  * Copyright (C) Joint Institute for Nuclear Research *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #include "ERTrack.h"
9 
10 #include "FairLogger.h"
11 
12 ERTrack::ERTrack(const TVector3& detectorVertex, const TVector3& targetVertex, Double_t edep)
13  : fTargetVertex(targetVertex), fDetectorVertex(detectorVertex), fEdep(edep)
14 {
15 }
16 
17 void ERTrack::Print(const Option_t* opt /*= 0*/) const {
18  LOG(INFO) << "-I- ERDigi: detector position = (" << fDetectorVertex.X() << ", "
19  << fDetectorVertex.Y() << ", " << fDetectorVertex.Z()
20  << "), target position = (" << fTargetVertex.X() << ", " << fTargetVertex.Y()
21  << ", " << fTargetVertex.Z() << ")" << FairLogger::endl;
22 }
23 
24 ClassImp(ERTrack)