CbmRoot
CbmMvdCluster.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmMvdCluster source file -----
3 
4 // -------------------------------------------------------------------------
5 
6 #include "CbmMvdCluster.h"
7 
8 using std::map;
9 using std::pair;
10 
11 // ----- Default constructor -------------------------------------------
13  : CbmCluster(), fPixelMap(), fRefId(-1), fClusterCharge(0) {}
14 // -------------------------------------------------------------------------
15 
16 // -------------------------------------------------------------------------
18  : CbmCluster(), fPixelMap(), fRefId(-1), fClusterCharge(0) {
19  fPixelMap = rhs.fPixelMap;
20  fRefId = rhs.fRefId;
22 }
23 // -------------------------------------------------------------------------
24 
25 // ----- Destructor ----------------------------------------------------
27 // -------------------------------------------------------------------------
28 
29 // -------------------------------------------------------------------------
30 void CbmMvdCluster::SetPixelMap(map<pair<Int_t, Int_t>, Int_t> PixelMap) {
31  fPixelMap = PixelMap;
32  for (map<pair<Int_t, Int_t>, Int_t>::iterator iter = fPixelMap.begin();
33  iter != fPixelMap.end();
34  iter++)
35  fClusterCharge += iter->second;
36 }
37 
CbmMvdCluster::~CbmMvdCluster
virtual ~CbmMvdCluster()
Definition: CbmMvdCluster.cxx:26
CbmMvdCluster::fPixelMap
std::map< std::pair< Int_t, Int_t >, Int_t > fPixelMap
Definition: CbmMvdCluster.h:55
CbmMvdCluster
Definition: CbmMvdCluster.h:27
CbmMvdCluster::fClusterCharge
Float_t fClusterCharge
Definition: CbmMvdCluster.h:60
CbmMvdCluster::SetPixelMap
void SetPixelMap(std::map< std::pair< Int_t, Int_t >, Int_t > PixelMap)
Definition: CbmMvdCluster.cxx:30
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12
CbmMvdCluster::CbmMvdCluster
CbmMvdCluster()
Definition: CbmMvdCluster.cxx:12
CbmMvdCluster::fRefId
Int_t fRefId
Definition: CbmMvdCluster.h:59
CbmCluster
Base class for cluster objects.
Definition: CbmCluster.h:26
CbmMvdCluster.h