BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmHit.h
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- CbmHit header file -----
3
// ----- Created 16/11/07 by V. Friese -----
4
// -------------------------------------------------------------------------
5
6
#ifndef CBMHIT_H
7
#define CBMHIT_H
8
9
#include "FairHit.h"
10
11
/**
12
** Abstract base class for hits used for tracking in CBM.
13
** Derives from FairHit.
14
** Additional member is the covariance of x and y.
15
** Derived classes have to implement the pure virtual method GetStationNr()
16
**
17
**@author V.Friese <v.friese@gsi.de>
18
**@since 16/11/07
19
*/
20
21
class
CbmHit
:
public
FairHit
22
{
23
24
public
:
25
/** Default constructor **/
26
CbmHit
();
27
28
/** Constructor with hit parameters
29
*@param detID Unique detector identifier
30
*@param pos Position vector [cm]
31
*@param dpos Error of position vector [cm]
32
*@param covXY Covariance of x and y [cm**2]
33
*@param index Reference index
34
**/
35
CbmHit
(
Int_t
detID,
TVector3
& pos,
TVector3
& dpos,
Double_t
covXY,
Int_t
index);
36
37
/** Destructor **/
38
virtual
~CbmHit
();
39
40
/** Accessors **/
41
Double_t
GetCovXY
()
const
{
return
fCovXY
; }
42
virtual
Int_t
GetStationNr
()
const
= 0;
43
44
/** Output to screen **/
45
virtual
void
Print
(
const
Option_t
* opt = 0)
const
;
46
47
protected
:
48
Double32_t
fCovXY
;
// Covariance of x and y coordinates
49
50
ClassDef
(
CbmHit
, 1);
51
};
52
53
#endif
Int_t
int Int_t
Double32_t
double Double32_t
Double_t
double Double_t
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
CbmHit::CbmHit
CbmHit()
Default constructor.
Definition
CbmHit.cxx:12
CbmHit::GetCovXY
Double_t GetCovXY() const
Accessors.
Definition
CbmHit.h:41
CbmHit::Print
virtual void Print(const Option_t *opt=0) const
Output to screen.
Definition
CbmHit.cxx:30
CbmHit::GetStationNr
virtual Int_t GetStationNr() const =0
CbmHit::fCovXY
Double32_t fCovXY
Definition
CbmHit.h:48
CbmHit::~CbmHit
virtual ~CbmHit()
Destructor.
Definition
CbmHit.cxx:26
FairHit
TVector3
base
cbm
CbmHit.h
Generated on
for BmnRoot by
1.17.0