ok, did not see that one. Thanks ! :)


On Wed, Apr 30, 2014 at 9:59 PM, Giulio Eulisse <notifications@github.com>wrote:

>  In DataFormats/ParticleFlowReco/src/PFCluster.cc:
>
> > @@ -71,20 +71,7 @@ double PFCluster::getDepthCorrection(double energy, bool isBelowPS,
> >      corrA = depthCorAp_;
> >      corrB = depthCorBp_;
> >    }
> > -  double depth = 0;
> > -  switch(isHadron) {
> > -  case 0: // e/gamma
> > -    depth = corrA*(corrB + log(energy));
> > -    break;
> > -  case 1: // hadrons
> > -    depth = corrA;
> > -    break;
> > -  default:
> > -    assert(0);
> > -    //     edm::LogError("PFCluster") << "unknown function for depth correction!"
> > -    //                         << std::endl;
> > -  }
> > -  return depth;
> > +  return isHadron ? corrA : corrA*(corrB + log(energy));
>
> isHadron is a bool, though, which casts to either 0 or 1.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cms-sw/cmssw/pull/3592/files#r12162598>
> .
>



-- 
Thanks,
       cheers, andreas