ATLAS Offline Software
Loading...
Searching...
No Matches
ISF::ISFBenchmarkHelper Class Reference

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

#include <ISFBenchmarkHelper.h>

Collaboration diagram for ISF::ISFBenchmarkHelper:

Public Member Functions

 ISFBenchmarkHelper ()
 empty constructor
 ~ISFBenchmarkHelper ()
 empty destructor

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

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()

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 }
@ fUndefinedPDGCode
@ fMaxBenchmarkPDGCode

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