// ------------------------------------------------------------------------- // ----- PndSdsStripClusterer source file ----- // ----- Converted 27.11.2007 from R.Jaekel by R.Kliemt ----- // ------------------------------------------------------------------------- #include "PndSdsStripClusterer.h" // includes for sort algorithms #include #include #include #include "TMath.h" #include "math.h" // enum SensorSide { kTOP, kBOTTOM }; PndSdsStripClusterer::PndSdsStripClusterer() { // dummy } PndSdsStripClusterer::~PndSdsStripClusterer() { } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ void PndSdsStripClusterer::Reinit() { fSortedDigis.clear(); fClusters.clear(); fTopclusters.clear(); fBotclusters.clear(); fLeftDigis.clear(); } void PndSdsStripClusterer::AddDigi(std::string detName, SensorSide side, Int_t timestamp, Int_t strip, Int_t iPoint) { fSortedDigis[detName][side][timestamp][strip] = iPoint; } PndSdsClusterStrip PndSdsStripClusterer::GetCluster(Int_t i) { if(0<=i && fClusters.size() < i) return fClusters[i]; else{ std::cout<<"-E- PndSdsStripClusterer::GetCluster: Out of bounds i="<