ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonLateMuRoIHypoTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7class ISvcLocator;
8TrigMuonLateMuRoIHypoTool::TrigMuonLateMuRoIHypoTool(const std::string & type, const std::string & name, const IInterface* parent):
9 AthAlgTool(type, name, parent),
10 m_decisionId(HLT::Identifier::fromToolName(name)){
11}
12
15
17 if(m_acceptAll) {
18 ATH_MSG_DEBUG("Accepting all the events!");
19 }
20
21 return StatusCode::SUCCESS;
22}
23
25
26 //for pass through mode
27 if(m_acceptAll) {
28 ATH_MSG_DEBUG("Accept property is set: taking all the events");
29 return true;
30 }
31
32 // decision making
33 //Get xAOD::MuonContainer from hypotool
34 const TrigRoiDescriptor* lateRoI = input.roi;
35 if( !lateRoI ){
36 ATH_MSG_DEBUG("Retrieval of RoI descriptor failed");
37 return false; // refuse
38 }
39 else ATH_MSG_DEBUG("found late muon roi");
40 return true; // accept
41}
42
43StatusCode TrigMuonLateMuRoIHypoTool::decide(std::vector<MuonEFInfo>& toolInput) const {
44
45 for (auto& tool : toolInput){
46 if(TrigCompositeUtils::passed(m_decisionId.numeric(), tool.previousDecisionIDs)){
47 if(decideOnRoIs(tool)==true){
48 ATH_MSG_DEBUG("Passes selection");
50 }
51 else ATH_MSG_DEBUG("Does not pass selection");
52 }
53 }
54
55 return StatusCode::SUCCESS;
56}
#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.