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
6
7#include <iostream>
8using std::cout;
9using std::endl;
10
11// ----- Default constructor -------------------------------------------
13// -------------------------------------------------------------------------
14
15SiliconTargetPoint::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 ----------------------------------------------------
26// -------------------------------------------------------------------------
27
28// ----- Public method Print -------------------------------------------
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// -------------------------------------------------------------------------
virtual void Print() const