Skip to content

Commit

Permalink
use % (for regression vars)
Browse files Browse the repository at this point in the history
  • Loading branch information
swagata87 committed Aug 21, 2023
1 parent 2321fd5 commit 01e796f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion PhysicsTools/NanoAOD/python/electrons_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,12 @@ def _get_bitmapVIDForEle_docstring(modules,WorkingPoints):
superClusterFbrem = Var("superClusterFbrem",float,doc="superClusterFbrem",precision=10),
convVtxFitProb = Var("convVtxFitProb",float,doc="convVtxFitProb",precision=10),
clustersSize = Var("superCluster.clustersSize",int,doc="clustersSize"),

iEtaMod5 = Var("?superCluster.seedCrysIEtaOrIx>0?(superCluster.seedCrysIEtaOrIx-1)%5:(superCluster.seedCrysIEtaOrIx+1)%5",int,doc="iEtaMod5"),
iEtaMod20 = Var("?abs(superCluster.seedCrysIEtaOrIx)<=25?(superCluster.seedCrysIEtaOrIx-(?superCluster.seedCrysIEtaOrIx>0?+1:-1))%20:(superCluster.seedCrysIEtaOrIx-(?superCluster.seedCrysIEtaOrIx>0?+26:-26))%20",int,doc="iEtaMod20"),
iPhiMod2 = Var("(superCluster.seedCrysIPhiOrIy-1)%2",int,doc="iPhiMod2"),
iPhiMod20 = Var("(superCluster.seedCrysIPhiOrIy-1)%20",int,doc="iPhiMod20"),
)


electronExtraTable.variables = cms.PSet(
_eleVarsBase,
Expand Down
6 changes: 5 additions & 1 deletion PhysicsTools/NanoAOD/python/photons_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,11 @@ def make_bitmapVID_docstring(id_modules_working_points_pset):
ecalPFClusterIso = Var("ecalPFClusterIso",float,doc="ecal PFCluster Isolation",precision=10),
hcalPFClusterIso = Var("hcalPFClusterIso",float,doc="hcal PFCluster Isolation",precision=10),
chargedHadronIso = Var("chargedHadronIso",float,doc="charged hadron Isolation",precision=10),
trkSumPtSolidConeDR04 = Var("trkSumPtSolidConeDR04",float,doc="track isolation solid cone 0.4",precision=10)
trkSumPtSolidConeDR04 = Var("trkSumPtSolidConeDR04",float,doc="track isolation solid cone 0.4",precision=10),
iEtaMod5 = Var("?superCluster.seedCrysIEtaOrIx>0?(superCluster.seedCrysIEtaOrIx-1)%5:(superCluster.seedCrysIEtaOrIx+1)%5",int,doc="iEtaMod5"),
iEtaMod20 = Var("?abs(superCluster.seedCrysIEtaOrIx)<=25?(superCluster.seedCrysIEtaOrIx-(?superCluster.seedCrysIEtaOrIx>0?+1:-1))%20:(superCluster.seedCrysIEtaOrIx-(?superCluster.seedCrysIEtaOrIx>0?+26:-26))%20",int,doc="iEtaMod20"),
iPhiMod2 = Var("(superCluster.seedCrysIPhiOrIy-1)%2",int,doc="iPhiMod2"),
iPhiMod20 = Var("(superCluster.seedCrysIPhiOrIy-1)%20",int,doc="iPhiMod20"),
)

photonExtraTable.variables = cms.PSet(
Expand Down

0 comments on commit 01e796f

Please sign in to comment.