EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmRichPoint.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CbmRichPoint.cxx
1 // -------------------------------------------------------------------------
2 // ----- CbmRichPoint source file -----
3 // ----- Created 28/04/04 by B. Polichtchouk -----
4 // -------------------------------------------------------------------------
5 
6 #include "CbmRichPoint.h"
7 
8 #include <iostream>
9 
10 using std::cout;
11 using std::endl;
12 
13 
14 // ----- Default constructor -------------------------------------------
16 // -------------------------------------------------------------------------
17 
18 
19 
20 // ----- Standard constructor ------------------------------------------
21 CbmRichPoint::CbmRichPoint(Int_t trackID, Int_t pdg, Int_t detID, TVector3 pos,
22  TVector3 mom, Double_t tof, Double_t length,
23  Double_t eLoss)
24  : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPDG(pdg) { }
25 
26 
27 // -------------------------------------------------------------------------
28 
29 
30 
31 // ----- Destructor ----------------------------------------------------
33 // -------------------------------------------------------------------------
34 
35 
36 
37 // ----- Public method Print -------------------------------------------
38 void CbmRichPoint::Print(const Option_t* opt) const {
39  cout << "-I- CbmRichPoint: RICH Point for track " << fTrackID
40  << " in detector " << fDetectorID << endl;
41  cout << " Position (" << fX << ", " << fY << ", " << fZ
42  << ") cm" << endl;
43  cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
44  << ") GeV" << endl;
45  cout << " Time " << fTime << " ns, Length " << fLength
46  << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
47 }
48 // -------------------------------------------------------------------------
49 
50 
51