AliVZEROQADataMakerRec::AliVZEROQADataMakerRec() :
AliQADataMakerRec(AliQAv1::GetDetName(AliQAv1::kVZERO), "VZERO Quality Assurance Data Maker"),
fCalibData(0x0),
- fEvent(0), fNTotEvents(0), fNSubEvents(0), fTrendingUpdateEvent(0), fTrendingUpdateTime(0), fCycleStartTime(0), fCycleStopTime(0), fMonitorRate(0.)
+ fEvent(0),
+ fNTotEvents(0),
+ fNSubEvents(0),
+ fTrendingUpdateEvent(0),
+ fNTrendingUpdates(0),
+ fTrendingUpdateTime(0),
+ fCycleStartTime(0),
+ fCycleStopTime(0),
+ fMonitorRate(0.)
{
// Constructor
}
for(Int_t i=0; i<64; i++){
fEven[i] = 0;
- fOdd[i] = 0; }
+ fOdd[i] = 0;
+ fChargePerChannel[i] = 0.;
+ fFlagPerChannel[i] = 0.;
+ fMeanChargePerChannel[i] = 0.;
+ fMeanFlagPerChannel[i] = 0.;
+ }
for(Int_t i=0; i<128; i++){
fADCmean[i] = 0.0; }
AliVZEROQADataMakerRec::AliVZEROQADataMakerRec(const AliVZEROQADataMakerRec& qadm) :
AliQADataMakerRec(),
fCalibData(0x0),
- fEvent(0), fNTotEvents(0), fNSubEvents(0), fTrendingUpdateEvent(0), fTrendingUpdateTime(0), fCycleStartTime(0), fCycleStopTime(0), fMonitorRate(0.)
+ fEvent(0),
+ fNTotEvents(0),
+ fNSubEvents(0),
+ fTrendingUpdateEvent(0),
+ fNTrendingUpdates(0),
+ fTrendingUpdateTime(0),
+ fCycleStartTime(0),
+ fCycleStopTime(0),
+ fMonitorRate(0.)
{
// Copy constructor
void AliVZEROQADataMakerRec::InitRaws()
{
// Creates RAW histograms in Raws subdir
-
+
const Bool_t expert = kTRUE ;
const Bool_t saveCorr = kTRUE ;
const Bool_t image = kTRUE ;
sprintf(name,"TREND_MeanChargePerRing");
sprintf(title,"Mean Charge per Event and per Ring versus time ");
trend = new AliVZEROTrending(name, title);
- Add2RawsList(trend,kRawMeanChargePerRing, !expert, !image, !saveCorr); iHisto++;
+ Add2RawsList(trend,kRawMeanChargePerRing, expert, !image, !saveCorr); iHisto++;
sprintf(name,"TREND_MeanFlagPerRing");
sprintf(title,"Mean Flag per Event and per Ring versus time ");
trend = new AliVZEROTrending(name, title);
- Add2RawsList(trend,kRawMeanFlagPerRing, !expert, !image, !saveCorr); iHisto++;
+ Add2RawsList(trend,kRawMeanFlagPerRing, expert, !image, !saveCorr); iHisto++;
+
+ sprintf(name,"H1D_DQMFlag");
+ sprintf(title,"Current Flag per Event / Mean Flag per Event ");
+ h1d = new TH1D(name, title, kNChannelBins, kChannelMin, kChannelMax);
+ h1d->SetFillColor(29);
+ h1d->SetLineWidth(2);
+ h1d->GetXaxis()->SetLabelSize(0.06);
+ h1d->GetXaxis()->SetNdivisions(808,kFALSE);
+ h1d->GetXaxis()->SetBinLabel(4, "V0C");h1d->GetXaxis()->SetBinLabel(5, "R0");
+ h1d->GetXaxis()->SetBinLabel(12, "V0C");h1d->GetXaxis()->SetBinLabel(13, "R1");
+ h1d->GetXaxis()->SetBinLabel(20, "V0C");h1d->GetXaxis()->SetBinLabel(21, "R2");
+ h1d->GetXaxis()->SetBinLabel(28, "V0C");h1d->GetXaxis()->SetBinLabel(29, "R3");
+ h1d->GetXaxis()->SetBinLabel(36, "V0A");h1d->GetXaxis()->SetBinLabel(37, "R0");
+ h1d->GetXaxis()->SetBinLabel(44, "V0A");h1d->GetXaxis()->SetBinLabel(45, "R1");
+ h1d->GetXaxis()->SetBinLabel(52, "V0A");h1d->GetXaxis()->SetBinLabel(53, "R2");
+ h1d->GetXaxis()->SetBinLabel(60, "V0A");h1d->GetXaxis()->SetBinLabel(61, "R3");
+ h1d->GetXaxis()->CenterTitle();
+ h1d->GetXaxis()->SetTitleOffset(0.8);
+ h1d->GetXaxis()->SetNdivisions(808,kFALSE);
+ Add2RawsList(h1d,kRawDQMFlag, !expert, image, !saveCorr); iHisto++;
+
+ sprintf(name,"H1D_DQMCharge");
+ sprintf(title,"Current Charge per Event / Mean Charge per Event ");
+ h1d = new TH1D(name, title, kNChannelBins, kChannelMin, kChannelMax);
+ h1d->SetFillColor(29);
+ h1d->SetLineWidth(2);
+ h1d->GetXaxis()->SetLabelSize(0.06);
+ h1d->GetXaxis()->SetNdivisions(808,kFALSE);
+ h1d->GetXaxis()->SetBinLabel(4, "V0C");h1d->GetXaxis()->SetBinLabel(5, "R0");
+ h1d->GetXaxis()->SetBinLabel(12, "V0C");h1d->GetXaxis()->SetBinLabel(13, "R1");
+ h1d->GetXaxis()->SetBinLabel(20, "V0C");h1d->GetXaxis()->SetBinLabel(21, "R2");
+ h1d->GetXaxis()->SetBinLabel(28, "V0C");h1d->GetXaxis()->SetBinLabel(29, "R3");
+ h1d->GetXaxis()->SetBinLabel(36, "V0A");h1d->GetXaxis()->SetBinLabel(37, "R0");
+ h1d->GetXaxis()->SetBinLabel(44, "V0A");h1d->GetXaxis()->SetBinLabel(45, "R1");
+ h1d->GetXaxis()->SetBinLabel(52, "V0A");h1d->GetXaxis()->SetBinLabel(53, "R2");
+ h1d->GetXaxis()->SetBinLabel(60, "V0A");h1d->GetXaxis()->SetBinLabel(61, "R3");
+ h1d->GetXaxis()->CenterTitle();
+ h1d->GetXaxis()->SetTitleOffset(0.8);
+ h1d->GetXaxis()->SetNdivisions(808,kFALSE);
+ Add2RawsList(h1d,kRawDQMCharge, !expert, image, !saveCorr); iHisto++;
AliDebug(AliQAv1::GetQADebugLevel(), Form("%d Histograms has been added to the Raws List",iHisto));
}
const Bool_t expert = kTRUE ;
const Bool_t image = kTRUE ;
- char TDCname[100];
- char ADCname[100];
+ char tDCname[100];
+ char aDCname[100];
TH1I *fhDigTDC[64];
TH1I *fhDigADC[64];
char texte[100];
for (Int_t i=0; i<64; i++)
{
- sprintf(TDCname, "hDigitTDC%d", i);
+ sprintf(tDCname, "hDigitTDC%d", i);
sprintf(texte,"Digit TDC in cell %d; TDC value;Entries",i);
- fhDigTDC[i] = new TH1I(TDCname,texte,300,0.,149.);
+ fhDigTDC[i] = new TH1I(tDCname,texte,300,0.,149.);
- sprintf(ADCname,"hDigitADC%d",i);
+ sprintf(aDCname,"hDigitADC%d",i);
sprintf(texte,"Digit ADC in cell %d;ADC value;Entries",i);
- fhDigADC[i]= new TH1I(ADCname,texte,1024,0.,1023.);
+ fhDigADC[i]= new TH1I(aDCname,texte,1024,0.,1023.);
Add2DigitsList(fhDigTDC[i],i+1, !expert, image);
Add2DigitsList(fhDigADC[i],i+1+64, !expert, image);
GetDigitsData(0)->Fill(fDigitsArray->GetEntriesFast()) ;
TIter next(fDigitsArray) ;
- AliVZEROdigit *VZERODigit ;
- while ( (VZERODigit = dynamic_cast<AliVZEROdigit *>(next())) ) {
- Int_t PMNumber = VZERODigit->PMNumber();
- GetDigitsData(PMNumber +1)->Fill( VZERODigit->Time()) ; // in 100 of picoseconds
- GetDigitsData(PMNumber +1+64)->Fill( VZERODigit->ADC()) ;
+ AliVZEROdigit *aVZERODigit ;
+ while ( (aVZERODigit = dynamic_cast<AliVZEROdigit *>(next())) ) {
+ Int_t aPMNumber = aVZERODigit->PMNumber();
+ GetDigitsData(aPMNumber +1)->Fill( aVZERODigit->Time()) ; // in 100 of picoseconds
+ GetDigitsData(aPMNumber +1+64)->Fill( aVZERODigit->ADC()) ;
}
}
int side = offlineCh/32;
int ring = (offlineCh - 32*side) / 8;
- if(BBFlag) fFlagPerRing[side*4 + ring] += 1;
+ if(BBFlag) {
+ fFlagPerRing[side*4 + ring] += 1;
+ fFlagPerChannel[offlineCh] += 1;
+ }
if(charge<1023 && chargeEoI > 5.*sigma){
fChargePerRing[side*4 + ring] += chargeEoI;
+ fChargePerChannel[offlineCh] += chargeEoI;
((TH2I*)GetRawsData((integrator == 0 ? kChargeEoICycleInt0 : kChargeEoICycleInt1)))->Fill(offlineCh,chargeEoI);
((TH2D*)GetRawsData(kRawMIPChannel))->Fill(offlineCh,mipEoI);
if(offlineCh<32) {
//-------------------------------------------------------------------------------------------------
void AliVZEROQADataMakerRec::AddTrendingEntry(){
- printf("AddTrendingEntry\n");
+ //printf("AddTrendingEntry\n");
+ fNTrendingUpdates++;
// Normalize to the number of events
for(int i=0; i<8;i++){
fFlagPerRing[i] /= fTrendingUpdateEvent;
}
+ GetRawsData(kRawDQMCharge)->Reset();
+ GetRawsData(kRawDQMFlag)->Reset();
+
+ for(int i=0; i<64;i++){
+ fChargePerChannel[i] /= fTrendingUpdateEvent;
+ fFlagPerChannel[i] /= fTrendingUpdateEvent;
+
+ if(fMeanChargePerChannel[i]) GetRawsData(kRawDQMCharge)->Fill(i,fChargePerChannel[i]/fMeanChargePerChannel[i]);
+ else GetRawsData(kRawDQMCharge)->Fill(i,0.);
+
+ if(fMeanFlagPerChannel[i]) GetRawsData(kRawDQMFlag)->Fill(i,fFlagPerChannel[i]/fMeanFlagPerChannel[i]);
+ else GetRawsData(kRawDQMFlag)->Fill(i,0.);
+
+ fMeanChargePerChannel[i] = (fMeanChargePerChannel[i] * (fNTrendingUpdates-1) + fChargePerChannel[i]) / fNTrendingUpdates;
+ fMeanFlagPerChannel[i] = (fMeanFlagPerChannel[i] * (fNTrendingUpdates-1) + fFlagPerChannel[i]) / fNTrendingUpdates;
+
+ }
+
TTimeStamp currentTime;
((AliVZEROTrending*)GetRawsData(kRawMeanChargePerRing))->AddEntry(fChargePerRing, currentTime.GetSec());
((AliVZEROTrending*)GetRawsData(kRawMeanFlagPerRing))->AddEntry(fFlagPerRing, currentTime.GetSec());
fChargePerRing[i] = 0.;
fFlagPerRing[i] = 0.;
}
+ for(int i=0; i<64;i++){
+ fChargePerChannel[i] = 0.;
+ fFlagPerChannel[i] = 0.;
+ }
}