clu->SetEmcCpvDistance(r);
clu->SetChi2(TestLambda(clu->E(),clu->GetM20(),clu->GetM02())); //not yet implemented
- clu->SetTOF(EvalTOF(&cluPHOS,cells));
+ Double_t tof=EvalTOF(&cluPHOS,cells);
+ if(TMath::Abs(tof-clu->GetTOF())>100.e-9) //something wrong in cell TOF!
+ tof=clu->GetTOF() ;
+ clu->SetTOF(tof);
Double_t minDist=clu->GetDistanceToBadChannel() ;//Already calculated
DistanceToBadChannel(mod,&locPos,minDist);
clu->SetDistanceToBadChannel(minDist) ;
clu->SetEmcCpvDistance(r); //Distance in sigmas
clu->SetChi2(TestLambda(clu->E(),clu->GetM20(),clu->GetM02())); //not yet implemented
- clu->SetTOF(EvalTOF(&cluPHOS,cells));
+ Double_t tof=EvalTOF(&cluPHOS,cells);
+ if(TMath::Abs(tof-clu->GetTOF())>100.e-9) //something wrong in cell TOF!
+ tof=clu->GetTOF() ;
+ clu->SetTOF(tof);
Double_t minDist=clu->GetDistanceToBadChannel() ;//Already calculated
DistanceToBadChannel(mod,&locPos,minDist);
clu->SetDistanceToBadChannel(minDist) ;
eMax=elist[iDigit] ;
}
}
-
//Try to improve accuracy
//Do not account time of soft cells: