EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmHit.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CbmHit.cxx
1 // -------------------------------------------------------------------------
2 // ----- CbmHit source file -----
3 // ----- Created 16/11/07 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
6 
7 #include "CbmHit.h"
8 
9 #include <iostream>
10 using namespace std;
11 
12 
13 // ----- Default constructor -------------------------------------------
15  : FairHit(),
16  fCovXY(0.)
17 {
18 }
19 // -------------------------------------------------------------------------
20 
21 
22 
23 // ----- Standard constructor ------------------------------------------
24 CbmHit::CbmHit(Int_t detId, TVector3& pos, TVector3& dpos,
25  Double_t covXY, Int_t index)
26  : FairHit(detId, pos, dpos, index),
27  fCovXY(covXY)
28 {
29 }
30 // -------------------------------------------------------------------------
31 
32 
33 
34 // ----- Destructor ----------------------------------------------------
36 // -------------------------------------------------------------------------
37 
38 
39 
40 
41 // ----- Public method Print -------------------------------------------
42 void CbmHit::Print(const Option_t* opt) const {
43  cout.precision(5);
44  cout << "Hit at (" << fX << ", " << fY << ", " << fZ << ") cm, "
45  << "Detector " << fDetectorID << ", Station " << GetStationNr()
46  << endl;
47 }
48 // -------------------------------------------------------------------------
49 
50 
51