#include <string>
#include <iostream>
#include <TError.h>
#include <TString.h>
#include <TSystem.h>
#include "SUSYTools/SUSYObjDef_xAOD.h"
#include "PATInterfaces/SystematicVariation.h"
#include "PATInterfaces/SystematicRegistry.h"
#include "AsgMessaging/StatusCode.h"
#include "PATInterfaces/CorrectionCode.h"
Go to the source code of this file.
|
std::string | getFW (std::string in, unsigned int width=30) |
|
int | main (int argc, char *argv[]) |
|
◆ getFW()
std::string getFW |
( |
std::string |
in, |
|
|
unsigned int |
width = 30 |
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 37 of file check_syst.cxx.
39 using namespace asg::msgUserCode;
42 StatusCode::enableFailure();
43 StatusCode::enableFailure();
49 std::string config_file =
getenv(
"ROOTCOREBIN");
50 config_file +=
"/data/SUSYTools/SUSYTools_Default.conf";
54 config_file =
argv[1];
63 if(!config_file.empty())
64 ANA_CHECK( objTool.setProperty(
"ConfigFile", config_file) );
66 std::vector<std::string> prw_conf;
67 prw_conf.push_back(
"dev/PileupReweighting/mc15ab_defaults.NotRecommended.prw.root");
68 prw_conf.push_back(
"dev/PileupReweighting/mc15c_v2_defaults.NotRecommended.prw.root");
70 ANA_CHECK( objTool.setProperty(
"PRWConfigFiles", prw_conf) );
71 std::vector<std::string> prw_lumicalc;
72 prw_lumicalc.push_back(
"dev/SUSYTools/ilumicalc_histograms_None_276262-284154_IBLOFF.root");
73 prw_lumicalc.push_back(
"dev/SUSYTools/ilumicalc_histograms_None_297730-299243.root");
74 ANA_CHECK( objTool.setProperty(
"PRWLumiCalcFiles", prw_lumicalc) );
79 if ( objTool.initialize() != StatusCode::SUCCESS) {
88 std::vector<ST::SystInfo> systInfoList;
89 systInfoList = objTool.getSystInfoList();
92 Info(
APP_NAME,
"---- SYSTEMATICS LIST -----------------------------------------------------------------------------------------\n");
94 for (
const auto& sysInfo : systInfoList) {
96 if(
sys.name()==
"")
continue;
99 getFW(ST::testAffectsObject(sysInfo.affectsType),12).c_str(),
100 sysInfo.affectsKinematics ?
"Kin." :
"Weight");
104 Info(
APP_NAME,
"---------------------------------------------------------------------------------------------------------------\n");