ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
11namespace 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
This class defines the reconstructed Muon ROI.
Definition RecMuonRoI.h:60
unsigned int getThresholdNumber() const
returns the Threshold Number (1 to 6) associated with this RecRoI
Definition RecMuonRoI.h:120
unsigned int sysID() const
returns system ID ROI (Barrel=0, Endcap=1, Forward=2)
Definition RecMuonRoI.h:105
bool isBarrel(const LVL1::RecMuonRoI *p_roi) const
bool isHighPt(const LVL1::RecMuonRoI *p_roi) const
bool isHighPt(const xAOD::MuonRoI *p_roi) const
bool isLowPt(const LVL1::RecMuonRoI *p_roi) const
bool isLowPt(const xAOD::MuonRoI *p_roi) const
bool isBarrel(const xAOD::MuonRoI *p_roi) const
bool getBW3Coincidence() const
Returns whether or not there was a 3-station coincidence in the TGC.
RoISource getSource() const
Returns the system that detected the muon candidate.
MuonRoI_v1 MuonRoI
Definition MuonRoI.h:15