ATLAS Offline Software
Loading...
Searching...
No Matches
Muon_ROI.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id: Muon_ROI.h,v 1.6 2008-05-08 15:00:11 krasznaa Exp $
8#ifndef ANALYSISTRIGGEREVENT_MUON_ROI_H
9#define ANALYSISTRIGGEREVENT_MUON_ROI_H
10
11// STL/System include(s):
12#include <string>
13#include <inttypes.h>
14
15// Athena include(s):
19
35 virtual public INavigable4Momentum {
36
37public:
39 Muon_ROI( uint32_t roiWord, double eta, double phi, const std::string &thrName,
40 double thrValue );
42 Muon_ROI();
44 virtual ~Muon_ROI();
45
52
57
58 enum Charge {
59 Neg = 0,
60 Pos = 1,
61 Undef = 100
62 };
63
65 uint32_t getROIWord() const { return m_roiWord; }
67 float getEta() const { return m_eta; }
69 float getPhi() const { return m_phi; }
71 const std::string& getThrName() const { return m_thrName; }
73 float getThrValue() const { return m_thrValue; }
74
76 int getThrNumber() const;
78 int getRoI() const;
80 int getSectorAddress() const;
82 bool isFirstCandidate() const;
84 bool isMoreCandInRoI() const;
86 bool isMoreCandInSector() const;
88 RoISource getSource() const;
92 Charge getCharge() const;
94 bool isVetoed() const;
95
97 virtual double pt() const { return m_thrValue; }
99 virtual double eta() const { return m_eta; }
101 virtual double phi() const { return m_phi; }
103 virtual double m() const { return 0.0; }
104
105private:
106 uint32_t m_roiWord;
107
108 float m_eta;
109 float m_phi;
110
111 std::string m_thrName;
113
114}; // class Muon_ROI
115
116#endif // ANALYSISTRIGGEREVENT_MUON_ROI_H
float getThrValue() const
Return the value of the highest threshold this RoI passed.
Definition Muon_ROI.h:73
float m_eta
eta coordinate of RoI
Definition Muon_ROI.h:108
bool isMoreCandInRoI() const
Returns if there were other muons detected in the same RoI.
Definition Muon_ROI.cxx:103
Hemisphere getHemisphere() const
Returns the hemisphere that detected the muon candidate.
Definition Muon_ROI.cxx:144
virtual double m() const
Return the mass of the object, always 0.0 for RoIs.
Definition Muon_ROI.h:103
Charge
Charge sign.
Definition Muon_ROI.h:58
@ Pos
Candidate is a mu+ from a TGC sector.
Definition Muon_ROI.h:60
@ Undef
This is an RPC candidate.
Definition Muon_ROI.h:61
@ Neg
Candidate is a mu- from a TGC sector.
Definition Muon_ROI.h:59
virtual double phi() const
Return the phi coordinate of the center of the RoI.
Definition Muon_ROI.h:101
int getSectorAddress() const
Get the full sector address.
Definition Muon_ROI.cxx:80
virtual double eta() const
Return the eta coordinate of the center of the RoI.
Definition Muon_ROI.h:99
Muon_ROI(uint32_t roiWord, double eta, double phi, const std::string &thrName, double thrValue)
Constructor used when creating the object from RoIBResult data.
Definition Muon_ROI.cxx:13
float getEta() const
Legacy function returning the eta coordinate of the RoI.
Definition Muon_ROI.h:67
RoISource getSource() const
Returns the system that detected the muon candidate.
Definition Muon_ROI.cxx:126
const std::string & getThrName() const
Return the name of the highest threshold this RoI passed.
Definition Muon_ROI.h:71
Muon_ROI()
Default constructor (for persistency purposes)
Definition Muon_ROI.cxx:23
float m_thrValue
Value of the highest threshold this RoI passed.
Definition Muon_ROI.h:112
std::string m_thrName
Name of the highest threshold this RoI passed.
Definition Muon_ROI.h:111
uint32_t getROIWord() const
Return the original 32-bit RoI word given by the LVL1 muon trigger.
Definition Muon_ROI.h:65
Hemisphere
RoI hemisphere enumeration.
Definition Muon_ROI.h:53
@ Negative
The candidate came from the -z side (side C)
Definition Muon_ROI.h:55
@ Positive
The candidate came from the +z side (side A)
Definition Muon_ROI.h:54
float getPhi() const
Legacy function returning the phi coordinate of the RoI.
Definition Muon_ROI.h:69
virtual ~Muon_ROI()
Destructor.
Definition Muon_ROI.cxx:32
bool isMoreCandInSector() const
Returns if there were other muons detected in the same sector.
Definition Muon_ROI.cxx:114
bool isVetoed() const
Returns the veto flag for the candidate.
Definition Muon_ROI.cxx:175
bool isFirstCandidate() const
Returns if the candidate had the highest pT in the sector.
Definition Muon_ROI.cxx:92
virtual double pt() const
Return the value of the highest threshold this RoI passed.
Definition Muon_ROI.h:97
float m_phi
phi coordinate of RoI
Definition Muon_ROI.h:109
Charge getCharge() const
Returns the charge sign of the muon candidate.
Definition Muon_ROI.cxx:160
uint32_t m_roiWord
32bit encoded ROI word
Definition Muon_ROI.h:106
int getRoI() const
Get the "RoI number" (position inside the sector)
Definition Muon_ROI.cxx:56
int getThrNumber() const
Get the logic number of the highest threshold this RoI passed.
Definition Muon_ROI.cxx:43
RoISource
RoI source enumeration.
Definition Muon_ROI.h:47
@ Barrel
The muon candidate was detected in the barrel region.
Definition Muon_ROI.h:48
@ Endcap
The muon candidate was detected in the endcap region.
Definition Muon_ROI.h:49
@ Forward
The muon candidate was detected in the forward region.
Definition Muon_ROI.h:50
P4PtEtaPhiMBase is a base class for classes with 4-momentum behavior, for which pt,...