ATLAS Offline Software
RecMuonRoIUtils.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGL2MUONSA_RECMUONROIUTILS_H
6 #define TRIGL2MUONSA_RECMUONROIUTILS_H
7 
9 #include "xAODTrigger/MuonRoI.h"
10 
11 namespace TrigL2MuonSA {
12 
14 {
15  public:
17 
18  public:
19  bool isBarrel(const LVL1::RecMuonRoI* p_roi) const {
20  return (p_roi->sysID()==0) ? true : false;
21  };
22  bool isBarrel(const xAOD::MuonRoI* p_roi) const {
23  return (p_roi->getSource()==0) ? true : false;
24  };
25  bool isLowPt(const LVL1::RecMuonRoI* p_roi) const {
26  return (p_roi->getThresholdNumber() <4) ? true : false;
27  };
28  bool isLowPt(const xAOD::MuonRoI* p_roi) const {
29  return !(p_roi->getBW3Coincidence());
30  };
31  bool isHighPt(const LVL1::RecMuonRoI* p_roi) const {
32  return (p_roi->getThresholdNumber()>=4) ? true : false;
33  };
34  bool isHighPt(const xAOD::MuonRoI* p_roi) const {
35  return p_roi->getBW3Coincidence();
36  };
37 };
38 
39 }
40 
41 #endif // TRIGL2MUONSA_RECMUONROIUTILS_H
TrigL2MuonSA::RecMuonRoIUtils::isLowPt
bool isLowPt(const xAOD::MuonRoI *p_roi) const
Definition: RecMuonRoIUtils.h:28
RecMuonRoI.h
TrigL2MuonSA::RecMuonRoIUtils::isBarrel
bool isBarrel(const xAOD::MuonRoI *p_roi) const
Definition: RecMuonRoIUtils.h:22
LVL1::RecMuonRoI::getThresholdNumber
unsigned int getThresholdNumber() const
returns the Threshold Number (1 to 6) associated with this RecRoI
Definition: RecMuonRoI.h:120
LVL1::RecMuonRoI
This class defines the reconstructed Muon ROI.
Definition: RecMuonRoI.h:60
TrigL2MuonSA::RecMuonRoIUtils::isHighPt
bool isHighPt(const xAOD::MuonRoI *p_roi) const
Definition: RecMuonRoIUtils.h:34
TrigL2MuonSA::RecMuonRoIUtils::isBarrel
bool isBarrel(const LVL1::RecMuonRoI *p_roi) const
Definition: RecMuonRoIUtils.h:19
xAOD::MuonRoI_v1
Class describing a LVL1 muon region of interest.
Definition: MuonRoI_v1.h:33
TrigL2MuonSA::RecMuonRoIUtils::isHighPt
bool isHighPt(const LVL1::RecMuonRoI *p_roi) const
Definition: RecMuonRoIUtils.h:31
TrigL2MuonSA::RecMuonRoIUtils
Definition: RecMuonRoIUtils.h:14
LVL1::RecMuonRoI::sysID
unsigned int sysID() const
returns system ID ROI (Barrel=0, Endcap=1, Forward=2)
Definition: RecMuonRoI.h:105
MuonRoI.h
xAOD::MuonRoI_v1::getBW3Coincidence
bool getBW3Coincidence() const
Returns whether or not there was a 3-station coincidence in the TGC.
TrigL2MuonSA::RecMuonRoIUtils::isLowPt
bool isLowPt(const LVL1::RecMuonRoI *p_roi) const
Definition: RecMuonRoIUtils.h:25
xAOD::MuonRoI_v1::getSource
RoISource getSource() const
Returns the system that detected the muon candidate.
TrigL2MuonSA::RecMuonRoIUtils::RecMuonRoIUtils
RecMuonRoIUtils()
Definition: RecMuonRoIUtils.h:16
TrigL2MuonSA
Definition: AlignmentBarrelLUT.h:13