Operations.
89 LogVerbatim(
"NoiseDBValidation")<<
"[DTnoiseDBValidation] Parameters initialization";
95 diffHisto_ =
dbe_->book1D(
"noisyCellDiff",
"percentual (wrt the previous db) total number of noisy cells",1, 0.5, 1.5);
97 wheelHisto_ =
dbe_->book1D(
"wheelOccupancy",
"percentual noisy cells occupancy per wheel",5, -2.5, 2.5);
103 stationHisto_ =
dbe_->book1D(
"stationOccupancy",
"percentual noisy cells occupancy per station",4, 0.5, 4.5);
108 sectorHisto_ =
dbe_->book1D(
"sectorOccupancy",
"percentual noisy cells occupancy per sector",12, 0.5, 12.5);
121 layerHisto_ =
dbe_->book1D(
"layerOccupancy",
"percentual noisy cells occupancy per layer",3, 0.5, 3.5);
131 map<int, int> sectMap;
133 map<int, int> layerMap;
139 DTWireId wireId((*noise).first.wheelId,
140 (*noise).first.stationId,
141 (*noise).first.sectorId,
143 (*noise).first.layerId,
144 (*noise).first.cellId);
145 LogVerbatim(
"NoiseDBValidation") <<
"Ref. noisy wire: " << wireId;
152 DTWireId wireId((*noise).first.wheelId,
153 (*noise).first.stationId,
154 (*noise).first.sectorId,
156 (*noise).first.layerId,
157 (*noise).first.cellId);
158 LogVerbatim(
"NoiseDBValidation") <<
"Valid. noisy wire: " << wireId;
161 whMap[(*noise).first.wheelId]++;
162 stMap[(*noise).first.stationId]++;
163 sectMap[(*noise).first.sectorId]++;
167 if((*noise).first.cellId<=10)
169 if((*noise).first.cellId>10 && (*noise).first.cellId<(lastWire-10))
171 if((*noise).first.cellId>=(lastWire-10))
174 const DTChamberId chId = wireId.layerId().superlayerId().chamberId();
176 int binNumber = 4*(wireId.superLayer() - 1) + wireId.layer();
185 for(map<int, int >::const_iterator
wheel = whMap.begin();
186 wheel != whMap.end();
190 for(map<int, int >::const_iterator
station = stMap.begin();
195 for(map<int, int >::const_iterator sector = sectMap.begin();
196 sector != sectMap.end();
200 for(map<int, int >::const_iterator layer = layerMap.begin();
201 layer != layerMap.end();
MonitorElement * wheelHisto_
const_iterator end() const
std::map< DTChamberId, MonitorElement * > noiseHistoMap_
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.
def binNumber(station, sl)
Abs< T >::type abs(const T &t)
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > >::const_iterator const_iterator
Access methods to data.
MonitorElement * diffHisto_
edm::ESHandle< DTGeometry > dtGeom_
MonitorElement * stationHisto_
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.
MonitorElement * layerHisto_
const_iterator begin() const
MonitorElement * sectorHisto_