124 for (chamberId = all4DSegments->id_begin(); chamberId != all4DSegments->id_end(); ++chamberId) {
127 int nsegm =
distance(range.first, range.second);
129 cout <<
" Chamber: " << *chamberId <<
" has " << nsegm <<
" 4D segments" << endl;
134 bool segmNoisy =
false;
135 if ((*segment4D).hasPhi()) {
138 map<DTSuperLayerId, vector<DTRecHit1D> > hitsBySLMap;
139 for (vector<DTRecHit1D>::const_iterator
hit = phiHits.begin();
hit != phiHits.end(); ++
hit) {
144 bool isNoisy =
false;
145 bool isFEMasked =
false;
146 bool isTDCMasked =
false;
147 bool isTrigMask =
false;
150 statusMap->
cellStatus(wireId, isNoisy, isFEMasked, isTDCMasked, isTrigMask, isDead, isNohv);
153 cout <<
"Wire: " << wireId <<
" is noisy, skipping!" << endl;
160 if ((*segment4D).hasZed()) {
164 for (vector<DTRecHit1D>::const_iterator
hit = zHits.begin();
hit != zHits.end(); ++
hit) {
167 bool isNoisy =
false;
168 bool isFEMasked =
false;
169 bool isTDCMasked =
false;
170 bool isTrigMask =
false;
174 statusMap->
cellStatus(wireId, isNoisy, isFEMasked, isTDCMasked, isTrigMask, isDead, isNohv);
177 cout <<
"Wire: " << wireId <<
" is noisy, skipping!" << endl;
186 cout <<
"skipping the segment: it contains noisy cells" << endl;
193 if ((*segment4D).hasPhi()) {
194 nHits = (((*segment4D).phiSegment())->specificRecHits()).
size();
196 cout <<
"Phi segment with number of hits: " << nHits << endl;
197 phiHistos[0]->Fill((*chamberId).wheel(), nHits);
198 phiHistos[1]->Fill((*chamberId).sector(), nHits);
199 phiHistos[2]->Fill((*chamberId).station(), nHits);
201 if ((*segment4D).hasZed()) {
202 nHits = (((*segment4D).zSegment())->specificRecHits()).
size();
204 cout <<
"Zed segment with number of hits: " << nHits << endl;
206 thetaHistos[1]->Fill((*chamberId).sector(), nHits);
207 thetaHistos[2]->Fill((*chamberId).station(), nHits);
std::pair< const_iterator, const_iterator > range
iterator range
edm::EDGetTokenT< DTRecSegment4DCollection > theRecHits4DLabel_
C::const_iterator const_iterator
constant access iterator type
std::vector< MonitorElement * > thetaHistos
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
std::vector< MonitorElement * > phiHistos
int cellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &noiseFlag, bool &feMask, bool &tdcMask, bool &trigMask, bool &deadFlag, bool &nohvFlag) const
get content