ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonLateMuRoIHypoTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8class ISvcLocator;
9TrigMuonLateMuRoIHypoTool::TrigMuonLateMuRoIHypoTool(const std::string & type, const std::string & name, const IInterface* parent):
10 AthAlgTool(type, name, parent),
11 m_decisionId(HLT::Identifier::fromToolName(name)){
12}
13
16
18 if(m_acceptAll) {
19 ATH_MSG_DEBUG("Accepting all the events!");
20 }
21
22 return StatusCode::SUCCESS;
23}
24
26
27 //for pass through mode
28 if(m_acceptAll) {
29 ATH_MSG_DEBUG("Accept property is set: taking all the events");
30 return true;
31 }
32
33 // decision making
34 //Get xAOD::MuonContainer from hypotool
35 const TrigRoiDescriptor* lateRoI = input.roi;
36 if( !lateRoI ){
37 ATH_MSG_DEBUG("Retrieval of RoI descriptor failed");
38 return false; // refuse
39 }
40 else ATH_MSG_DEBUG("found late muon roi");
41 return true; // accept
42}
43
44StatusCode TrigMuonLateMuRoIHypoTool::decide(std::vector<MuonEFInfo>& toolInput) const {
45
46 for (auto& tool : toolInput){
47 if(TrigCompositeUtils::passed(m_decisionId.numeric(), tool.previousDecisionIDs)){
48 if(decideOnRoIs(tool)==true){
49 ATH_MSG_DEBUG("Passes selection");
51 }
52 else ATH_MSG_DEBUG("Does not pass selection");
53 }
54 }
55
56 return StatusCode::SUCCESS;
57}
#define ATH_MSG_DEBUG(x)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
virtual StatusCode initialize() override
bool decideOnRoIs(TrigMuonLateMuRoIHypoTool::MuonEFInfo &input) const
StatusCode decide(std::vector< TrigMuonLateMuRoIHypoTool::MuonEFInfo > &toolInput) const
TrigMuonLateMuRoIHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< bool > m_acceptAll
nope - should be used for standalone also, perhaps need to protect the class def bits ifndef XAOD_ANA...
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.