7#ifndef XAODTRIGGER_VERSIONS_MUONROI_V1_H
8#define XAODTRIGGER_VERSIONS_MUONROI_V1_H
55 const std::string& thrname,
float thrvalue,
Scalar eta() const
pseudorapidity method
Base class for elements of a container that can have aux data.
#define SG_BASE(D, B)
Declare that class D derives from class B.
Base class for elements of a container that can have aux data.
Class describing a LVL1 muon region of interest.
float eta() const
The pseudorapidity ( ) of the muon candidate.
float pt() const
the transverse momentum of the muon candidate
void setRoIExtraWord(uint32_t value)
Set the second "raw" RoI word, describing extra information of the muon candidate.
uint32_t roiExtraWord() const
The second "raw" RoI word describing extra information of the muon candidate.
static constexpr uint32_t PT_SHIFT
int getSectorAddress() const
Get the full sector address.
bool getInnerCoincidence() const
Returns whether or not there was an inner coincidence in the TGC.
static constexpr uint32_t ETA_MASK
constants to decode RoI word for Run 4+
static constexpr uint32_t CHARGE_SHIFT
static constexpr uint32_t THR_SHIFT
bool getBW3Coincidence() const
Returns whether or not there was a 3-station coincidence in the TGC.
bool isVetoed() const
Returns the veto flag for the candidate.
Hemisphere getHemisphere() const
Returns the hemisphere that detected the muon candidate.
static constexpr uint32_t ETA_SHIFT
void setEta(float v)
Set the pseudorapidity of the muon candidate.
static constexpr uint32_t PT_MASK
RoISource getSource() const
Returns the system that detected the muon candidate.
float thrValue() const
The highest threshold value (in MeV) passed by the muon candidate.
uint32_t roiWord() const
The "raw" RoI word describing the muon candidate.
bool getEtaOverlap() const
Returns whether there's overlap between the barrel-EC sectors.
void setRoIWord(uint32_t value)
Set the "raw" RoI word, describing the muon candidate.
bool getPhiOverlap() const
Returns whether there's overlap between barrel sectors.
int getThrNumber() const
Get the logic number of the highest threshold this RoI passed.
bool isMoreCandInRoI() const
Returns if there were other muons detected in the same RoI.
static constexpr uint32_t THR_MASK
float phi() const
The azimuthal angle ( ) of the muon candidate.
RoISource
RoI source enumeration.
@ Endcap
The muon candidate was detected in the endcap region.
@ Forward
The muon candidate was detected in the forward region.
@ Barrel
The muon candidate was detected in the barrel region.
static constexpr uint32_t PHI_MASK
Charge getCharge() const
Returns the charge sign of the muon candidate.
const std::string & thrName() const
The name of the highest threshold value passed by the muon candidate.
int getSectorID() const
Get the sector ID number.
MuonRoI_v1()
Default constructor.
Hemisphere
RoI hemisphere enumeration.
@ Positive
The candidate came from the +z side (side A)
@ Negative
The candidate came from the -z side (side C)
@ Neg
Candidate is a mu- from a TGC sector.
@ Pos
Candidate is a mu+ from a TGC sector.
@ Undef
This is an RPC candidate.
void setThrValue(float v)
Set the threshold value passed by the muon candidate.
bool isRun3() const
Returns extra flag at end of RoI word indicating that it's in Run3 format.
static constexpr uint32_t PHI_SHIFT
static constexpr float PT_WIDTH
void setPhi(float v)
Set the azimuthal angle of the muon candidate.
int getRoI() const
Get the "RoI number" (position inside the sector)
bool getGoodMF() const
Returns whether or not there was a good magnetic field quality in the TGC.
bool isFirstCandidate() const
Returns if the candidate had the highest pT in the sector.
void setThrName(const std::string &value)
Set the name of the threshold passed by the muon candidate.
bool isMoreCandInSector() const
Returns if there were other muons detected in the same sector.
bool isRun4() const
flag whether it is Run4+ RoI definition
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.