- if(task==AliQAv1::kRAWS) {
- for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) {
- if (! IsValidEventSpecie(specie, histos) )
- continue ;
- for(Int_t iddl=0;iddl<14;iddl++) {
- TH1F *h = (TH1F*)histos[specie]->At(14+iddl); //ddl histos scaled by the number of events
- if(fEvtRaw>0) h->Scale(1.0/(Float_t)fEvtRaw);
- }//ddl loop
-
- TH2F *h2 = (TH2F*)histos[specie]->At(14+14+42+42+3);
- if(fEvtRaw>0) h2->Scale(1.0/(Float_t)fEvtRaw);
-
- TH2F *h3 = (TH2F*)histos[specie]->At(14+14+42+42+4);
- if(fEvtRaw>0) h3->Scale(1.0/(Float_t)fEvtRaw);
-
-
- Double_t binval=0,binerr=0;
-
- TH1F *h4 = (TH1F*)histos[specie]->At(14+14+42+42+1);
- TProfile *h4prf = (TProfile*)histos[specie]->At(14+14+42+42+5);
- for(Int_t iddl=1;iddl<=14;iddl++)
- {
- binval=h4prf->GetBinContent(iddl); binerr=h4prf->GetBinError(iddl);
- h4->SetBinContent(iddl,binval); h4->SetBinError(iddl,binerr);
- }
- //if(fEvtRaw>0) h4->Scale(1./(Float_t)fEvtRaw);
-
- TH1F *h5 = (TH1F*)histos[specie]->At(14+14+42+42+2);
- TProfile *h5prf = (TProfile*)histos[specie]->At(14+14+42+42+6);
- for(Int_t iddl=1;iddl<=14;iddl++)
- {
- binval=h5prf->GetBinContent(iddl); binerr=h5prf->GetBinError(iddl);
- h5->SetBinContent(iddl,binval); h5->SetBinError(iddl,binerr);
- }
-
- //if(fEvtRaw>0) h5->Scale(1./(Float_t)fEvtRaw/11520.0*100.0);
-
- }//specie loop
- }//RAWS
-
+ ResetEventTrigClasses(); // reset triggers list to select all histos
+ TH1* htmp = 0;
+ //
+ for (int itc=-1;itc<GetNTrigClasses();itc++) { // RS: loop over eventual clones per trigger class
+ //
+ if(task==AliQAv1::kRAWS) {
+ for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) {
+ if (! IsValidEventSpecie(specie, histos) ) continue;
+ SetEventSpecie(AliRecoParam::ConvertIndex(specie));
+ Int_t nEvtRaw = GetEvCountCycleRaws(itc);
+ if (nEvtRaw>0) {
+ //ddl histos scaled by the number of events
+ for(Int_t iddl=0;iddl<14;iddl++) if ( (htmp=GetData(histos, 14+iddl,itc)) ) htmp->Scale(1.0/(Float_t)nEvtRaw);
+ if ( (htmp=GetData(histos, 14+14+42+42+3, itc)) ) htmp->Scale(1.0/(Float_t)nEvtRaw);
+ if ( (htmp=GetData(histos, 14+14+42+42+4, itc)) ) htmp->Scale(1.0/(Float_t)nEvtRaw);
+ }
+ Double_t binval=0,binerr=0;
+ TH1F *h4 = (TH1F*) GetData(histos, 14+14+42+42+1, itc);
+ TProfile *h4prf = (TProfile*)GetData(histos, 14+14+42+42+5, itc);
+ if (h4 && h4prf) {
+ for(Int_t iddl=1;iddl<=14;iddl++) {
+ binval=h4prf->GetBinContent(iddl); binerr=h4prf->GetBinError(iddl);
+ h4->SetBinContent(iddl,binval); h4->SetBinError(iddl,binerr);
+ }
+ }
+ //if (nEvtRaw>0) h4->Scale(1./(Float_t)nEvtRaw);
+ //
+ TH1F *h5 = (TH1F*) GetData(histos, 14+14+42+42+2, itc);
+ TProfile *h5prf = (TProfile*)GetData(histos, 14+14+42+42+6, itc);
+ if (h4 && h4prf) {
+ for(Int_t iddl=1;iddl<=14;iddl++) {
+ binval=h5prf->GetBinContent(iddl); binerr=h5prf->GetBinError(iddl);
+ h5->SetBinContent(iddl,binval); h5->SetBinError(iddl,binerr);
+ }
+ }
+ //if(nEvtRaw>0) h5->Scale(1./(Float_t)nEvtRaw/11520.0*100.0);
+ }//specie loop
+ }//RAWS
+ //
+ } // RS: loop over eventual clones per trigger class
+ //