CbmRoot
Loading...
Searching...
No Matches
CbmMvdDigi.h
Go to the documentation of this file.
1/* Copyright (C) 2008-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Christina Dritsa [committer], Philipp Sitzmann, Florian Uhlig, Volker Friese */
4
5// -------------------------------------------------------------------------
6// ----- CbmMvdDigi header file -----
7// ----- Created 02/04/08 by C.Dritsa -----
8// -------------------------------------------------------------------------
9
10// TODO: Include GetAddress, GetLinks, GetTime
11
12#ifndef CBMMVDDIGI_H
13#define CBMMVDDIGI_H 1
14
15#include "CbmDefs.h" // for ECbmModuleId::kMvd
16#include "CbmMvdDetectorId.h" // for CbmMvdDetectorId
17
18#include <Rtypes.h> // for ClassDef
19#include <TObject.h> // for TObject
20
21#include <cstdint>
22#include <string> // for string
23
24
25class CbmMvdDigi : public TObject, public CbmMvdDetectorId {
26
27public:
29 CbmMvdDigi();
30
33 CbmMvdDigi(int32_t iStation, int32_t iChannelNrX, int32_t iChannelNrY, float charge, float pixelSizeX,
34 float pixelSizeY, float time = 0.0, int32_t frame = 0);
42
43 static const char* GetClassName() { return "CbmMvdDigi"; }
45
47 double GetCharge() const { return fCharge; };
48 int32_t GetPixelX();
49 int32_t GetPixelY();
50 double GetPixelSizeX() { return fPixelSizeX; };
51 double GetPixelSizeY() { return fPixelSizeY; };
52 int32_t GetAdcCharge(int32_t adcDynamic, int32_t adcOffset, int32_t adcBits);
53 int32_t GetFlag() { return fDigiFlag; };
54 int32_t GetStationNr() { return StationNr(fDetectorId); };
55 int32_t GetDetectorId() { return fDetectorId; };
56 int32_t GetAddress() const;
57 double GetTime() const;
58 int32_t GetFrameNumber() { return fFrameNumber; };
59
60
61 int32_t GetRefId() const { return fRefId; };
62
63 std::string ToString() const { return ""; }
64
65 //these functions are only for littrack
66 int32_t GetDominatorX() { return 0; };
67 int32_t GetDominatorY() { return 0; };
68 int32_t GetTrackID() { return 0; };
69 int32_t GetContributors() { return 0; };
70 int32_t GetPointID() { return 0; };
71 //
72
73
75 void SetCharge(float charge) { fCharge = charge; };
76 void SetPixelX(int32_t xIndex) { fChannelNrX = xIndex; };
77 void SetPixelY(int32_t yIndex) { fChannelNrY = yIndex; };
78 void SetPixelIndex(int32_t pixelIndex) { fChannelNr = pixelIndex; };
79 void SetDetectorId(int32_t detId) { fDetectorId = detId; };
80 void SetFlag(int32_t flag) { fDigiFlag = flag; }
81 void SetFrameNr(int32_t frame) { fFrameNumber = frame; };
82 void SetRefId(int32_t refId) { fRefId = refId; }
83 void SetTime(double time) { fDigiTime = time; }
84
85private:
86 float fCharge;
87 int32_t fChannelNrX;
88 int32_t fChannelNrY;
89 //int32_t fTrackID;
90 //int32_t fPointID;
93 int32_t fDetectorId;
94 int32_t fChannelNr;
95 double fDigiTime;
96 int32_t fFrameNumber;
97 int32_t fRefId;
98
99
100 int32_t fDigiFlag; // Debugging and analysis information
101
103};
104
105
106#endif
ECbmModuleId
Definition CbmDefs.h:39
@ kMvd
Micro-Vertex Detector.
int32_t StationNr(int32_t detectorId) const
void SetPixelIndex(int32_t pixelIndex)
Definition CbmMvdDigi.h:78
int32_t GetFlag()
Definition CbmMvdDigi.h:53
void SetTime(double time)
Definition CbmMvdDigi.h:83
int32_t GetPointID()
Definition CbmMvdDigi.h:70
double GetTime() const
static ECbmModuleId GetSystem()
Definition CbmMvdDigi.h:44
float fPixelSizeX
Definition CbmMvdDigi.h:91
float fPixelSizeY
Definition CbmMvdDigi.h:92
void SetPixelX(int32_t xIndex)
Definition CbmMvdDigi.h:76
void SetCharge(float charge)
Definition CbmMvdDigi.h:75
double GetPixelSizeX()
Definition CbmMvdDigi.h:50
int32_t GetContributors()
Definition CbmMvdDigi.h:69
int32_t fRefId
Definition CbmMvdDigi.h:97
ClassDef(CbmMvdDigi, 3)
void SetFlag(int32_t flag)
Definition CbmMvdDigi.h:80
int32_t GetTrackID()
Definition CbmMvdDigi.h:68
int32_t GetDetectorId()
Definition CbmMvdDigi.h:55
void SetFrameNr(int32_t frame)
Definition CbmMvdDigi.h:81
int32_t fChannelNrY
Definition CbmMvdDigi.h:88
int32_t GetDominatorX()
Definition CbmMvdDigi.h:66
static const char * GetClassName()
Definition CbmMvdDigi.h:43
int32_t GetAdcCharge(int32_t adcDynamic, int32_t adcOffset, int32_t adcBits)
float fCharge
Definition CbmMvdDigi.h:86
int32_t fDigiFlag
Definition CbmMvdDigi.h:100
int32_t GetStationNr()
Definition CbmMvdDigi.h:54
int32_t GetAddress() const
int32_t fChannelNr
Definition CbmMvdDigi.h:94
int32_t GetPixelY()
double GetPixelSizeY()
Definition CbmMvdDigi.h:51
int32_t GetFrameNumber()
Definition CbmMvdDigi.h:58
int32_t GetPixelX()
int32_t fFrameNumber
Definition CbmMvdDigi.h:96
double fDigiTime
Definition CbmMvdDigi.h:95
int32_t fChannelNrX
Definition CbmMvdDigi.h:87
void SetPixelY(int32_t yIndex)
Definition CbmMvdDigi.h:77
std::string ToString() const
Definition CbmMvdDigi.h:63
int32_t fDetectorId
Definition CbmMvdDigi.h:93
void SetDetectorId(int32_t detId)
Definition CbmMvdDigi.h:79
double GetCharge() const
Definition CbmMvdDigi.h:47
int32_t GetDominatorY()
Definition CbmMvdDigi.h:67
int32_t GetRefId() const
Definition CbmMvdDigi.h:61
void SetRefId(int32_t refId)
Definition CbmMvdDigi.h:82