BmnRoot
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
15
// ----- Default constructor -------------------------------------------
16
CbmMvdHit::CbmMvdHit
()
17
:
CbmHit
(),
18
CbmMvdDetectorId
(),
19
fFlag(-1)
20
{
21
}
22
// -------------------------------------------------------------------------
23
24
25
26
// ----- Standard constructor ------------------------------------------
27
CbmMvdHit::CbmMvdHit
(Int_t statNr, TVector3& pos, TVector3& dpos,
28
Int_t flag)
29
:
CbmHit
(0, pos, dpos, 0., -1),
30
CbmMvdDetectorId
(),
31
fFlag(flag)
32
{
33
fDetectorID =
DetectorId
(statNr);
34
}
35
// -------------------------------------------------------------------------
36
37
38
39
// ----- Destructor ----------------------------------------------------
40
CbmMvdHit::~CbmMvdHit
() {}
41
// -------------------------------------------------------------------------
42
43
44
45
// ----- Public method Print -------------------------------------------
46
void
CbmMvdHit::Print
(
const
Option_t* opt)
const
{
47
cout <<
"MvdHit in station "
<<
GetStationNr
() <<
" at ("
<< cout.width(8)
48
<< GetX() <<
", "
<< cout.width(8) << GetY() <<
", "
<< cout.width(8)
49
<< GetZ() <<
") cm"
<< endl;
50
}
51
// -------------------------------------------------------------------------
DetectorId
DetectorId
Definition
BmnDetectorList.h:12
CbmHit
Definition
CbmHit.h:24
CbmMvdDetectorId
Definition
CbmMvdDetectorId.h:25
CbmMvdHit::Print
virtual void Print(const Option_t *opt=0) const
Definition
CbmMvdHit.cxx:46
CbmMvdHit::GetStationNr
virtual Int_t GetStationNr() const
Definition
CbmMvdHit.h:55
CbmMvdHit::~CbmMvdHit
virtual ~CbmMvdHit()
Definition
CbmMvdHit.cxx:40
CbmMvdHit::CbmMvdHit
CbmMvdHit()
Definition
CbmMvdHit.cxx:16
CbmMvdHit.h
base
cbm
CbmMvdHit.cxx
Generated on Fri May 15 2026 10:40:50 for BmnRoot by
1.9.8