BmnRoot
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
7#include "CbmHit.h"
8
9#include <iostream>
10using namespace std;
11
12
13// ----- Default constructor -------------------------------------------
15 : FairHit(),
16 fCovXY(0.)
17{
18}
19// -------------------------------------------------------------------------
20
21
22
23// ----- Standard constructor ------------------------------------------
24CbmHit::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 -------------------------------------------
42void 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// -------------------------------------------------------------------------
CbmHit()
Definition CbmHit.cxx:14
virtual void Print(const Option_t *opt=0) const
Definition CbmHit.cxx:42
virtual Int_t GetStationNr() const =0
virtual ~CbmHit()
Definition CbmHit.cxx:35
STL namespace.