-
Notifications
You must be signed in to change notification settings - Fork 18
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 #64 from lcorcodilos/dev
Small fixes and the DeepAK8 top tagging module
- Loading branch information
Showing
155 changed files
with
5,237 additions
and
899 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#ifndef _TIMBER_DEEPAK8_HELPER | ||
#define _TIMBER_DEEPAK8_HELPER | ||
#include <vector> | ||
#include <map> | ||
#include <string> | ||
#include <fstream> | ||
#include <iostream> | ||
#include <cstdlib> | ||
#include <sstream> | ||
|
||
/** | ||
* @brief C++ class to access scale factors associated with DeepAK8 tagging. | ||
*/ | ||
class DeepAK8_helper { | ||
private: | ||
std::string entry_to_find; | ||
std::vector<std::vector<float> > _values; | ||
std::string _p = std::string(std::getenv("TIMBERPATH"))+"TIMBER/data/OfficialSFs/DeepAK8V2_Top_W_SFs.csv"; | ||
|
||
public: | ||
/** | ||
* @brief Construct a new DeepAK8_helper object | ||
* | ||
* @param particle Either "Top" or "W" | ||
* @param year | ||
* @param workingpoint Ex. "0p5" | ||
* @param massDecorr | ||
*/ | ||
DeepAK8_helper(std::string particle, int year, std::string workingpoint, bool massDecorr); | ||
~DeepAK8_helper(){}; | ||
/** | ||
* @brief Lookup the scale factor and variations based on the AK8 jet momentum. | ||
* Returned values are absolute {nominal, up, down}. | ||
* | ||
* @param pt | ||
* @return std::vector<float> {nominal, up, down} (absolute) | ||
*/ | ||
std::vector<float> eval(float pt); | ||
}; | ||
#endif |
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.