ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
10// Framework includes
12#include "GaudiKernel/ServiceHandle.h"
16
17// STL includes
18#include <string>
19
29
30class PrescalingEmulationTool : public extends<AthAlgTool, IPrescalingTool> {
31public:
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:
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
53
54 typedef std::map<HLT::Identifier, float> PrescalingInfo;
56};
57
58#endif
A wrapper class for event-slot-local random engines.
Definition RNGWrapper.h:56
PrescalingEmulationTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode prescaleChains(const EventContext &ctx, const HLT::IDVec &initiallyActive, HLT::IDVec &remainActive, bool forExpressStream=false) const override
Gaudi::Property< std::vector< std::string > > m_prescalingConfig
std::map< HLT::Identifier, float > PrescalingInfo
virtual StatusCode initialize() override
Gaudi::Property< bool > m_keepUnknownChains
std::vector< HLT::Identifier > IDVec