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>
8using std::cout;
9using std::endl;
10
11// ----- Default constructor -------------------------------------------
12TargetPoint::TargetPoint() : FairMCPoint() {}
13// -------------------------------------------------------------------------
14
15// ----- Standard constructor ------------------------------------------
16/*
17TargetPoint::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
21emCESBot, Bool_t tt, Int_t nPlate, Int_t nColumn, Int_t nRow, Int_t nWall) :
22FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),fPdgCode(pdgcode),
23 fEmTop(emTop), fEmBot(emBot), fEmCESTop(emCESTop),
24fEmCESBot(emCESBot),fTT(tt), fNPlate(nPlate),fNColumn(nColumn),
25fNRow(nRow),fNWall(nWall) { }
26*/
27
28TargetPoint::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 ----------------------------------------------------
39// -------------------------------------------------------------------------
40
41// ----- Public method Print -------------------------------------------
42void 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// -------------------------------------------------------------------------
virtual void Print(const Option_t *opt) const
Definition: TargetPoint.cxx:42
virtual ~TargetPoint()
Definition: TargetPoint.cxx:38