ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
TypeMap Class Reference

#include <TypeMap.h>

Collaboration diagram for TypeMap:

Public Types

typedef std::pair< HLT::class_id_type, std::string > clid_string_t
 

Public Member Functions

 TypeMap ()
 
bool isKnown (const xAOD::Type::ObjectType &recoType) const
 
clid_string_t get (const xAOD::Type::ObjectType &recoType) const
 

Private Attributes

std::map< xAOD::Type::ObjectType, clid_string_tm_typemap
 

Detailed Description

Definition at line 14 of file TypeMap.h.

Member Typedef Documentation

◆ clid_string_t

typedef std::pair<HLT::class_id_type,std::string> TypeMap::clid_string_t

Definition at line 16 of file TypeMap.h.

Constructor & Destructor Documentation

◆ TypeMap()

TypeMap::TypeMap ( )

Definition at line 7 of file TypeMap.cxx.

7  {
8  m_typemap[xAOD::Type::Muon] = std::make_pair(1178459224, "xAOD::MuonContainer" );
9  m_typemap[xAOD::Type::Electron] = std::make_pair(1087532415, "xAOD::ElectronContainer");
10  m_typemap[xAOD::Type::CaloCluster] = std::make_pair(1219821989, "xAOD::CaloClusterContainer");
11  m_typemap[xAOD::Type::Photon] = std::make_pair(1105575213, "xAOD::PhotonContainer");
12  m_typemap[xAOD::Type::Tau] = std::make_pair(1177172564, "xAOD::TauJetContainer");
13  m_typemap[xAOD::Type::Jet] = std::make_pair(1244316195, "xAOD::JetContainer");
14 }

Member Function Documentation

◆ get()

TypeMap::clid_string_t TypeMap::get ( const xAOD::Type::ObjectType recoType) const

Definition at line 21 of file TypeMap.cxx.

21  {
22  auto it = m_typemap.find(recoType);
23  if(it!=m_typemap.end()){
24  return it->second;
25  }
26  return std::make_pair(0,"");
27 }

◆ isKnown()

bool TypeMap::isKnown ( const xAOD::Type::ObjectType recoType) const

Definition at line 16 of file TypeMap.cxx.

16  {
17  auto it = m_typemap.find(recoType);
18  return (it!=m_typemap.end());
19 }

Member Data Documentation

◆ m_typemap

std::map<xAOD::Type::ObjectType,clid_string_t> TypeMap::m_typemap
private

Definition at line 21 of file TypeMap.h.


The documentation for this class was generated from the following files:
xAOD::Electron
Electron_v1 Electron
Definition of the current "egamma version".
Definition: Event/xAOD/xAODEgamma/xAODEgamma/Electron.h:17
skel.it
it
Definition: skel.GENtoEVGEN.py:423
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
TypeMap::m_typemap
std::map< xAOD::Type::ObjectType, clid_string_t > m_typemap
Definition: TypeMap.h:21
xAOD::Photon
Photon_v1 Photon
Definition of the current "egamma version".
Definition: Event/xAOD/xAODEgamma/xAODEgamma/Photon.h:17
Muon
struct TBPatternUnitContext Muon
xAODType::Tau
@ Tau
The object is a tau (jet)
Definition: ObjectType.h:49
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition: Event/xAOD/xAODJet/xAODJet/Jet.h:17