SND@LHC Software
Loading...
Searching...
No Matches
TargetPoint.cxx
Go to the documentation of this file.
1#include "TargetPoint.h"
2
3#include <iostream>
4using std::cout;
5using std::endl;
6
7
8// ----- Default constructor -------------------------------------------
10 : FairMCPoint()
11{
12}
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 emCESBot, Bool_t tt,
21 Int_t nPlate, Int_t nColumn, Int_t nRow, Int_t nWall)
22 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),fPdgCode(pdgcode),
23 fEmTop(emTop), fEmBot(emBot), fEmCESTop(emCESTop), fEmCESBot(emCESBot),fTT(tt),
24 fNPlate(nPlate),fNColumn(nColumn), fNRow(nRow),fNWall(nWall)
25{ }
26*/
27
28TargetPoint::TargetPoint(Int_t trackID, Int_t detID,TVector3 pos, TVector3 mom,
29 Double_t tof, Double_t length,
30 Double_t eLoss, Int_t pdgcode)
31 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),fPdgCode(pdgcode)
32{ }
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{
44 cout << "-I- TargetPoint: ShipRpc point for track " << fTrackID
45 << " in detector " << fDetectorID << endl;
46 cout << " Position (" << fX << ", " << fY << ", " << fZ
47 << ") cm" << endl;
48 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
49 << ") GeV" << endl;
50 cout << " Time " << fTime << " ns, Length " << fLength
51 << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
52}
53// -------------------------------------------------------------------------
54
56
virtual void Print(const Option_t *opt) const
virtual ~TargetPoint()
ClassImp(ecalContFact) ecalContFact