Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18315 from mverzett/DeepCSVPhaseI-fromCMSSW-91X
Phase I Deep CSV Training
- Loading branch information
Showing
12 changed files
with
99 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
#! /bin/env bash | ||
|
||
sed -i 's|Jet_eta|jetEta|g' $1 | ||
sed -i 's|Jet_pt|jetPt|g' $1 | ||
#sed -i 's|jet_eta|jetEta|g' $1 | ||
sed -i 's|jet_eta|jetAbsEta|g' $1 | ||
sed -i 's|jet_pt|jetPt|g' $1 | ||
sed -i 's|TagVarCSV_||g' $1 | ||
sed -i 's|TagVarCSVTrk_||g' $1 | ||
sed -i 's|prob_|prob|g' $1 | ||
|
||
#bugfixes | ||
sed -i 's|jetNTracks|jetNSelectedTracks|g' $1 | ||
sed -i 's|jetNSelectedTracksEtaRel|jetNTracksEtaRel|g' $1 | ||
|
||
python <<EOF | ||
import json | ||
with open('$1') as infile: | ||
jmap = json.loads(infile.read()) | ||
for var in jmap['inputs']: | ||
var['offset'] *= -1 | ||
var['scale'] = 1./var['scale'] | ||
with open('$1', 'w') as out: | ||
out.write(json.dumps(jmap, indent=2, separators = (',', ': '))) | ||
EOF | ||
sed -i 's|trackJetDistVal|trackJetDist|g' $1 |