- if (hdata) {
- histo_nb++;
- if (histo_nb == 3) {
- Mult_V0A = hdata->GetMean();
-// printf(" Histo ESD number %d; Mean Mult on V0A = %f\n",histo_nb, Mult_V0A);
- }
- if (histo_nb == 4) {
- Mult_V0C = hdata->GetMean();
-// printf(" Histo ESD number %d; Mean Mult on V0C = %f\n",histo_nb, Mult_V0C);
- }
- if (histo_nb == 6) {
- for (Int_t i=0; i<4; i++) {
- V0A_BB_Ring[i] = hdata->Integral((i*8)+1, (i*8) +8);
-// printf(" Histo ESD number %d; Ring = %d; BB A %f\n",histo_nb, i, V0A_BB_Ring[i]);
- }
- }
- if (histo_nb == 7) {
- for (Int_t i=0; i<4; i++) {
- V0A_BG_Ring[i] = hdata->Integral((i*8)+1, (i*8) +8);
-// printf(" Histo ESD number %d; Ring = %d; BG A %f\n",histo_nb, i, V0A_BG_Ring[i]);
- }
- }
- if (histo_nb == 8) {
- for (Int_t i=0; i<4; i++) {
- V0C_BB_Ring[i] = hdata->Integral((i*8)+1, (i*8) +8);
-// printf(" Histo ESD number %d; Ring = %d; BB C %f\n",histo_nb, i, V0C_BB_Ring[i]);
- }
- }
- if (histo_nb == 9) {
- for (Int_t i=0; i<4; i++) {
- V0C_BG_Ring[i] = hdata->Integral((i*8)+1, (i*8) +8);
-// printf(" Histo ESD number %d; Ring = %d; BG C %f\n",histo_nb, i, V0C_BG_Ring[i]);
- }
- }
- }
+ if (hdata) {
+ switch (histonb) {
+ case AliVZEROQADataMakerRec::kCellMultiV0A:
+ multV0A = hdata->GetMean();
+ break;
+ case AliVZEROQADataMakerRec::kCellMultiV0C:
+ multV0C = hdata->GetMean();
+ break;
+ case AliVZEROQADataMakerRec::kBBFlag:
+ for (Int_t i=0; i<8; i++) {
+ if(i<4) v0CBBRing[i] = hdata->Integral((i*8)+1, (i*8) +8);
+ else v0ABBRing[i-4] = hdata->Integral((i*8)+1, (i*8) +8);
+ }
+ break;
+ case AliVZEROQADataMakerRec::kBGFlag:
+ for (Int_t i=0; i<8; i++) {
+ if(i<4) v0CBGRing[i] = hdata->Integral((i*8)+1, (i*8) +8);
+ else v0ABGRing[i-4] = hdata->Integral((i*8)+1, (i*8) +8);
+ }
+ break;
+ }
+ }
+ histonb++;