Commit 6d531ca2 authored by Ahmed Hasib's avatar Ahmed Hasib
Browse files

retrun type cast

parent 7025132c
......@@ -19,16 +19,11 @@ FCSReturnCode TFCSHitCellMappingFCal::simulate_hit(Hit& hit,TFCSSimulationState&
/// protection against cases where hits cannot be matched to a FCal cell
if((hit.x() == 0 && hit.y() == 0) || cellele == 0) {
FCSRetry == FCSRetry+5;
return FCSRetry; // retry simulation up to 5 times
ATH_MSG_WARNING("TFCSLateralShapeParametrizationHitCellMapping::simulate_hit: cellele="<<cellele<<" E="<<hit.E()<<" cs="<<cs<<" eta="<<hit.eta()<<" phi="<<hit.phi());
return (FCSReturnCode)(FCSRetry+5); // retry simulation up to 5 times
}
if(cellele) {
simulstate.deposit(cellele,hit.E());
} else {
ATH_MSG_ERROR("TFCSLateralShapeParametrizationHitCellMapping::simulate_hit: cellele="<<cellele<<" E="<<hit.E()<<" cs="<<cs<<" eta="<<hit.eta()<<" phi="<<hit.phi());
return FCSFatal;
}
simulstate.deposit(cellele,hit.E());
return FCSSuccess;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment