Skip to content

Commit

Permalink
code-format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pallabidas committed Feb 14, 2024
1 parent 27cd7bb commit 3908b8e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions L1Trigger/L1CaloTrigger/interface/Phase2L1CaloEGammaUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ namespace p2eg {
static constexpr float c0_ss = 0.94, c1_ss = 0.052, c2_ss = 0.044; // passes_ss
static constexpr float d0 = 0.96, d1 = 0.0003; // passes_photon
static constexpr float e0_looseTkss = 0.944, e1_looseTkss = 0.65, e2_looseTkss = 0.4; // passes_looseTkss
static constexpr float loose_ss_offset = 0.89; // loosen ss requirement in two eta bins
static constexpr float loose_ss_offset = 0.89; // loosen ss requirement in two eta bins
static constexpr float eta0_loose_ss = 0.4, eta1_loose_ss = 0.5, eta2_loose_ss = 0.75, eta3_loose_ss = 0.85;
static constexpr float high_pt_threshold = 130.; // apply iso and ss requirements below this threshold
static constexpr float high_pt_threshold = 130.; // apply iso and ss requirements below this threshold
static constexpr float cut_500_MeV = 0.5;

static constexpr float ECAL_LSB = 0.5; // to convert from int to float (GeV) multiply by LSB
Expand Down Expand Up @@ -928,7 +928,8 @@ namespace p2eg {
bool is_ss;
if (pt > high_pt_threshold)
is_ss = true;
else if ((abs(eta) > eta0_loose_ss && abs(eta) < eta1_loose_ss) || (abs(eta) > eta2_loose_ss && abs(eta) < eta3_loose_ss)) // temporary adjustment
else if ((abs(eta) > eta0_loose_ss && abs(eta) < eta1_loose_ss) ||
(abs(eta) > eta2_loose_ss && abs(eta) < eta3_loose_ss)) // temporary adjustment
is_ss = ((loose_ss_offset + c1_ss * std::exp(-c2_ss * pt)) <= ss);
else
is_ss = ((c0_ss + c1_ss * std::exp(-c2_ss * pt)) <= ss);
Expand All @@ -939,7 +940,8 @@ namespace p2eg {
bool is_ss;
if (pt > high_pt_threshold)
is_ss = true;
else if ((abs(eta) > eta0_loose_ss && abs(eta) < eta1_loose_ss) || (abs(eta) > eta2_loose_ss && abs(eta) < eta3_loose_ss)) // temporary adjustment
else if ((abs(eta) > eta0_loose_ss && abs(eta) < eta1_loose_ss) ||
(abs(eta) > eta2_loose_ss && abs(eta) < eta3_loose_ss)) // temporary adjustment
is_ss = ((loose_ss_offset - e1_looseTkss * std::exp(-e2_looseTkss * pt)) <= ss);
else
is_ss = ((e0_looseTkss - e1_looseTkss * std::exp(-e2_looseTkss * pt)) <= ss);
Expand Down

0 comments on commit 3908b8e

Please sign in to comment.