ATLAS Offline Software
Loading...
Searching...
No Matches
ISFBenchmarkHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6// ISFBenchmarkHelper.h, (c) ATLAS Detector software
8
9#ifndef ISF_EVENT_ISFBENCHMARKHELPER_H
10#define ISF_EVENT_ISFBENCHMARKHELPER_H 1
11
12// ISF Includes
13#include "ISFParticle.h"
14
15// abs() definition
16#include <cstdlib>
17
18namespace ISF {
19
27
29 // usually used for codes exceeding the maximum value:
31 // defining the maximum value of pdg codes used in profiling
33 };
34
35
41
43
44 public:
49
53 inline static unsigned int getBenchReadyPdgCode(const ISFParticle &p) {
54 unsigned int pdgCode = abs( p.pdgCode() );
55 return ( (pdgCode<=int(ISF::fMaxBenchmarkPDGCode) ) ? pdgCode : int(ISF::fUndefinedPDGCode) );
56 }
57 private:
58
59 };
60
61} // end of namespace
62
63#endif // ISF_EVENT_ISFBENCHMARKHELPER_H
ISFBenchmarkHelper()
empty constructor
~ISFBenchmarkHelper()
empty destructor
static unsigned int getBenchReadyPdgCode(const ISFParticle &p)
get PMonUtils::CustomBenchmarkGuard ready PDGCode of the given ISFParticle -> returns abs(pdgCode) if...
The generic ISF particle definition,.
Definition ISFParticle.h:42
ISFParticleOrderedQueue.
PDGCodeEnum
This enum enhaces readablity for PDGCode profiling with the PMonUtils::CustomBenchmarkGuard.
@ fUndefinedPDGCode
@ fMaxBenchmarkPDGCode