CbmRoot
Loading...
Searching...
No Matches
CbmMvdCluster.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], Florian Uhlig, Philipp Sitzmann */
4
5// -------------------------------------------------------------------------
6// ----- CbmMvdCluster header file -----
7// -----
8// -------------------------------------------------------------------------
9
10
16
17
18#ifndef CBMMVDCLUSTER_H
19#define CBMMVDCLUSTER_H 1
20
21#include "CbmCluster.h" // for CbmCluster
22#include "CbmMvdAddress.h"
23
24#include <Rtypes.h> // for ClassDef
25
26#include <cstdint>
27#include <map> // for map
28#include <utility> // for pair
29
30
31class CbmMvdCluster : public CbmCluster {
32 public:
35
37
38 CbmMvdCluster& operator=(const CbmMvdCluster&) { return *this; };
39
41 virtual ~CbmMvdCluster();
42
44 void SetPixelMap(std::map<std::pair<int32_t, int32_t>, int32_t> PixelMap);
45 void SetRefId(int32_t RefId) { fRefId = RefId; }; //* stores the index to the global TClonesArray
46 void SetEarliestFrameNumber(Int_t frameNumber) { fEarliestFrameNumber = frameNumber; }
47
49 int16_t GetTotalDigisInCluster() const { return fPixelMap.size(); };
50
51 // FIXME: SZh 04.09.2025: The return type should be a const reference
52 std::map<std::pair<int32_t, int32_t>, int32_t> GetPixelMap() const { return fPixelMap; };
53
54 // FIXME: SZh 03.09.2025: To be replaced with a proper definition of SensorNr
57
58 int32_t GetRefId() const { return fRefId; };
59 int32_t GetEarliestFrameNumber() const { return fEarliestFrameNumber; };
60
61 float GetClusterCharge() const { return fClusterCharge; };
62
63 protected:
64 std::map<std::pair<int32_t, int32_t>, int32_t> fPixelMap;
65 int32_t fRefId;
68
70};
71
72#endif
Base class for cluster objects.
int Int_t
int32_t GetAddress() const
Definition CbmCluster.h:90
CbmCluster()
Constructor.
static uint32_t GetDetectorId(uint32_t address)
Provides a unit sensor address, masking information on the pixels (bits 13-31)
static int32_t GetSensorNrFromAddress(uint32_t address)
void SetRefId(int32_t RefId)
float GetClusterCharge() const
ClassDef(CbmMvdCluster, 5)
void SetEarliestFrameNumber(Int_t frameNumber)
virtual ~CbmMvdCluster()
void SetPixelMap(std::map< std::pair< int32_t, int32_t >, int32_t > PixelMap)
int16_t GetTotalDigisInCluster() const
uint32_t GetDetectorId() const
int32_t GetRefId() const
int32_t fEarliestFrameNumber
std::map< std::pair< int32_t, int32_t >, int32_t > fPixelMap
int32_t GetSensorNr() const
CbmMvdCluster & operator=(const CbmMvdCluster &)
std::map< std::pair< int32_t, int32_t >, int32_t > GetPixelMap() const
int32_t GetEarliestFrameNumber() const