ATLAS Offline Software
Loading...
Searching...
No Matches
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}
std::map< xAOD::Type::ObjectType, clid_string_t > m_typemap
Definition TypeMap.h:21
@ Jet
The object is a jet.
Definition ObjectType.h:40
@ Photon
The object is a photon.
Definition ObjectType.h:47
@ CaloCluster
The object is a calorimeter cluster.
Definition ObjectType.h:39
@ Muon
The object is a muon.
Definition ObjectType.h:48
@ Electron
The object is an electron.
Definition ObjectType.h:46
@ Tau
The object is a tau (jet)
Definition ObjectType.h:49

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: