ATLAS Offline Software
Loading...
Searching...
No Matches
SelectionNameSvc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8#ifndef SYSTEMATICS_HANDLES__SELECTION_NAME_SVC_H
9#define SYSTEMATICS_HANDLES__SELECTION_NAME_SVC_H
10
14#include <PATCore/AcceptInfo.h>
18#include <mutex>
19#include <unordered_map>
20
21namespace CP
22{
24
25 class SelectionNameSvc final : public extends<asg::AsgService, ISelectionNameSvc>
26 {
27
28 //
29 // public interface
30 //
31
32 public:
33 using extends::extends; // base class constructor
34
35 virtual StatusCode initialize () override;
36 virtual StatusCode addAcceptInfo (const std::string& objectName, const std::string& decorName,
37 const asg::AcceptInfo& acceptInfo) override;
38 virtual const asg::AcceptInfo* getAcceptInfo (const std::string& objectName,
39 const std::string& decorName) const override;
40
41
42
43 //
44 // private interface
45 //
46
47 private:
48
52 ServiceHandle<ISystematicsSvc> m_sysSvc {"SystematicsSvc", "SelectionNameSvc"};
53
55 std::unordered_map<std::string, std::unordered_map<std::string, asg::AcceptInfo>> m_acceptInfoMap;
56 };
57}
58
59#endif
Define macros for attributes used to control the static checker.
the canonical implementation of ISelectionNameSvc
std::unordered_map< std::string, std::unordered_map< std::string, asg::AcceptInfo > > m_acceptInfoMap
the map of AcceptInfo objects
virtual StatusCode addAcceptInfo(const std::string &objectName, const std::string &decorName, const asg::AcceptInfo &acceptInfo) override
ServiceHandle< ISystematicsSvc > m_sysSvc
the ISystematicsSvc we use
virtual const asg::AcceptInfo * getAcceptInfo(const std::string &objectName, const std::string &decorName) const override
virtual StatusCode initialize() override
Select isolated Photons, Electrons and Muons.