ATLAS Offline Software
Loading...
Searching...
No Matches
L1CorrelationAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef TRIGGENERICALGS_L1CORRELATIONALG_H
5#define TRIGGENERICALGS_L1CORRELATIONALG_H
6
11#include "TrigConfData/L1Menu.h"
14
16 public:
17 L1CorrelationAlg(const std::string& name, ISvcLocator* pSvcLocator);
18 virtual StatusCode initialize() override;
19 virtual StatusCode execute(const EventContext& ctx) const override;
20 virtual StatusCode start() override;
21
22
23 private:
24 ServiceHandle<IROBDataProviderSvc> m_robDataProviderSvc{this, "ROBDataProviderSvc", "ROBDataProviderSvc", "Name of the ROB data provider"};
25 SG::WriteHandleKey<xAOD::TrigCompositeContainer> m_trigCompositeKey{this, "TrigCompositeWriteHandleKey", "L1CorrelationTrigComposite", "Name of TrigComposite write handle"};
26 SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer> m_l1AKey{this, "l1AKey", "L1CorrelationTrigComposite.l1a_type", "L1 accept type"};
27 SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer> m_otherTypeKey{this, "otherTypeKey", "L1CorrelationTrigComposite.other_type", "Other type"};
28 SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer> m_beforeAfterKey{this, "beforeAfterKey", "L1CorrelationTrigComposite.beforeafterflag", "flag if BC is before or after nominal"};
29 SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer> m_otherTypeBeforeKey{this, "otherTypeBeforeKey", "L1CorrelationTrigComposite.other_type_before", "Trigger type (1-7) of the first fired BC before the central L1A BCID"};
30 SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer> m_otherTypeAfterKey{this, "otherTypeAfterKey", "L1CorrelationTrigComposite.other_type_after", "Trigger type (1-7) of the first fired BC after the central L1A BCID"};
31 SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer> m_beforeOffsetKey{this, "beforeOffsetKey", "L1CorrelationTrigComposite.offset_before", "Distance (in BCs) from the L1A to the first earlier neighbor trigger"};
32 SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer> m_afterOffsetKey{this, "afterOffsetKey", "L1CorrelationTrigComposite.offset_after", "Distance (in BCs) from the L1A to the first later neighbor trigger"};
33 SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer> m_passKey{this, "trigCompPassKey", "L1CorrelationTrigComposite.pass", "Key to indicate TrigComp is passed"};
34 SG::ReadHandleKey<TrigConf::L1Menu> m_l1MenuKey{this, "L1MenuKey", "DetectorStore+L1TriggerMenu", "L1 Menu"};
35 ToolHandle<GenericMonitoringTool> m_monTool{this, "MonTool", "", "Monitoring tool"};
36 Gaudi::Property<bool> m_currentBCincl{this, "currentBCinclusive", true};
37 Gaudi::Property<std::vector<std::string>> m_l1itemlist{this, "ItemList", {"L1_EM22VHI", "L1_J400", "L1_MU14FCH"}, "list of l1 items to be used"};
38
39
40 std::vector<uint32_t> m_bitmasks;
41 std::vector<uint32_t> m_bitmasks_ele;
42 std::vector<uint32_t> m_bitmasks_mu;
43 std::vector<uint32_t> m_bitmasks_jets;
44};
45
46#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_otherTypeBeforeKey
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_otherTypeKey
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_beforeOffsetKey
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_trigCompositeKey
std::vector< uint32_t > m_bitmasks
SG::ReadHandleKey< TrigConf::L1Menu > m_l1MenuKey
Gaudi::Property< bool > m_currentBCincl
std::vector< uint32_t > m_bitmasks_ele
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_otherTypeAfterKey
Gaudi::Property< std::vector< std::string > > m_l1itemlist
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_afterOffsetKey
std::vector< uint32_t > m_bitmasks_jets
L1CorrelationAlg(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< GenericMonitoringTool > m_monTool
virtual StatusCode start() override
ServiceHandle< IROBDataProviderSvc > m_robDataProviderSvc
virtual StatusCode initialize() override
std::vector< uint32_t > m_bitmasks_mu
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_l1AKey
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_beforeAfterKey
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_passKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.