ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
ISF
ISF_Core
ISF_Event
ISF_Event
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
18
namespace
ISF
{
19
27
28
enum
PDGCodeEnum
{
29
// usually used for codes exceeding the maximum value:
30
fUndefinedPDGCode
= 0,
31
// defining the maximum value of pdg codes used in profiling
32
fMaxBenchmarkPDGCode
= 5000
33
};
34
35
41
42
class
ISFBenchmarkHelper
{
43
44
public
:
46
ISFBenchmarkHelper
() { }
48
~ISFBenchmarkHelper
() { }
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
ISFParticle.h
ISF::ISFBenchmarkHelper::ISFBenchmarkHelper
ISFBenchmarkHelper()
empty constructor
Definition
ISFBenchmarkHelper.h:46
ISF::ISFBenchmarkHelper::~ISFBenchmarkHelper
~ISFBenchmarkHelper()
empty destructor
Definition
ISFBenchmarkHelper.h:48
ISF::ISFBenchmarkHelper::getBenchReadyPdgCode
static unsigned int getBenchReadyPdgCode(const ISFParticle &p)
get PMonUtils::CustomBenchmarkGuard ready PDGCode of the given ISFParticle -> returns abs(pdgCode) if...
Definition
ISFBenchmarkHelper.h:53
ISF::ISFParticle
The generic ISF particle definition,.
Definition
ISFParticle.h:42
ISF
ISFParticleOrderedQueue.
Definition
PrimaryParticleInformation.h:13
ISF::PDGCodeEnum
PDGCodeEnum
This enum enhaces readablity for PDGCode profiling with the PMonUtils::CustomBenchmarkGuard.
Definition
ISFBenchmarkHelper.h:28
ISF::fUndefinedPDGCode
@ fUndefinedPDGCode
Definition
ISFBenchmarkHelper.h:30
ISF::fMaxBenchmarkPDGCode
@ fMaxBenchmarkPDGCode
Definition
ISFBenchmarkHelper.h:32
Generated on
for ATLAS Offline Software by
1.14.0