141 if(checkNoisyChannels) {
151 for (chamberId = all4DSegments->id_begin();
152 chamberId != all4DSegments->id_end();
156 int nsegm = distance(range.first, range.second);
158 cout <<
" Chamber: " << *chamberId <<
" has " << nsegm
159 <<
" 4D segments" << endl;
164 segment4D!=range.second;
168 bool segmNoisy =
false;
169 if((*segment4D).hasPhi()){
172 map<DTSuperLayerId,vector<DTRecHit1D> > hitsBySLMap;
173 for(vector<DTRecHit1D>::const_iterator
hit = phiHits.begin();
174 hit != phiHits.end(); ++
hit) {
178 if(checkNoisyChannels) {
179 bool isNoisy =
false;
180 bool isFEMasked =
false;
181 bool isTDCMasked =
false;
182 bool isTrigMask =
false;
185 statusMap->cellStatus(wireId, isNoisy, isFEMasked, isTDCMasked, isTrigMask, isDead, isNohv);
188 cout <<
"Wire: " << wireId <<
" is noisy, skipping!" << endl;
195 if((*segment4D).hasZed()) {
199 for(vector<DTRecHit1D>::const_iterator
hit = zHits.begin();
200 hit != zHits.end(); ++
hit) {
202 if(checkNoisyChannels) {
203 bool isNoisy =
false;
204 bool isFEMasked =
false;
205 bool isTDCMasked =
false;
206 bool isTrigMask =
false;
210 statusMap->cellStatus(wireId, isNoisy, isFEMasked, isTDCMasked, isTrigMask, isDead, isNohv);
213 cout <<
"Wire: " << wireId <<
" is noisy, skipping!" << endl;
222 cout<<
"skipping the segment: it contains noisy cells"<<endl;
229 if((*segment4D).hasPhi()){
230 nHits = (((*segment4D).phiSegment())->specificRecHits()).
size();
232 cout<<
"Phi segment with number of hits: "<<nHits<<endl;
233 phiHistos[0]->Fill((*chamberId).wheel(), nHits);
234 phiHistos[1]->Fill((*chamberId).sector(), nHits);
235 phiHistos[2]->Fill((*chamberId).station(), nHits);
237 if((*segment4D).hasZed()) {
238 nHits = (((*segment4D).zSegment())->specificRecHits()).
size();
240 cout<<
"Zed segment with number of hits: "<<nHits<<endl;
242 thetaHistos[1]->Fill((*chamberId).sector(), nHits);
243 thetaHistos[2]->Fill((*chamberId).station(), nHits);
T getUntrackedParameter(std::string const &, T const &) const
std::pair< const_iterator, const_iterator > range
iterator range
std::vector< MonitorElement * > thetaHistos
C::const_iterator const_iterator
constant access iterator type
std::vector< MonitorElement * > phiHistos
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
edm::ParameterSet parameters
tuple size
Write out results.
std::string theRecHits4DLabel