ATLAS Offline Software
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 
7 class ISvcLocator;
8 TrigMuonLateMuRoIHypoTool::TrigMuonLateMuRoIHypoTool(const std::string & type, const std::string & name, const IInterface* parent):
10  m_decisionId(HLT::Identifier::fromToolName(name)){
11 }
12 
14 }
15 
17  if(m_acceptAll) {
18  ATH_MSG_DEBUG("Accepting all the events!");
19  }
20 
21  return StatusCode::SUCCESS;
22 }
23 
25 
26  bool result = false;
27  //for pass through mode
28  if(m_acceptAll) {
29  result = true;
30  ATH_MSG_DEBUG("Accept property is set: taking all the events");
31  return result;
32  }
33 
34  // decision making
35  //Get xAOD::MuonContainer from hypotool
36  const TrigRoiDescriptor* lateRoI = input.roi;
37  if( !lateRoI ){
38  ATH_MSG_DEBUG("Retrieval of RoI descriptor");
39  return false;
40  }
41  else ATH_MSG_DEBUG("found late muon roi");
42  return result;
43 }
44 
45 StatusCode TrigMuonLateMuRoIHypoTool::decide(std::vector<MuonEFInfo>& toolInput) const {
46 
47  for (auto& tool : toolInput){
48  if(TrigCompositeUtils::passed(m_decisionId.numeric(), tool.previousDecisionIDs)){
49  if(decideOnRoIs(tool)==true){
50  ATH_MSG_DEBUG("Passes selection");
52  }
53  else ATH_MSG_DEBUG("Does not pass selection");
54  }
55  }
56 
57  return StatusCode::SUCCESS;
58 }
get_generator_info.result
result
Definition: get_generator_info.py:21
TrigMuonLateMuRoIHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigMuonLateMuRoIHypoTool.h:41
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:117
HLT::Identifier::numeric
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:47
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition: TrigCompositeUtilsRoot.cxx:61
TrigMuonLateMuRoIHypoTool::~TrigMuonLateMuRoIHypoTool
~TrigMuonLateMuRoIHypoTool()
Definition: TrigMuonLateMuRoIHypoTool.cxx:13
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
Definition: TrigRoiDescriptor.h:56
TrigMuonLateMuRoIHypoTool::TrigMuonLateMuRoIHypoTool
TrigMuonLateMuRoIHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigMuonLateMuRoIHypoTool.cxx:8
TrigMuonLateMuRoIHypoTool.h
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TrigMuonLateMuRoIHypoTool::MuonEFInfo
Definition: TrigMuonLateMuRoIHypoTool.h:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
TrigMuonLateMuRoIHypoTool::initialize
virtual StatusCode initialize() override
Definition: TrigMuonLateMuRoIHypoTool.cxx:16
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigMuonLateMuRoIHypoTool::m_acceptAll
Gaudi::Property< bool > m_acceptAll
Definition: TrigMuonLateMuRoIHypoTool.h:43
TrigMuonLateMuRoIHypoTool::decideOnRoIs
bool decideOnRoIs(TrigMuonLateMuRoIHypoTool::MuonEFInfo &input) const
Definition: TrigMuonLateMuRoIHypoTool.cxx:24
AthAlgTool
Definition: AthAlgTool.h:26
TrigMuonLateMuRoIHypoTool::decide
StatusCode decide(std::vector< TrigMuonLateMuRoIHypoTool::MuonEFInfo > &toolInput) const
Definition: TrigMuonLateMuRoIHypoTool.cxx:45
Identifier
Definition: IdentifierFieldParser.cxx:14