21 cout <<
"======================================================" << endl;
25 cout <<
"DT Inputs/RPCDT Inputs" << endl;
26 cout <<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit" << endl;
28 for (
bx = -2;
bx <= 2;
bx++) {
30 for (sector = 0; sector < 12; sector++) {
34 if (dtts1 && dtts1->code() != 7) {
36 cout << dtts1->bxNum() <<
"\t" << dtts1->whNum() <<
"\t" << dtts1->scNum() <<
"\t" << dtts1->stNum() <<
"\t"
37 << dtts1->phi() <<
"\t" << dtts1->phiB() <<
"\t" << dtts1->code() <<
"\t" << dtts1->Ts2Tag() <<
"\t"
38 << dtts1->BxCnt() <<
"\t0" << endl;
40 if (dtts2 && dtts2->code() != 7) {
42 cout << dtts2->bxNum() <<
"\t" << dtts2->whNum() <<
"\t" << dtts2->scNum() <<
"\t" << dtts2->stNum() <<
"\t"
43 << dtts2->phi() <<
"\t" << dtts2->phiB() <<
"\t" << dtts2->code() <<
"\t" << dtts2->Ts2Tag() <<
"\t"
44 << dtts2->BxCnt() <<
"\t0" << endl;
53 cout <<
"RPC Inputs" << endl;
54 cout <<
"bx\tring\tsector\tstation\troll\tlayer\tstrip\tphi\tlocalX" << endl;
58 for (
auto digi = (*chamber).second.first; digi != (*chamber).second.second; ++digi) {
59 RPCDigi digi_out(digi->strip(), digi->bx());
63 cout << digi->bx() <<
"\t" << detid.
ring() <<
"\t" << detid.
sector() - 1 <<
"\t" << detid.
station() <<
"\t"
64 << detid.
roll() <<
"\t" << detid.
layer() <<
"\t" << digi->strip() <<
"\t" << phi <<
"\t" << localx << endl;
69 cout <<
"TwinMux Output" << endl;
70 cout <<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit" << endl;
72 for (
bx = -2;
bx <= 2;
bx++) {
74 for (sector = 0; sector < 12; sector++) {
78 if (dtts1 && dtts1->code() != 7) {
80 cout << dtts1->bxNum() <<
"\t" << dtts1->whNum() <<
"\t" << dtts1->scNum() <<
"\t" << dtts1->stNum() <<
"\t"
81 << dtts1->phi() <<
"\t" << dtts1->phiB() <<
"\t" << dtts1->code() <<
"\t" << dtts1->Ts2Tag() <<
"\t"
82 << dtts1->BxCnt() <<
"\t" << dtts1->RpcBit() << endl;
84 if (dtts2 && dtts2->code() != 7) {
86 cout << dtts2->bxNum() <<
"\t" << dtts2->whNum() <<
"\t" << dtts2->scNum() <<
"\t" << dtts2->stNum() <<
"\t"
87 << dtts2->phi() <<
"\t" << dtts2->phiB() <<
"\t" << dtts2->code() <<
"\t" << dtts2->Ts2Tag() <<
"\t"
88 << dtts2->BxCnt() <<
"\t" << dtts2->RpcBit() << endl;
95 cout <<
"======================================================" << endl;
102 cout <<
"======================================================" << endl;
105 const std::vector<L1MuDTChambPhDigi>* vInCon = inphiDigis->
getContainer();
109 cout <<
"RPC->DT Inputs" << endl;
110 cout <<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit" << endl;
112 for (
bx = -2;
bx <= 2;
bx++) {
114 for (sector = 0; sector < 12; sector++) {
120 cout << dtts1->bxNum() <<
"\t" << dtts1->whNum() <<
"\t" << dtts1->scNum() <<
"\t" << dtts1->stNum()
121 <<
"\t" << dtts1->phi() <<
"\t" << dtts1->phiB() <<
"\t" << dtts1->code() <<
"\t" << dtts1->Ts2Tag()
122 <<
"\t" << dtts1->BxCnt() <<
"\t0" << endl;
132 cout <<
"RPC Inputs" << endl;
133 cout <<
"bx\tring\tsector\tstation\troll\tlayer\tstrip\tphi\tlocalX" << endl;
137 for (
auto digi = (*chamber).second.first; digi != (*chamber).second.second; ++digi) {
138 RPCDigi digi_out(digi->strip(), digi->bx());
142 cout << digi->bx() <<
"\t" << detid.
ring() <<
"\t" << detid.
sector() - 1 <<
"\t" << detid.
station() <<
"\t"
143 << detid.
roll() <<
"\t" << detid.
layer() <<
"\t" << digi->strip() <<
"\t" << phi <<
"\t" << localx << endl;
148 cout <<
"TwinMux Output" << endl;
149 cout <<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit" << endl;
151 for (
bx = -2;
bx <= 2;
bx++) {
153 for (sector = 0; sector < 12; sector++) {
157 if (dtts1 && dtts1->code() != 7) {
159 cout << dtts1->bxNum() <<
"\t" << dtts1->whNum() <<
"\t" << dtts1->scNum() <<
"\t" << dtts1->stNum() <<
"\t"
160 << dtts1->phi() <<
"\t" << dtts1->phiB() <<
"\t" << dtts1->code() <<
"\t" << dtts1->Ts2Tag() <<
"\t"
161 << dtts1->BxCnt() <<
"\t" << dtts1->RpcBit() << endl;
163 if (dtts2 && dtts2->code() != 7) {
165 cout << dtts2->bxNum() <<
"\t" << dtts2->whNum() <<
"\t" << dtts2->scNum() <<
"\t" << dtts2->stNum() <<
"\t"
166 << dtts2->phi() <<
"\t" << dtts2->phiB() <<
"\t" << dtts2->code() <<
"\t" << dtts2->Ts2Tag() <<
"\t"
167 << dtts2->BxCnt() <<
"\t" << dtts2->RpcBit() << endl;
174 cout <<
"======================================================" << endl;