while(s.Next()){
Int_t iDDL=rawReader->GetDDLID();
Int_t iCarlos=s.GetCarlosId();
- if(iDDL>=0 && iDDL<kTotDDL && s.IsCompletedModule()==kFALSE){
+ if(s.IsCompletedModule()) continue;
+ if(s.IsCompletedDDL()) continue;
+ if(iDDL>=0 && iDDL<kTotDDL){
Int_t index=kSides*(kModPerDDL*iDDL+iCarlos)+s.GetChannel();
histo[index]->Fill(s.GetCoord2(),s.GetCoord1(),s.GetSignal());
}