124 DTRecSegment4DCollection::id_iterator chamberId;
125 for (chamberId = all4DSegments->id_begin(); chamberId != all4DSegments->id_end(); ++chamberId){
128 int nsegm =
distance(range.first, range.second);
130 cout <<
" Chamber: " << *chamberId <<
" has " << nsegm
131 <<
" 4D segments" << endl;
137 bool segmNoisy =
false;
138 if((*segment4D).hasPhi()){
141 map<DTSuperLayerId,vector<DTRecHit1D> > hitsBySLMap;
142 for(vector<DTRecHit1D>::const_iterator
hit = phiHits.begin();
hit != phiHits.end(); ++
hit) {
147 bool isNoisy =
false;
148 bool isFEMasked =
false;
149 bool isTDCMasked =
false;
150 bool isTrigMask =
false;
153 statusMap->
cellStatus(wireId, isNoisy, isFEMasked, isTDCMasked, isTrigMask, isDead, isNohv);
156 cout <<
"Wire: " << wireId <<
" is noisy, skipping!" << endl;
163 if((*segment4D).hasZed()) {
167 for(vector<DTRecHit1D>::const_iterator
hit = zHits.begin();
168 hit != zHits.end(); ++
hit) {
171 bool isNoisy =
false;
172 bool isFEMasked =
false;
173 bool isTDCMasked =
false;
174 bool isTrigMask =
false;
178 statusMap->
cellStatus(wireId, isNoisy, isFEMasked, isTDCMasked, isTrigMask, isDead, isNohv);
181 cout <<
"Wire: " << wireId <<
" is noisy, skipping!" << endl;
190 cout<<
"skipping the segment: it contains noisy cells"<<endl;
197 if((*segment4D).hasPhi()){
198 nHits = (((*segment4D).phiSegment())->specificRecHits()).
size();
200 cout<<
"Phi segment with number of hits: "<<nHits<<endl;
201 phiHistos[0]->Fill((*chamberId).wheel(), nHits);
202 phiHistos[1]->Fill((*chamberId).sector(), nHits);
203 phiHistos[2]->Fill((*chamberId).station(), nHits);
205 if((*segment4D).hasZed()) {
206 nHits = (((*segment4D).zSegment())->specificRecHits()).
size();
208 cout<<
"Zed segment with number of hits: "<<nHits<<endl;
210 thetaHistos[1]->Fill((*chamberId).sector(), nHits);
211 thetaHistos[2]->Fill((*chamberId).station(), nHits);
std::pair< const_iterator, const_iterator > range
iterator range
edm::EDGetTokenT< DTRecSegment4DCollection > theRecHits4DLabel_
std::vector< MonitorElement * > thetaHistos
std::vector< MonitorElement * > phiHistos
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
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