ATLAS Offline Software
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 
28  enum PDGCodeEnum {
29  // usually used for codes exceeding the maximum value:
31  // defining the maximum value of pdg codes used in profiling
33  };
34 
35 
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
ISF::fUndefinedPDGCode
@ fUndefinedPDGCode
Definition: ISFBenchmarkHelper.h:30
ISF::fMaxBenchmarkPDGCode
@ fMaxBenchmarkPDGCode
Definition: ISFBenchmarkHelper.h:32
ISF::ISFParticle
Definition: ISFParticle.h:42
ISF::ISFBenchmarkHelper
Definition: ISFBenchmarkHelper.h:42
ISFParticle.h
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ISF::PDGCodeEnum
PDGCodeEnum
Definition: ISFBenchmarkHelper.h:28
ISF
ISFParticleOrderedQueue.
Definition: PrimaryParticleInformation.h:13
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::ISFBenchmarkHelper::ISFBenchmarkHelper
ISFBenchmarkHelper()
empty constructor
Definition: ISFBenchmarkHelper.h:46