BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmMvdHit.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmMvdHit header file -----
3// ----- Created 07/11/06 by V. Friese -----
4// -------------------------------------------------------------------------
5
6/** CbmMvdHit.h
7 *@author V.Friese <v.friese@gsi.de>
8 **
9 ** Data class for hits in the CBM-MVD.
10 ** Data level RAW.
11 ** Original source (CbmStsMapsHit) by M. Deveaux.
12 **
13 ** Hit flag not used up to now (will come later with real hit finding).
14 **/
15
16#ifndef CBMMVDHIT_H
17#define CBMMVDHIT_H 1
18
19#include "CbmHit.h"
20#include "CbmMvdDetectorId.h"
21#include "TVector3.h"
22
24 : public CbmHit
25 , public CbmMvdDetectorId
26{
27
28 public:
29 /** Default constructor **/
30 CbmMvdHit();
31
32 /** Standard constructor
33 *@param statNr Station number
34 *@param pos Position coordinates [cm]
35 *@param dpos Errors in position coordinates [cm]
36 *@param flag Hit flag
37 **/
38 CbmMvdHit(Int_t statNr, TVector3& pos, TVector3& dpos, Int_t flag);
39
40 /** Destructor **/
41 virtual ~CbmMvdHit();
42
43 /** Output to screen **/
44 virtual void Print(const Option_t* opt = 0) const;
45
46 /** Accessors **/
47 Int_t GetSystemId() const { return SystemId(fDetectorID); }
48 virtual Int_t GetStationNr() const { return StationNr(fDetectorID); }
49 Int_t GetFlag() const { return fFlag; };
50
51 protected:
52 Int_t fFlag; // Hit flag; to be used later
53
55};
56
57#endif
int Int_t
const char Option_t
#define ClassDef(name, id)
CbmHit()
Default constructor.
Definition CbmHit.cxx:12
Int_t StationNr(Int_t detectorId) const
Get station number from detector ID.
CbmMvdDetectorId()
Constructor.
Int_t SystemId(Int_t detectorId) const
Get System identifier from detector ID.
Int_t GetSystemId() const
Accessors.
Definition CbmMvdHit.h:47
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
Int_t GetFlag() const
Definition CbmMvdHit.h:49
virtual ~CbmMvdHit()
Destructor.
Definition CbmMvdHit.cxx:33
Int_t fFlag
Definition CbmMvdHit.h:52
CbmMvdHit()
Default constructor.
Definition CbmMvdHit.cxx:15