BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmHit.cxx
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmHit source file -----
3// ----- Created 16/11/07 by V. Friese -----
4// -------------------------------------------------------------------------
5
6#include "CbmHit.h"
7
8#include <iostream>
9using namespace std;
10
11// ----- Default constructor -------------------------------------------
13 : FairHit()
14 , fCovXY(0.)
15{}
16// -------------------------------------------------------------------------
17
18// ----- Standard constructor ------------------------------------------
19CbmHit::CbmHit(Int_t detId, TVector3& pos, TVector3& dpos, Double_t covXY, Int_t index)
20 : FairHit(detId, pos, dpos, index)
21 , fCovXY(covXY)
22{}
23// -------------------------------------------------------------------------
24
25// ----- Destructor ----------------------------------------------------
27// -------------------------------------------------------------------------
28
29// ----- Public method Print -------------------------------------------
30void CbmHit::Print(const Option_t* opt) const
31{
32 cout.precision(5);
33 cout << "Hit at (" << fX << ", " << fY << ", " << fZ << ") cm, "
34 << "Detector " << fDetectorID << ", Station " << GetStationNr() << endl;
35}
36// -------------------------------------------------------------------------
int Int_t
double Double_t
const char Option_t
CbmHit()
Default constructor.
Definition CbmHit.cxx:12
virtual void Print(const Option_t *opt=0) const
Output to screen.
Definition CbmHit.cxx:30
virtual Int_t GetStationNr() const =0
Double32_t fCovXY
Definition CbmHit.h:48
virtual ~CbmHit()
Destructor.
Definition CbmHit.cxx:26
Definition json.hpp:4446