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
32
class
TVector3;
33
34
class
CbmMvdHit
:
public
CbmPixelHit
,
public
CbmMvdDetectorId
{
35
36
public
:
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
76
protected
:
77
int32_t
fFlag
;
// Hit flag; to be used later
78
int32_t
fClusterIndex
;
79
int32_t
fIndexCentralX
;
80
int32_t
fIndexCentralY
;
81
double
fValidityStartTime
;
82
double
fValidityEndTime
;
83
84
int32_t
fDetectorID
;
85
86
87
ClassDef
(
CbmMvdHit
, 3);
88
};
89
90
91
#endif
CbmMvdDetectorId.h
dpos
TVector3 dpos
Definition
CbmMvdSensorDigiToHitTask.cxx:57
pos
TVector3 pos
Definition
CbmMvdSensorDigiToHitTask.cxx:56
CbmPixelHit.h
CbmMvdDetectorId
Definition
CbmMvdDetectorId.h:37
CbmMvdDetectorId::SystemId
int32_t SystemId(int32_t detectorId) const
Definition
CbmMvdDetectorId.h:53
CbmMvdDetectorId::StationNr
int32_t StationNr(int32_t detectorId) const
Definition
CbmMvdDetectorId.h:65
CbmMvdHit
Definition
CbmMvdHit.h:34
CbmMvdHit::GetValidityStartTime
double GetValidityStartTime()
Definition
CbmMvdHit.h:69
CbmMvdHit::SetValidityStartTime
void SetValidityStartTime(double time)
Definition
CbmMvdHit.h:72
CbmMvdHit::SetValidityEndTime
void SetValidityEndTime(double time)
Definition
CbmMvdHit.h:73
CbmMvdHit::GetRefIndex
int32_t GetRefIndex()
Definition
CbmMvdHit.h:67
CbmMvdHit::GetIndexCentralY
int32_t GetIndexCentralY() const
Definition
CbmMvdHit.h:65
CbmMvdHit::ClassDef
ClassDef(CbmMvdHit, 3)
CbmMvdHit::fValidityStartTime
double fValidityStartTime
Definition
CbmMvdHit.h:81
CbmMvdHit::Print
virtual void Print(const Option_t *opt=nullptr) const
Definition
CbmMvdHit.cxx:92
CbmMvdHit::GetStationNr
virtual int32_t GetStationNr() const
Definition
CbmMvdHit.h:61
CbmMvdHit::fDetectorID
int32_t fDetectorID
Definition
CbmMvdHit.h:84
CbmMvdHit::GetIndexCentralX
int32_t GetIndexCentralX() const
Definition
CbmMvdHit.h:64
CbmMvdHit::GetValidityEndTime
double GetValidityEndTime()
Definition
CbmMvdHit.h:70
CbmMvdHit::GetSystemId
int32_t GetSystemId() const
Definition
CbmMvdHit.h:60
CbmMvdHit::fIndexCentralX
int32_t fIndexCentralX
Definition
CbmMvdHit.h:79
CbmMvdHit::GetClusterIndex
int32_t GetClusterIndex() const
Definition
CbmMvdHit.h:63
CbmMvdHit::fClusterIndex
int32_t fClusterIndex
Definition
CbmMvdHit.h:78
CbmMvdHit::~CbmMvdHit
virtual ~CbmMvdHit()
Definition
CbmMvdHit.cxx:87
CbmMvdHit::fFlag
int32_t fFlag
Definition
CbmMvdHit.h:77
CbmMvdHit::fValidityEndTime
double fValidityEndTime
Definition
CbmMvdHit.h:82
CbmMvdHit::CbmMvdHit
CbmMvdHit()
Definition
CbmMvdHit.cxx:16
CbmMvdHit::fIndexCentralY
int32_t fIndexCentralY
Definition
CbmMvdHit.h:80
CbmMvdHit::GetFlag
int32_t GetFlag() const
Definition
CbmMvdHit.h:62
CbmPixelHit
Definition
CbmPixelHit.h:25
core
data
mvd
CbmMvdHit.h
Generated on Sun Dec 22 2024 23:04:08 for CbmRoot by
1.12.0