68 for (std::vector<L1CSCSPStatusDigi>::const_iterator
stat =
status->second.begin();
stat !=
status->second.end();
73 edm::LogInfo(
"CSCTFAnalyzer") <<
" No valid L1CSCStatusDigiCollection products found";
81 std::vector<csctf::TrackStub> vstubs = dtStubs->get();
82 std::cout <<
"DT size=" << vstubs.end() - vstubs.begin() << std::endl;
83 for (std::vector<csctf::TrackStub>::const_iterator stub = vstubs.begin(); stub != vstubs.end(); stub++) {
84 int dtSector = (stub->sector() - 1) * 2 + stub->subsector() - 1;
85 int dtEndcap = stub->endcap() - 1;
86 if (dtSector >= 0 && dtSector < 12 && dtEndcap >= 0 && dtEndcap < 2) {
87 dtPhi[dtSector][dtEndcap] = stub->phiPacked();
89 edm::LogInfo(
"CSCTFAnalyzer: DT digi are out of range: ")
90 <<
" dtSector=" << dtSector <<
" dtEndcap=" << dtEndcap;
92 edm::LogInfo(
"CSCTFAnalyzer") <<
" DT data: tbin=" << stub->BX() <<
" CSC sector=" << stub->sector()
93 <<
" CSC subsector=" << stub->subsector() <<
" station=" << stub->station()
94 <<
" endcap=" << stub->endcap() <<
" phi=" << stub->phiPacked()
95 <<
" phiBend=" << stub->getBend() <<
" quality=" << stub->getQuality()
96 <<
" mb_bxn=" << stub->cscid();
99 edm::LogInfo(
"CSCTFAnalyzer") <<
" No valid CSCTriggerContainer<csctf::TrackStub> products found";
113 int station = (*csc).first.station() - 1;
114 int cscId = (*csc).first.triggerCscId() - 1;
115 int sector = (*csc).first.triggerSector() - 1;
117 int tbin = lct->getBX();
118 int fpga = (subSector ? subSector - 1 :
station + 1);
120 if (sector < 0 || sector > 11 || station < 0 || station > 3 || cscId < 0 || cscId > 8 || lctId < 0 ||
122 edm::LogInfo(
"CSCTFAnalyzer: CSC digi are out of range: ");
125 edm::LogInfo(
"CSCTFAnalyzer") <<
" Front data endcap: " << (*csc).first.endcap()
126 <<
" station: " << (
station + 1) <<
" sector: " << (sector + 1)
127 <<
" subSector: " << subSector <<
" tbin: " << tbin
128 <<
" cscId: " << (cscId + 1) <<
" fpga: " << (fpga + 1) <<
" "
129 <<
"LCT(vp=" << lct->isValid() <<
",qual=" << lct->getQuality()
130 <<
",wg=" << lct->getKeyWG() <<
",strip=" << lct->getStrip()
131 <<
",link=" << lct->getMPCLink() <<
")";
135 edm::LogInfo(
"CSCTFAnalyzer") <<
" No valid CSCCorrelatedLCTDigiCollection products found";
143 for (L1CSCTrackCollection::const_iterator trk =
tracks->begin(); trk <
tracks->end(); trk++, nTrk++) {
144 int sector = 6 * (trk->first.endcap() - 1) + trk->first.sector() - 1;
145 int tbin = trk->first.BX();
146 edm::LogInfo(
"CSCTFAnalyzer") <<
" Track sector: " << (sector + 1) <<
" tbin: " << tbin <<
" "
147 <<
"TRK(mode=" << ((trk->first.ptLUTAddress() >> 16) & 0xF)
148 <<
",eta=" << trk->first.eta_packed() <<
",phi=" << trk->first.localPhi()
150 <<
" me1D=" << trk->first.me1ID() <<
" t1=" << trk->first.me1Tbin()
151 <<
" me2D=" << trk->first.me2ID() <<
" t2=" << trk->first.me2Tbin()
152 <<
" me3D=" << trk->first.me3ID() <<
" t3=" << trk->first.me3Tbin()
153 <<
" me4D=" << trk->first.me4ID() <<
" t4=" << trk->first.me4Tbin()
154 <<
" mb1D=" << trk->first.mb1ID() <<
" tb=" << trk->first.mb1Tbin();
162 int station = (*csc).first.station() - 1;
163 int cscId = (*csc).first.triggerCscId() - 1;
164 int sector = (*csc).first.triggerSector() - 1;
166 int tbin = lct->getBX();
167 int fpga = (subSector ? subSector - 1 :
station + 1);
169 if (sector < 0 || sector > 11 || station < 0 || station > 3 || cscId < 0 || cscId > 8 || lctId < 0 ||
174 if (lct->getQuality() < 100)
176 <<
" Linked LCT: " << (*csc).first.endcap() <<
" station: " << (
station + 1)
177 <<
" sector: " << (sector + 1) <<
" subSector: " << subSector <<
" tbin: " << tbin
178 <<
" cscId: " << (cscId + 1) <<
" fpga: " << (fpga + 1) <<
" LCT(vp=" << lct->isValid()
179 <<
",qual=" << lct->getQuality() <<
",wg=" << lct->getKeyWG() <<
",strip=" << lct->getStrip() <<
")";
182 <<
" Linked MB stub: " << (*csc).first.endcap() <<
" sector: " << (sector + 1)
183 <<
" subSector: " << subSector <<
" tbin: " << tbin <<
" MB(vp=" << lct->isValid()
184 <<
",qual=" << (lct->getQuality() - 100) <<
",cal=" << lct->getKeyWG() <<
",flag=" << lct->getStrip()
185 <<
",bc0=" << lct->getPattern() <<
",phiBend=" << lct->getBend() <<
",tbin=" << lct->getBX()
186 <<
",id=" << lct->getMPCLink() <<
",bx0=" << lct->getBX0() <<
",se=" << lct->getSyncErr()
187 <<
",bxn=" << lct->getCSCID() <<
",phi=" << lct->getTrknmb() <<
")";
192 edm::LogInfo(
"CSCTFAnalyzer") <<
" No valid L1CSCTrackCollection products found";