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

#include <PerfMonServices.h>

Collaboration diagram for PerfMonServices:

Public Types

enum  CONTAINERS {
  MUON_START = 0, MUID_COLLECTION = MUON_START, STACO_COLLECTION, MUON_COLLECTION,
  MUON_END, ELEC_START = MUON_END, ELECTRON_COLLECTION = ELEC_START, ELEC_END,
  PHOT_START = ELEC_END, PHOTON_COLLECTION = PHOT_START, PHOT_END, MET_START = PHOT_END,
  MET_COLLECTION = MET_START, MET_END, TRK_START = MET_END, TRK_COLLECTION = TRK_START,
  TRK_END, VTX_START = TRK_END, VTX_COLLECTION = VTX_START, VTX_END,
  NUM_CONTAINERS = VTX_END
}
 

Public Member Functions

 PerfMonServices ()
 
 ~PerfMonServices ()
 

Static Public Member Functions

static const std::string & getContainerName (CONTAINERS eContainer)
 
static const std::string & getAtlfastContainerName (CONTAINERS eContainer)
 
template<class T >
static const T * getContainer (CONTAINERS eContainer)
 
template<class T >
static T const GetMax (T a, T b)
 

Static Private Attributes

static const std::string s_sContainerNames [NUM_CONTAINERS]
 
static const std::string s_sAtlfastContainerNames [NUM_CONTAINERS]
 

Detailed Description

Definition at line 14 of file PerfMonServices.h.

Member Enumeration Documentation

◆ CONTAINERS

Enumerator
MUON_START 
MUID_COLLECTION 
STACO_COLLECTION 
MUON_COLLECTION 
MUON_END 
ELEC_START 
ELECTRON_COLLECTION 
ELEC_END 
PHOT_START 
PHOTON_COLLECTION 
PHOT_END 
MET_START 
MET_COLLECTION 
MET_END 
TRK_START 
TRK_COLLECTION 
TRK_END 
VTX_START 
VTX_COLLECTION 
VTX_END 
NUM_CONTAINERS 

Definition at line 21 of file PerfMonServices.h.

22  {
23  MUON_START = 0,
27  MUON_END,
28 
31  ELEC_END,
32 
35  PHOT_END,
36 
39  MET_END,
40 
43  TRK_END,
44 
47  VTX_END,
48 
50  };

Constructor & Destructor Documentation

◆ PerfMonServices()

PerfMonServices::PerfMonServices ( )

Definition at line 29 of file PerfMonServices.cxx.

30 {
31 }

◆ ~PerfMonServices()

PerfMonServices::~PerfMonServices ( )

Definition at line 33 of file PerfMonServices.cxx.

34 {
35 }

Member Function Documentation

◆ getAtlfastContainerName()

static const std::string& PerfMonServices::getAtlfastContainerName ( CONTAINERS  eContainer)
inlinestatic

Definition at line 53 of file PerfMonServices.h.

53 { return s_sAtlfastContainerNames[eContainer]; }

◆ getContainer()

template<class T >
static const T* PerfMonServices::getContainer ( CONTAINERS  eContainer)
inlinestatic

Definition at line 55 of file PerfMonServices.h.

55  {
56  const T* pxContainer = nullptr;
57  const std::string& sContainerName = PerfMonServices::getContainerName( eContainer );
58  SmartIF<StoreGateSvc> storeGate{Gaudi::svcLocator()->service("StoreGateSvc")};
59  if ( storeGate ) {
60  storeGate->retrieve( pxContainer , sContainerName ).ignore();
61  }
62  return pxContainer;
63  }

◆ getContainerName()

static const std::string& PerfMonServices::getContainerName ( CONTAINERS  eContainer)
inlinestatic

Definition at line 52 of file PerfMonServices.h.

52 { return s_sContainerNames[eContainer]; }

◆ GetMax()

template<class T >
static T const PerfMonServices::GetMax ( a,
b 
)
inlinestatic

