#include <PrescalingEmulationTool.h>
Definition at line 30 of file PrescalingEmulationTool.h.
◆ PrescalingInfo
◆ PrescalingEmulationTool() [1/2]
PrescalingEmulationTool::PrescalingEmulationTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ PrescalingEmulationTool() [2/2]
PrescalingEmulationTool::PrescalingEmulationTool |
( |
| ) |
|
|
private |
◆ initialize()
StatusCode PrescalingEmulationTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 23 of file PrescalingEmulationTool.cxx.
25 std::string
chainName( confElement, 0, confElement.find(
':') );
26 std::string psValue( confElement, confElement.find(
':')+1 );
30 return StatusCode::SUCCESS;
◆ prescaleChains()
StatusCode PrescalingEmulationTool::prescaleChains |
( |
const EventContext & |
ctx, |
|
|
const HLT::IDVec & |
initiallyActive, |
|
|
HLT::IDVec & |
remainActive, |
|
|
bool |
forExpressStream = false |
|
) |
| const |
|
overridevirtual |
Definition at line 34 of file PrescalingEmulationTool.cxx.
39 ATH_MSG_DEBUG(
"Express stream prescaling ignored in Emulation tool" << forExpressStream);
41 if ( initiallyActive.empty() ) {
42 return StatusCode::SUCCESS;
46 remainActive.reserve( initiallyActive.size() );
49 size_t seed = ctx.eventID().time_stamp() ^ ctx.eventID().time_stamp_ns_offset();
51 engine->setSeed( seed, 0 );
52 for (
auto ch: initiallyActive ) {
55 engine->flat() < chainPS->second :
57 ATH_MSG_DEBUG(
"Prescaling decision for chain " <<
ch <<
" " << decision );
59 remainActive.push_back(
ch );
62 return StatusCode::SUCCESS;
◆ m_keepUnknownChains
Gaudi::Property<bool> PrescalingEmulationTool::m_keepUnknownChains |
|
private |
Initial value:{
this, "KeepUnknownChains", true, "If True then chains for which prescaling information is not set are kept"}
Definition at line 46 of file PrescalingEmulationTool.h.
◆ m_prescalingConfig
Gaudi::Property< std::vector<std::string> > PrescalingEmulationTool::m_prescalingConfig |
|
private |
Initial value:{
this, "Prescales", {}, "The prescaling info in the form: \"chainName:PSValue\""}
Definition at line 49 of file PrescalingEmulationTool.h.
◆ m_prescalingInfo
◆ m_RNGEngines
The documentation for this class was generated from the following files: