BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
11
using
std::cout;
12
using
std::endl;
13
14
// ----- Default constructor -------------------------------------------
15
CbmMvdHit::CbmMvdHit
()
16
:
CbmHit
()
17
,
CbmMvdDetectorId
()
18
,
fFlag
(-1)
19
{}
20
// -------------------------------------------------------------------------
21
22
// ----- Standard constructor ------------------------------------------
23
CbmMvdHit::CbmMvdHit
(
Int_t
statNr,
TVector3
& pos,
TVector3
& dpos,
Int_t
flag)
24
:
CbmHit
(0, pos, dpos, 0., -1)
25
,
CbmMvdDetectorId
()
26
,
fFlag
(flag)
27
{
28
fDetectorID =
DetectorId
(statNr);
29
}
30
// -------------------------------------------------------------------------
31
32
// ----- Destructor ----------------------------------------------------
33
CbmMvdHit::~CbmMvdHit
() {}
34
// -------------------------------------------------------------------------
35
36
// ----- Public method Print -------------------------------------------
37
void
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_t
int Int_t
Option_t
const char Option_t
DetectorId
DetectorId
BM@N DetectorID enumerator.
Definition
BmnDetectorList.h:12
CbmMvdHit.h
CbmHit::CbmHit
CbmHit()
Default constructor.
Definition
CbmHit.cxx:12
CbmMvdDetectorId::CbmMvdDetectorId
CbmMvdDetectorId()
Constructor.
Definition
CbmMvdDetectorId.cxx:7
CbmMvdHit::Print
virtual void Print(const Option_t *opt=0) const
Output to screen.
Definition
CbmMvdHit.cxx:37
CbmMvdHit::GetStationNr
virtual Int_t GetStationNr() const
Definition
CbmMvdHit.h:48
CbmMvdHit::~CbmMvdHit
virtual ~CbmMvdHit()
Destructor.
Definition
CbmMvdHit.cxx:33
CbmMvdHit::fFlag
Int_t fFlag
Definition
CbmMvdHit.h:52
CbmMvdHit::CbmMvdHit
CbmMvdHit()
Default constructor.
Definition
CbmMvdHit.cxx:15
TVector3
base
cbm
CbmMvdHit.cxx
Generated on
for BmnRoot by
1.17.0