|
ATLAS Offline Software
|
Go to the documentation of this file.
19 MuonRoI_v1::MuonRoI_v1()
34 const std::string& thrname,
float thrvalue ) {
77 if (isRun3())
return ( (
roiWord() >> RUN3_CAND_PT_SHIFT ) & RUN3_CAND_PT_MASK );
78 else return ( (
roiWord() >> CAND_PT_SHIFT ) & CAND_PT_MASK );
92 return ( (
roiWord() >> RUN3_ROI_SHIFT ) & FORWARD_ROI_MASK );
94 return ( (
roiWord() >> RUN3_ROI_SHIFT ) & ENDCAP_ROI_MASK );
96 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 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 );
137 return ( (
roiWord() >> RUN3_CAND_SECTORID_SHIFT ) & FORWARD_SECTORID_MASK );
139 return ( (
roiWord() >> RUN3_CAND_SECTORID_SHIFT ) & ENDCAP_SECTORID_MASK );
141 return ( (
roiWord() >> RUN3_CAND_SECTORID_SHIFT ) & BARREL_SECTORID_MASK );
145 return ( (
roiWord() >> CAND_SECTORID_SHIFT ) & FORWARD_SECTORID_MASK );
147 return ( (
roiWord() >> CAND_SECTORID_SHIFT ) & ENDCAP_SECTORID_MASK );
149 return ( (
roiWord() >> CAND_SECTORID_SHIFT ) & BARREL_SECTORID_MASK );
164 if (
isRun3())
return true;
165 else return ( (
roiWord() >> CAND_HIGHEST_PT_SHIFT ) & CAND_HIGHEST_PT_MASK );
178 }
else return ( (
roiWord() >> ROI_OVERFLOW_SHIFT ) & ROI_OVERFLOW_MASK );
188 if (
isRun3())
return ( (
roiWord() >> RUN3_CAND_OVERFLOW_SHIFT ) & CAND_OVERFLOW_MASK );
189 else return ( (
roiWord() >> CAND_OVERFLOW_SHIFT ) & CAND_OVERFLOW_MASK );
232 if (
getSource() ==
Barrel)
return (
roiWord() >> RUN3_CAND_WORD_CANDFLAGS_BA_PHIOVERLAP_SHIFT) & RUN3_CAND_WORD_CANDFLAGS_BA_PHIOVERLAP_MASK;
245 if (
isRun3())
return false;
248 else return (
roiWord() >> ENDCAP_OL_SHIFT) & ENDCAP_OL_MASK;
263 if( (
roiWord() >> RUN3_CAND_TGC_CHARGE_SIGN_SHIFT) & 0
x1 ) {
269 if( (
roiWord() >> CAND_TGC_CHARGE_SIGN_SHIFT) & 0
x1 ) {
310 else return ( (
roiWord() >> CAND_VETO_SHIFT) & 0
x1 );
void initialize(uint32_t roiword, float eta, float phi, const std::string &thrname, float thrvalue)
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.
@ Neg
Candidate is a mu- from a TGC sector.
Scalar eta() const
pseudorapidity method
Hemisphere getHemisphere() const
Returns the hemisphere that detected 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.
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)
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.
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.
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)
@ Barrel
The muon candidate was detected in the barrel region.
@ Negative
The candidate came from the -z side (side C)
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.
int getSectorID() const
Get the sector ID number.
Charge getCharge() const
Returns the charge sign of the muon candidate.
RoISource getSource() const
Returns the system that detected the muon candidate.
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.