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
11using std::cout;
12using std::endl;
13
14
15// ----- Default constructor -------------------------------------------
17 : CbmHit(),
19 fFlag(-1)
20{
21}
22// -------------------------------------------------------------------------
23
24
25
26// ----- Standard constructor ------------------------------------------
27CbmMvdHit::CbmMvdHit(Int_t statNr, TVector3& pos, TVector3& dpos,
28 Int_t flag)
29 : CbmHit(0, pos, dpos, 0., -1),
31 fFlag(flag)
32{
33 fDetectorID = DetectorId(statNr);
34}
35// -------------------------------------------------------------------------
36
37
38
39// ----- Destructor ----------------------------------------------------
41// -------------------------------------------------------------------------
42
43
44
45// ----- Public method Print -------------------------------------------
46void 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
virtual void Print(const Option_t *opt=0) const
Definition CbmMvdHit.cxx:46
virtual Int_t GetStationNr() const
Definition CbmMvdHit.h:55
virtual ~CbmMvdHit()
Definition CbmMvdHit.cxx:40