FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NewDetectorPoint.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  ********************************************************************************/
8 #include "NewDetectorPoint.h"
9 
10 #include <iostream>
11 using std::cout;
12 using std::endl;
13 
14 // ----- Default constructor -------------------------------------------
16  : FairMCPoint()
17 {}
18 // -------------------------------------------------------------------------
19 
20 // ----- Standard constructor ------------------------------------------
22  Int_t detID,
23  TVector3 pos,
24  TVector3 mom,
25  Double_t tof,
26  Double_t length,
27  Double_t eLoss)
28  : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss)
29 {}
30 // -------------------------------------------------------------------------
31 
32 // ----- Destructor ----------------------------------------------------
34 // -------------------------------------------------------------------------
35 
36 // ----- Public method Print -------------------------------------------
37 void NewDetectorPoint::Print(const Option_t* /*opt*/) const
38 {
39  cout << "-I- NewDetectorPoint: NewDetector point for track " << fTrackID << " in detector " << fDetectorID << endl;
40  cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
41  cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
42  cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
43  << endl;
44 }
45 // -------------------------------------------------------------------------
46 
double fELoss
Energy loss at this point [GeV].
ClassImp(FairEventBuilder)
virtual void Print(const Option_t *opt) const
virtual ~NewDetectorPoint()
int fTrackID
Track index.
double fTime
Time since event start [ns].
double fPz
Momentum components [GeV].
double fZ
Position of hit [cm].
double fLength
Track length since creation [cm].
int fDetectorID
Detector unique identifier.