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)
144 const bool is_me11a = (detid.
station() == 1 && detid.
ring() == 1 && digi.
getStrip() >= 128);
263 _subsystem(
tp._subsystem),
264 _globalsector(
tp._globalsector),
265 _subsector(
tp._subsector),
291 auto isclose = [](
float a,
float b,
float rtol = 1.e-5,
float atol = 1.e-8) {
297 return (this->
_dt.
bx == tp.
_dt.
bx && this->_dt.wheel ==
tp._dt.wheel && this->_dt.sector ==
tp._dt.sector &&
298 this->_dt.station ==
tp._dt.station && this->_dt.radialAngle ==
tp._dt.radialAngle &&
299 this->_dt.bendingAngle ==
tp._dt.bendingAngle && this->_dt.qualityCode ==
tp._dt.qualityCode &&
300 this->_dt.Ts2TagCode ==
tp._dt.Ts2TagCode && this->_dt.BxCntCode ==
tp._dt.BxCntCode &&
301 this->_dt.RpcBit ==
tp._dt.RpcBit && this->_dt.theta_bti_group ==
tp._dt.theta_bti_group &&
302 this->_dt.segment_number ==
tp._dt.segment_number && this->_dt.theta_code ==
tp._dt.theta_code &&
303 this->_dt.theta_quality ==
tp._dt.theta_quality && this->_id ==
tp._id &&
304 this->_subsystem ==
tp._subsystem && this->_globalsector ==
tp._globalsector &&
305 this->_subsector ==
tp._subsector);
308 this->_csc.quality ==
tp._csc.quality && this->_csc.keywire ==
tp._csc.keywire &&
309 this->_csc.strip ==
tp._csc.strip && this->_csc.pattern ==
tp._csc.pattern &&
310 this->_csc.bend ==
tp._csc.bend && this->_csc.bx ==
tp._csc.bx && this->_csc.mpclink ==
tp._csc.mpclink &&
311 this->_csc.bx0 ==
tp._csc.bx0 && this->_csc.syncErr ==
tp._csc.syncErr &&
312 this->_csc.cscID ==
tp._csc.cscID && this->_csc.alct_quality ==
tp._csc.alct_quality &&
313 this->_csc.clct_quality ==
tp._csc.clct_quality && this->_id ==
tp._id &&
314 this->_subsystem ==
tp._subsystem && this->_globalsector ==
tp._globalsector &&
315 this->_subsector ==
tp._subsector);
318 this->_rpc.strip_hi ==
tp._rpc.strip_hi && this->_rpc.phi_int ==
tp._rpc.phi_int &&
319 this->_rpc.theta_int ==
tp._rpc.theta_int && this->_rpc.emtf_sector ==
tp._rpc.emtf_sector &&
320 this->_rpc.emtf_link ==
tp._rpc.emtf_link && this->_rpc.bx ==
tp._rpc.bx &&
321 this->_rpc.valid ==
tp._rpc.valid && isclose(this->
_rpc.
x, tp.
_rpc.
x) &&
327 return (this->
_gem.
pad == tp.
_gem.
pad && this->_gem.pad_low ==
tp._gem.pad_low &&
328 this->_gem.pad_hi ==
tp._gem.pad_hi && this->_gem.bx ==
tp._gem.bx && this->_id ==
tp._id &&
329 this->_subsystem ==
tp._subsystem && this->_globalsector ==
tp._globalsector &&
330 this->_subsector ==
tp._subsector);
333 this->_me0.phiposition ==
tp._me0.phiposition && this->_me0.partition ==
tp._me0.partition &&
334 this->_me0.deltaphi ==
tp._me0.deltaphi && this->_me0.bend ==
tp._me0.bend &&
335 this->_me0.bx ==
tp._me0.bx && this->_id ==
tp._id && this->_subsystem ==
tp._subsystem &&
336 this->_globalsector ==
tp._globalsector && this->_subsector ==
tp._subsector);
339 <<
"The specified subsystem for this track stub is out of range" << std::endl;
359 <<
"The specified subsystem for this track stub is out of range" << std::endl;
378 <<
"The specified subsystem for this track stub is out of range" << std::endl;
397 <<
"The specified subsystem for this track stub is out of range" << std::endl;
416 <<
"The specified subsystem for this track stub is out of range" << std::endl;
423 out << subsystem_names[
idx] <<
" Trigger Primitive" << std::endl;
427 out << detId<DTChamberId>() << std::endl;
428 out <<
"Local BX : " <<
_dt.
bx << std::endl;
441 out << detId<CSCDetId>() << std::endl;
442 out <<
"Local BX : " <<
_csc.
bx << std::endl;
458 out << detId<RPCDetId>() << std::endl;
459 out <<
"Local BX : " <<
_rpc.
bx << std::endl;
468 out <<
"Local x : " <<
_rpc.
x << std::endl;
469 out <<
"Local y : " <<
_rpc.
y << std::endl;
474 out << detId<GEMDetId>() << std::endl;
475 out <<
"Local BX : " <<
_gem.
bx << std::endl;
481 out << detId<ME0DetId>() << std::endl;
482 out <<
"Local BX : " <<
_me0.
bx << std::endl;
492 <<
"The specified subsystem for this track stub is out of range" << std::endl;