ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigSteer
HLTSeeding
src
PrescalingEmulationTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef HLTSEEDING_PRESCALINGEMULATIONTOOL_H
5
#define HLTSEEDING_PRESCALINGEMULATIONTOOL_H
6
7
// HLTSeeding includes
8
#include "
HLTSeeding/IPrescalingTool.h
"
9
10
// Framework includes
11
#include "
AthenaBaseComps/AthAlgTool.h
"
12
#include "GaudiKernel/ServiceHandle.h"
13
#include "
xAODEventInfo/EventInfo.h
"
14
#include "
AthenaKernel/IAtRndmGenSvc.h
"
15
#include "
AthenaKernel/RNGWrapper.h
"
16
17
// STL includes
18
#include <string>
19
29
30
class
PrescalingEmulationTool
:
public
extends<AthAlgTool, IPrescalingTool> {
31
public
:
32
PrescalingEmulationTool
(
const
std::string&
type
,
33
const
std::string& name,
34
const
IInterface* parent );
35
36
virtual
StatusCode
initialize
()
override
;
37
38
virtual
StatusCode
prescaleChains
(
const
EventContext& ctx,
39
const
HLT::IDVec
& initiallyActive,
40
HLT::IDVec
& remainActive,
41
bool
forExpressStream =
false
)
const override
;
42
43
private
:
44
PrescalingEmulationTool
();
45
46
Gaudi::Property<bool>
m_keepUnknownChains
{
47
this
,
"KeepUnknownChains"
,
true
,
"If True then chains for which prescaling information is not set are kept"
};
48
49
Gaudi::Property< std::vector<std::string> >
m_prescalingConfig
{
50
this
,
"Prescales"
, {},
"The prescaling info in the form: \"chainName:PSValue\""
};
51
52
ATHRNG::RNGWrapper
m_RNGEngines
;
53
54
typedef
std::map<HLT::Identifier, float>
PrescalingInfo
;
55
PrescalingInfo
m_prescalingInfo
;
56
};
57
58
#endif
AthAlgTool.h
IAtRndmGenSvc.h
IPrescalingTool.h
RNGWrapper.h
ATHRNG::RNGWrapper
A wrapper class for event-slot-local random engines.
Definition
RNGWrapper.h:56
PrescalingEmulationTool::PrescalingEmulationTool
PrescalingEmulationTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
PrescalingEmulationTool.cxx:16
PrescalingEmulationTool::m_RNGEngines
ATHRNG::RNGWrapper m_RNGEngines
Definition
PrescalingEmulationTool.h:52
PrescalingEmulationTool::m_prescalingInfo
PrescalingInfo m_prescalingInfo
Definition
PrescalingEmulationTool.h:55
PrescalingEmulationTool::prescaleChains
virtual StatusCode prescaleChains(const EventContext &ctx, const HLT::IDVec &initiallyActive, HLT::IDVec &remainActive, bool forExpressStream=false) const override
Definition
PrescalingEmulationTool.cxx:34
PrescalingEmulationTool::m_prescalingConfig
Gaudi::Property< std::vector< std::string > > m_prescalingConfig
Definition
PrescalingEmulationTool.h:49
PrescalingEmulationTool::PrescalingInfo
std::map< HLT::Identifier, float > PrescalingInfo
Definition
PrescalingEmulationTool.h:54
PrescalingEmulationTool::initialize
virtual StatusCode initialize() override
Definition
PrescalingEmulationTool.cxx:23
PrescalingEmulationTool::m_keepUnknownChains
Gaudi::Property< bool > m_keepUnknownChains
Definition
PrescalingEmulationTool.h:46
PrescalingEmulationTool::PrescalingEmulationTool
PrescalingEmulationTool()
HLT::IDVec
std::vector< HLT::Identifier > IDVec
Definition
TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:55
type
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0