FairRoot/PandaRoot
PndDskTrackPoint.cxx
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // ----- PndDskTrackPoint source file -----
3 // ----- Created 27/03/09 by P. Koch -----
4 // ----------------------------------------------------------------------------
5 
6 #include <iostream>
7 using std::cout;
8 using std::endl;
9 
10 #include "PndDskTrackPoint.h"
11 
12 
13 
14 // ----- Default constructor ----------------------------------------------
16  : FairMCPoint()
17 {
18 }
19 // ----------------------------------------------------------------------------
20 
21 
22 // ----- Standard constructor ---------------------------------------------
23 PndDskTrackPoint::PndDskTrackPoint(Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum,
24  Double_t time, Double_t length, Double_t eLoss)
25  : FairMCPoint(trackID, detectorID, position, momentum, time, length, eLoss)
26 {
27 }
28 // ----------------------------------------------------------------------------
29 
30 
31 // ----- Destructor -------------------------------------------------------
33 {
34 }
35 // ----------------------------------------------------------------------------
36 
37 
38 // ----- Public method Print ----------------------------------------------
39 void
40 PndDskTrackPoint::Print(const Option_t* opt) const {
41  (void)opt; // to remove "unused" warnings
42  cout << "-I- PndDskTrackPoint: track" << fTrackID
43  << " created in detector " << fDetectorID << endl;
44  cout << " at Position (" << fX << ", " << fY << ", " << fZ
45  << ") cm" << endl;
46  cout << " with Momentum (" << fPx << ", " << fPy << ", " << fPz
47  << ") eV" << endl;
48  cout << " at Time " << fTime << " ns" << endl;
49 }
50 // ----------------------------------------------------------------------------
51 
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t
virtual void Print(const Option_t *opt) const
virtual ~PndDskTrackPoint()
Double_t fY
Definition: PndCaloDraw.cxx:34
ClassImp(PndAnaContFact)