ATLAS Offline Software
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 
7 
8 #include <stdexcept>
9 
10 namespace FlavorTagDiscriminants{
11 
12 #define RETURN_CONFIG(cfg) \
13  if (name == std::string(#cfg)) return TrackLinkType::cfg
14 
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:221
RETURN_CONFIG
#define RETURN_CONFIG(cfg)
Definition: AssociationEnums.cxx:12
AssociationEnums.h
FlavorTagDiscriminants::TrackLinkType::TRACK_PARTICLE
@ TRACK_PARTICLE