cellX = stream.GetCellX();
cellZ = stream.GetCellZ();
caloFlag = stream.GetCaloFlag(); // 0=LG, 1=HG, 2=TRU
-
+
+ if(caloFlag!=0 && caloFlag!=1) continue; //TRU data!
+
// In case of oscillating signals with ZS,
//a channel can have several bunches.
if (nBunches > 1) continue;
sigStart = stream.GetStartTimeBin();
sigLength = stream.GetBunchLength();
- fitter.SetSamples(stream.GetSignals(),sigStart,sigLength);
+ fitter.SetChannelGeo(stream.GetModule(),cellX,cellZ,caloFlag);
+ fitter.Eval(stream.GetSignals(),sigStart,sigLength);
} // End of NextBunch()
- fitter.SetNBunches(nBunches);
- fitter.SetChannelGeo(stream.GetModule(),cellX,cellZ,caloFlag);
- fitter.Eval();
-
if (nBunches>1) continue;
e[cellX][cellZ][caloFlag] = fitter.GetEnergy();
t[cellX][cellZ][caloFlag] = fitter.GetTime();
}
-
+
+ if(stream.GetModule()<0 || stream.GetModule()>4) continue;
+
if(dAs[stream.GetModule()])
dAs[stream.GetModule()]->FillHistograms(e,t);
- else
+ else {
dAs[stream.GetModule()] = new AliPHOSRcuDA1(stream.GetModule(),-1);
+ dAs[stream.GetModule()]->FillHistograms(e,t);
+ }
for(Int_t iX=0; iX<64; iX++) {
for(Int_t iZ=0; iZ<56; iZ++) {