FairShip
Loading...
Searching...
No Matches
SiliconTargetPoint.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 "
SiliconTargetPoint.h
"
6
7
#include <iostream>
8
using
std::cout;
9
using
std::endl;
10
11
// ----- Default constructor -------------------------------------------
12
SiliconTargetPoint::SiliconTargetPoint
() : FairMCPoint() {}
13
// -------------------------------------------------------------------------
14
15
SiliconTargetPoint::SiliconTargetPoint
(Int_t trackID, Int_t detID, TVector3 pos,
16
TVector3 mom, Double_t tof,
17
Double_t length, Double_t eLoss,
18
Int_t pdgcode)
19
: FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),
20
fPdgCode(pdgcode) {}
21
22
// -------------------------------------------------------------------------
23
24
// ----- Destructor ----------------------------------------------------
25
SiliconTargetPoint::~SiliconTargetPoint
() {}
26
// -------------------------------------------------------------------------
27
28
// ----- Public method Print -------------------------------------------
29
void
SiliconTargetPoint::Print
()
const
{
30
cout <<
"-I- SiliconTargetPoint: point for track "
<< fTrackID
31
<<
" in detector "
<< fDetectorID << endl;
32
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
<< endl;
33
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
34
<< endl;
35
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength
36
<<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
<< endl;
37
}
38
// -------------------------------------------------------------------------
SiliconTargetPoint.h
SiliconTargetPoint::SiliconTargetPoint
SiliconTargetPoint()
Definition:
SiliconTargetPoint.cxx:12
SiliconTargetPoint::Print
virtual void Print() const
Definition:
SiliconTargetPoint.cxx:29
SiliconTargetPoint::~SiliconTargetPoint
virtual ~SiliconTargetPoint()
Definition:
SiliconTargetPoint.cxx:25
SND
SiliconTarget
SiliconTargetPoint.cxx
Generated by
1.9.6