FairShip
Loading...
Searching...
No Matches
TargetPoint.cxx
Go to the documentation of this file.
1
// SPDX-License-Identifier: LGPL-3.0-or-later
2
// SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP
3
// Collaboration
4
5
#include "
TargetPoint.h
"
6
7
#include <iostream>
8
using
std::cout;
9
using
std::endl;
10
11
// ----- Default constructor -------------------------------------------
12
TargetPoint::TargetPoint
() : FairMCPoint() {}
13
// -------------------------------------------------------------------------
14
15
// ----- Standard constructor ------------------------------------------
16
/*
17
TargetPoint::TargetPoint(Int_t trackID, Int_t detID,TVector3 pos, TVector3 mom,
18
Double_t tof, Double_t length,
19
Double_t eLoss, Int_t pdgcode,
20
Bool_t emTop, Bool_t emBot,Bool_t emCESTop, Bool_t
21
emCESBot, Bool_t tt, Int_t nPlate, Int_t nColumn, Int_t nRow, Int_t nWall) :
22
FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),fPdgCode(pdgcode),
23
fEmTop(emTop), fEmBot(emBot), fEmCESTop(emCESTop),
24
fEmCESBot(emCESBot),fTT(tt), fNPlate(nPlate),fNColumn(nColumn),
25
fNRow(nRow),fNWall(nWall) { }
26
*/
27
28
TargetPoint::TargetPoint
(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom,
29
Double_t tof, Double_t length, Double_t eLoss,
30
Int_t pdgcode)
31
: FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),
32
fPdgCode(pdgcode) {}
33
34
// -------------------------------------------------------------------------
35
36
//, EmTop, EmBot, EmCESTop,EmCESBot,TT,NPlate,NColumn,NRow,NWall
37
// ----- Destructor ----------------------------------------------------
38
TargetPoint::~TargetPoint
() {}
39
// -------------------------------------------------------------------------
40
41
// ----- Public method Print -------------------------------------------
42
void
TargetPoint::Print
(
const
Option_t* opt)
const
{
43
cout <<
"-I- TargetPoint: ShipRpc point for track "
<< fTrackID
44
<<
" in detector "
<< fDetectorID << endl;
45
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
<< endl;
46
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
47
<< endl;
48
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength
49
<<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
<< endl;
50
}
51
// -------------------------------------------------------------------------
TargetPoint.h
TargetPoint::TargetPoint
TargetPoint()
Definition:
TargetPoint.cxx:12
TargetPoint::Print
virtual void Print(const Option_t *opt) const
Definition:
TargetPoint.cxx:42
TargetPoint::~TargetPoint
virtual ~TargetPoint()
Definition:
TargetPoint.cxx:38
SND
EmulsionTarget
TargetPoint.cxx
Generated by
1.9.6