ATLAS Offline Software
PhysicsAnalysis
JetTagging
FlavorTagDiscriminants
Root
AssociationEnums.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
FlavorTagDiscriminants/AssociationEnums.h
"
7
8
#include <stdexcept>
9
10
namespace
FlavorTagDiscriminants
{
11
12
#define RETURN_CONFIG(cfg) \
13
if (name == std::string(#cfg)) return TrackLinkType::cfg
14
15
TrackLinkType
trackLinkTypeFromString
(
const
std::string&
name
) {
16
RETURN_CONFIG
(
TRACK_PARTICLE
);
17
RETURN_CONFIG
(IPARTICLE);
18
throw
std::logic_error(
"DL2 association scheme '"
+
name
+
"' unknown"
);
19
}
20
21
#undef RETURN_CONFIG
22
23
}
FlavorTagDiscriminants
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition:
AssociationEnums.h:11
FlavorTagDiscriminants::trackLinkTypeFromString
TrackLinkType trackLinkTypeFromString(const std::string &)
Definition:
AssociationEnums.cxx:15
FlavorTagDiscriminants::TrackLinkType
TrackLinkType
Definition:
AssociationEnums.h:12
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
RETURN_CONFIG
#define RETURN_CONFIG(cfg)
Definition:
AssociationEnums.cxx:12
AssociationEnums.h
FlavorTagDiscriminants::TrackLinkType::TRACK_PARTICLE
@ TRACK_PARTICLE
Generated on Sun Dec 22 2024 21:07:08 for ATLAS Offline Software by
1.8.18