FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTutPropPoint.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2019 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  ********************************************************************************/
8 #include "FairTutPropPoint.h"
9 
10 #include <TVector3.h>
11 #include <iostream>
12 
13 // ----- Default constructor -------------------------------------------
15  : FairMCPoint()
16 {}
17 // -------------------------------------------------------------------------
18 
19 // ----- Standard constructor ------------------------------------------
21  Int_t detID,
22  TVector3 pos,
23  TVector3 mom,
24  Double_t tof,
25  Double_t length,
26  Double_t eLoss)
27  : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss)
28 {}
29 // -------------------------------------------------------------------------
30 
31 // ----- Destructor ----------------------------------------------------
33 // -------------------------------------------------------------------------
34 
35 // ----- Public method Print -------------------------------------------
36 void FairTutPropPoint::Print(const Option_t* /*opt*/) const
37 {
38  using std::cout;
39  using std::endl;
40 
41  cout << "-I- FairTutPropPoint: FairTutProp point for track " << fTrackID << " in detector " << fDetectorID << endl;
42  cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
43  cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
44  cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
45  << endl;
46 }
47 // -------------------------------------------------------------------------
48 
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
virtual ~FairTutPropPoint()
Int_t fDetectorID
Detector unique identifier.
Definition: FairMCPoint.h:116
Double32_t fY
Definition: FairMCPoint.h:117