CbmRoot
Loading...
Searching...
No Matches
CbmFsdPoint.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2023 Physikalisches Institut, Eberhard Karls Universitaet Tuebingen, Tuebingen
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Volker Friese, Florian Uhlig, Lukas Chlad [committer] */
4
5
#include "
CbmFsdPoint.h
"
6
7
#include <FairMCPoint.h>
// for FairMCPoint
8
#include <Logger.h>
// for Logger, LOG
9
10
#include <sstream>
// for stringstream
11
12
// ----- Default constructor -------------------------------------------
13
CbmFsdPoint::CbmFsdPoint
() : FairMCPoint() {}
14
// -------------------------------------------------------------------------
15
16
17
// ----- Standard constructor ------------------------------------------
18
CbmFsdPoint::CbmFsdPoint
(int32_t trackID, int32_t detID, TVector3
pos
, TVector3 mom,
double
tof,
double
length,
19
double
eLoss)
20
: FairMCPoint(trackID, detID,
pos
, mom, tof, length, eLoss)
21
{
22
}
23
// -------------------------------------------------------------------------
24
25
26
// ----- Destructor ----------------------------------------------------
27
CbmFsdPoint::~CbmFsdPoint
() {}
28
// -------------------------------------------------------------------------
29
30
31
// ----- Public method Print -------------------------------------------
32
void
CbmFsdPoint::Print
(
const
Option_t*
/*opt*/
)
const
{ LOG(info) <<
ToString
(); }
33
34
std::string
CbmFsdPoint::ToString
()
const
35
{
36
std::stringstream ss;
37
ss <<
"Fsd point for track "
<< fTrackID <<
" in detector "
<< fDetectorID <<
"\n"
38
<<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm\n"
39
<<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV\n"
40
<<
" Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
;
41
return
ss.str();
42
}
43
// -------------------------------------------------------------------------
44
45
ClassImp
(
CbmFsdPoint
)
ClassImp
ClassImp(CbmConverterManager)
CbmFsdPoint.h
pos
TVector3 pos
Definition
CbmMvdSensorDigiToHitTask.cxx:56
CbmFsdPoint
Interception of MC track with the plane representing the FSD.
Definition
CbmFsdPoint.h:23
CbmFsdPoint::CbmFsdPoint
CbmFsdPoint()
Definition
CbmFsdPoint.cxx:13
CbmFsdPoint::ToString
std::string ToString() const
Definition
CbmFsdPoint.cxx:34
CbmFsdPoint::~CbmFsdPoint
virtual ~CbmFsdPoint()
Definition
CbmFsdPoint.cxx:27
CbmFsdPoint::Print
virtual void Print(const Option_t *opt) const
Definition
CbmFsdPoint.cxx:32
core
data
fsd
CbmFsdPoint.cxx
Generated on Sun Dec 22 2024 23:04:08 for CbmRoot by
1.12.0