4 #include "Cintex/Cintex.h"
28 parser.
addOption (
"rootFile", CommandLineParser::kString,
30 parser.
addOption (
"payload", CommandLineParser::kString,
31 "for example MISTAGSSVHEM, MCPfTCHEMb",
"MISTAGSSVHEM");
32 parser.
addOption (
"flavor", CommandLineParser::kString,
33 "for example b, c, or l",
"b");
34 parser.
addOption (
"type", CommandLineParser::kString,
35 "for example eff or SF",
"eff");
36 parser.
addOption (
"pt", CommandLineParser::kDouble,
38 parser.
addOption (
"eta", CommandLineParser::kDouble,
55 TFile
f(inputFile.c_str(),
"READ");
59 if ( ! es.exists(
"BTagPerformanceRecord") ) {
60 cout <<
"Can't find tree" << endl;
71 es.get(testRecID).get(plHandle, payload.c_str() );
73 es.get(testRecID).get(wpHandle, payload.c_str() );
96 }
else if ( type ==
"SF") {
104 std::cout <<
"invalid handle: workingPoint " <<wpHandle.
isValid()<<
" payload "<<plHandle.
isValid()<< std::endl;
std::string & stringValue(std::string key)
void parseArguments(int argc, char **argv, bool allowArgs=false)
double & doubleValue(std::string key)
int main(int argc, char **argv)
bool insert(BinningVariables::BinningVariablesType, float)
void addOption(std::string key, OptionType type, const std::string &description="")
static void enable()
enable automatic library loading