-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 #32372 from bainbrid/LowPtElectrons_userFloats_106X
Add low-pT electrons to MINIAOD, update ID, improve end user experience (back port of 31220)
- Loading branch information
Showing
30 changed files
with
1,262 additions
and
394 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
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
Oops, something went wrong.