CbmRoot
Loading...
Searching...
No Matches
CbmMvdCluster.cxx
Go to the documentation of this file.
1/* Copyright (C) 2008-2017 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Philipp Sitzmann, Christina Dritsa [committer], Florian Uhlig */
4
5// -------------------------------------------------------------------------
6// ----- CbmMvdCluster source file -----
7
8// -------------------------------------------------------------------------
9
10#include "CbmMvdCluster.h"
11
12using std::map;
13using std::pair;
14
15// ----- Default constructor -------------------------------------------
16CbmMvdCluster::CbmMvdCluster() : CbmCluster(), fPixelMap(), fRefId(-1), fClusterCharge(0) { fEarliestFrameNumber = -1; }
17// -------------------------------------------------------------------------
18
19// -------------------------------------------------------------------------
20CbmMvdCluster::CbmMvdCluster(const CbmMvdCluster& rhs) : CbmCluster(), fPixelMap(), fRefId(-1), fClusterCharge(0)
21{
22 fPixelMap = rhs.fPixelMap;
23 fRefId = rhs.fRefId;
26}
27// -------------------------------------------------------------------------
28
29// ----- Destructor ----------------------------------------------------
31// -------------------------------------------------------------------------
32
33// -------------------------------------------------------------------------
34void CbmMvdCluster::SetPixelMap(map<pair<int32_t, int32_t>, int32_t> PixelMap)
35{
36 fPixelMap = PixelMap;
37 for (map<pair<int32_t, int32_t>, int32_t>::iterator iter = fPixelMap.begin(); iter != fPixelMap.end(); iter++)
38 fClusterCharge += iter->second;
39}
40
ClassImp(CbmConverterManager)
Base class for cluster objects.
Definition CbmCluster.h:30
virtual ~CbmMvdCluster()
void SetPixelMap(std::map< std::pair< int32_t, int32_t >, int32_t > PixelMap)
int32_t fEarliestFrameNumber
std::map< std::pair< int32_t, int32_t >, int32_t > fPixelMap