ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigMuonHypo
src
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
5
#include "
TrigMuonLateMuRoIHypoTool.h
"
6
#include "
TrigSteeringEvent/TrigRoiDescriptorCollection.h
"
7
8
class
ISvcLocator;
9
TrigMuonLateMuRoIHypoTool::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
14
TrigMuonLateMuRoIHypoTool::~TrigMuonLateMuRoIHypoTool
(){
15
}
16
17
StatusCode
TrigMuonLateMuRoIHypoTool::initialize
(){
18
if
(
m_acceptAll
) {
19
ATH_MSG_DEBUG
(
"Accepting all the events!"
);
20
}
21
22
return
StatusCode::SUCCESS;
23
}
24
25
bool
TrigMuonLateMuRoIHypoTool::decideOnRoIs
(
TrigMuonLateMuRoIHypoTool::MuonEFInfo
& input)
const
{
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
44
StatusCode
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"
);
50
TrigCompositeUtils::addDecisionID
(
m_decisionId
, tool.decision);
51
}
52
else
ATH_MSG_DEBUG
(
"Does not pass selection"
);
53
}
54
}
55
56
return
StatusCode::SUCCESS;
57
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
TrigMuonLateMuRoIHypoTool.h
TrigRoiDescriptorCollection.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
TrigMuonLateMuRoIHypoTool::initialize
virtual StatusCode initialize() override
Definition
TrigMuonLateMuRoIHypoTool.cxx:17
TrigMuonLateMuRoIHypoTool::decideOnRoIs
bool decideOnRoIs(TrigMuonLateMuRoIHypoTool::MuonEFInfo &input) const
Definition
TrigMuonLateMuRoIHypoTool.cxx:25
TrigMuonLateMuRoIHypoTool::decide
StatusCode decide(std::vector< TrigMuonLateMuRoIHypoTool::MuonEFInfo > &toolInput) const
Definition
TrigMuonLateMuRoIHypoTool.cxx:44
TrigMuonLateMuRoIHypoTool::TrigMuonLateMuRoIHypoTool
TrigMuonLateMuRoIHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TrigMuonLateMuRoIHypoTool.cxx:9
TrigMuonLateMuRoIHypoTool::m_acceptAll
Gaudi::Property< bool > m_acceptAll
Definition
TrigMuonLateMuRoIHypoTool.h:45
TrigMuonLateMuRoIHypoTool::~TrigMuonLateMuRoIHypoTool
~TrigMuonLateMuRoIHypoTool()
Definition
TrigMuonLateMuRoIHypoTool.cxx:14
TrigMuonLateMuRoIHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition
TrigMuonLateMuRoIHypoTool.h:43
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits ifndef XAOD_ANA...
Definition
TrigRoiDescriptor.h:48
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition
HLTResultReader.h:26
Identifier
Definition
IdentifierFieldParser.cxx:14
TrigCompositeUtils::passed
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
Definition
TrigCompositeUtilsRoot.cxx:118
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition
TrigCompositeUtilsRoot.cxx:59
type
TrigMuonLateMuRoIHypoTool::MuonEFInfo
Definition
TrigMuonLateMuRoIHypoTool.h:22
Generated on
for ATLAS Offline Software by
1.17.0