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