Skip to content

Commit

Permalink
furthe simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Dec 17, 2021
1 parent f2ce852 commit d82ea71
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -450,12 +450,8 @@ void SiPixelLorentzAnglePCLWorker::analyze(edm::Event const& iEvent, edm::EventS
double drdz = sqrt(1. + cotalpha * cotalpha + cotbeta * cotbeta);
double clusterCharge_cut = clustChargeMaxPerLength_ * drdz;

float locBx = 1.;
if (cotbeta < 0.)
locBx = -1.;
float locBz = locBx;
if (cotalpha < 0.)
locBz = -locBx;
float locBx = (cotbeta < 0.) ? -1 : 1.;
float locBz = (cotalpha < 0.) ? -locBx : locBx;

auto detId = detIdObj.rawId();
int DetId_index = -1;
Expand Down

0 comments on commit d82ea71

Please sign in to comment.