FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTestDetectorPoint.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
9 
10 #include "FairLogger.h"
11 
13  : FairMCPoint()
14  , fX_out(0.)
15  , fY_out(0.)
16  , fZ_out(0.)
17  , fPx_out(0.)
18  , fPy_out(0.)
19  , fPz_out(0.)
20 {}
21 
23  Int_t detID,
24  TVector3 pos,
25  TVector3 mom,
26  TVector3 posOut,
27  TVector3 momOut,
28  Double_t tof,
29  Double_t length,
30  Double_t eLoss)
31  : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss)
32  , fX_out(posOut.X())
33  , fY_out(posOut.Y())
34  , fZ_out(posOut.Z())
35  , fPx_out(momOut.Px())
36  , fPy_out(momOut.Py())
37  , fPz_out(momOut.Pz())
38 {}
39 
41 
42 void FairTestDetectorPoint::Print(const Option_t* /*opt*/) const
43 {
44  LOG(info) << "FairTestDetectorPoint: FairTestDetector point for track " << fTrackID << " in detector "
45  << fDetectorID;
46  LOG(info) << " Position (" << fX << ", " << fY << ", " << fZ << ") cm";
47  LOG(info) << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV";
48  LOG(info) << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06
49  << " keV";
50 }
51 
Double32_t fPy
Definition: FairMCPoint.h:112
Double32_t fZ
Position of hit [cm].
Definition: FairMCPoint.h:117
Double32_t fLength
Track length since creation [cm].
Definition: FairMCPoint.h:114
Double32_t fELoss
Energy loss at this point [GeV].
Definition: FairMCPoint.h:115
Int_t fTrackID
Track index.
Definition: FairMCPoint.h:110
ClassImp(FairEventBuilder)
Double32_t fX
Definition: FairMCPoint.h:117
Double32_t fPx
Definition: FairMCPoint.h:112
Double32_t fPz
Momentum components [GeV].
Definition: FairMCPoint.h:112
virtual void Print(const Option_t *opt) const
Double32_t fTime
Time since event start [ns].
Definition: FairMCPoint.h:113
Int_t fDetectorID
Detector unique identifier.
Definition: FairMCPoint.h:116
Double32_t fY
Definition: FairMCPoint.h:117