ATLAS Offline Software
Public Types | Static Public Member Functions | List of all members
StoreID Class Reference

defines an enum used by address providers to decide what kind of StoreGateSvc they are providing addresses for. A hack, really... 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,
32  UNKNOWN
33  } type;

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  {
43  return StoreID::EVENT_STORE;
44  break;
45  }
46  case 'I':
47  {
49  break;
50  }
51  case 'M':
52  {
54  break;
55  }
56  case 'P':
57  {
58  return StoreID::PILEUP_STORE;
59  break;
60  }
61  case 'S':
62  {
63  return StoreID::EVENT_STORE;
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 }

The documentation for this class was generated from the following files:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
StoreID::CONDITION_STORE
@ CONDITION_STORE
Definition: StoreID.h:28
StoreID::PILEUP_STORE
@ PILEUP_STORE
Definition: StoreID.h:31
StoreID::METADATA_STORE
@ METADATA_STORE
Definition: StoreID.h:29
StoreID::DETECTOR_STORE
@ DETECTOR_STORE
Definition: StoreID.h:27
StoreID::type
type
Definition: StoreID.h:24
StoreID::UNKNOWN
@ UNKNOWN
Definition: StoreID.h:32
StoreID::EVENT_STORE
@ EVENT_STORE
Definition: StoreID.h:26
python.compressB64.c
def c
Definition: compressB64.py:93
StoreID::INPUT_METADATA_STORE
@ INPUT_METADATA_STORE
Definition: StoreID.h:30