void drawPlot1(Int_t seci=-1, Int_t type=0, Int_t bining=0){ HMdcLookUpTb* cf=HMdcLookUpTb::getExObject(); if(!cf) return; Int_t s1=(seci<0 || seci>5) ? 0:seci; Int_t s2=(seci<0 || seci>5) ? 5:seci; HCategory* fClustCat = gHades->getCurrentEvent()->getCategory(catMdcClus); HIterator* iter=(HIterator *)fClustCat->MakeIterator(); for(Int_t sec=s1;sec<=s2;sec++) { HMdcLookUpTbSec& cfS=(*cf)[sec]; Char_t buf[10]; sprintf(buf,"Sec%i",sec+1); // Int_t bining=2; TH2C* plot=cfS.fillTH2C(buf,buf, type, 0); Char_t nCanv[30]; sprintf(nCanv,"PrPlot_S%i",sec+1); TCanvas* canv=(TCanvas*)gROOT->FindObject(nCanv); if(!canv) canv=new TCanvas(nCanv,nCanv); canv->cd(0); canv->cd(1); plot->Draw("colz"); canv->Modified(); canv->Update(); if(fClustCat) { HLocation locClust; locClust.set(1,sec); iter->Reset(); iter->gotoLocation(locClust); HMdcClus *fClst=0; printf("---Sector %i:\n",sec+1); while ((fClst=(HMdcClus *)iter->Next())!=0) { if( !fClst->getStatus() ) continue; fClst->print(); } } } }