Definition at line 65 of file PerfMonServices.h.

65  {
66  T result;
67  result = a>b? a : b;
68  return result;
69  }

Member Data Documentation

◆ s_sAtlfastContainerNames

const std::string PerfMonServices::s_sAtlfastContainerNames
staticprivate
Initial value:
= { "AtlfastMuonCollection",
"AtlfastMuonCollection",
"AtlfastMuons",
"AtlfastElectronCollection",
"AtlfastPhotonCollection",
"AtlfastMissingEt",
"Placeholder" }

Definition at line 76 of file PerfMonServices.h.

◆ s_sContainerNames

const std::string PerfMonServices::s_sContainerNames
staticprivate
Initial value:
= { "MuidMuonCollection",
"StacoMuonCollection",
"Muons",
"Electrons",
"PhotonCollection",
"MET_Final",
"TrackParticleCandidate",
"PrimaryVertices"}

Definition at line 75 of file PerfMonServices.h.


The documentation for this class was generated from the following files:
get_generator_info.result
result
Definition: get_generator_info.py:21
PerfMonServices::getContainerName
static const std::string & getContainerName(CONTAINERS eContainer)
Definition: PerfMonServices.h:52
PerfMonServices::MET_END
@ MET_END
Definition: PerfMonServices.h:39
PerfMonServices::VTX_START
@ VTX_START
Definition: PerfMonServices.h:45
PerfMonServices::MUID_COLLECTION
@ MUID_COLLECTION
Definition: PerfMonServices.h:24
PerfMonServices::NUM_CONTAINERS
@ NUM_CONTAINERS
Definition: PerfMonServices.h:49
PerfMonServices::TRK_START
@ TRK_START
Definition: PerfMonServices.h:41
PerfMonServices::MET_COLLECTION
@ MET_COLLECTION
Definition: PerfMonServices.h:38
PerfMonServices::s_sAtlfastContainerNames
static const std::string s_sAtlfastContainerNames[NUM_CONTAINERS]
Definition: PerfMonServices.h:76
PerfMonServices::TRK_END
@ TRK_END
Definition: PerfMonServices.h:43
PerfMonServices::ELECTRON_COLLECTION
@ ELECTRON_COLLECTION
Definition: PerfMonServices.h:30
PerfMonServices::PHOT_END
@ PHOT_END
Definition: PerfMonServices.h:35
PerfMonServices::VTX_COLLECTION
@ VTX_COLLECTION
Definition: PerfMonServices.h:46
PerfMonServices::TRK_COLLECTION
@ TRK_COLLECTION
Definition: PerfMonServices.h:42
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
PerfMonServices::ELEC_END
@ ELEC_END
Definition: PerfMonServices.h:31
PerfMonServices::MUON_END
@ MUON_END
Definition: PerfMonServices.h:27
PerfMonServices::s_sContainerNames
static const std::string s_sContainerNames[NUM_CONTAINERS]
Definition: PerfMonServices.h:75
a
TList * a
Definition: liststreamerinfos.cxx:10
PerfMonServices::VTX_END
@ VTX_END
Definition: PerfMonServices.h:47
PerfMonServices::PHOT_START
@ PHOT_START
Definition: PerfMonServices.h:33
PerfMonServices::ELEC_START
@ ELEC_START
Definition: PerfMonServices.h:29
PerfMonServices::MET_START
@ MET_START
Definition: PerfMonServices.h:37
PerfMonServices::MUON_START
@ MUON_START
Definition: PerfMonServices.h:23
PerfMonServices::PHOTON_COLLECTION
@ PHOTON_COLLECTION
Definition: PerfMonServices.h:34
PerfMonServices::STACO_COLLECTION
@ STACO_COLLECTION
Definition: PerfMonServices.h:25
PerfMonServices::MUON_COLLECTION
@ MUON_COLLECTION
Definition: PerfMonServices.h:26
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
python.PyKernel.storeGate
storeGate
Definition: PyKernel.py:40