CbmRoot
Loading...
Searching...
No Matches
CbmMvdHit.h
Go to the documentation of this file.
1/* Copyright (C) 2006-2025 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
20
21
22#ifndef CBMMVDHIT_H
23#define CBMMVDHIT_H 1
24
25#include "CbmMvdAddress.h"
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 {
35
36 public:
38 CbmMvdHit();
39
40
51 CbmMvdHit(uint32_t address, int32_t statNr, TVector3& pos, TVector3& dpos, int32_t indexCentralX,
52 int32_t indexCentralY = 0, int32_t fClusterIndex = 0, int32_t flag = 0);
53
54
56 virtual ~CbmMvdHit();
57
58
60 virtual void Print(const Option_t* opt = nullptr) const;
61
62
64 virtual int32_t GetStationNr() const { return fStationNr; };
65 int32_t GetFlag() const { return fFlag; };
66 int32_t GetClusterIndex() const { return fClusterIndex; };
67
68 int32_t GetIndexCentralX() const
69 {
71 }; // returns index of center of gravity
72 int32_t GetIndexCentralY() const
73 {
75 }; // returns index of center of gravity
76 // void GetDigiIndexVector(TClonesArray* cbmMvdClusterArray, std::vector<int32_t>* digiIndexVector);
77 int32_t GetRefIndex() { return fFlag; }
78
79 double GetValidityStartTime() { return fValidityStartTime; }; // returns earliest plausible time of particle impact
80 double GetValidityEndTime() { return fValidityEndTime; }; // returns latest plausible time of particle impact
81
82 void SetValidityStartTime(double time) { fValidityStartTime = time; };
83 void SetValidityEndTime(double time) { fValidityEndTime = time; };
84
85 protected:
86 int32_t fFlag; // Hit flag; to be used later
90
91 int32_t fStationNr; // FIXME: remove, when the version 1 def. of CbmMvdAddress will be used
92
93
95};
96
97
98#endif
TVector3 dpos
int32_t GetAddress() const
Definition CbmHit.h:77
static int32_t GetSensorXIndex(uint32_t address)
static int32_t GetSensorYIndex(uint32_t address)
double GetValidityStartTime()
Definition CbmMvdHit.h:79
void SetValidityStartTime(double time)
Definition CbmMvdHit.h:82
void SetValidityEndTime(double time)
Definition CbmMvdHit.h:83
int32_t GetRefIndex()
Definition CbmMvdHit.h:77
int32_t GetIndexCentralY() const
Definition CbmMvdHit.h:72
double fValidityStartTime
Definition CbmMvdHit.h:88
ClassDef(CbmMvdHit, 4)
virtual void Print(const Option_t *opt=nullptr) const
Definition CbmMvdHit.cxx:83
virtual int32_t GetStationNr() const
Definition CbmMvdHit.h:64
int32_t GetIndexCentralX() const
Definition CbmMvdHit.h:68
double GetValidityEndTime()
Definition CbmMvdHit.h:80
int32_t GetClusterIndex() const
Definition CbmMvdHit.h:66
int32_t fClusterIndex
Definition CbmMvdHit.h:87
virtual ~CbmMvdHit()
Definition CbmMvdHit.cxx:78
int32_t fFlag
Definition CbmMvdHit.h:86
double fValidityEndTime
Definition CbmMvdHit.h:89
int32_t fStationNr
Definition CbmMvdHit.h:91
int32_t GetFlag() const
Definition CbmMvdHit.h:65
CbmPixelHit()
Default constructor.