19 cout<<
"======================================================"<<endl;
23 cout<<
"DT Inputs/RPCDT Inputs"<<endl;
24 cout<<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit"<<endl;
26 for(bx=-2; bx<=2; bx++){
28 for (sector=0;sector<12; sector++ ){
33 if(dtts1 && dtts1->code()!=7) {
35 cout<<dtts1->bxNum()<<
"\t"<<dtts1->whNum()<<
"\t"<<dtts1->scNum()<<
"\t"<<dtts1->stNum()<<
"\t"<<dtts1->phi()<<
"\t"<<dtts1->phiB()<<
"\t"<<dtts1->code()<<
"\t"<<dtts1->Ts2Tag()<<
"\t"<<dtts1->BxCnt()<<
"\t0"<<endl;
37 if(dtts2 && dtts2->code()!=7) {
39 cout<<dtts2->bxNum()<<
"\t"<<dtts2->whNum()<<
"\t"<<dtts2->scNum()<<
"\t"<<dtts2->stNum()<<
"\t"<<dtts2->phi()<<
"\t"<<dtts2->phiB()<<
"\t"<<dtts2->code()<<
"\t"<<dtts2->Ts2Tag()<<
"\t"<<dtts2->BxCnt()<<
"\t0"<<endl;
49 cout<<
"RPC Inputs"<<endl;
50 cout<<
"bx\tring\tsector\tstation\troll\tlayer\tstrip\tphi\tlocalX"<<endl;
54 for(
auto digi = (*chamber).second.first ; digi != (*chamber).second.second; ++digi ) {
55 RPCDigi digi_out(digi->strip(), digi->bx());
59 cout<<digi->bx()<<
"\t"<<detid.
ring()<<
"\t"<<detid.
sector()-1<<
"\t"<<detid.
station()<<
"\t"<<detid.
roll()<<
"\t"<<detid.
layer()<<
"\t"<<digi->strip()<<
"\t"<<phi<<
"\t"<<localx<<endl;
66 cout<<
"TwinMux Output"<<endl;
67 cout<<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit"<<endl;
70 for(bx=-2; bx<=2; bx++){
72 for (sector=0;sector<12; sector++ ){
77 if(dtts1&& dtts1->code()!=7) {
79 cout<<dtts1->bxNum()<<
"\t"<<dtts1->whNum()<<
"\t"<<dtts1->scNum()<<
"\t"<<dtts1->stNum()<<
"\t"<<dtts1->phi()<<
"\t"<<dtts1->phiB()<<
"\t"<<dtts1->code()<<
"\t"<<dtts1->Ts2Tag()<<
"\t"<<dtts1->BxCnt()<<
"\t"<<dtts1->RpcBit()<<endl;
81 if(dtts2&& dtts2->code()!=7) {
83 cout<<dtts2->bxNum()<<
"\t"<<dtts2->whNum()<<
"\t"<<dtts2->scNum()<<
"\t"<<dtts2->stNum()<<
"\t"<<dtts2->phi()<<
"\t"<<dtts2->phiB()<<
"\t"<<dtts2->code()<<
"\t"<<dtts2->Ts2Tag()<<
"\t"<<dtts2->BxCnt()<<
"\t"<<dtts2->RpcBit()<<endl;
91 cout<<
"======================================================"<<endl;
97 cout<<
"======================================================"<<endl;
100 const std::vector<L1MuDTChambPhDigi> * vInCon=inphiDigis->
getContainer();
105 cout<<
"RPC->DT Inputs"<<endl;
106 cout<<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit"<<endl;
108 for(bx=-2; bx<=2; bx++){
110 for (sector=0;sector<12; sector++ ){
116 cout<<dtts1->bxNum()<<
"\t"<<dtts1->whNum()<<
"\t"<<dtts1->scNum()<<
"\t"<<dtts1->stNum()<<
"\t"<<dtts1->phi()<<
"\t"<<dtts1->phiB()<<
"\t"<<dtts1->code()<<
"\t"<<dtts1->Ts2Tag()<<
"\t"<<dtts1->BxCnt()<<
"\t0"<<endl;
127 cout<<
"RPC Inputs"<<endl;
128 cout<<
"bx\tring\tsector\tstation\troll\tlayer\tstrip\tphi\tlocalX"<<endl;
132 for(
auto digi = (*chamber).second.first ; digi != (*chamber).second.second; ++digi ) {
133 RPCDigi digi_out(digi->strip(), digi->bx());
137 cout<<digi->bx()<<
"\t"<<detid.
ring()<<
"\t"<<detid.
sector()-1<<
"\t"<<detid.
station()<<
"\t"<<detid.
roll()<<
"\t"<<detid.
layer()<<
"\t"<<digi->strip()<<
"\t"<<phi<<
"\t"<<localx<<endl;
144 cout<<
"TwinMux Output"<<endl;
145 cout<<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit"<<endl;
148 for(bx=-2; bx<=2; bx++){
150 for (sector=0;sector<12; sector++ ){
155 if(dtts1&& dtts1->code()!=7) {
157 cout<<dtts1->bxNum()<<
"\t"<<dtts1->whNum()<<
"\t"<<dtts1->scNum()<<
"\t"<<dtts1->stNum()<<
"\t"<<dtts1->phi()<<
"\t"<<dtts1->phiB()<<
"\t"<<dtts1->code()<<
"\t"<<dtts1->Ts2Tag()<<
"\t"<<dtts1->BxCnt()<<
"\t"<<dtts1->RpcBit()<<endl;
159 if(dtts2&& dtts2->code()!=7) {
161 cout<<dtts2->bxNum()<<
"\t"<<dtts2->whNum()<<
"\t"<<dtts2->scNum()<<
"\t"<<dtts2->stNum()<<
"\t"<<dtts2->phi()<<
"\t"<<dtts2->phiB()<<
"\t"<<dtts2->code()<<
"\t"<<dtts2->Ts2Tag()<<
"\t"<<dtts2->BxCnt()<<
"\t"<<dtts2->RpcBit()<<endl;
169 cout<<
"======================================================"<<endl;
L1MuDTChambPhDigi * chPhiSegm(int wheel, int stat, int sect, int bx, int ts2tag)
L1MuDTChambPhDigi const * chPhiSegm1(int wheel, int stat, int sect, int bx) const
L1MuDTChambPhDigi const * chPhiSegm2(int wheel, int stat, int sect, int bx) const
void setContainer(const Phi_Container &inputSegments)
void run(edm::Handle< L1MuDTChambPhContainer >, const L1MuDTChambPhContainer &, edm::Handle< RPCDigiCollection >, const edm::EventSetup &)
static int nRPCHits(L1MuTMChambPhContainer inCon, int bx, int wh, int sec, int st)
Phi_Container const * getContainer() const
static int radialAngle(RPCDetId, const edm::EventSetup &, int)
function - will be replaced by LUTs(?)
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
static int localX(RPCDetId, const edm::EventSetup &, int)
function - will be replaced by LUTs(?)