CbmRoot
Loading...
Searching...
No Matches
CbmMvdHit.h
Go to the documentation of this file.
1/* Copyright (C) 2006-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer], Philipp Sitzmann, Florian Uhlig */
4
5#// -------------------------------------------------------------------------
6// ----- CbmMvdHit header file -----
7// ----- Created 07/11/06 by V. Friese -----
8// -------------------------------------------------------------------------
9
10
22#ifndef CBMMVDHIT_H
23#define CBMMVDHIT_H 1
24
25#include "CbmMvdDetectorId.h" // for CbmMvdDetectorId
26#include "CbmPixelHit.h" // for CbmPixelHit
27
28#include <Rtypes.h> // for ClassDef
29
30#include <cstdint>
31
32class TVector3;
33
34class CbmMvdHit : public CbmPixelHit, public CbmMvdDetectorId {
35
36public:
38 CbmMvdHit();
39
40
47 CbmMvdHit(int32_t statNr, TVector3& pos, TVector3& dpos, int32_t indexCentralX, int32_t indexCentralY = 0,
48 int32_t fClusterIndex = 0, int32_t flag = 0);
49
50
52 virtual ~CbmMvdHit();
53
54
56 virtual void Print(const Option_t* opt = nullptr) const;
57
58
60 int32_t GetSystemId() const { return SystemId(fDetectorID); };
61 virtual int32_t GetStationNr() const { return StationNr(fDetectorID); };
62 int32_t GetFlag() const { return fFlag; };
63 int32_t GetClusterIndex() const { return fClusterIndex; };
64 int32_t GetIndexCentralX() const { return fIndexCentralX; }; // returns index of center of gravity
65 int32_t GetIndexCentralY() const { return fIndexCentralY; }; // returns index of center of gravity
66 // void GetDigiIndexVector(TClonesArray* cbmMvdClusterArray, std::vector<int32_t>* digiIndexVector);
67 int32_t GetRefIndex() { return fFlag; }
68
69 double GetValidityStartTime() { return fValidityStartTime; }; // returns earliest plausible time of particle impact
70 double GetValidityEndTime() { return fValidityEndTime; }; // returns latest plausible time of particle impact
71
72 void SetValidityStartTime(double time) { fValidityStartTime = time; };
73 void SetValidityEndTime(double time) { fValidityEndTime = time; };
74
75
76protected:
77 int32_t fFlag; // Hit flag; to be used later
83
84 int32_t fDetectorID;
85
86
88};
89
90
91#endif
TVector3 dpos
int32_t SystemId(int32_t detectorId) const
int32_t StationNr(int32_t detectorId) const
double GetValidityStartTime()
Definition CbmMvdHit.h:69
void SetValidityStartTime(double time)
Definition CbmMvdHit.h:72
void SetValidityEndTime(double time)
Definition CbmMvdHit.h:73
int32_t GetRefIndex()
Definition CbmMvdHit.h:67
int32_t GetIndexCentralY() const
Definition CbmMvdHit.h:65
ClassDef(CbmMvdHit, 3)
double fValidityStartTime
Definition CbmMvdHit.h:81
virtual void Print(const Option_t *opt=nullptr) const
Definition CbmMvdHit.cxx:92
virtual int32_t GetStationNr() const
Definition CbmMvdHit.h:61
int32_t fDetectorID
Definition CbmMvdHit.h:84
int32_t GetIndexCentralX() const
Definition CbmMvdHit.h:64
double GetValidityEndTime()
Definition CbmMvdHit.h:70
int32_t GetSystemId() const
Definition CbmMvdHit.h:60
int32_t fIndexCentralX
Definition CbmMvdHit.h:79
int32_t GetClusterIndex() const
Definition CbmMvdHit.h:63
int32_t fClusterIndex
Definition CbmMvdHit.h:78
virtual ~CbmMvdHit()
Definition CbmMvdHit.cxx:87
int32_t fFlag
Definition CbmMvdHit.h:77
double fValidityEndTime
Definition CbmMvdHit.h:82
int32_t fIndexCentralY
Definition CbmMvdHit.h:80
int32_t GetFlag() const
Definition CbmMvdHit.h:62