SND@LHC Software
Loading...
Searching...
No Matches
ShipRpcPoint.cxx
Go to the documentation of this file.
1#include "ShipRpcPoint.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/*ShipRpcPoint::ShipRpcPoint(Int_t trackID, Int_t detID,
17 TVector3 pos, TVector3 mom,
18 Double_t tof, Double_t length,
19 Double_t eLoss, Int_t pdgcode, Int_t nArm, Int_t nRpc, Int_t nHpt)
20 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode),
21 fNArm(nArm), fNRpc(nRpc), fNHpt(nHpt)
22{
23}
24*/
25ShipRpcPoint::ShipRpcPoint(Int_t trackID, Int_t detID,
26 TVector3 pos, TVector3 mom,
27 Double_t tof, Double_t length,
28 Double_t eLoss, Int_t pdgcode)
29 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode)
30{
31}
32
33// -------------------------------------------------------------------------
34
35// ----- Destructor ----------------------------------------------------
37// -------------------------------------------------------------------------
38
39// ----- Public method Print -------------------------------------------
40void ShipRpcPoint::Print(const Option_t* opt) const
41{
42 cout << "-I- ShipRpcPoint: ShipRpc point for track " << fTrackID
43 << " in detector " << fDetectorID << endl;
44 cout << " Position (" << fX << ", " << fY << ", " << fZ
45 << ") cm" << endl;
46 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
47 << ") GeV" << endl;
48 cout << " Time " << fTime << " ns, Length " << fLength
49 << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
50}
51// -------------------------------------------------------------------------
52
54
virtual void Print(const Option_t *opt) const
virtual ~ShipRpcPoint()
ClassImp(ecalContFact) ecalContFact