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>
8using std::cout;
9using std::endl;
10
11// ----- Default constructor -------------------------------------------
12MTCDetPoint::MTCDetPoint() : FairMCPoint() {}
13// -------------------------------------------------------------------------
14
15MTCDetPoint::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 ----------------------------------------------------
25// -------------------------------------------------------------------------
26
27// ----- Public method Print -------------------------------------------
28void 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// -------------------------------------------------------------------------
virtual void Print() const
Definition: MTCDetPoint.cxx:28
virtual ~MTCDetPoint()
Definition: MTCDetPoint.cxx:24