ATLAS Offline Software
Loading...
Searching...
No Matches
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,
28
32
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()

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

Definition at line 53 of file PerfMonServices.h.

53{ return s_sAtlfastContainerNames[eContainer]; }
static const std::string s_sAtlfastContainerNames[NUM_CONTAINERS]

◆ getContainer()

template<class T>
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 }
static const std::string & getContainerName(CONTAINERS eContainer)
unsigned long long T

◆ getContainerName()

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

Definition at line 52 of file PerfMonServices.h.

52{ return s_sContainerNames[eContainer]; }
static const std::string s_sContainerNames[NUM_CONTAINERS]

◆ GetMax()

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

Definition at line 65 of file PerfMonServices.h.

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

Member Data Documentation

◆ s_sAtlfastContainerNames

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

Definition at line 17 of file PerfMonServices.h.

22 {
23 MUON_START = 0,

◆ s_sContainerNames

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

Definition at line 8 of file PerfMonServices.h.

15{
16 public:

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