ATLAS Offline Software
Public Member Functions | Static Public Member Functions | List of all members
ISF::ISFBenchmarkHelper Class Reference

#include <ISFBenchmarkHelper.h>

Collaboration diagram for ISF::ISFBenchmarkHelper:

Public Member Functions

 ISFBenchmarkHelper ()
 empty constructor More...
 
 ~ISFBenchmarkHelper ()
 empty destructor More...
 

Static Public Member Functions

static unsigned int getBenchReadyPdgCode (const ISFParticle &p)
 get PMonUtils::CustomBenchmarkGuard ready PDGCode of the given ISFParticle -> returns abs(pdgCode) if it does not exceed fMaxBenchmarkPDGCode -> returns fUndefinedPDGCode otherwise More...
 

Detailed Description

readability for PMonUtils::CustomBenchmarkGuard usage with ISF::ISFParticle types

Author
Elmar.Ritsch -at- cern.ch

Definition at line 42 of file ISFBenchmarkHelper.h.

Constructor & Destructor Documentation

◆ ISFBenchmarkHelper()

ISF::ISFBenchmarkHelper::ISFBenchmarkHelper ( )
inline

empty constructor

Definition at line 46 of file ISFBenchmarkHelper.h.

46 { }

◆ ~ISFBenchmarkHelper()

ISF::ISFBenchmarkHelper::~ISFBenchmarkHelper ( )
inline

empty destructor

Definition at line 48 of file ISFBenchmarkHelper.h.

48 { }

Member Function Documentation

◆ getBenchReadyPdgCode()

static unsigned int ISF::ISFBenchmarkHelper::getBenchReadyPdgCode ( const ISFParticle p)
inlinestatic

get PMonUtils::CustomBenchmarkGuard ready PDGCode of the given ISFParticle -> returns abs(pdgCode) if it does not exceed fMaxBenchmarkPDGCode -> returns fUndefinedPDGCode otherwise

Definition at line 53 of file ISFBenchmarkHelper.h.

53  {
54  unsigned int pdgCode = abs( p.pdgCode() );
55  return ( (pdgCode<=int(ISF::fMaxBenchmarkPDGCode) ) ? pdgCode : int(ISF::fUndefinedPDGCode) );
56  }

The documentation for this class was generated from the following file:
ISF::fUndefinedPDGCode
@ fUndefinedPDGCode
Definition: ISFBenchmarkHelper.h:30
ISF::fMaxBenchmarkPDGCode
@ fMaxBenchmarkPDGCode
Definition: ISFBenchmarkHelper.h:32
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743