32 const std::vector< TriggerThreshold* >* theMuonConfig )
34 construct( roIWord, theRecRPCRoiTool, theRecTGCRoiTool, theMuonConfig );
42 construct( roIWord, theRecRPCRoiTool, theRecTGCRoiTool, l1menu );
49 const std::vector< TriggerThreshold* >* theMuonConfig )
85 if( temp_sysID & 0x2 )
m_sysID = 1;
86 else if( temp_sysID & 0x1 )
m_sysID = 2;
104 if( theRecRPCRoiTool ) {
107 if( theRecRPCRoiTool->
roiData( roIWord, roiData ).isSuccess() ){
113 if( theRecTGCRoiTool ) {
116 if( theRecTGCRoiTool->
roiData( roIWord, roiData ).isSuccess() ){
177 if( temp_sysID & 0x2 )
m_sysID = 1;
178 else if( temp_sysID & 0x1 )
m_sysID = 2;
197 if( theRecRoiTool ) {
200 if( theRecRoiTool->
roiData( roIWord, roiData ).isSuccess() ){
208 for(
const shared_ptr<TrigConf::L1Threshold> &thr : l1menu->thresholds(
"MU")) {
242 unsigned int maskcopy;
246 result = *uintValue & mask;
248 while ( ( maskcopy & 0x00000001 ) == 0 ) {
249 maskcopy = maskcopy >> 1;
261 string hemisphere =
"-";
263 if ( this->
sysID() == 0 ) {system =
"B";}
264 if ( this->
sysID() == 1 ) {system =
"F";}
265 if ( this->
sysID() > 1 ) {system =
"E";}
267 if ( this->
subsysID() == 1 ) {hemisphere =
"+";}
269 out <<
" Addr: " << hemisphere << system <<
" "
270 << setw( 2 ) << ios::dec << this->
sectorID()
272 <<
" " << setw( 2 ) << this->
getRoINumber() << std::setfill(
' ' )
274 <<
" pad/secOF: " << setw( 2 ) << this->
padOverflow()
unsigned int getOverlap() const
return Overlap in hardware numbering scheme
ChargeSign
Charge sign of the muon candidate.
@ UNDEFINED
Candidate coming from the RPC.
@ NEGATIVE
Negative (mu minus) candidate in the TGC.
@ POSITIVE
Positive (mu plus) candidate in the TGC.
unsigned int m_sysID
the system ID for this RoI (Barrel=0, Endcap=1, Forward=2) extracted from m_roiWord in the constructo...
bool candidateVetoed() const
Returns true if the candidate was vetoed in the multiplicity sum.
unsigned int sectorID() const
returns sector ID ROI
unsigned int m_sectorID
the sector number for this RoI extracted from m_roiWord in the constructor
unsigned int m_thresholdNumber
the pt threshold number associated with this RoI - extracted from m_roiWord in the constructor
void construct(unsigned int roIWord, const RecMuonRoiSvc *theRecRPCRoiSvc, const RecMuonRoiSvc *theRecTGCRoiSvc, const std::vector< TrigConf::TriggerThreshold * > *theMuonConfig)
unsigned int m_roiWord
this is the actual format of the data sent from the LVL1 hardware.
unsigned int m_thresholdValue
The value of the threshold in GeV.
bool firstCandidate() const
returns true if this was the highest pt candidate in this sector
bool m_firstCandidateFlag
flag indicating if this was the highest pt candidate in this sector - extracted from m_roiWord in the...
unsigned int getThresholdNumber() const
returns the Threshold Number (1 to 6) associated with this RecRoI
bool m_sectorOflFlag
flag indicating if there were more than 2 candidates in this sector - extracted from m_roiWord in the...
unsigned int sysID() const
returns system ID ROI (Barrel=0, Endcap=1, Forward=2)
unsigned int subsysID() const
returns sub-system ID ROI (0=-z,1=+z)
bool sectorOverflow() const
returns true if there were > 2 candidates in this sector
unsigned int m_roiNumber
the RoI number of this RoI - extracted from m_roiWord in the constructor
bool padOverflow() const
returns true if there were > 1 candidates in this pad
ChargeSign candidateCharge() const
Returns the change sign of the candidate.
unsigned int m_subSysID
the subSystem ID for this RoI (0=-z,1=+z) extracted from m_roiWord in the constructor
std::string getDebugString()
unsigned int m_overlap
the overlap information for this RoI extracted from m_roiWord in the constructor
bool m_padOflFlag
flag indicating if there was more than 1 candidate in this pad - extracted from m_roiWord in the cons...
unsigned int getRoINumber() const
return RoI number in hardware numbering scheme
unsigned int getBitMaskValue(const unsigned int *uintValue, const unsigned int mask)
a helper function to extract the value corresponding to a bit mask from a 32 bit unsigned int
static std::string & typeAsString(TriggerType tt)
Forward iterator to traverse the main components of the trigger configuration.