ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMatchTool.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
8#ifndef TRIGOBJECTMATCHING_TRIGMATCHTOOL_H
9#define TRIGOBJECTMATCHING_TRIGMATCHTOOL_H
10
11// Gaudi/Athena include(s):
13#include "GaudiKernel/ToolHandle.h"
14#include "GaudiKernel/IIncidentListener.h"
15
16// Trigger include(s):
18
19// Local include(s):
20#include "TrigMatchToolCore.h"
21
22class Incident;
23
24static const InterfaceID IID_TrigMatchTool("TrigMatchTool", 1, 0);
25
32 public TrigMatchToolCore,
33 virtual public IIncidentListener {
34
35public:
36 TrigMatchTool( const std::string& type,
37 const std::string& name,
38 const IInterface* parent );
39
40 static const InterfaceID& interfaceID() {
41 return IID_TrigMatchTool;
42 }
43
44 virtual StatusCode initialize() override;
45
46private:
47 // for printing warnings
48 virtual void warning( const std::string& w ) const override {
49 ATH_MSG_ERROR( w );
50 return;
51 }
52
53 // status functions for determining what information we have
54 // access to
55 virtual bool changedDecisionAware() const override { return true; };
56
57 // handle incidents (end event, begin event, etc.)
58 virtual void handle( const Incident& inc ) override;
59
60 // grab the configured chain names via the trig decision tool
61 virtual std::vector<std::string> getConfiguredChainNames() const override;
62
63 // grab the feature containers from the navigation
64 // via the trig decision tool
66 getFeatureContainer( const std::string &chainName, const int condition ) const override {
67 return m_trigDecisionTool->features( chainName, condition );
68 }
69
70 // use the tdt to get access the the name of the chain that
71 // seeded the current chain
72 virtual
73 std::string lowerChainName( const std::string& chainName ) const override;
74
75 // note that we access the trig decision tool normally
76 // in athena
77 ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool;
78
79}; // end TrigMatchTool declaration
80
81#endif // TRIGOBJECTMATCHING_TRIGMATCHTOOL_H
#define ATH_MSG_ERROR(x)
static const InterfaceID IID_TrigMatchTool("TrigMatchTool", 1, 0)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
virtual bool changedDecisionAware() const override
virtual std::vector< std::string > getConfiguredChainNames() const override
virtual StatusCode initialize() override
ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
TrigMatchTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual void handle(const Incident &inc) override
virtual std::string lowerChainName(const std::string &chainName) const override
static const InterfaceID & interfaceID()
virtual Trig::FeatureContainer getFeatureContainer(const std::string &chainName, const int condition) const override
virtual void warning(const std::string &w) const override