FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
FairTutorialDet4Point.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 "
FairTutorialDet4Point.h
"
9
10
#include "
FairLogger.h
"
11
12
FairTutorialDet4Point::FairTutorialDet4Point
()
13
:
FairMCPoint
()
14
{}
15
16
FairTutorialDet4Point::FairTutorialDet4Point
(Int_t trackID,
17
Int_t detID,
18
TVector3 pos,
19
TVector3 mom,
20
Double_t tof,
21
Double_t length,
22
Double_t eLoss)
23
:
FairMCPoint
(trackID, detID, pos, mom, tof, length, eLoss)
24
{}
25
26
void
FairTutorialDet4Point::Print
(
const
Option_t*
/*opt*/
)
const
27
{
28
LOG(info) <<
"-I- FairTutorialDet4Point: TutorialDet point for track "
<<
fTrackID
<<
" in detector "
29
<<
fDetectorID
;
30
LOG(info) <<
" Position ("
<<
fX
<<
", "
<<
fY
<<
", "
<<
fZ
<<
") cm"
;
31
LOG(info) <<
" Momentum ("
<<
fPx
<<
", "
<<
fPy
<<
", "
<<
fPz
<<
") GeV"
;
32
LOG(info) <<
" Time "
<<
fTime
<<
" ns, Length "
<<
fLength
<<
" cm, Energy loss "
<<
fELoss
* 1.0e06
33
<<
" keV"
;
34
}
35
36
ClassImp
(
FairTutorialDet4Point
);
FairMCPoint::fPy
Double32_t fPy
Definition:
FairMCPoint.h:112
FairMCPoint::fZ
Double32_t fZ
Position of hit [cm].
Definition:
FairMCPoint.h:117
FairTutorialDet4Point::Print
virtual void Print(const Option_t *opt) const
Definition:
FairTutorialDet4Point.cxx:26
FairMCPoint::fLength
Double32_t fLength
Track length since creation [cm].
Definition:
FairMCPoint.h:114
FairMCPoint::fELoss
Double32_t fELoss
Energy loss at this point [GeV].
Definition:
FairMCPoint.h:115
FairMCPoint
Definition:
FairMCPoint.h:28
FairMCPoint::fTrackID
Int_t fTrackID
Track index.
Definition:
FairMCPoint.h:110
ClassImp
ClassImp(FairEventBuilder)
FairMCPoint::fX
Double32_t fX
Definition:
FairMCPoint.h:117
FairMCPoint::fPx
Double32_t fPx
Definition:
FairMCPoint.h:112
FairTutorialDet4Point
Definition:
FairTutorialDet4Point.h:16
FairTutorialDet4Point::FairTutorialDet4Point
FairTutorialDet4Point()
Definition:
FairTutorialDet4Point.cxx:12
FairMCPoint::fPz
Double32_t fPz
Momentum components [GeV].
Definition:
FairMCPoint.h:112
FairMCPoint::fTime
Double32_t fTime
Time since event start [ns].
Definition:
FairMCPoint.h:113
FairTutorialDet4Point.h
FairLogger.h
FairMCPoint::fDetectorID
Int_t fDetectorID
Detector unique identifier.
Definition:
FairMCPoint.h:116
FairMCPoint::fY
Double32_t fY
Definition:
FairMCPoint.h:117
FairRoot
examples
simulation
Tutorial4
src
data
FairTutorialDet4Point.cxx
Generated on Mon Mar 8 2021 12:14:06 for FairRoot by
1.8.5