Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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  //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 
43 StatusCode 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 }
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
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
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:240
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
TrigMuonLateMuRoIHypoTool::initialize
virtual StatusCode initialize() override
Definition: TrigMuonLateMuRoIHypoTool.cxx:16
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:43
Identifier
Definition: IdentifierFieldParser.cxx:14