Skip to content

Commit

Permalink
Merge pull request #1 from musella/hh_tag_80X_20180717_workspaces
Browse files Browse the repository at this point in the history
cleanup double-H setup and turn on HH categorization
  • Loading branch information
Nadezda Chernyavskaya authored Sep 27, 2018
2 parents 4c164d9 + 9fe276a commit 18c8a02
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 119 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ AutoDict_*
*.txt
*.log
*.png
*.pdf
*.pdf

# This is a symlink created by setup.sh
DataFormats/src/classes_def.xml
38 changes: 0 additions & 38 deletions MyAnalysis/test/MyAnalysis.py

This file was deleted.

4 changes: 2 additions & 2 deletions Systematics/test/workspaceStd.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
'doPdfWeights'
)
customize.options.register('dumpTrees',
True,
False,
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.bool,
'dumpTrees'
Expand Down Expand Up @@ -571,7 +571,7 @@
producer = cms.EDProducer('flashggbRegressionProducer80',
JetTag=coll,
rhoFixedGridCollection = cms.InputTag('fixedGridRhoFastjetAll'),
bRegressionWeightfile= cms.untracked.string(os.environ["CMSSW_BASE"]+"/src/flashgg/MetaData/data/DNN_models/model-18"),
bRegressionWeightfile= cms.untracked.string(os.environ["CMSSW_BASE"]+"/src/flashgg/Taggers/data/DNN_models/model-18"),
y_mean = cms.untracked.double(1.0454729795455933),#check MetaData/data/DNN_models/config.json
y_std = cms.untracked.double( 0.31628304719924927)
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions Taggers/python/flashggDoubleHTag_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@
MJJBoundariesUpper = cms.vdouble(146.,153.,150.,155.,150.,147.,154.,151.,155.,155.,155.,148.), #for each category following the convention cat0=MX0 MVA0, cat1=MX1 MVA0, cat2=MX2 MVA0....
MVAConfig = cms.PSet(variables=cms.VPSet(), # variables are added below
classifier=cms.string("BDT::bdt"), # classifier name
weights=cms.FileInPath("flashgg/MetaData/data/HHTagger/training_with_27_06_2018_fixed.weights.xml"), # path to TMVA weights
weights=cms.FileInPath("flashgg/Taggers/data/HHTagger/training_with_27_06_2018_fixed.weights.xml"), # path to TMVA weights
regression=cms.bool(False), # this is not a regression
multiclass=cms.bool(True), # this is multiclass
multiclassSignalIdx=cms.int32(2), # this is multiclass index for Signal
),
doMVAFlattening=cms.bool(True),#do transformation of cumulative to make it flat
doCategorization=cms.bool(False),#do categorization based on MVA x MX or only fill first tree with all events
MVAFlatteningFileName=cms.untracked.FileInPath("flashgg/MetaData/data/HHTagger/cumulativeTransformation_20180628_newcode_data.root")#FIXME, this should be optional, is it?
doCategorization=cms.bool(True),#do categorization based on MVA x MX or only fill first tree with all events
MVAFlatteningFileName=cms.untracked.FileInPath("flashgg/Taggers/data/HHTagger/cumulativeTransformation_20180628_newcode_data.root")#FIXME, this should be optional, is it?
##
)

cfgTools.addVariables(flashggDoubleHTag.MVAConfig.variables,
Expand Down
2 changes: 1 addition & 1 deletion Taggers/python/flashggbRegressionProducer80_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
flashggbRegressionProducer80= cms.EDProducer('flashggbRegressionProducer80',
# JetTag=coll,
JetTag=cms.InputTag("flashggUnpackedJets","0"),
bRegressionWeightfile= cms.untracked.string("flashgg/MetaData/data/DNN_models/model-18"),
bRegressionWeightfile= cms.untracked.string("flashgg/Taggers/data/DNN_models/model-18"),
y_mean = cms.untracked.double(1.0454729795455933),
y_std =cms.untracked.double( 0.31628304719924927)
)
Expand Down
4 changes: 4 additions & 0 deletions setup_8_0_X.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ cp $CMSSW_BASE/src/flashgg/Systematics/data/Winter_2016_reReco_v1_ele_smearings.
cp $CMSSW_BASE/src/flashgg/Systematics/data/Moriond17_74x_pho_scales.dat $CMSSW_BASE/src/EgammaAnalysis/ElectronTools/data
cp $CMSSW_BASE/src/flashgg/Systematics/data/Moriond17_74x_pho_smearings.dat $CMSSW_BASE/src/EgammaAnalysis/ElectronTools/data

echo "downloading tensoflow interface"
git clone -b tf_py_cpython https://gitlab.cern.ch/mrieger/CMSSW-DNN.git DNN
./DNN/setup_legacy.sh

echo "adding hook for indentation"
ln -s $CMSSW_BASE/src/flashgg/Validation/scripts/flashgg_indent_check.sh $CMSSW_BASE/src/flashgg/.git/hooks/pre-commit

Expand Down
74 changes: 0 additions & 74 deletions testHHbbgg/HHbbgg_MC_2016_80X.json

This file was deleted.

0 comments on commit 18c8a02

Please sign in to comment.