Operations.
91 LogVerbatim(
"NoiseDBValidation")<<
"[DTnoiseDBValidation] Parameters initialization";
97 diffHisto_ =
dbe_->
book1D(
"noisyCellDiff",
"percentual (wrt the previous db) total number of noisy cells",1, 0.5, 1.5);
99 wheelHisto_ =
dbe_->
book1D(
"wheelOccupancy",
"percentual noisy cells occupancy per wheel",5, -2.5, 2.5);
110 sectorHisto_ =
dbe_->
book1D(
"sectorOccupancy",
"percentual noisy cells occupancy per sector",12, 0.5, 12.5);
123 layerHisto_ =
dbe_->
book1D(
"layerOccupancy",
"percentual noisy cells occupancy per layer",3, 0.5, 3.5);
133 map<int, int> sectMap;
135 map<int, int> layerMap;
141 DTWireId wireId((*noise).first.wheelId,
142 (*noise).first.stationId,
143 (*noise).first.sectorId,
145 (*noise).first.layerId,
146 (*noise).first.cellId);
147 LogVerbatim(
"NoiseDBValidation") <<
"Ref. noisy wire: " << wireId;
154 DTWireId wireId((*noise).first.wheelId,
155 (*noise).first.stationId,
156 (*noise).first.sectorId,
158 (*noise).first.layerId,
159 (*noise).first.cellId);
160 LogVerbatim(
"NoiseDBValidation") <<
"Valid. noisy wire: " << wireId;
163 whMap[(*noise).first.wheelId]++;
164 stMap[(*noise).first.stationId]++;
165 sectMap[(*noise).first.sectorId]++;
169 if((*noise).first.cellId<=10)
171 if((*noise).first.cellId>10 && (*noise).first.cellId<(lastWire-10))
173 if((*noise).first.cellId>=(lastWire-10))
176 const DTChamberId chId = wireId.layerId().superlayerId().chamberId();
178 int binNumber = 4*(wireId.superLayer() - 1) + wireId.layer();
187 for(map<int, int >::const_iterator wheel = whMap.begin();
188 wheel != whMap.end();
192 for(map<int, int >::const_iterator
station = stMap.begin();
197 for(map<int, int >::const_iterator sector = sectMap.begin();
198 sector != sectMap.end();
202 for(map<int, int >::const_iterator layer = layerMap.begin();
203 layer != layerMap.end();
MonitorElement * wheelHisto_
const_iterator end() const
std::map< DTChamberId, MonitorElement * > noiseHistoMap_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
void bookHisto(const DTChamberId &)
const DTStatusFlag * noiseRefMap_
const DTStatusFlag * noiseMap_
int lastChannel() const
Returns the wire number of the last wire.
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > >::const_iterator const_iterator
Access methods to data.
MonitorElement * diffHisto_
edm::ESHandle< DTGeometry > dtGeom_
MonitorElement * stationHisto_
MonitorElement * layerHisto_
const_iterator begin() const
MonitorElement * sectorHisto_