int status = 0;
int const kNChannels = 24;
int const kNScChannels = 32;
+ Int_t kFirstADCGeo=0, kLastADCGeo=3;
Int_t ich=0;
Int_t adcMod[2*kNChannels], adcCh[2*kNChannels], sigCode[2*kNChannels];
}
else{
printf("ZDCPEDESTALda.cxx -> NO STANDALONE_PEDESTAL RUN raw data found\n");
- printf(" Attributes: %x\n", message);
+ printf(" CDH attributes: %x\n", message);
return -1;
}
}
//printf(" rawData: det %d sec %d value %d\n",
// detector, sector,rawStreamZDC->GetADCGain(),rawStreamZDC->GetADCValue() );
- if(rawStreamZDC->IsADCDataWord() && (detector!=-1)){
+ if((rawStreamZDC->IsADCDataWord()) && (detector!=-1) &&
+ (rawStreamZDC->GetADCModule()>=kFirstADCGeo && rawStreamZDC->GetADCModule()<=kLastADCGeo)){
if(sector!=5){ // Physics signals
if(detector==1) index = sector; // *** ZNC
else if(detector==2) index = sector+5; // *** ZPC
}
iraw++;
}//IsADCDataWord()
- //
- if(iraw == 4*kNChannels){ // Last ADC channel -> Filling correlation histos
- for(Int_t k=0; k<kNChannels; k++){
- hPedCorrhg[k]->Fill(RawADCoothg[k], RawADChg[k]);
- hPedCorrlg[k]->Fill(RawADCootlg[k], RawADClg[k]);
- }
- }
}
+ //
+ if(iraw==4*kNChannels ){ // Last ADC channel -> Filling correlation histos
+ for(Int_t k=0; k<kNChannels; k++){
+ hPedCorrhg[k]->Fill(RawADCoothg[k], RawADChg[k]);
+ hPedCorrlg[k]->Fill(RawADCootlg[k], RawADClg[k]);
+ }
+ //printf(" ev. %d -> Filling correlation histo %d\n",nevents_physics, kNChannels);
+ }
nevents_physics++;
//
delete reader;