/** A helper class for cluster finder ** Need refactoring. April 2011 //Dr.Sys **/ #ifndef CBMECALPRECLUSTER_H #define CBMECALPRECLUSTER_H #include "CbmEcalCell.h" #include "CbmEcalMaximum.h" #include //#include class CbmEcalPreCluster { public: CbmEcalPreCluster(const std::list cells, CbmEcalCell* max, CbmEcalCell* min, Double_t energy=-1111.0) : fCells(cells), fMaximum(max), fMinimum(min), fEnergy(energy), fMax(NULL), fMark(0) { } CbmEcalPreCluster(const std::list cells, CbmEcalMaximum* max, CbmEcalCell* min, Double_t energy=-1111.0) : fCells(cells), fMaximum(max->Cell()), fMinimum(min), fEnergy(energy), fMax(max), fMark(0) { // std::cout << "list: " << fEnergy << std::endl; } CbmEcalPreCluster(CbmEcalCell** cells, Int_t size, CbmEcalCell* max, CbmEcalCell* min, Double_t energy=-1111.0) : fCells(), fMaximum(max), fMinimum(min), fEnergy(energy), fMax(NULL), fMark(0) { fCells.clear(); for(Int_t i=0;iCell()), fMinimum(min), fEnergy(energy), fMax(max), fMark(0) { fCells.clear(); for(Int_t i=0;i fCells; CbmEcalCell* fMaximum; CbmEcalCell* fMinimum; Double_t fEnergy; CbmEcalMaximum* fMax; //! Int_t fMark; private: CbmEcalPreCluster(const CbmEcalPreCluster&); CbmEcalPreCluster& operator=(const CbmEcalPreCluster&); }; #endif