19 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++ ){
33 dtts1=
nullptr; dtts2=
nullptr;
36 if(dtts1 && dtts1->
code()!=7) {
40 if(dtts2 && dtts2->
code()!=7) {
52 cout<<
"RPC Inputs"<<endl;
53 cout<<
"bx\tring\tsector\tstation\troll\tlayer\tstrip\tphi\tlocalX"<<endl;
57 for(
auto digi = (*chamber).second.first ; digi != (*chamber).second.second; ++digi ) {
58 RPCDigi digi_out(digi->strip(), digi->bx());
62 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;
69 cout<<
"TwinMux Output"<<endl;
70 cout<<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit"<<endl;
75 for(bx=-2; bx<=2; bx++){
77 for (sector=0;sector<12; sector++ ){
80 dtts1=
nullptr; dtts2=
nullptr;
84 if(dtts1&& dtts1->
code()!=7) {
88 if(dtts2&& dtts2->
code()!=7) {
98 cout<<
"======================================================"<<endl;
104 cout<<
"======================================================"<<endl;
109 const std::vector<L1MuDTChambPhDigi> * vInCon=inphiDigis->
getContainer();
114 cout<<
"RPC->DT Inputs"<<endl;
115 cout<<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit"<<endl;
117 for(bx=-2; bx<=2; bx++){
119 for (sector=0;sector<12; sector++ ){
137 cout<<
"RPC Inputs"<<endl;
138 cout<<
"bx\tring\tsector\tstation\troll\tlayer\tstrip\tphi\tlocalX"<<endl;
142 for(
auto digi = (*chamber).second.first ; digi != (*chamber).second.second; ++digi ) {
143 RPCDigi digi_out(digi->strip(), digi->bx());
147 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;
154 cout<<
"TwinMux Output"<<endl;
155 cout<<
"bx\twheel\tsector\tstation\tphi\tphib\tcode\tts2tag\tbxcnt\trpcbit"<<endl;
160 for(bx=-2; bx<=2; bx++){
162 for (sector=0;sector<12; sector++ ){
165 dtts1=
nullptr; dtts2=
nullptr;
169 if(dtts1&& dtts1->
code()!=7) {
173 if(dtts2&& dtts2->
code()!=7) {
183 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(?)