ATLAS Offline Software
Loading...
Searching...
No Matches
StoreID Class Reference

defines an enum used by address providers to decide what kind of StoreGateSvc they are providing addresses for. More...

#include <StoreID.h>

Collaboration diagram for StoreID:

Public Types

enum  type {
  EVENT_STORE = 0 , DETECTOR_STORE , CONDITION_STORE , METADATA_STORE ,
  INPUT_METADATA_STORE , PILEUP_STORE , UNKNOWN
}

Static Public Member Functions

static StoreID::type findStoreID (const std::string &storeName)
static const std::string & storeName (const StoreID::type &s)

Detailed Description

defines an enum used by address providers to decide what kind of StoreGateSvc they are providing addresses for.

A hack, really...

Definition at line 17 of file StoreID.h.

Member Enumeration Documentation

◆ type

Enumerator
EVENT_STORE 
DETECTOR_STORE 
CONDITION_STORE 
METADATA_STORE 
INPUT_METADATA_STORE 
PILEUP_STORE 
UNKNOWN 

Definition at line 24 of file StoreID.h.

24 {
25
26 EVENT_STORE = 0,
33 } type;
@ EVENT_STORE
Definition StoreID.h:26
@ CONDITION_STORE
Definition StoreID.h:28
@ INPUT_METADATA_STORE
Definition StoreID.h:30
@ UNKNOWN
Definition StoreID.h:32
@ METADATA_STORE
Definition StoreID.h:29
@ DETECTOR_STORE
Definition StoreID.h:27
@ PILEUP_STORE
Definition StoreID.h:31

Member Function Documentation

◆ findStoreID()

StoreID::type StoreID::findStoreID ( const std::string & storeName)
static

Definition at line 21 of file StoreID.cxx.

21 {
22 // Account for AthenaMT stores that start with {digits}_
23 size_t ist (0);
24 if (::isdigit(storeNamePrefix.at(0))) {
25 ist = storeNamePrefix.find('_',0) +1;
26 }
27 //slightly faster
28
29 auto c(storeNamePrefix.at(ist));
30 switch(c){
31 case 'C':
32 {
34 break;
35 }
36 case 'D':
37 {
39 break;
40 }
41 case 'E':
42 {
44 break;
45 }
46 case 'I':
47 {
49 break;
50 }
51 case 'M':
52 {
54 break;
55 }
56 case 'P':
57 {
59 break;
60 }
61 case 'S':
62 {
64 break;
65 }
66 default:
67 {
68 return StoreID::UNKNOWN;
69 break;
70 }
71 }
72
73 return StoreID::UNKNOWN;
74}

◆ storeName()

const std::string & StoreID::storeName ( const StoreID::type & s)
static

Definition at line 77 of file StoreID.cxx.

77 {
78 return STORENAMES[ (unsigned int)id ];
79}
static const std::vector< std::string > STORENAMES
Definition StoreID.cxx:9

The documentation for this class was generated from the following files: