-
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 #31220 from bainbrid/LowPtElectrons_userFloats
Add low-pT electrons to MINIAOD, update ID, improve end user experience
- Loading branch information
Showing
26 changed files
with
805 additions
and
408 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
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 <filesystem> | ||
#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 (!std::filesystem::exists(inputFileName)) { | ||
std::cout << "Input file " << inputFileName << " does not exists." << std::endl; | ||
return 1; | ||
} | ||
|
||
if (std::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
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.