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
18#ifndef CBMMVDCLUSTER_H
19#define CBMMVDCLUSTER_H 1
20
21#include "CbmCluster.h" // for CbmCluster
22#include "CbmMvdDetectorId.h" // for CbmMvdDetectorId
23
24#include <Rtypes.h> // for ClassDef
25
26#include <cstdint>
27#include <map> // for map
28#include <utility> // for pair
29
30
32public:
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() { return fPixelMap.size(); };
50 std::map<std::pair<int32_t, int32_t>, int32_t> GetPixelMap() { return fPixelMap; };
51 int32_t GetStationNr() { return (int32_t) GetAddress() / 1000; };
52 int32_t GetRefId() { return fRefId; };
53 int32_t GetDetectorId() { return DetectorId(GetStationNr()); };
54 int32_t GetSensorNr() { return (GetAddress() % 1000); };
56
57 float GetClusterCharge() { return fClusterCharge; };
58
59protected:
60 std::map<std::pair<int32_t, int32_t>, int32_t> fPixelMap;
61 int32_t fRefId;
64
66};
67
68#endif
Base class for cluster objects.
Base class for cluster objects.
Definition CbmCluster.h:30
int32_t GetAddress() const
Definition CbmCluster.h:90
void SetRefId(int32_t RefId)
void SetEarliestFrameNumber(Int_t frameNumber)
int32_t GetStationNr()
int32_t GetRefId()
float GetClusterCharge()
ClassDef(CbmMvdCluster, 4)
int32_t GetEarliestFrameNumber()
virtual ~CbmMvdCluster()
void SetPixelMap(std::map< std::pair< int32_t, int32_t >, int32_t > PixelMap)
int32_t GetDetectorId()
int32_t GetSensorNr()
int16_t GetTotalDigisInCluster()
int32_t fEarliestFrameNumber
std::map< std::pair< int32_t, int32_t >, int32_t > fPixelMap
CbmMvdCluster & operator=(const CbmMvdCluster &)
std::map< std::pair< int32_t, int32_t >, int32_t > GetPixelMap()
int32_t DetectorId(int32_t iStation) const