|
ATLAS Offline Software
|
Go to the documentation of this file.
13 using namespace testBTagEfficiency;
17 const char* TEST_NAME =
argv[0];
20 ANA_MSG_ERROR (
"Usage: " << TEST_NAME <<
"[CDI path] [b-tagger name] [WP name]" );
24 std::string CDIPath =
argv[1];
25 std::string taggerName =
argv[2];
26 std::string workingPointName =
argv[3];
27 std::string JetCollectionName =
"AntiKt4EMPFlowJets";
29 unsigned int sample_dsid = 410470;
32 StatusCode code1 =
tool.setProperty(
"ScaleFactorFileName", CDIPath);
34 StatusCode code3 =
tool.setProperty(
"OperatingPoint", workingPointName);
35 StatusCode code4 =
tool.setProperty(
"JetAuthor", JetCollectionName);
39 std::vector<StatusCode>
codes = {code1, code2, code3, code4, code5, code6, code7};
41 if (
code != StatusCode::SUCCESS) {
48 tool->setMapIndex(sample_dsid);
50 ANA_MSG_INFO(
"-----------------------------------------------------");
51 const std::map<CP::SystematicVariation, std::vector<std::string> > allowed_variations =
tool->listSystematics();
52 ANA_MSG_INFO(
"Allowed systematics variations for tool " <<
tool->name() <<
":");
53 for (
auto var : allowed_variations) {
55 for (
auto flv :
var.second)
58 ANA_MSG_DEBUG(
"-----------------------------------------------------");
65 jet->makePrivateStore();
69 jet->setAttribute(
"HadronConeExclTruthLabelID", 5);
73 ANA_MSG_DEBUG(
"Testing function calls without systematics...");
76 if(
result!=CorrectionCode::Ok) {
85 if(
result!=CorrectionCode::Ok) {
96 iter!=systs.
end(); ++iter) {
101 if( sresult !=StatusCode::SUCCESS) {
105 if(
result!=CorrectionCode::Ok) {
const CalibResult dummyResult(dummyValue, dummyValue)
std::set< SystematicVariation >::const_iterator const_iterator
Class to wrap a set of SystematicVariations.
dictionary codes
helper to get a human-readable string
::StatusCode StatusCode
StatusCode definition for legacy code.
const_iterator end() const
description: const iterator to the end of the set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
const_iterator begin() const
description: const iterator to the beginning of the set
Return value from object correction CP tools.
Jet_v1 Jet
Definition of the current "jet version".