|
ATLAS Offline Software
|
Go to the documentation of this file.
17 MuonRoI_v1::MuonRoI_v1()
32 const std::string& thrname,
float thrvalue,
77 if (isRun4())
return 0;
78 else if (isRun3())
return ( (
roiWord() >> RUN3_CAND_PT_SHIFT ) & RUN3_CAND_PT_MASK );
79 else return ( (
roiWord() >> CAND_PT_SHIFT ) & CAND_PT_MASK );
94 return ( (
roiWord() >> RUN3_ROI_SHIFT ) & FORWARD_ROI_MASK );
96 return ( (
roiWord() >> RUN3_ROI_SHIFT ) & ENDCAP_ROI_MASK );
98 return ( (
roiWord() >> RUN3_ROI_SHIFT ) & BARREL_ROI_MASK );
102 return ( (
roiWord() >> ROI_SHIFT ) & FORWARD_ROI_MASK );
104 return ( (
roiWord() >> ROI_SHIFT ) & ENDCAP_ROI_MASK );
106 return ( (
roiWord() >> ROI_SHIFT ) & BARREL_ROI_MASK );
124 else if (
isRun3())
return ( (
roiWord() >> RUN3_CAND_SECTOR_ADDRESS_SHIFT ) & CAND_SECTOR_ADDRESS_MASK );
125 else return ( (
roiWord() >> CAND_SECTOR_ADDRESS_SHIFT ) & CAND_SECTOR_ADDRESS_MASK );
138 return ( (
roiWord() >> RUN3_CAND_SECTORID_SHIFT ) & FORWARD_SECTORID_MASK );
140 return ( (
roiWord() >> RUN3_CAND_SECTORID_SHIFT ) & ENDCAP_SECTORID_MASK );
142 return ( (
roiWord() >> RUN3_CAND_SECTORID_SHIFT ) & BARREL_SECTORID_MASK );
146 return ( (
roiWord() >> CAND_SECTORID_SHIFT ) & FORWARD_SECTORID_MASK );
148 return ( (
roiWord() >> CAND_SECTORID_SHIFT ) & ENDCAP_SECTORID_MASK );
150 return ( (
roiWord() >> CAND_SECTORID_SHIFT ) & BARREL_SECTORID_MASK );
164 if (
isRun4())
return true;
165 else if (
isRun3())
return true;
166 else return ( (
roiWord() >> CAND_HIGHEST_PT_SHIFT ) & CAND_HIGHEST_PT_MASK );
181 return ( (
roiWord() >> ROI_OVERFLOW_SHIFT ) & ROI_OVERFLOW_MASK );
191 if (
isRun4())
return false;
192 else if (
isRun3())
return ( (
roiWord() >> RUN3_CAND_OVERFLOW_SHIFT ) & CAND_OVERFLOW_MASK );
193 else return ( (
roiWord() >> CAND_OVERFLOW_SHIFT ) & CAND_OVERFLOW_MASK );
235 if (
isRun4())
return false;
237 if (
getSource() ==
Barrel)
return (
roiWord() >> RUN3_CAND_WORD_CANDFLAGS_BA_PHIOVERLAP_SHIFT) & RUN3_CAND_WORD_CANDFLAGS_BA_PHIOVERLAP_MASK;
250 if (
isRun4())
return false;
251 if (
isRun3())
return false;
254 else return (
roiWord() >> ENDCAP_OL_SHIFT) & ENDCAP_OL_MASK;
272 if( (
roiWord() >> RUN3_CAND_TGC_CHARGE_SIGN_SHIFT) & 0
x1 ) {
278 if( (
roiWord() >> CAND_TGC_CHARGE_SIGN_SHIFT) & 0
x1 ) {
290 if (
isRun4())
return false;
300 if (
isRun4())
return false;
310 if (
isRun4())
return false;
320 if (
isRun4())
return false;
322 else return ( (
roiWord() >> CAND_VETO_SHIFT) & 0
x1 );
351 if (!acc.isAvailable(*
this)) {
bool isRun4() const
flag whether it is Run4+ RoI definition
static constexpr float PT_WIDTH
void initialize(uint32_t roiword, float eta, float phi, const std::string &thrname, float thrvalue, uint32_t extraword=0u)
Initialise the object with all its properties.
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
int getSectorAddress() const
Get the full sector address.
bool getPhiOverlap() const
Returns whether there's overlap between barrel sectors.
@ Endcap
The muon candidate was detected in the endcap region.
bool getInnerCoincidence() const
Returns whether or not there was an inner coincidence in the TGC.
Helper class to provide type-safe access to aux data.
@ Neg
Candidate is a mu- from a TGC sector.
Charge getCharge() const
Returns the charge sign of the muon candidate.
float eta() const
The pseudorapidity ( ) of the muon candidate.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Hemisphere getHemisphere() const
Returns the hemisphere that detected the muon candidate.
void setPhi(float v)
Set the azimuthal angle of the muon candidate.
void setRoIWord(uint32_t value)
Set the "raw" RoI word, describing the muon candidate.
Amg::RotationMatrix3D setPhi(Amg::RotationMatrix3D mat, double angle, int convention=0)
static constexpr uint32_t PT_MASK
bool isRun3() const
Returns extra flag at end of RoI word indicating that it's in Run3 format.
bool isMoreCandInRoI() const
Returns if there were other muons detected in the same RoI.
bool isVetoed() const
Returns the veto flag for the candidate.
static constexpr uint32_t PT_SHIFT
void setThrName(const std::string &value)
Set the name of the threshold passed by the muon candidate.
Class describing a LVL1 muon region of interest.
RoISource getSource() const
Returns the system that detected the muon candidate.
void setThrValue(float v)
Set the threshold value passed by the muon candidate.
@ Undef
This is an RPC candidate.
int getRoI() const
Get the "RoI number" (position inside the sector)
void setRoIExtraWord(uint32_t value)
Set the second "raw" RoI word, describing extra information of the muon candidate.
@ Barrel
The muon candidate was detected in the barrel region.
@ Negative
The candidate came from the -z side (side C)
float pt() const
the transverse momentum of the muon candidate
RoISource
RoI source enumeration.
bool isMoreCandInSector() const
Returns if there were other muons detected in the same sector.
bool isFirstCandidate() const
Returns if the candidate had the highest pT in the sector.
Hemisphere
RoI hemisphere enumeration.
@ Forward
The muon candidate was detected in the forward region.
bool getBW3Coincidence() const
Returns whether or not there was a 3-station coincidence in the TGC.
uint32_t roiExtraWord() const
The second "raw" RoI word describing extra information of the muon candidate.
int getSectorID() const
Get the sector ID number.
static constexpr uint32_t CHARGE_SHIFT
void setEta(float v)
Set the pseudorapidity of the muon candidate.
@ Pos
Candidate is a mu+ from a TGC sector.
@ Positive
The candidate came from the +z side (side A)
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.
bool getGoodMF() const
Returns whether or not there was a good magnetic field quality in the TGC.
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
float phi() const
The azimuthal angle ( ) of the muon candidate.