FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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 -------------------------------------------
15
NewDetectorPoint::NewDetectorPoint
()
16
:
FairMCPoint
()
17
{}
18
// -------------------------------------------------------------------------
19
20
// ----- Standard constructor ------------------------------------------
21
NewDetectorPoint::NewDetectorPoint
(Int_t trackID,
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 ----------------------------------------------------
33
NewDetectorPoint::~NewDetectorPoint
() {}
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
47
ClassImp
(
NewDetectorPoint
);
NewDetectorPoint
Definition:
NewDetectorPoint.h:16
NewDetectorPoint::fX
double fX
Definition:
NewDetectorPoint.h:81
FairMCPoint
Definition:
FairMCPoint.h:28
NewDetectorPoint::fELoss
double fELoss
Energy loss at this point [GeV].
Definition:
NewDetectorPoint.h:79
NewDetectorPoint::fPy
double fPy
Definition:
NewDetectorPoint.h:76
NewDetectorPoint::fPx
double fPx
Definition:
NewDetectorPoint.h:76
ClassImp
ClassImp(FairEventBuilder)
NewDetectorPoint::Print
virtual void Print(const Option_t *opt) const
Definition:
NewDetectorPoint.cxx:37
NewDetectorPoint.h
NewDetectorPoint::~NewDetectorPoint
virtual ~NewDetectorPoint()
Definition:
NewDetectorPoint.cxx:33
NewDetectorPoint::fTrackID
int fTrackID
Track index.
Definition:
NewDetectorPoint.h:74
NewDetectorPoint::fTime
double fTime
Time since event start [ns].
Definition:
NewDetectorPoint.h:77
NewDetectorPoint::fPz
double fPz
Momentum components [GeV].
Definition:
NewDetectorPoint.h:76
NewDetectorPoint::fZ
double fZ
Position of hit [cm].
Definition:
NewDetectorPoint.h:81
NewDetectorPoint::NewDetectorPoint
NewDetectorPoint()
Definition:
NewDetectorPoint.cxx:15
NewDetectorPoint::fLength
double fLength
Track length since creation [cm].
Definition:
NewDetectorPoint.h:78
NewDetectorPoint::fY
double fY
Definition:
NewDetectorPoint.h:81
NewDetectorPoint::fDetectorID
int fDetectorID
Detector unique identifier.
Definition:
NewDetectorPoint.h:80
FairRoot
templates
project_root_containers
NewDetector
NewDetectorPoint.cxx
Generated on Mon Mar 8 2021 12:14:06 for FairRoot by
1.8.5