// ------------------------------------------------------------------------- // ----- CbmMvdCluster source file ----- // ------------------------------------------------------------------------- #include "CbmMvdCluster.h" #include "TVector3.h" using std::pair; using std::map; // ----- Default constructor ------------------------------------------- CbmMvdCluster::CbmMvdCluster() : CbmCluster(), fPixelMap(), fRefId(-1), fClusterCharge(0) { } // ------------------------------------------------------------------------- // ------------------------------------------------------------------------- CbmMvdCluster::CbmMvdCluster(const CbmMvdCluster& rhs) : CbmCluster(), fPixelMap(), fRefId(-1), fClusterCharge(0) { fPixelMap = rhs.fPixelMap; fRefId = rhs.fRefId; fClusterCharge = rhs.fClusterCharge; } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- CbmMvdCluster::~CbmMvdCluster() {} // ------------------------------------------------------------------------- // ------------------------------------------------------------------------- void CbmMvdCluster::SetPixelMap(map , Int_t > PixelMap) { fPixelMap = PixelMap; for(map, Int_t>::iterator iter = fPixelMap.begin(); iter != fPixelMap.end(); iter++) fClusterCharge += iter->second; } ClassImp(CbmMvdCluster)