Go to the source code of this file.
◆ CHECK_CPSys
#define CHECK_CPSys |
( |
|
Arg | ) |
|
Value: if (Arg.isFailure()){ \
Warning(#Arg,"Unsupported systematic (in line %i) ",__LINE__); \
}
Definition at line 39 of file MuonTriggerSFRootCoreTest.cxx.
◆ getThreshold()
Definition at line 48 of file MuonTriggerSFRootCoreTest.cxx.
49 std::size_t
index = trigger.find(
"HLT_mu");
50 if (
index != std::string::npos) {
51 std::string rawNumber = trigger.substr(
index + 6);
52 if (!rawNumber.empty() && isdigit(rawNumber[0])) {
53 std::stringstream(rawNumber) >>
threshold;
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 317 of file MuonTriggerSFRootCoreTest.cxx.
322 const char* xAODFileName =
"";
323 std::string customInputFolder =
"";
324 std::string customFileName =
"";
325 const char* nrOfEntries =
"";
326 std::string trigger =
"";
329 for (
int i = 1;
i <
argc - 1;
i++) {
330 std::string
arg = std::string(
argv[
i]);
332 xAODFileName =
argv[
i + 1];
334 else if (
arg ==
"-d")
335 customInputFolder =
argv[
i + 1];
336 else if (
arg ==
"-f")
337 customFileName =
argv[
i + 1];
338 else if (
arg ==
"-e")
339 nrOfEntries =
argv[
i + 1];
340 else if (
arg ==
"-t")
341 trigger =
argv[
i + 1];
342 else if (
arg ==
"-y")
344 else if (
arg ==
"-p")
349 if (xAODFileName[0] ==
'\0') {
358 Error(
APP_NAME,
" Usage: %s -x [xAOD file name] -y [year] -p [period] -t [trigger] -d [custom input folder] -f [custom file name] -e [number of events to process]",
APP_NAME);
365 std::unique_ptr<TFile>
ifile(TFile::Open(xAODFileName,
"READ"));
376 int nrOfEntriesToRunOver = 1000;
377 if (!std::string(nrOfEntries).
empty()) {
378 int e = atoll(nrOfEntries);
379 if (
e < nrOfEntriesToRunOver) {
380 nrOfEntriesToRunOver =
e;
386 sfChecker.initialiseTools(customFileName, customInputFolder,
year,
period);
389 event.getEntry(
entry);
394 Info(
APP_NAME,
"%i events successfully processed, %i warnings, %i errors detected.", nrOfEntriesToRunOver, sfChecker.m_warningsCount, sfChecker.m_errorsCount);