25 const char subsystem_names[][4] = {
"DT",
"CSC",
"RPC",
"GEM",
"ME0"};
32 const int segment_number)
59 const int theta_bti_group)
87 const int theta_bti_group)
137 const bool is_me11a = (detid.
station() == 1 && detid.
ring() == 1 && digi.
getStrip() >= 128);
257 _subsystem(
tp._subsystem),
258 _globalsector(
tp._globalsector),
259 _subsector(
tp._subsector),
285 auto isclose = [](
float a,
float b,
float rtol = 1.e-5,
float atol = 1.e-8) {
291 return (this->
_dt.
bx == tp.
_dt.
bx && this->_dt.wheel ==
tp._dt.wheel && this->_dt.sector ==
tp._dt.sector &&
292 this->_dt.station ==
tp._dt.station && this->_dt.radialAngle ==
tp._dt.radialAngle &&
293 this->_dt.bendingAngle ==
tp._dt.bendingAngle && this->_dt.qualityCode ==
tp._dt.qualityCode &&
294 this->_dt.Ts2TagCode ==
tp._dt.Ts2TagCode && this->_dt.BxCntCode ==
tp._dt.BxCntCode &&
295 this->_dt.RpcBit ==
tp._dt.RpcBit && this->_dt.theta_bti_group ==
tp._dt.theta_bti_group &&
296 this->_dt.segment_number ==
tp._dt.segment_number && this->_dt.theta_code ==
tp._dt.theta_code &&
297 this->_dt.theta_quality ==
tp._dt.theta_quality && this->_id ==
tp._id &&
298 this->_subsystem ==
tp._subsystem && this->_globalsector ==
tp._globalsector &&
299 this->_subsector ==
tp._subsector);
302 this->_csc.quality ==
tp._csc.quality && this->_csc.keywire ==
tp._csc.keywire &&
303 this->_csc.strip ==
tp._csc.strip && this->_csc.pattern ==
tp._csc.pattern &&
304 this->_csc.bend ==
tp._csc.bend && this->_csc.bx ==
tp._csc.bx && this->_csc.mpclink ==
tp._csc.mpclink &&
305 this->_csc.bx0 ==
tp._csc.bx0 && this->_csc.syncErr ==
tp._csc.syncErr &&
306 this->_csc.cscID ==
tp._csc.cscID && this->_csc.alct_quality ==
tp._csc.alct_quality &&
307 this->_csc.clct_quality ==
tp._csc.clct_quality && this->_id ==
tp._id &&
308 this->_subsystem ==
tp._subsystem && this->_globalsector ==
tp._globalsector &&
309 this->_subsector ==
tp._subsector);
312 this->_rpc.strip_hi ==
tp._rpc.strip_hi && this->_rpc.phi_int ==
tp._rpc.phi_int &&
313 this->_rpc.theta_int ==
tp._rpc.theta_int && this->_rpc.emtf_sector ==
tp._rpc.emtf_sector &&
314 this->_rpc.emtf_link ==
tp._rpc.emtf_link && this->_rpc.bx ==
tp._rpc.bx &&
315 this->_rpc.valid ==
tp._rpc.valid && isclose(this->
_rpc.
x, tp.
_rpc.
x) &&
321 return (this->
_gem.
pad == tp.
_gem.
pad && this->_gem.pad_low ==
tp._gem.pad_low &&
322 this->_gem.pad_hi ==
tp._gem.pad_hi && this->_gem.bx ==
tp._gem.bx && this->_id ==
tp._id &&
323 this->_subsystem ==
tp._subsystem && this->_globalsector ==
tp._globalsector &&
324 this->_subsector ==
tp._subsector);
327 this->_me0.phiposition ==
tp._me0.phiposition && this->_me0.partition ==
tp._me0.partition &&
328 this->_me0.deltaphi ==
tp._me0.deltaphi && this->_me0.bend ==
tp._me0.bend &&
329 this->_me0.bx ==
tp._me0.bx && this->_id ==
tp._id && this->_subsystem ==
tp._subsystem &&
330 this->_globalsector ==
tp._globalsector && this->_subsector ==
tp._subsector);
333 <<
"The specified subsystem for this track stub is out of range" << std::endl;
353 <<
"The specified subsystem for this track stub is out of range" << std::endl;
372 <<
"The specified subsystem for this track stub is out of range" << std::endl;
391 <<
"The specified subsystem for this track stub is out of range" << std::endl;
410 <<
"The specified subsystem for this track stub is out of range" << std::endl;
417 out << subsystem_names[
idx] <<
" Trigger Primitive" << std::endl;
421 out << detId<DTChamberId>() << std::endl;
422 out <<
"Local BX : " <<
_dt.
bx << std::endl;
435 out << detId<CSCDetId>() << std::endl;
436 out <<
"Local BX : " <<
_csc.
bx << std::endl;
452 out << detId<RPCDetId>() << std::endl;
453 out <<
"Local BX : " <<
_rpc.
bx << std::endl;
462 out <<
"Local x : " <<
_rpc.
x << std::endl;
463 out <<
"Local y : " <<
_rpc.
y << std::endl;
468 out << detId<GEMDetId>() << std::endl;
469 out <<
"Local BX : " <<
_gem.
bx << std::endl;
475 out << detId<ME0DetId>() << std::endl;
476 out <<
"Local BX : " <<
_me0.
bx << std::endl;
486 <<
"The specified subsystem for this track stub is out of range" << std::endl;