forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
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 cms-sw#16 from kdlong/WmassNanoProd_10_6_26
Wmass nano prod 10 6 26
- Loading branch information
Showing
197 changed files
with
9,975 additions
and
3,395 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<use name="CondFormats/EgammaObjects"/> | ||
<use name="FWCore/ParameterSet"/> | ||
<use name="FWCore/Utilities"/> | ||
<use name="CondFormats/DataRecord"/> | ||
<use name="roottmva"/> | ||
<use name="tinyxml2"/> | ||
|
||
<use name="CommonTools/Utils"/> | ||
<use name="CondFormats/EgammaObjects"/> | ||
<use name="FWCore/ParameterSet"/> | ||
<use name="FWCore/Utilities"/> | ||
<use name="CondFormats/DataRecord"/> | ||
<use name="roottmva"/> | ||
<use name="tinyxml2"/> | ||
<export> | ||
<lib name="1"/> | ||
</export> |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<use name="CommonTools/MVAUtils"/> | ||
|
||
<bin name="convertXMLToGBRForestROOT" file="convertXMLToGBRForestROOT.cc"> | ||
</bin> |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include "CommonTools/MVAUtils/interface/GBRForestTools.h" | ||
|
||
#include "TFile.h" | ||
|
||
#include <boost/filesystem.hpp> | ||
#include <iostream> | ||
|
||
int main(int argc, char **argv) { | ||
if (argc != 3) { | ||
std::cout << "Please pass a (gzipped) BDT weight file and a name for the output ROOT file." << std::endl; | ||
return 1; | ||
} | ||
|
||
char *inputFileName = argv[1]; | ||
char *outputFileName = argv[2]; | ||
|
||
if (!boost::filesystem::exists(inputFileName)) { | ||
std::cout << "Input file " << inputFileName << " does not exists." << std::endl; | ||
return 1; | ||
} | ||
|
||
if (boost::filesystem::exists(outputFileName)) { | ||
std::cout << "Output file " << outputFileName << " already exists." << std::endl; | ||
return 1; | ||
} | ||
|
||
auto gbrForest = createGBRForest(inputFileName); | ||
std::cout << "Read GBRForest " << inputFileName << " successfully." << std::endl; | ||
|
||
TFile{outputFileName, "RECREATE"}.WriteObject(gbrForest.get(), "gbrForest"); | ||
std::cout << "GBRForest written to " << outputFileName << " successfully." << std::endl; | ||
|
||
return 0; | ||
} |
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
3 changes: 3 additions & 0 deletions
3
Configuration/Eras/python/Modifier_run2_nanoAOD_106Xv2_cff.py
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
run2_nanoAOD_106Xv2 = cms.Modifier() |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
run2_nanoAOD_devel = cms.Modifier() |
58 changes: 0 additions & 58 deletions
58
Configuration/Generator/python/Herwig7Settings/Herwig7CommonMergingSettings_cfi.py
This file was deleted.
Oops, something went wrong.
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
2 changes: 2 additions & 0 deletions
2
Configuration/Generator/python/Herwig7Settings/Herwig7LHEMG5aMCatNLOSettings_cfi.py
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
6 changes: 3 additions & 3 deletions
6
Configuration/Generator/python/Herwig7Settings/Herwig7LHEPowhegSettings_cfi.py
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,13 +1,13 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
# Settings from $HERWIGPATH/LHE-POWHEG.in, should be used together with the Herwig7LHECommonSettings | ||
|
||
herwig7LHEPowhegSettingsBlock = cms.PSet( | ||
hw_lhe_Powheg_settings = cms.vstring( | ||
hw_lhe_powheg_settings = cms.vstring( | ||
'set /Herwig/Shower/ShowerHandler:MaxPtIsMuF Yes', | ||
'set /Herwig/Shower/ShowerHandler:RestrictPhasespace Yes', | ||
'set /Herwig/Shower/PartnerFinder:PartnerMethod Random', | ||
'set /Herwig/Shower/PartnerFinder:ScaleChoice Partner', | ||
'set /Herwig/Shower/GtoQQbarSplitFn:AngularOrdered Yes', | ||
'set /Herwig/Shower/GammatoQQbarSplitFn:AngularOrdered Yes', | ||
'set /Herwig/Particles/t:NominalMass 172.5' | ||
) | ||
) |
Oops, something went wrong.