SND@LHC Software
Loading...
Searching...
No Matches
vetoPoint.cxx
Go to the documentation of this file.
1#include "vetoPoint.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 ------------------------------------------
16vetoPoint::vetoPoint(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,TVector3 Lpos, TVector3 Lmom)
20 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode),fLpos(Lpos),fLmom(Lmom)
21{
22}
23// -------------------------------------------------------------------------
24
25// ----- Destructor ----------------------------------------------------
27// -------------------------------------------------------------------------
28
29// ----- Public method Print -------------------------------------------
30void vetoPoint::Print() const
31{
32 cout << "-I- vetoPoint: veto point for track " << fTrackID
33 << " in detector " << fDetectorID << endl;
34 cout << " Position (" << fX << ", " << fY << ", " << fZ
35 << ") cm" << endl;
36 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
37 << ") GeV" << endl;
38 cout << " Time " << fTime << " ns, Length " << fLength
39 << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
40}
41// -------------------------------------------------------------------------
42
44
virtual ~vetoPoint()
Definition vetoPoint.cxx:26
virtual void Print() const
Definition vetoPoint.cxx:30
ClassImp(ecalContFact) ecalContFact