|
DAS
3.0
Das Analysis System
|
#include "Core/JEC/bin/common.h"
#include <boost/test/included/unit_test.hpp>
#include <iostream>
◆ BOOST_TEST_MODULE
#define BOOST_TEST_MODULE applyJEScorrections |
◆ DOXYGEN_SHOULD_SKIP_THIS
#define DOXYGEN_SHOULD_SKIP_THIS |
◆ BOOST_AUTO_TEST_CASE() [1/3]
BOOST_AUTO_TEST_CASE |
( |
get_algo |
| ) |
|
27 userinfo.
Set<
int>(
"flags",
"year", 2018);
30 userinfo.
Set<
const char *>(
"flags",
"labels",
"PUPPI");
◆ BOOST_AUTO_TEST_CASE() [2/3]
BOOST_AUTO_TEST_CASE |
( |
get_R |
| ) |
|
38 userinfo.
Set<
int>(
"flags",
"year", 2018);
39 userinfo.
Set<
int>(
"flags",
"R", 7);
◆ BOOST_AUTO_TEST_CASE() [3/3]
BOOST_AUTO_TEST_CASE |
( |
get_short_campaign |
| ) |
|
20 BOOST_REQUIRE_THROW(
GetShortCampaign(
"BOOOM"), boost::wrapexcept<invalid_argument> );
BOOST_TEST(gendijet.Rapidity()==1.3573785791881385)
std::string GetShortCampaign(const std::string &campaign)
Extracts for isntance Summer19UL18 from Summer19UL18_RunA
Definition: common.h:106
int GetR(const Darwin::Tools::UserInfo &metainfo)
Determine the R values for which JetMET provides corrections.
Definition: common.h:164
std::string GetAlgo(const Darwin::Tools::UserInfo &metainfo)
Determine from metainfo if CHS or PUPPI has been used to reconstruct the jets.
Definition: common.h:90