//*-- AUTHOR : J. Markert //_HADES_CLASS_DESCRIPTION //////////////////////////////////////////////////////////////////////////// // HOnlineMdcHistFiller // // Container class for the mdc hists //////////////////////////////////////////////////////////////////////////// //#include #include "honlinemdchistfiller.h" #include "hparamlist.h" #include "honlinemonhist.h" #include "honlinetrendhist.h" #include "honlinehistarray.h" #include "honlinemdcconfig.h" #include "hmdcraw.h" #include "hmdcraweventheader.h" #include "hmdccal1.h" #include "hmdccutstat.h" #include "hades.h" #include "hevent.h" #include "hcategory.h" #include "hmdcdef.h" #include "hiterator.h" #include "TList.h" #include "TArrayI.h" #include "TString.h" // Container/List pointers HMdcCutStat* HOnlineMdcHistFiller::cutstat=0; HOnlineMdcConfig* HOnlineMdcHistFiller::mdcconfig=0; HOnlineMdcConnectedTdc* HOnlineMdcHistFiller::mdclookup=0; // Color definitions TArrayI HOnlineMdcHistFiller::colorsSector; TArrayI HOnlineMdcHistFiller::colorsModule; TArrayI HOnlineMdcHistFiller::styleModule; TArrayI HOnlineMdcHistFiller::colorsCuts; Int_t HOnlineMdcHistFiller::layerhists=1; Int_t HOnlineMdcHistFiller::mbohists=1; Int_t HOnlineMdcHistFiller::mbotdchists=1; Int_t HOnlineMdcHistFiller::timescalhists=1; Int_t HOnlineMdcHistFiller::timesrawhists=1; Int_t HOnlineMdcHistFiller::normhists=1; // Hist Pointers HOnlineHistArray* HOnlineMdcHistFiller::htime1Cal1=0; HOnlineTrendHist* HOnlineMdcHistFiller::htime1Cal1MeanTrend=0; HOnlineMonHist* HOnlineMdcHistFiller::htime1Cal1MeanTrendtemp=0; HOnlineHistArray* HOnlineMdcHistFiller::hcutstat=0; HOnlineMonHist2* HOnlineMdcHistFiller::hCal1Hits=0; HOnlineMonHist2* HOnlineMdcHistFiller::hCal1Hitstemp=0; HOnlineTrendArray* HOnlineMdcHistFiller::hCal1HitsTrend=0; HOnlineMonHist2* HOnlineMdcHistFiller::hrawRoc_Subev=0; HOnlineMonHist2* HOnlineMdcHistFiller::hrawError_Stat=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayer[6][4]={{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0}}; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS0M0=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS1M0=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS2M0=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS3M0=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS4M0=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS5M0=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS0M1=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS1M1=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS2M1=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS3M1=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS4M1=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS5M1=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS0M2=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS1M2=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS2M2=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS3M2=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS4M2=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS5M2=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS0M3=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS1M3=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS2M3=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS3M3=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS4M3=0; HOnlineHistArray* HOnlineMdcHistFiller::hlayerS5M3=0; HOnlineHistArray2* HOnlineMdcHistFiller::hmbo_tdc=0; HOnlineHistArray2* HOnlineMdcHistFiller::hmbo_tdc_calib=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1Mod0=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1Mod1=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1Mod2=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1Mod3=0; HOnlineHistArray* HOnlineMdcHistFiller::htime2Mod0=0; HOnlineHistArray* HOnlineMdcHistFiller::htime2Mod1=0; HOnlineHistArray* HOnlineMdcHistFiller::htime2Mod2=0; HOnlineHistArray* HOnlineMdcHistFiller::htime2Mod3=0; HOnlineHistArray* HOnlineMdcHistFiller::htime12Mod0=0; HOnlineHistArray* HOnlineMdcHistFiller::htime12Mod1=0; HOnlineHistArray* HOnlineMdcHistFiller::htime12Mod2=0; HOnlineHistArray* HOnlineMdcHistFiller::htime12Mod3=0; HOnlineHistArray2* HOnlineMdcHistFiller::htime1_12=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1rawMod0=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1rawMod1=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1rawMod2=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1rawMod3=0; HOnlineHistArray* HOnlineMdcHistFiller::htime2rawMod0=0; HOnlineHistArray* HOnlineMdcHistFiller::htime2rawMod1=0; HOnlineHistArray* HOnlineMdcHistFiller::htime2rawMod2=0; HOnlineHistArray* HOnlineMdcHistFiller::htime2rawMod3=0; HOnlineHistArray* HOnlineMdcHistFiller::htime12rawMod0=0; HOnlineHistArray* HOnlineMdcHistFiller::htime12rawMod1=0; HOnlineHistArray* HOnlineMdcHistFiller::htime12rawMod2=0; HOnlineHistArray* HOnlineMdcHistFiller::htime12rawMod3=0; HOnlineHistArray2* HOnlineMdcHistFiller::htime1_12raw=0; HOnlineHistArray2* HOnlineMdcHistFiller::hmbo=0; HOnlineTrendArray* HOnlineMdcHistFiller::hmbotrendMod0=0; HOnlineTrendArray* HOnlineMdcHistFiller::hmbotrendMod1=0; HOnlineTrendArray* HOnlineMdcHistFiller::hmbotrendMod2=0; HOnlineTrendArray* HOnlineMdcHistFiller::hmbotrendMod3=0; HOnlineHistArray* HOnlineMdcHistFiller::hmod_timestat_calibMod0=0; HOnlineHistArray* HOnlineMdcHistFiller::hmod_timestat_calibMod1=0; HOnlineHistArray* HOnlineMdcHistFiller::hmod_timestat_calibMod2=0; HOnlineHistArray* HOnlineMdcHistFiller::hmod_timestat_calibMod3=0; HOnlineHistArray* HOnlineMdcHistFiller::hmod_timestat_calib[4]={0,0,0,0}; HOnlineTrendArray* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod0=0; HOnlineTrendArray* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod1=0; HOnlineTrendArray* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod2=0; HOnlineTrendArray* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod3=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod0temp=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod1temp=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod2temp=0; HOnlineHistArray* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod3temp=0; // Hist Addon Pointers HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1MeanTrendA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1MeanTrendtempA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hcutstatA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hCal1HitsA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hCal1HitstempA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hCal1HitsTrendA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hrawRoc_SubevA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hrawError_StatA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS0M0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS1M0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS2M0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS3M0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS4M0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS5M0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS0M1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS1M1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS2M1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS3M1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS4M1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS5M1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS0M2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS1M2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS2M2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS3M2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS4M2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS5M2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS0M3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS1M3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS2M3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS3M3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS4M3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hlayerS5M3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmbo_tdcA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmbo_tdc_calibA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Mod0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Mod1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Mod2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Mod3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime2Mod0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime2Mod1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime2Mod2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime2Mod3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime12Mod0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime12Mod1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime12Mod2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime12Mod3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1_12A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1rawMod0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1rawMod1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1rawMod2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1rawMod3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime2rawMod0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime2rawMod1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime2rawMod2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime2rawMod3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime12rawMod0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime12rawMod1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime12rawMod2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime12rawMod3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1_12rawA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmboA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmbotrendMod0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmbotrendMod1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmbotrendMod2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmbotrendMod3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmod_timestat_calibMod0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmod_timestat_calibMod1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmod_timestat_calibMod2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::hmod_timestat_calibMod3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod0A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod1A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod2A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod3A=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod0tempA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod1tempA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod2tempA=0; HOnlineMonHistAddon* HOnlineMdcHistFiller::htime1Cal1MeanTrendMod3tempA=0; ClassImp(HOnlineMdcHistFiller) HOnlineMdcHistFiller::HOnlineMdcHistFiller(const Char_t* name,const Char_t* title) : TNamed(name,title) { colorsSector.Set(6); colorsModule.Set(4); styleModule.Set(4); colorsCuts.Set(4); mdcconfig = new HOnlineMdcConfig("MdcConfig","MdcConfig"); mdclookup = new HOnlineMdcConnectedTdc("MdcLookup","MdcLookup"); initCounter(); } HOnlineMdcHistFiller::~HOnlineMdcHistFiller() { delete mdcconfig; delete mdclookup; } HOnlineMdcConfig* HOnlineMdcHistFiller::getMdcConfig() { return mdcconfig; } HOnlineMdcConnectedTdc* HOnlineMdcHistFiller::getMdcLookup() { return mdclookup; } void HOnlineMdcHistFiller::fillRaw(HMdcRaw* raw) { Int_t s,m,mb,ch; raw->getAddress(s,m,mb,ch); Float_t time1=raw->getTime(1); Float_t time2=raw->getTime(2); if(hmbo_tdc&&mbotdchists==1) hmbo_tdc ->getP(s,m)->Fill((Axis_t)mb,(Axis_t)((Int_t)(ch/8))); countSecMod[s][m]++; if(timesrawhists==1) { if(htime1rawMod0&&m==0 )htime1rawMod0 ->getP(0,s)->Fill(time1); if(htime1rawMod1&&m==1 )htime1rawMod1 ->getP(0,s)->Fill(time1); if(htime1rawMod2&&m==2 )htime1rawMod2 ->getP(0,s)->Fill(time1); if(htime1rawMod3&&m==3 )htime1rawMod3 ->getP(0,s)->Fill(time1); if(htime2rawMod0&&m==0 )htime2rawMod0 ->getP(0,s)->Fill(time2); if(htime2rawMod1&&m==1 )htime2rawMod1 ->getP(0,s)->Fill(time2); if(htime2rawMod2&&m==2 )htime2rawMod2 ->getP(0,s)->Fill(time2); if(htime2rawMod3&&m==3 )htime2rawMod3 ->getP(0,s)->Fill(time2); if(htime12rawMod0&&m==0)htime12rawMod0->getP(0,s)->Fill(time1-time2); if(htime12rawMod1&&m==1)htime12rawMod1->getP(0,s)->Fill(time1-time2); if(htime12rawMod2&&m==2)htime12rawMod2->getP(0,s)->Fill(time1-time2); if(htime12rawMod3&&m==3)htime12rawMod3->getP(0,s)->Fill(time1-time2); if(htime1_12raw)htime1_12raw->fill(s,m,time1,time1-time2); } if(mbohists==1) { if(hmbo)hmbo->fill(0,m,s,mb); } } void HOnlineMdcHistFiller::fillRawHeader(HMdcRawEventHeader* rawhead) { Int_t roc =rawhead->getRoc(); Int_t subeventsize =rawhead->getSubEvtSize(); Int_t errorword =rawhead->getErrorWord(); Int_t s =rawhead->getSector(); Int_t m =rawhead->getModule(); Int_t x=(((m*6+s)*5)+ roc); if(hrawError_Stat&&s>=0&&m>=0) { if( (errorword&0xFF) ==0) { hrawError_Stat->getP()->Fill(m*6+s,-0.5); } for(Int_t i=1;i<4;i++) { if(((errorword>>i)&1)!=0){ Stat_t cont=hrawError_Stat->getP()->GetBinContent(x,i); hrawError_Stat->getP()->SetBinContent(x,i,cont+1); } } } if(hrawRoc_Subev) { TH1* h=hrawRoc_Subev->getP(); Float_t scale=(hrawRoc_Subev->getYUp() - hrawRoc_Subev->getYLo() )/(Float_t)hrawRoc_Subev->getNBinsY(); h->SetBinContent(x,(Int_t)(subeventsize/scale),h->GetBinContent(x,(Int_t)(subeventsize/scale))+1); } } void HOnlineMdcHistFiller::fillCalibration(HIterator* iterraw) { Int_t s,m,mb,ch; HMdcRaw* raw; while ((raw=(HMdcRaw *)iterraw->Next())!=0) { raw->getAddress(s,m,mb,ch); if(hmbo_tdc_calib) hmbo_tdc_calib->getP(s,m)->Fill((Axis_t)mb,(Axis_t)((Int_t)(ch/8))); if(hmod_timestat_calib[m]) { for(Int_t i=0;i<6;i++) { if(raw->getTime(i+1)>0){hmod_timestat_calib[m]->getP(0,s)->Fill(i);} else if (raw->getTime(i+1)==0){hmod_timestat_calib[m]->getP(0,s)->Fill(6);} else {hmod_timestat_calib[m]->getP(0,s)->Fill(7);} } } } } void HOnlineMdcHistFiller::fillCal1(HMdcCal1* cal1) { Int_t s,m,l,c; cal1->getAddress(s,m,l,c); Float_t time1=cal1->getTime1(); Float_t time2=cal1->getTime2(); if(htime1Cal1) { htime1Cal1->getP(0,0)->Fill(time1); htime1Cal1->getP(0,1)->Fill(time2); } if(htime1Cal1MeanTrendtemp)htime1Cal1MeanTrendtemp->getP()->Fill(time1); if(htime1Cal1MeanTrendMod0temp&&m==0)htime1Cal1MeanTrendMod0temp ->getP(0,s)->Fill(time1); if(htime1Cal1MeanTrendMod1temp&&m==1)htime1Cal1MeanTrendMod1temp ->getP(0,s)->Fill(time1); if(htime1Cal1MeanTrendMod2temp&&m==2)htime1Cal1MeanTrendMod2temp ->getP(0,s)->Fill(time1); if(htime1Cal1MeanTrendMod3temp&&m==3)htime1Cal1MeanTrendMod3temp ->getP(0,s)->Fill(time1); if(hCal1Hits)hCal1Hits->getP()->Fill(m,s,1); if(hCal1Hitstemp)hCal1Hitstemp->getP()->Fill(m,s,1); if(hlayer[s][m])hlayer[s][m]->getP(0,l)->Fill(c); if(timescalhists==1) { if(htime1Mod0&&m==0 )htime1Mod0 ->getP(0,s)->Fill(time1); if(htime1Mod1&&m==1 )htime1Mod1 ->getP(0,s)->Fill(time1); if(htime1Mod2&&m==2 )htime1Mod2 ->getP(0,s)->Fill(time1); if(htime1Mod3&&m==3 )htime1Mod3 ->getP(0,s)->Fill(time1); if(htime2Mod0&&m==0 )htime2Mod0 ->getP(0,s)->Fill(time2); if(htime2Mod1&&m==1 )htime2Mod1 ->getP(0,s)->Fill(time2); if(htime2Mod2&&m==2 )htime2Mod2 ->getP(0,s)->Fill(time2); if(htime2Mod3&&m==3 )htime2Mod3 ->getP(0,s)->Fill(time2); if(htime12Mod0&&m==0)htime12Mod0->getP(0,s)->Fill(time2-time1); if(htime12Mod1&&m==1)htime12Mod1->getP(0,s)->Fill(time2-time1); if(htime12Mod2&&m==2)htime12Mod2->getP(0,s)->Fill(time2-time1); if(htime12Mod3&&m==3)htime12Mod3->getP(0,s)->Fill(time2-time1); if(htime1_12)htime1_12->fill(s,m,time1,time2-time1); } } void HOnlineMdcHistFiller::fillCutStat() { if(hcutstat){ cutstat=HMdcCutStat::getExObject(); if(cutstat) { Int_t t1,t2,t1t2,wire,t1_t1t2,cutall,allhits; for(Int_t m=0; m<4; m++) { for(Int_t s=0; s<6; s++) { cutstat->getCal1StatCut(s,m,&t1,&t2,&t1t2,&wire,&t1_t1t2,&cutall,&allhits); if(allhits!=0){ if(normhists==1) { hcutstat->setBinContent(0,1,m*6+s+1,(Float_t)(allhits-t1) /allhits); //3 hcutstat->setBinContent(0,2,m*6+s+1,(Float_t)(allhits-t1t2) /allhits); //5 hcutstat->setBinContent(0,3,m*6+s+1,(Float_t)(allhits-cutall) /allhits); //4 hcutstat->setBinContent(0,0,m*6+s+1,(Float_t)allhits/allhits); //2 } else if(normhists==0) { hcutstat->setBinContent(0,1,m*6+s+1,(Float_t)(allhits-t1)); //3 hcutstat->setBinContent(0,2,m*6+s+1,(Float_t)(allhits-t1t2)); //5 hcutstat->setBinContent(0,3,m*6+s+1,(Float_t)(allhits-cutall)); //4 hcutstat->setBinContent(0,0,m*6+s+1,(Float_t)allhits); //2 } } } } if(hcutstatA->getResetable()==1)cutstat->clear(); } } } void HOnlineMdcHistFiller::fillTrend() { if(htime1Cal1MeanTrend)htime1Cal1MeanTrend->fill(htime1Cal1MeanTrendtemp->getP()->GetMean(), htime1Cal1MeanTrendtemp->getP()->GetRMS()); if(htime1Cal1MeanTrendtemp)htime1Cal1MeanTrendtemp->getP()->Reset(); for(Int_t s=0;s<6;s++){ for(Int_t m=0;m<4;m++){ if(hmbotrendMod0&&m==0)hmbotrendMod0->fill(0,s,countSecMod[s][m]); if(hmbotrendMod1&&m==1)hmbotrendMod1->fill(0,s,countSecMod[s][m]); if(hmbotrendMod2&&m==2)hmbotrendMod2->fill(0,s,countSecMod[s][m]); if(hmbotrendMod3&&m==3)hmbotrendMod3->fill(0,s,countSecMod[s][m]); if(hCal1Hitstemp&&hCal1HitsTrend){ hCal1HitsTrend->fill(s,m,hCal1Hitstemp->getP()->GetBinContent(m+1,s+1)); } } } for(Int_t s=0;s<6;s++){ if(htime1Cal1MeanTrendMod0)htime1Cal1MeanTrendMod0->fill(0,s,htime1Cal1MeanTrendMod0temp->getP(0,s)->GetMean()); if(htime1Cal1MeanTrendMod1)htime1Cal1MeanTrendMod1->fill(0,s,htime1Cal1MeanTrendMod1temp->getP(0,s)->GetMean()); if(htime1Cal1MeanTrendMod2)htime1Cal1MeanTrendMod2->fill(0,s,htime1Cal1MeanTrendMod2temp->getP(0,s)->GetMean()); if(htime1Cal1MeanTrendMod3)htime1Cal1MeanTrendMod3->fill(0,s,htime1Cal1MeanTrendMod3temp->getP(0,s)->GetMean()); if(htime1Cal1MeanTrendMod0temp)htime1Cal1MeanTrendMod0temp->getP(0,s)->Reset(); if(htime1Cal1MeanTrendMod1temp)htime1Cal1MeanTrendMod1temp->getP(0,s)->Reset(); if(htime1Cal1MeanTrendMod2temp)htime1Cal1MeanTrendMod2temp->getP(0,s)->Reset(); if(htime1Cal1MeanTrendMod3temp)htime1Cal1MeanTrendMod3temp->getP(0,s)->Reset(); } if(hCal1Hitstemp)hCal1Hitstemp->getP()->Reset(); initCounter(); } void HOnlineMdcHistFiller::fillMdcConfig(Int_t fCount) { HCategory* catRaw=gHades->getCurrentEvent()->getCategory(catMdcRaw); if(catRaw) { mdcconfig->setEvtSeqNb(catRaw->getEntries()); mdcconfig->setEvtNb(fCount); mdcconfig->setRawMult(catRaw->getEntries()); } HCategory* catCal1=gHades->getCurrentEvent()->getCategory(catMdcCal1); if(catCal1) { mdcconfig->setCalMult(catCal1->getEntries()); } } void HOnlineMdcHistFiller::putMdcParams(HParamList* l,TList* histpool) { // Puts all params of HOnlineMdcHistFiller to the parameter list of // HParamList (which ist used by the io); Text_t mytemp[500]; l->add("colorsSector" ,colorsSector ); l->add("colorsModule" ,colorsModule ); l->add("styleModule" ,styleModule ); l->add("colorsCuts" ,colorsCuts ); l->add("layerhists" ,layerhists ); l->add("mbohists" ,mbohists ); l->add("mbotdchists" ,mbotdchists ); l->add("timescalhists" ,timescalhists ); l->add("timesrawhists" ,timesrawhists ); l->add("normhists" ,normhists ); htime1Cal1A->getText(mytemp); l->add("htime1Cal1" ,mytemp); htime1Cal1MeanTrendA->getText(mytemp); l->add("htime1Cal1MeanTrend" ,mytemp); htime1Cal1MeanTrendtempA->getText(mytemp); l->add("htime1Cal1MeanTrendTemp",mytemp); hcutstatA->getText(mytemp); l->add("hcutstat" ,mytemp); hCal1HitsA->getText(mytemp); l->add("hcal1hits" ,mytemp); hCal1HitstempA->getText(mytemp); l->add("hcal1hitstemp" ,mytemp); hCal1HitsTrendA->getText(mytemp); l->add("hcal1hitstrend" ,mytemp); hrawRoc_SubevA->getText(mytemp); l->add("hrawRoc_Subev" ,mytemp); hrawError_StatA->getText(mytemp); l->add("hrawError_Stat" ,mytemp); hlayerS0M0A->getText(mytemp); l->add("hlayerS0M0" ,mytemp); hlayerS1M0A->getText(mytemp); l->add("hlayerS1M0" ,mytemp); hlayerS2M0A->getText(mytemp); l->add("hlayerS2M0" ,mytemp); hlayerS3M0A->getText(mytemp); l->add("hlayerS3M0" ,mytemp); hlayerS4M0A->getText(mytemp); l->add("hlayerS4M0" ,mytemp); hlayerS5M0A->getText(mytemp); l->add("hlayerS5M0" ,mytemp); hlayerS0M1A->getText(mytemp); l->add("hlayerS0M1" ,mytemp); hlayerS1M1A->getText(mytemp); l->add("hlayerS1M1" ,mytemp); hlayerS2M1A->getText(mytemp); l->add("hlayerS2M1" ,mytemp); hlayerS3M1A->getText(mytemp); l->add("hlayerS3M1" ,mytemp); hlayerS4M1A->getText(mytemp); l->add("hlayerS4M1" ,mytemp); hlayerS5M1A->getText(mytemp); l->add("hlayerS5M1" ,mytemp); hlayerS0M2A->getText(mytemp); l->add("hlayerS0M2" ,mytemp); hlayerS1M2A->getText(mytemp); l->add("hlayerS1M2" ,mytemp); hlayerS2M2A->getText(mytemp); l->add("hlayerS2M2" ,mytemp); hlayerS3M2A->getText(mytemp); l->add("hlayerS3M2" ,mytemp); hlayerS4M2A->getText(mytemp); l->add("hlayerS4M2" ,mytemp); hlayerS5M2A->getText(mytemp); l->add("hlayerS5M2" ,mytemp); hlayerS0M3A->getText(mytemp); l->add("hlayerS0M3" ,mytemp); hlayerS1M3A->getText(mytemp); l->add("hlayerS1M3" ,mytemp); hlayerS2M3A->getText(mytemp); l->add("hlayerS2M3" ,mytemp); hlayerS3M3A->getText(mytemp); l->add("hlayerS3M3" ,mytemp); hlayerS4M3A->getText(mytemp); l->add("hlayerS4M3" ,mytemp); hlayerS5M3A->getText(mytemp); l->add("hlayerS5M3" ,mytemp); hmbo_tdcA->getText(mytemp); l->add("hmbo_tdc" ,mytemp); hmbo_tdc_calibA->getText(mytemp); l->add("hmbo_tdc_calib" ,mytemp); htime1Mod0A->getText(mytemp); l->add("htime1Mod0" ,mytemp); htime1Mod1A->getText(mytemp); l->add("htime1Mod1" ,mytemp); htime1Mod2A->getText(mytemp); l->add("htime1Mod2" ,mytemp); htime1Mod3A->getText(mytemp); l->add("htime1Mod3" ,mytemp); htime2Mod0A->getText(mytemp); l->add("htime2Mod0" ,mytemp); htime2Mod1A->getText(mytemp); l->add("htime2Mod1" ,mytemp); htime2Mod2A->getText(mytemp); l->add("htime2Mod2" ,mytemp); htime2Mod3A->getText(mytemp); l->add("htime2Mod3" ,mytemp); htime12Mod0A->getText(mytemp); l->add("htime12Mod0" ,mytemp); htime12Mod1A->getText(mytemp); l->add("htime12Mod1" ,mytemp); htime2Mod2A->getText(mytemp); l->add("htime12Mod2" ,mytemp); htime12Mod3A->getText(mytemp); l->add("htime12Mod3" ,mytemp); htime1_12A->getText(mytemp); l->add("htime1_12" ,mytemp); htime1rawMod0A->getText(mytemp); l->add("htime1rawMod0" ,mytemp); htime1rawMod1A->getText(mytemp); l->add("htime1rawMod1" ,mytemp); htime1rawMod2A->getText(mytemp); l->add("htime1rawMod2" ,mytemp); htime1rawMod3A->getText(mytemp); l->add("htime1rawMod3" ,mytemp); htime2rawMod0A->getText(mytemp); l->add("htime2rawMod0" ,mytemp); htime2rawMod1A->getText(mytemp); l->add("htime2rawMod1" ,mytemp); htime2rawMod2A->getText(mytemp); l->add("htime2rawMod2" ,mytemp); htime2rawMod3A->getText(mytemp); l->add("htime2rawMod3" ,mytemp); htime12rawMod0A->getText(mytemp); l->add("htime12rawMod0" ,mytemp); htime12rawMod1A->getText(mytemp); l->add("htime12rawMod1" ,mytemp); htime2rawMod2A->getText(mytemp); l->add("htime12rawMod2" ,mytemp); htime12rawMod3A->getText(mytemp); l->add("htime12rawMod3" ,mytemp); htime1_12rawA->getText(mytemp); l->add("htime1_12raw" ,mytemp); hmboA->getText(mytemp); l->add("hmbo" ,mytemp); hmbotrendMod0A->getText(mytemp); l->add("hmbotrendMod0" ,mytemp); hmbotrendMod1A->getText(mytemp); l->add("hmbotrendMod1" ,mytemp); hmbotrendMod2A->getText(mytemp); l->add("hmbotrendMod2" ,mytemp); hmbotrendMod3A->getText(mytemp); l->add("hmbotrendMod3" ,mytemp); hmod_timestat_calibMod0A->getText(mytemp); l->add("hmod_timestat_calibMod0",mytemp); hmod_timestat_calibMod1A->getText(mytemp); l->add("hmod_timestat_calibMod1",mytemp); hmod_timestat_calibMod2A->getText(mytemp); l->add("hmod_timestat_calibMod2",mytemp); hmod_timestat_calibMod3A->getText(mytemp); l->add("hmod_timestat_calibMod3",mytemp); htime1Cal1MeanTrendMod0A->getText(mytemp); l->add("htime1Cal1MeanTrendMod0" ,mytemp); htime1Cal1MeanTrendMod1A->getText(mytemp); l->add("htime1Cal1MeanTrendMod1" ,mytemp); htime1Cal1MeanTrendMod2A->getText(mytemp); l->add("htime1Cal1MeanTrendMod2" ,mytemp); htime1Cal1MeanTrendMod3A->getText(mytemp); l->add("htime1Cal1MeanTrendMod3" ,mytemp); htime1Cal1MeanTrendMod0tempA->getText(mytemp); l->add("htime1Cal1MeanTrendMod0temp",mytemp); htime1Cal1MeanTrendMod1tempA->getText(mytemp); l->add("htime1Cal1MeanTrendMod1temp",mytemp); htime1Cal1MeanTrendMod2tempA->getText(mytemp); l->add("htime1Cal1MeanTrendMod2temp",mytemp); htime1Cal1MeanTrendMod3tempA->getText(mytemp); l->add("htime1Cal1MeanTrendMod3temp",mytemp); } Bool_t HOnlineMdcHistFiller::getMdcParams(HParamList* l,TList* histpool,TList* activeHists) { const Char_t *mdclabel[24] = { "I1","I2","I3","I4","I5","I6", "II1","II2","II3","II4","II5","II6", "III1","III2","III3","III4","III5","III6", "IV1","IV2","IV3","IV4","IV5","IV6" }; if(!(l->fill("colorsSector" ,&colorsSector ))) return kFALSE; if(!(l->fill("colorsModule" ,&colorsModule ))) return kFALSE; if(!(l->fill("styleModule" ,&styleModule ))) return kFALSE; if(!(l->fill("colorsCuts" ,&colorsCuts ))) return kFALSE; if(!(l->fill("layerhists" ,&layerhists ))) return kFALSE; if(!(l->fill("mbohists" ,&mbohists ))) return kFALSE; if(!(l->fill("mbotdchists" ,&mbotdchists ))) return kFALSE; if(!(l->fill("timescalhists" ,×calhists ))) return kFALSE; if(!(l->fill("timesrawhists" ,×rawhists ))) return kFALSE; if(!(l->fill("normhists" ,&normhists ))) return kFALSE; Text_t mytemp[500]; if(!(l->fill("htime1Cal1",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1A=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1A->getActive()==1) { activeHists->Add(htime1Cal1=new HOnlineHistArray(*htime1Cal1A)); htime1Cal1->getP(0,0)->SetLineColor(1); htime1Cal1->getP(0,1)->SetLineColor(2); } } if(!(l->fill("htime1Cal1MeanTrend",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1MeanTrendA=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1MeanTrendA->getActive()==1) { activeHists->Add(htime1Cal1MeanTrend=new HOnlineTrendHist(*htime1Cal1MeanTrendA)); } } if(!(l->fill("htime1Cal1MeanTrendTemp",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1MeanTrendtempA=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1MeanTrendtempA->getActive()==1) { activeHists->Add(htime1Cal1MeanTrendtemp=new HOnlineMonHist(*htime1Cal1MeanTrendtempA)); } } if(!(l->fill("hcutstat",mytemp,500))) return kFALSE; else { histpool->Add(hcutstatA=new HOnlineMonHistAddon(mytemp)); if(hcutstatA->getActive()==1) { activeHists->Add(hcutstat=new HOnlineHistArray(*hcutstatA)); hcutstat->getP(0,0)->SetFillColor(colorsCuts[0]); hcutstat->getP(0,1)->SetFillColor(colorsCuts[1]); hcutstat->getP(0,2)->SetFillColor(colorsCuts[2]); hcutstat->getP(0,3)->SetFillColor(colorsCuts[3]); for(Int_t i=0;i<24;i++){ hcutstat->getP(0,4)->GetXaxis()->SetBinLabel(i+1,mdclabel[i]); } hcutstat->getP(0,4)->GetXaxis()->SetLabelSize(0.05); hcutstat->getP(0,4)->LabelsOption("v"); hcutstat->getP(0,4)->SetTitleOffset(1.15,"X"); } } if(!(l->fill("hcal1hits",mytemp,500))) return kFALSE; else { histpool->Add(hCal1HitsA=new HOnlineMonHistAddon(mytemp)); if(hCal1HitsA->getActive()==1) { activeHists->Add(hCal1Hits=new HOnlineMonHist2(*hCal1HitsA)); } } if(!(l->fill("hcal1hitstemp",mytemp,500))) return kFALSE; else { histpool->Add(hCal1HitstempA=new HOnlineMonHistAddon(mytemp)); if(hCal1HitstempA->getActive()==1) { activeHists->Add(hCal1Hitstemp=new HOnlineMonHist2(*hCal1HitstempA)); } } if(!(l->fill("hcal1hitstrend",mytemp,500))) return kFALSE; else { histpool->Add(hCal1HitsTrendA=new HOnlineMonHistAddon(mytemp)); if(hCal1HitsTrendA->getActive()==1) { activeHists->Add(hCal1HitsTrend=new HOnlineTrendArray(*hCal1HitsTrendA)); for(Int_t s=0;s<6;s++){ for(Int_t m=0;m<4;m++){ hCal1HitsTrend->getP(s,m)->SetMarkerColor(colorsSector[s]); hCal1HitsTrend->getP(s,m)->SetMarkerStyle(styleModule[m]); } } } } if(!(l->fill("hrawRoc_Subev",mytemp,500))) return kFALSE; else { histpool->Add(hrawRoc_SubevA=new HOnlineMonHistAddon(mytemp)); if(hrawRoc_SubevA->getActive()==1) { activeHists->Add(hrawRoc_Subev=new HOnlineMonHist2(*hrawRoc_SubevA)); for(Int_t i=0;i<24;i++){ hrawRoc_Subev->getP()->GetXaxis()->SetBinLabel(i*5+1,mdclabel[i]); } hrawRoc_Subev->getP()->GetXaxis()->SetLabelSize(0.05); hrawRoc_Subev->getP()->LabelsOption("v"); hrawRoc_Subev->getP()->SetTitleOffset(1.15,"X"); } } if(!(l->fill("hrawError_Stat",mytemp,500))) return kFALSE; else { histpool->Add(hrawError_StatA=new HOnlineMonHistAddon(mytemp)); if(hrawError_StatA->getActive()==1) { activeHists->Add(hrawError_Stat=new HOnlineMonHist2(*hrawError_StatA)); for(Int_t i=0;i<24;i++){ hrawError_Stat->getP()->GetXaxis()->SetBinLabel(i*5+1,mdclabel[i]); } hrawError_Stat->getP()->GetXaxis()->SetLabelSize(0.05); hrawError_Stat->getP()->LabelsOption("v"); hrawError_Stat->getP()->SetTitleOffset(1.15,"X"); // hrawError_Stat->getP()->GetXaxis()->SetNdivisions(24,kFALSE); } } //-------- layer if(!(l->fill("hlayerS0M0",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS0M0A=new HOnlineMonHistAddon(mytemp)); if(hlayerS0M0A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS0M0=new HOnlineHistArray(*hlayerS0M0A)); hlayer[0][0] = hlayerS0M0; for(Int_t i=0;i<6;i++){ hlayerS0M0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS1M0",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS1M0A=new HOnlineMonHistAddon(mytemp)); if(hlayerS1M0A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS1M0=new HOnlineHistArray(*hlayerS1M0A)); hlayer[1][0] = hlayerS1M0; for(Int_t i=0;i<6;i++){ hlayerS1M0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS2M0",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS2M0A=new HOnlineMonHistAddon(mytemp)); if(hlayerS2M0A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS2M0=new HOnlineHistArray(*hlayerS2M0A)); hlayer[2][0] = hlayerS2M0; for(Int_t i=0;i<6;i++){ hlayerS2M0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS3M0",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS3M0A=new HOnlineMonHistAddon(mytemp)); if(hlayerS3M0A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS3M0=new HOnlineHistArray(*hlayerS3M0A)); hlayer[3][0] = hlayerS3M0; for(Int_t i=0;i<6;i++){ hlayerS3M0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS4M0",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS4M0A=new HOnlineMonHistAddon(mytemp)); if(hlayerS4M0A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS4M0=new HOnlineHistArray(*hlayerS4M0A)); hlayer[4][0] = hlayerS4M0; for(Int_t i=0;i<6;i++){ hlayerS4M0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS5M0",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS5M0A=new HOnlineMonHistAddon(mytemp)); if(hlayerS5M0A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS5M0=new HOnlineHistArray(*hlayerS5M0A)); hlayer[5][0] = hlayerS5M0; for(Int_t i=0;i<6;i++){ hlayerS5M0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS0M1",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS0M1A=new HOnlineMonHistAddon(mytemp)); if(hlayerS0M1A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS0M1=new HOnlineHistArray(*hlayerS0M1A)); hlayer[0][1] = hlayerS0M1; for(Int_t i=0;i<6;i++){ hlayerS0M1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS1M1",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS1M1A=new HOnlineMonHistAddon(mytemp)); if(hlayerS1M1A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS1M1=new HOnlineHistArray(*hlayerS1M1A)); hlayer[1][1] = hlayerS1M1; for(Int_t i=0;i<6;i++){ hlayerS1M1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS2M1",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS2M1A=new HOnlineMonHistAddon(mytemp)); if(hlayerS2M1A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS2M1=new HOnlineHistArray(*hlayerS2M1A)); hlayer[2][1] = hlayerS2M1; for(Int_t i=0;i<6;i++){ hlayerS2M1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS3M1",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS3M1A=new HOnlineMonHistAddon(mytemp)); if(hlayerS3M1A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS3M1=new HOnlineHistArray(*hlayerS3M1A)); hlayer[3][1] = hlayerS3M1; for(Int_t i=0;i<6;i++){ hlayerS3M1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS4M1",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS4M1A=new HOnlineMonHistAddon(mytemp)); if(hlayerS4M1A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS4M1=new HOnlineHistArray(*hlayerS4M1A)); hlayer[4][1] = hlayerS4M1; for(Int_t i=0;i<6;i++){ hlayerS4M1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS5M1",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS5M1A=new HOnlineMonHistAddon(mytemp)); if(hlayerS5M1A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS5M1=new HOnlineHistArray(*hlayerS5M1A)); hlayer[5][1] = hlayerS5M1; for(Int_t i=0;i<6;i++){ hlayerS5M1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS0M2",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS0M2A=new HOnlineMonHistAddon(mytemp)); if(hlayerS0M2A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS0M2=new HOnlineHistArray(*hlayerS0M2A)); hlayer[0][2] = hlayerS0M2; for(Int_t i=0;i<6;i++){ hlayerS0M2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS1M2",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS1M2A=new HOnlineMonHistAddon(mytemp)); if(hlayerS1M2A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS1M2=new HOnlineHistArray(*hlayerS1M2A)); hlayer[1][2] = hlayerS1M2; for(Int_t i=0;i<6;i++){ hlayerS1M2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS2M2",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS2M2A=new HOnlineMonHistAddon(mytemp)); if(hlayerS2M2A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS2M2=new HOnlineHistArray(*hlayerS2M2A)); hlayer[2][2] = hlayerS2M2; for(Int_t i=0;i<6;i++){ hlayerS2M2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS3M2",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS3M2A=new HOnlineMonHistAddon(mytemp)); if(hlayerS3M2A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS3M2=new HOnlineHistArray(*hlayerS3M2A)); hlayer[3][2] = hlayerS3M2; for(Int_t i=0;i<6;i++){ hlayerS3M2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS4M2",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS4M2A=new HOnlineMonHistAddon(mytemp)); if(hlayerS4M2A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS4M2=new HOnlineHistArray(*hlayerS4M2A)); hlayer[4][2] = hlayerS4M2; for(Int_t i=0;i<6;i++){ hlayerS4M2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS5M2",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS5M2A=new HOnlineMonHistAddon(mytemp)); if(hlayerS5M2A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS5M2=new HOnlineHistArray(*hlayerS5M2A)); hlayer[5][2] = hlayerS5M2; for(Int_t i=0;i<6;i++){ hlayerS5M2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS0M3",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS0M3A=new HOnlineMonHistAddon(mytemp)); if(hlayerS0M3A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS0M3=new HOnlineHistArray(*hlayerS0M3A)); hlayer[0][3] = hlayerS0M3; for(Int_t i=0;i<6;i++){ hlayerS0M3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS1M3",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS1M3A=new HOnlineMonHistAddon(mytemp)); if(hlayerS1M3A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS1M3=new HOnlineHistArray(*hlayerS1M3A)); hlayer[1][3] = hlayerS1M3; for(Int_t i=0;i<6;i++){ hlayerS1M3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS2M3",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS2M3A=new HOnlineMonHistAddon(mytemp)); if(hlayerS2M3A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS2M3=new HOnlineHistArray(*hlayerS2M3A)); hlayer[2][3] = hlayerS2M3; for(Int_t i=0;i<6;i++){ hlayerS2M3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS3M3",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS3M3A=new HOnlineMonHistAddon(mytemp)); if(hlayerS3M3A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS3M3=new HOnlineHistArray(*hlayerS3M3A)); hlayer[3][3] = hlayerS3M3; for(Int_t i=0;i<6;i++){ hlayerS3M3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS4M3",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS4M3A=new HOnlineMonHistAddon(mytemp)); if(hlayerS4M3A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS4M3=new HOnlineHistArray(*hlayerS4M3A)); hlayer[4][3] = hlayerS4M3; for(Int_t i=0;i<6;i++){ hlayerS4M3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hlayerS5M3",mytemp,500))) return kFALSE; else { histpool->Add(hlayerS5M3A=new HOnlineMonHistAddon(mytemp)); if(hlayerS5M3A->getActive()==1&&layerhists==1){ activeHists->Add(hlayerS5M3=new HOnlineHistArray(*hlayerS5M3A)); hlayer[5][3] = hlayerS5M3; for(Int_t i=0;i<6;i++){ hlayerS5M3->getP(0,i)->SetLineColor(colorsSector[i]); } } } //-------- layer if(!(l->fill("hmbo_tdc",mytemp,500))) return kFALSE; else { histpool->Add(hmbo_tdcA=new HOnlineMonHistAddon(mytemp)); if(hmbo_tdcA->getActive()==1&&mbotdchists==1) { activeHists->Add(hmbo_tdc=new HOnlineHistArray2(*hmbo_tdcA)); } } if(!(l->fill("hmbo_tdc_calib",mytemp,500))) return kFALSE; else { histpool->Add(hmbo_tdc_calibA=new HOnlineMonHistAddon(mytemp)); if(hmbo_tdc_calibA->getActive()==1) { activeHists->Add(hmbo_tdc_calib=new HOnlineHistArray2(*hmbo_tdc_calibA)); } } if(!(l->fill("hmod_timestat_calibMod0",mytemp,500))) return kFALSE; else { histpool->Add(hmod_timestat_calibMod0A=new HOnlineMonHistAddon(mytemp)); if(hmod_timestat_calibMod0A->getActive()==1) { const Char_t *timelabel[8] = {"1","2","3","4","5","6","0","<0"}; activeHists->Add(hmod_timestat_calibMod0=new HOnlineHistArray(*hmod_timestat_calibMod0A)); hmod_timestat_calib[0] = hmod_timestat_calibMod0; for(Int_t i=0;i<6;i++){ hmod_timestat_calibMod0->getP(0,i)->SetLineColor(colorsSector[i]); for(Int_t l=0;l<8;l++){ hmod_timestat_calibMod0->getP(0,i)->GetXaxis()->SetBinLabel(l+1,timelabel[l]); hmod_timestat_calibMod0->getP(0,i)->GetXaxis()->SetLabelSize(0.055); } } } } if(!(l->fill("hmod_timestat_calibMod1",mytemp,500))) return kFALSE; else { histpool->Add(hmod_timestat_calibMod1A=new HOnlineMonHistAddon(mytemp)); if(hmod_timestat_calibMod1A->getActive()==1) { const Char_t *timelabel[8] = {"1","2","3","4","5","6","0","<0"}; activeHists->Add(hmod_timestat_calibMod1=new HOnlineHistArray(*hmod_timestat_calibMod1A)); hmod_timestat_calib[1] = hmod_timestat_calibMod1; for(Int_t i=0;i<6;i++){ hmod_timestat_calibMod1->getP(0,i)->SetLineColor(colorsSector[i]); for(Int_t l=0;l<8;l++){ hmod_timestat_calibMod1->getP(0,i)->GetXaxis()->SetBinLabel(l+1,timelabel[l]); hmod_timestat_calibMod1->getP(0,i)->GetXaxis()->SetLabelSize(0.055); } } } } if(!(l->fill("hmod_timestat_calibMod2",mytemp,500))) return kFALSE; else { histpool->Add(hmod_timestat_calibMod2A=new HOnlineMonHistAddon(mytemp)); if(hmod_timestat_calibMod2A->getActive()==1) { const Char_t *timelabel[8] = {"1","2","3","4","5","6","0","<0"}; activeHists->Add(hmod_timestat_calibMod2=new HOnlineHistArray(*hmod_timestat_calibMod2A)); hmod_timestat_calib[2] = hmod_timestat_calibMod2; for(Int_t i=0;i<6;i++){ hmod_timestat_calibMod2->getP(0,i)->SetLineColor(colorsSector[i]); for(Int_t l=0;l<8;l++){ hmod_timestat_calibMod2->getP(0,i)->GetXaxis()->SetBinLabel(l+1,timelabel[l]); hmod_timestat_calibMod2->getP(0,i)->GetXaxis()->SetLabelSize(0.055); } } } } if(!(l->fill("hmod_timestat_calibMod3",mytemp,500))) return kFALSE; else { histpool->Add(hmod_timestat_calibMod3A=new HOnlineMonHistAddon(mytemp)); if(hmod_timestat_calibMod3A->getActive()==1) { const Char_t *timelabel[8] = {"1","2","3","4","5","6","0","<0"}; activeHists->Add(hmod_timestat_calibMod3=new HOnlineHistArray(*hmod_timestat_calibMod3A)); hmod_timestat_calib[3] = hmod_timestat_calibMod3; for(Int_t i=0;i<6;i++){ hmod_timestat_calibMod3->getP(0,i)->SetLineColor(colorsSector[i]); for(Int_t l=0;l<8;l++){ hmod_timestat_calibMod3->getP(0,i)->GetXaxis()->SetBinLabel(l+1,timelabel[l]); hmod_timestat_calibMod3->getP(0,i)->GetXaxis()->SetLabelSize(0.055); } } } } if(!getTimesCalParams(l,histpool,activeHists))return kFALSE; if(!getTimesRawParams(l,histpool,activeHists))return kFALSE; if(!getMboParams(l,histpool,activeHists)) return kFALSE; if(!getModTrendParams(l,histpool,activeHists))return kFALSE; return kTRUE; } Bool_t HOnlineMdcHistFiller::getTimesCalParams(HParamList* l,TList* histpool,TList* activeHists) { Text_t mytemp[500]; if(!(l->fill("htime1Mod0",mytemp,500))) return kFALSE; else { histpool->Add(htime1Mod0A=new HOnlineMonHistAddon(mytemp)); if(htime1Mod0A->getActive()==1&×calhists==1) { activeHists->Add(htime1Mod0=new HOnlineHistArray(*htime1Mod0A)); for(Int_t i=0;i<6;i++) { htime1Mod0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1Mod1",mytemp,500))) return kFALSE; else { histpool->Add(htime1Mod1A=new HOnlineMonHistAddon(mytemp)); if(htime1Mod1A->getActive()==1&×calhists==1) { activeHists->Add(htime1Mod1=new HOnlineHistArray(*htime1Mod1A)); for(Int_t i=0;i<6;i++) { htime1Mod1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1Mod2",mytemp,500))) return kFALSE; else { histpool->Add(htime1Mod2A=new HOnlineMonHistAddon(mytemp)); if(htime1Mod2A->getActive()==1&×calhists==1) { activeHists->Add(htime1Mod2=new HOnlineHistArray(*htime1Mod2A)); for(Int_t i=0;i<6;i++) { htime1Mod2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1Mod3",mytemp,500))) return kFALSE; else { histpool->Add(htime1Mod3A=new HOnlineMonHistAddon(mytemp)); if(htime1Mod3A->getActive()==1&×calhists==1) { activeHists->Add(htime1Mod3=new HOnlineHistArray(*htime1Mod3A)); for(Int_t i=0;i<6;i++) { htime1Mod3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime2Mod0",mytemp,500))) return kFALSE; else { histpool->Add(htime2Mod0A=new HOnlineMonHistAddon(mytemp)); if(htime2Mod0A->getActive()==1&×calhists==1) { activeHists->Add(htime2Mod0=new HOnlineHistArray(*htime2Mod0A)); for(Int_t i=0;i<6;i++) { htime2Mod0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime2Mod1",mytemp,500))) return kFALSE; else { histpool->Add(htime2Mod1A=new HOnlineMonHistAddon(mytemp)); if(htime2Mod1A->getActive()==1&×calhists==1) { activeHists->Add(htime2Mod1=new HOnlineHistArray(*htime2Mod1A)); for(Int_t i=0;i<6;i++) { htime2Mod1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime2Mod2",mytemp,500))) return kFALSE; else { histpool->Add(htime2Mod2A=new HOnlineMonHistAddon(mytemp)); if(htime2Mod2A->getActive()==1&×calhists==1) { activeHists->Add(htime2Mod2=new HOnlineHistArray(*htime2Mod2A)); for(Int_t i=0;i<6;i++) { htime2Mod2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime2Mod3",mytemp,500))) return kFALSE; else { histpool->Add(htime2Mod3A=new HOnlineMonHistAddon(mytemp)); if(htime2Mod3A->getActive()==1&×calhists==1) { activeHists->Add(htime2Mod3=new HOnlineHistArray(*htime2Mod3A)); for(Int_t i=0;i<6;i++) { htime2Mod3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime12Mod0",mytemp,500))) return kFALSE; else { histpool->Add(htime12Mod0A=new HOnlineMonHistAddon(mytemp)); if(htime12Mod0A->getActive()==1&×calhists==1) { activeHists->Add(htime12Mod0=new HOnlineHistArray(*htime12Mod0A)); for(Int_t i=0;i<6;i++) { htime12Mod0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime12Mod1",mytemp,500))) return kFALSE; else { histpool->Add(htime12Mod1A=new HOnlineMonHistAddon(mytemp)); if(htime12Mod1A->getActive()==1&×calhists==1) { activeHists->Add(htime12Mod1=new HOnlineHistArray(*htime12Mod1A)); for(Int_t i=0;i<6;i++) { htime12Mod1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime12Mod2",mytemp,500))) return kFALSE; else { histpool->Add(htime12Mod2A=new HOnlineMonHistAddon(mytemp)); if(htime12Mod2A->getActive()==1&×calhists==1) { activeHists->Add(htime12Mod2=new HOnlineHistArray(*htime12Mod2A)); for(Int_t i=0;i<6;i++) { htime12Mod2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime12Mod3",mytemp,500))) return kFALSE; else { histpool->Add(htime12Mod3A=new HOnlineMonHistAddon(mytemp)); if(htime12Mod3A->getActive()==1&×calhists==1) { activeHists->Add(htime12Mod3=new HOnlineHistArray(*htime12Mod3A)); for(Int_t i=0;i<6;i++) { htime12Mod3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1_12",mytemp,500))) return kFALSE; else { histpool->Add(htime1_12A=new HOnlineMonHistAddon(mytemp)); if(htime1_12A->getActive()==1&×calhists==1) { activeHists->Add(htime1_12=new HOnlineHistArray2(*htime1_12A)); } } return kTRUE; } Bool_t HOnlineMdcHistFiller::getTimesRawParams(HParamList* l,TList* histpool,TList* activeHists) { Text_t mytemp[500]; if(!(l->fill("htime1rawMod0",mytemp,500))) return kFALSE; else { histpool->Add(htime1rawMod0A=new HOnlineMonHistAddon(mytemp)); if(htime1rawMod0A->getActive()==1&×rawhists==1) { activeHists->Add(htime1rawMod0=new HOnlineHistArray(*htime1rawMod0A)); for(Int_t i=0;i<6;i++) { htime1rawMod0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1rawMod1",mytemp,500))) return kFALSE; else { histpool->Add(htime1rawMod1A=new HOnlineMonHistAddon(mytemp)); if(htime1rawMod1A->getActive()==1&×rawhists==1) { activeHists->Add(htime1rawMod1=new HOnlineHistArray(*htime1rawMod1A)); for(Int_t i=0;i<6;i++) { htime1rawMod1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1rawMod2",mytemp,500))) return kFALSE; else { histpool->Add(htime1rawMod2A=new HOnlineMonHistAddon(mytemp)); if(htime1rawMod2A->getActive()==1&×rawhists==1) { activeHists->Add(htime1rawMod2=new HOnlineHistArray(*htime1rawMod2A)); for(Int_t i=0;i<6;i++) { htime1rawMod2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1rawMod3",mytemp,500))) return kFALSE; else { histpool->Add(htime1rawMod3A=new HOnlineMonHistAddon(mytemp)); if(htime1rawMod3A->getActive()==1&×rawhists==1) { activeHists->Add(htime1rawMod3=new HOnlineHistArray(*htime1rawMod3A)); for(Int_t i=0;i<6;i++) { htime1rawMod3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime2rawMod0",mytemp,500))) return kFALSE; else { histpool->Add(htime2rawMod0A=new HOnlineMonHistAddon(mytemp)); if(htime2rawMod0A->getActive()==1&×rawhists==1) { activeHists->Add(htime2rawMod0=new HOnlineHistArray(*htime2rawMod0A)); for(Int_t i=0;i<6;i++) { htime2rawMod0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime2rawMod1",mytemp,500))) return kFALSE; else { histpool->Add(htime2rawMod1A=new HOnlineMonHistAddon(mytemp)); if(htime2rawMod1A->getActive()==1&×rawhists==1) { activeHists->Add(htime2rawMod1=new HOnlineHistArray(*htime2rawMod1A)); for(Int_t i=0;i<6;i++) { htime2rawMod1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime2rawMod2",mytemp,500))) return kFALSE; else { histpool->Add(htime2rawMod2A=new HOnlineMonHistAddon(mytemp)); if(htime2rawMod2A->getActive()==1&×rawhists==1) { activeHists->Add(htime2rawMod2=new HOnlineHistArray(*htime2rawMod2A)); for(Int_t i=0;i<6;i++) { htime2rawMod2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime2rawMod3",mytemp,500))) return kFALSE; else { histpool->Add(htime2rawMod3A=new HOnlineMonHistAddon(mytemp)); if(htime2rawMod3A->getActive()==1&×rawhists==1) { activeHists->Add(htime2rawMod3=new HOnlineHistArray(*htime2rawMod3A)); for(Int_t i=0;i<6;i++) { htime2rawMod3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime12rawMod0",mytemp,500))) return kFALSE; else { histpool->Add(htime12rawMod0A=new HOnlineMonHistAddon(mytemp)); if(htime12rawMod0A->getActive()==1&×rawhists==1) { activeHists->Add(htime12rawMod0=new HOnlineHistArray(*htime12rawMod0A)); for(Int_t i=0;i<6;i++) { htime12rawMod0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime12rawMod1",mytemp,500))) return kFALSE; else { histpool->Add(htime12rawMod1A=new HOnlineMonHistAddon(mytemp)); if(htime12rawMod1A->getActive()==1&×rawhists==1) { activeHists->Add(htime12rawMod1=new HOnlineHistArray(*htime12rawMod1A)); for(Int_t i=0;i<6;i++) { htime12rawMod1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime12rawMod2",mytemp,500))) return kFALSE; else { histpool->Add(htime12rawMod2A=new HOnlineMonHistAddon(mytemp)); if(htime12rawMod2A->getActive()==1&×rawhists==1) { activeHists->Add(htime12rawMod2=new HOnlineHistArray(*htime12rawMod2A)); for(Int_t i=0;i<6;i++) { htime12rawMod2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime12rawMod3",mytemp,500))) return kFALSE; else { histpool->Add(htime12rawMod3A=new HOnlineMonHistAddon(mytemp)); if(htime12rawMod3A->getActive()==1&×rawhists==1) { activeHists->Add(htime12rawMod3=new HOnlineHistArray(*htime12rawMod3A)); for(Int_t i=0;i<6;i++) { htime12rawMod3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1_12raw",mytemp,500))) return kFALSE; else { histpool->Add(htime1_12rawA=new HOnlineMonHistAddon(mytemp)); if(htime1_12rawA->getActive()==1&×rawhists==1) { activeHists->Add(htime1_12raw=new HOnlineHistArray2(*htime1_12rawA)); } } return kTRUE; } Bool_t HOnlineMdcHistFiller::getMboParams(HParamList* l,TList* histpool,TList* activeHists) { Text_t mytemp[500]; if(!(l->fill("hmbotrendMod0",mytemp,500))) return kFALSE; else { histpool->Add(hmbotrendMod0A=new HOnlineMonHistAddon(mytemp)); if(hmbotrendMod0A->getActive()==1&&mbohists==1) { activeHists->Add(hmbotrendMod0=new HOnlineTrendArray(*hmbotrendMod0A)); for(Int_t i=0;i<6;i++) { hmbotrendMod0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hmbotrendMod1",mytemp,500))) return kFALSE; else { histpool->Add(hmbotrendMod1A=new HOnlineMonHistAddon(mytemp)); if(hmbotrendMod1A->getActive()==1&&mbohists==1) { activeHists->Add(hmbotrendMod1=new HOnlineTrendArray(*hmbotrendMod1A)); for(Int_t i=0;i<6;i++) { hmbotrendMod1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hmbotrendMod2",mytemp,500))) return kFALSE; else { histpool->Add(hmbotrendMod2A=new HOnlineMonHistAddon(mytemp)); if(hmbotrendMod2A->getActive()==1&&mbohists==1) { activeHists->Add(hmbotrendMod2=new HOnlineTrendArray(*hmbotrendMod2A)); for(Int_t i=0;i<6;i++) { hmbotrendMod2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hmbotrendMod3",mytemp,500))) return kFALSE; else { histpool->Add(hmbotrendMod3A=new HOnlineMonHistAddon(mytemp)); if(hmbotrendMod3A->getActive()==1&&mbohists==1) { activeHists->Add(hmbotrendMod3=new HOnlineTrendArray(*hmbotrendMod3A)); for(Int_t i=0;i<6;i++) { hmbotrendMod3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("hmbo",mytemp,500))) return kFALSE; else { histpool->Add(hmboA=new HOnlineMonHistAddon(mytemp)); if(hmboA->getActive()==1&&mbohists==1) { activeHists->Add(hmbo=new HOnlineHistArray2(*hmboA)); } } return kTRUE; } Bool_t HOnlineMdcHistFiller::getModTrendParams(HParamList* l,TList* histpool,TList* activeHists) { Text_t mytemp[500]; if(!(l->fill("htime1Cal1MeanTrendMod0",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1MeanTrendMod0A=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1MeanTrendMod0A->getActive()==1) { activeHists->Add(htime1Cal1MeanTrendMod0=new HOnlineTrendArray(*htime1Cal1MeanTrendMod0A)); for(Int_t i=0;i<6;i++) { htime1Cal1MeanTrendMod0->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1Cal1MeanTrendMod1",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1MeanTrendMod1A=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1MeanTrendMod1A->getActive()==1) { activeHists->Add(htime1Cal1MeanTrendMod1=new HOnlineTrendArray(*htime1Cal1MeanTrendMod1A)); for(Int_t i=0;i<6;i++) { htime1Cal1MeanTrendMod1->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1Cal1MeanTrendMod2",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1MeanTrendMod2A=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1MeanTrendMod2A->getActive()==1) { activeHists->Add(htime1Cal1MeanTrendMod2=new HOnlineTrendArray(*htime1Cal1MeanTrendMod2A)); for(Int_t i=0;i<6;i++) { htime1Cal1MeanTrendMod2->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1Cal1MeanTrendMod3",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1MeanTrendMod3A=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1MeanTrendMod3A->getActive()==1) { activeHists->Add(htime1Cal1MeanTrendMod3=new HOnlineTrendArray(*htime1Cal1MeanTrendMod3A)); for(Int_t i=0;i<6;i++) { htime1Cal1MeanTrendMod3->getP(0,i)->SetLineColor(colorsSector[i]); } } } if(!(l->fill("htime1Cal1MeanTrendMod0temp",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1MeanTrendMod0tempA=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1MeanTrendMod0tempA->getActive()==1) { activeHists->Add(htime1Cal1MeanTrendMod0temp=new HOnlineHistArray(*htime1Cal1MeanTrendMod0tempA)); } } if(!(l->fill("htime1Cal1MeanTrendMod1temp",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1MeanTrendMod1tempA=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1MeanTrendMod1tempA->getActive()==1) { activeHists->Add(htime1Cal1MeanTrendMod1temp=new HOnlineHistArray(*htime1Cal1MeanTrendMod1tempA)); } } if(!(l->fill("htime1Cal1MeanTrendMod2temp",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1MeanTrendMod2tempA=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1MeanTrendMod2tempA->getActive()==1) { activeHists->Add(htime1Cal1MeanTrendMod2temp=new HOnlineHistArray(*htime1Cal1MeanTrendMod2tempA)); } } if(!(l->fill("htime1Cal1MeanTrendMod3temp",mytemp,500))) return kFALSE; else { histpool->Add(htime1Cal1MeanTrendMod3tempA=new HOnlineMonHistAddon(mytemp)); if(htime1Cal1MeanTrendMod3tempA->getActive()==1) { activeHists->Add(htime1Cal1MeanTrendMod3temp=new HOnlineHistArray(*htime1Cal1MeanTrendMod3tempA)); } } return kTRUE; }