BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
21class 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 Int_t
double Double32_t
double Double_t
const char Option_t
#define ClassDef(name, id)
CbmHit()
Default constructor.
Definition CbmHit.cxx:12
Double_t GetCovXY() const
Accessors.
Definition CbmHit.h:41
virtual void Print(const Option_t *opt=0) const
Output to screen.
Definition CbmHit.cxx:30
virtual Int_t GetStationNr() const =0
Double32_t fCovXY
Definition CbmHit.h:48
virtual ~CbmHit()
Destructor.
Definition CbmHit.cxx:26