BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmMvdHit.cxx
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmMvdHit source file -----
3// ----- Created 07/11/06 by V. Friese -----
4// ----- Based on CbmStsMapsHit by M. Deveaux -----
5// -------------------------------------------------------------------------
6
7#include "CbmMvdHit.h"
8
9#include <iostream>
10
11using std::cout;
12using std::endl;
13
14// ----- Default constructor -------------------------------------------
16 : CbmHit()
18 , fFlag(-1)
19{}
20// -------------------------------------------------------------------------
21
22// ----- Standard constructor ------------------------------------------
24 : CbmHit(0, pos, dpos, 0., -1)
26 , fFlag(flag)
27{
28 fDetectorID = DetectorId(statNr);
29}
30// -------------------------------------------------------------------------
31
32// ----- Destructor ----------------------------------------------------
34// -------------------------------------------------------------------------
35
36// ----- Public method Print -------------------------------------------
37void CbmMvdHit::Print(const Option_t* opt) const
38{
39 cout << "MvdHit in station " << GetStationNr() << " at (" << cout.width(8) << GetX() << ", " << cout.width(8)
40 << GetY() << ", " << cout.width(8) << GetZ() << ") cm" << endl;
41}
42// -------------------------------------------------------------------------
int Int_t
const char Option_t
DetectorId
BM@N DetectorID enumerator.
CbmHit()
Default constructor.
Definition CbmHit.cxx:12
CbmMvdDetectorId()
Constructor.
virtual void Print(const Option_t *opt=0) const
Output to screen.
Definition CbmMvdHit.cxx:37
virtual Int_t GetStationNr() const
Definition CbmMvdHit.h:48
virtual ~CbmMvdHit()
Destructor.
Definition CbmMvdHit.cxx:33
Int_t fFlag
Definition CbmMvdHit.h:52
CbmMvdHit()
Default constructor.
Definition CbmMvdHit.cxx:15