CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
HGCalDigiValidation Class Reference
Inheritance diagram for HGCalDigiValidation:
one::DQMEDAnalyzer< T > one::dqmimplementation::DQMBaseClass< T... >

Classes

struct  digiInfo
 

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (const edm::Run &, const edm::EventSetup &) override
 
 HGCalDigiValidation (const edm::ParameterSet &)
 
 ~HGCalDigiValidation () override
 
- Public Member Functions inherited from one::DQMEDAnalyzer< T >
 DQMEDAnalyzer ()=default
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete
 
 ~DQMEDAnalyzer () override=default
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

template<class T1 , class T2 >
void digiValidation (const T1 &detId, const T2 *geom, int layer, uint16_t adc, double charge)
 
void fillDigiInfo (digiInfo &hinfo)
 
void fillDigiInfo ()
 
void fillOccupancyMap (std::map< int, int > &OccupancyMap, int layer)
 

Private Attributes

std::vector< MonitorElement * > ADC_
 
std::vector< MonitorElement * > charge_
 
std::vector< MonitorElement * > DigiOccupancy_Minus_
 
std::vector< MonitorElement * > DigiOccupancy_Plus_
 
std::vector< MonitorElement * > DigiOccupancy_XY_
 
edm::EDGetToken digiSource_
 
int firstLayer_
 
bool ifHCAL_
 
bool ifNose_
 
int layers_
 
MonitorElementMeanDigiOccupancy_Minus_
 
MonitorElementMeanDigiOccupancy_Plus_
 
std::string nameDetector_
 
std::map< int, int > OccupancyMap_minus_
 
std::map< int, int > OccupancyMap_plus_
 
int SampleIndx_
 
int verbosity_
 

Detailed Description

Definition at line 55 of file HGCalDigiValidation.cc.

Constructor & Destructor Documentation

HGCalDigiValidation::HGCalDigiValidation ( const edm::ParameterSet iConfig)
explicit

Definition at line 102 of file HGCalDigiValidation.cc.

References digiSource_, Exception, edm::ParameterSet::getParameter(), ifHCAL_, nameDetector_, and groupFilesInBlocks::temp.

102  :
103  nameDetector_(iConfig.getParameter<std::string>("DetectorName")),
104  ifNose_(iConfig.getParameter<bool>("ifNose")),
105  ifHCAL_(iConfig.getParameter<bool>("ifHCAL")),
106  verbosity_(iConfig.getUntrackedParameter<int>("Verbosity",0)),
107  SampleIndx_(iConfig.getUntrackedParameter<int>("SampleIndx",0)),
108  firstLayer_(1) {
109 
110  auto temp = iConfig.getParameter<edm::InputTag>("DigiSource");
111  if ((nameDetector_ == "HGCalEESensitive") ||
112  (nameDetector_ == "HGCalHESiliconSensitive") ||
113  (nameDetector_ == "HGCalHEScintillatorSensitive") ||
114  (nameDetector_ == "HFNoseSensitive")) {
115  digiSource_ = consumes<HGCalDigiCollection>(temp);
116  } else if (nameDetector_ == "HCal") {
117  if (ifHCAL_) digiSource_ = consumes<QIE11DigiCollection>(temp);
118  else digiSource_ = consumes<HGCalDigiCollection>(temp);
119  } else {
120  throw cms::Exception("BadHGCDigiSource")
121  << "HGCal DetectorName given as " << nameDetector_ << " must be: "
122  << "\"HGCalEESensitive\", \"HGCalHESiliconSensitive\", "
123  << "\"HGCalHEScintillatorSensitive\", \"HFNoseSensitive\", "
124  << "or \"HCal\"!";
125  }
126 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetToken digiSource_
HGCalDigiValidation::~HGCalDigiValidation ( )
inlineoverride

Member Function Documentation

void HGCalDigiValidation::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
override

Definition at line 139 of file HGCalDigiValidation.cc.

References ecalMGPA::adc(), HcalCoderDb::adc2fC(), AlignmentProducer_cff::calibrations, ALCARECOTkAlJpsiMuMu_cff::charge, HGCSample::data(), HcalDetId::depth(), digiSource_, digiValidation(), edm::EventID::event(), fillDigiInfo(), muonCSCDigis_cfi::gain, relativeConstraints::geom, motionPolicyChamber::geom0, geometryDiff::geom1, HGCalTopology::geomMode(), edm::EventSetup::get(), edm::Event::getByToken(), HcalDbService::getHcalCalibrations(), HcalDbService::getHcalCoder(), HcalDbService::getHcalShape(), HcalEndcap, HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, QIE11DataFrame::id(), edm::EventBase::id(), ifHCAL_, edm::ESHandleBase::isValid(), edm::HandleBase::isValid(), HGCScintillatorDetId::layer(), HGCalDetId::layer(), HGCSiliconDetId::layer(), HFNoseDetId::layer(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, nameDetector_, OccupancyMap_minus_, OccupancyMap_plus_, HcalCalibrations::pedestal(), edm::Handle< T >::product(), edm::ESHandle< T >::product(), SampleIndx_, edm::SortedCollection< T, SORT >::size(), edm::DataFrameContainer::size(), HcalDetId::subdet(), HGCSample::toa(), HGCalGeometry::topology(), HGCalGeometryMode::Trapezoid, and verbosity_.

Referenced by ~HGCalDigiValidation().

140  {
141  OccupancyMap_plus_.clear();
142  OccupancyMap_minus_.clear();
143 
144  const HGCalGeometry* geom0(nullptr);
145  const CaloGeometry* geom1(nullptr);
146  int geomType(0);
147  if (nameDetector_ == "HCal") {
149  iSetup.get<CaloGeometryRecord>().get(geom);
150  if (!geom.isValid())
151  edm::LogVerbatim("HGCalValidation") << "HGCalDigiValidation: Cannot get "
152  << "valid Geometry Object for "
153  << nameDetector_;
154  geom1 = geom.product();
155  } else {
157  iSetup.get<IdealGeometryRecord>().get(nameDetector_, geom);
158  if (!geom.isValid())
159  edm::LogVerbatim("HGCalValidation") << "HGCalDigiValidation: Cannot get "
160  << "valid Geometry Object for "
161  << nameDetector_;
162  geom0 = geom.product();
163  HGCalGeometryMode::GeometryMode mode = geom0->topology().geomMode();
164  if ((mode == HGCalGeometryMode::Hexagon8) ||
165  (mode == HGCalGeometryMode::Hexagon8Full)) geomType = 1;
166  else if (mode == HGCalGeometryMode::Trapezoid) geomType = 2;
167  if (nameDetector_ == "HFNoseSensitive") geomType = 3;
168  }
169 
170  unsigned int ntot(0), nused(0);
171  if (nameDetector_ == "HGCalEESensitive") {
172  //HGCalEE
173  edm::Handle<HGCalDigiCollection> theHGCEEDigiContainers;
174  iEvent.getByToken(digiSource_, theHGCEEDigiContainers);
175  if (theHGCEEDigiContainers.isValid()) {
176  if (verbosity_>0)
177  edm::LogVerbatim("HGCalValidation") << nameDetector_ << " with "
178  << theHGCEEDigiContainers->size()
179  << " element(s)";
180  for (const auto & it: *(theHGCEEDigiContainers.product())) {
181  ntot++; nused++;
182  DetId detId = it.id();
183  int layer = ((geomType == 0) ? HGCalDetId(detId).layer() :
184  (geomType == 1) ?
185  HGCSiliconDetId(detId).layer() :
186  HFNoseDetId(detId).layer());
187  const HGCSample& hgcSample = it.sample(SampleIndx_);
188  uint16_t gain = hgcSample.toa();
189  uint16_t adc = hgcSample.data();
190  double charge = adc*gain;
191  digiValidation(detId, geom0, layer, adc, charge);
192  }
193  fillDigiInfo();
194  } else {
195  edm::LogVerbatim("HGCalValidation") << "DigiCollection handle does not "
196  << "exist for " << nameDetector_;
197  }
198  } else if ((nameDetector_ == "HGCalHESiliconSensitive") ||
199  (nameDetector_ == "HGCalHEScintillatorSensitive")) {
200  //HGCalHE
201  edm::Handle<HGCalDigiCollection> theHGCHEDigiContainers;
202  iEvent.getByToken(digiSource_, theHGCHEDigiContainers);
203  if (theHGCHEDigiContainers.isValid()) {
204  if (verbosity_>0)
205  edm::LogVerbatim("HGCalValidation") << nameDetector_ << " with "
206  << theHGCHEDigiContainers->size()
207  << " element(s)";
208  for (const auto & it: *(theHGCHEDigiContainers.product())) {
209  ntot++; nused++;
210  DetId detId = it.id();
211  int layer = ((geomType == 0) ? HGCalDetId(detId).layer() :
212  ((geomType == 1) ? HGCSiliconDetId(detId).layer() :
213  HGCScintillatorDetId(detId).layer()));
214  const HGCSample& hgcSample = it.sample(SampleIndx_);
215  uint16_t gain = hgcSample.toa();
216  uint16_t adc = hgcSample.data();
217  double charge = adc*gain;
218  digiValidation(detId, geom0, layer, adc, charge);
219  }
220  fillDigiInfo();
221  } else {
222  edm::LogVerbatim("HGCalValidation") << "DigiCollection handle does not "
223  << "exist for " << nameDetector_;
224  }
225  } else if ((nameDetector_ == "HCal") && (!ifHCAL_)) {
226  //HGCalBH
227  edm::Handle<HGCalDigiCollection> theHGCBHDigiContainers;
228  iEvent.getByToken(digiSource_, theHGCBHDigiContainers);
229  if (theHGCBHDigiContainers.isValid()) {
230  if (verbosity_>0)
231  edm::LogVerbatim("HGCalValidation") << nameDetector_ << " with "
232  << theHGCBHDigiContainers->size()
233  << " element(s)";
234  for (const auto & it: *(theHGCBHDigiContainers.product())) {
235  ntot++; nused++;
236  HcalDetId detId = it.id();
237  int layer = detId.depth();
238  const HGCSample& hgcSample = it.sample(SampleIndx_);
239  uint16_t gain = hgcSample.toa();
240  uint16_t adc = hgcSample.data();
241  double charge = adc*gain;
242  digiValidation(detId, geom1, layer, adc, charge);
243  }
244  fillDigiInfo();
245  } else {
246  edm::LogWarning("HGCalValidation") << "DigiCollection handle does not "
247  << "exist for " << nameDetector_;
248  }
249  } else if (nameDetector_ == "HCal") {
250  //HE
251  edm::Handle<QIE11DigiCollection> theHEDigiContainers;
252  iEvent.getByToken(digiSource_, theHEDigiContainers);
253  if (theHEDigiContainers.isValid()) {
254  if (verbosity_>0)
255  edm::LogVerbatim("HGCalValidation") << nameDetector_ << " with "
256  << theHEDigiContainers->size()
257  << " element(s)";
258  edm::ESHandle<HcalDbService> conditions;
259  iSetup.get<HcalDbRecord > ().get(conditions);
260 
261  for (const auto & it: *(theHEDigiContainers.product())) {
262  QIE11DataFrame df(it);
263  HcalDetId detId = (df.id());
264  ntot++;
265  if (detId.subdet() == HcalEndcap) {
266  nused++;
268  const HcalQIECoder* channelCoder = conditions->getHcalCoder(detId);
269  const HcalQIEShape* shape = conditions->getHcalShape(channelCoder);
270  HcalCoderDb coder(*channelCoder, *shape);
271  CaloSamples tool;
272  coder.adc2fC(df, tool);
273  int layer = detId.depth();
274  uint16_t adc = (df)[SampleIndx_].adc();
275  int capid = (df)[SampleIndx_].capid();
276  double charge = (tool[SampleIndx_] - calibrations.pedestal(capid));
277  digiValidation(detId, geom1, layer, adc, charge);
278  }
279  }
280  fillDigiInfo();
281  } else {
282  edm::LogWarning("HGCalValidation") << "DigiCollection handle does not "
283  << "exist for " << nameDetector_;
284  }
285  } else {
286  edm::LogWarning("HGCalValidation") << "invalid detector name !! "
287  << nameDetector_;
288  }
289  edm::LogVerbatim("HGCalValidation") << "Event " << iEvent.id().event()
290  << " with " << ntot << " total and "
291  << nused << " used digis";
292 }
int adc(sample_type sample)
get the ADC sample (12 bits)
EventNumber_t event() const
Definition: EventID.h:41
uint32_t data() const
Definition: HGCSample.h:62
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:142
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
wrapper for a data word
Definition: HGCSample.h:13
int depth() const
get the tower depth
Definition: HcalDetId.h:162
int layer() const
get the layer #
Definition: HFNoseDetId.h:58
int layer() const
get the layer #
bool isValid() const
Definition: HandleBase.h:74
void digiValidation(const T1 &detId, const T2 *geom, int layer, uint16_t adc, double charge)
Definition: DetId.h:18
constexpr double pedestal(int fCapId) const
get pedestal for capid=0..3
T const * product() const
Definition: Handle.h:81
const HcalQIECoder * getHcalCoder(const HcalGenericDetId &fId) const
edm::EDGetToken digiSource_
uint32_t toa() const
Definition: HGCSample.h:61
const HcalQIEShape * getHcalShape(const HcalGenericDetId &fId) const
std::map< int, int > OccupancyMap_minus_
int layer() const
get the layer #
std::map< int, int > OccupancyMap_plus_
edm::EventID id() const
Definition: EventBase.h:60
size_type size() const
T get() const
Definition: EventSetup.h:62
bool isValid() const
Definition: ESHandle.h:47
const HcalCalibrations & getHcalCalibrations(const HcalGenericDetId &fId) const
T const * product() const
Definition: ESHandle.h:86
int layer() const
get the layer #
Definition: HGCalDetId.h:48
void HGCalDigiValidation::bookHistograms ( DQMStore::IBooker iB,
edm::Run const &  ,
edm::EventSetup const &   
)
override

Definition at line 378 of file HGCalDigiValidation.cc.

References ADC_, DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), charge_, DEFINE_FWK_MODULE, DigiOccupancy_Minus_, DigiOccupancy_Plus_, DigiOccupancy_XY_, firstLayer_, layers_, MeanDigiOccupancy_Minus_, MeanDigiOccupancy_Plus_, nameDetector_, and DQMStore::IBooker::setCurrentFolder().

Referenced by ~HGCalDigiValidation().

380  {
381 
382  iB.setCurrentFolder("HGCAL/HGCalDigisV/"+nameDetector_);
383 
384  std::ostringstream histoname;
385  for (int il = 0; il < layers_; ++il) {
386  int ilayer = firstLayer_ + il;
387  histoname.str(""); histoname << "charge_"<< "layer_" << ilayer;
388  charge_.push_back(iB.book1D(histoname.str().c_str(),"charge_",100,-25,25));
389 
390  histoname.str(""); histoname << "ADC_" << "layer_" << ilayer;
391  ADC_.push_back(iB.book1D(histoname.str().c_str(), "DigiOccupancy",200,0,1000));
392 
393  histoname.str(""); histoname << "DigiOccupancy_XY_" << "layer_" << ilayer;
394  DigiOccupancy_XY_.push_back(iB.book2D(histoname.str().c_str(), "DigiOccupancy", 50, -500, 500, 50, -500, 500));
395 
396  histoname.str(""); histoname << "DigiOccupancy_Plus_" << "layer_" << ilayer;
397  DigiOccupancy_Plus_.push_back(iB.book1D(histoname.str().c_str(), "DigiOccupancy +z", 100, 0, 1000));
398  histoname.str(""); histoname << "DigiOccupancy_Minus_" << "layer_" << ilayer;
399  DigiOccupancy_Minus_.push_back(iB.book1D(histoname.str().c_str(), "DigiOccupancy -z", 100, 0, 1000));
400  }
401 
402  histoname.str(""); histoname << "SUMOfDigiOccupancy_Plus";
403  MeanDigiOccupancy_Plus_ = iB.book1D( histoname.str().c_str(), "SUMOfDigiOccupancy_Plus", layers_, -0.5, layers_-0.5);
404  histoname.str(""); histoname << "SUMOfRecDigiOccupancy_Minus";
405  MeanDigiOccupancy_Minus_ = iB.book1D( histoname.str().c_str(), "SUMOfDigiOccupancy_Minus", layers_, -0.5,layers_-0.5);
406 }
std::vector< MonitorElement * > charge_
std::vector< MonitorElement * > DigiOccupancy_XY_
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
std::vector< MonitorElement * > DigiOccupancy_Minus_
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109
MonitorElement * MeanDigiOccupancy_Minus_
std::vector< MonitorElement * > ADC_
MonitorElement * MeanDigiOccupancy_Plus_
std::vector< MonitorElement * > DigiOccupancy_Plus_
template<class T1 , class T2 >
void HGCalDigiValidation::digiValidation ( const T1 &  detId,
const T2 *  geom,
int  layer,
uint16_t  adc,
double  charge 
)
private

Definition at line 295 of file HGCalDigiValidation.cc.

References ecalMGPA::adc(), HGCalDigiValidation::digiInfo::adc, ALCARECOTkAlJpsiMuMu_cff::charge, HGCalDigiValidation::digiInfo::charge, TauDecayModes::dec, fillDigiInfo(), fillOccupancyMap(), firstLayer_, globals_cff::id1, HGCalDigiValidation::digiInfo::layer, OccupancyMap_minus_, OccupancyMap_plus_, verbosity_, HGCalDigiValidation::digiInfo::x, HGCalDigiValidation::digiInfo::y, and HGCalDigiValidation::digiInfo::z.

Referenced by analyze(), and ~HGCalDigiValidation().

297  {
298 
299  if (verbosity_>1) edm::LogVerbatim("HGCalValidation") << std::hex
300  << detId.rawId()
301  << std::dec;
302  DetId id1 = DetId(detId.rawId());
303  const GlobalPoint& global1 = geom->getPosition(id1);
304 
305  if (verbosity_>1)
306  edm::LogVerbatim("HGCalValidation") << " adc = " << adc
307  << " charge = " << charge;
308 
309  digiInfo hinfo;
310  hinfo.x = global1.x();
311  hinfo.y = global1.y();
312  hinfo.z = global1.z();
313  hinfo.adc = adc;
314  hinfo.charge = charge;
315  hinfo.layer = layer-firstLayer_;
316 
317  if (verbosity_>1)
318  edm::LogVerbatim("HGCalValidation") << "gx = " << hinfo.x
319  << " gy = " << hinfo.y
320  << " gz = " << hinfo.z;
321 
322  fillDigiInfo(hinfo);
323 
324  if (global1.eta() > 0) fillOccupancyMap(OccupancyMap_plus_, hinfo.layer);
325  else fillOccupancyMap(OccupancyMap_minus_, hinfo.layer);
326 
327 }
int adc(sample_type sample)
get the ADC sample (12 bits)
Definition: DetId.h:18
std::map< int, int > OccupancyMap_minus_
std::map< int, int > OccupancyMap_plus_
void fillOccupancyMap(std::map< int, int > &OccupancyMap, int layer)
void HGCalDigiValidation::dqmBeginRun ( const edm::Run ,
const edm::EventSetup iSetup 
)
override

Definition at line 355 of file HGCalDigiValidation.cc.

References HGCalDDDConstants::firstLayer(), firstLayer_, edm::EventSetup::get(), HcalDDDRecConstants::getMaxDepth(), HGCalDDDConstants::layers(), layers_, nameDetector_, and verbosity_.

Referenced by ~HGCalDigiValidation().

356  {
357  if (nameDetector_ == "HCal") {
359  iSetup.get<HcalRecNumberingRecord>().get( pHRNDC );
360  const HcalDDDRecConstants *hcons = &(*pHRNDC);
361  layers_ = hcons->getMaxDepth(1);
362  } else {
364  iSetup.get<IdealGeometryRecord>().get(nameDetector_, pHGDC);
365  const HGCalDDDConstants & hgcons_ = (*pHGDC);
366  layers_ = hgcons_.layers(true);
367  firstLayer_ = hgcons_.firstLayer();
368  }
369 
370  if (verbosity_>0)
371  edm::LogVerbatim("HGCalValidation") << "current DQM directory: "
372  << "HGCAL/HGCalDigisV/"
373  << nameDetector_ << " layer = "
374  << layers_ << " with the first one at "
375  << firstLayer_;
376 }
unsigned int layers(bool reco) const
int getMaxDepth(const int &type) const
T get() const
Definition: EventSetup.h:62
int firstLayer() const
void HGCalDigiValidation::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 128 of file HGCalDigiValidation.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ~HGCalDigiValidation().

128  {
130  desc.add<std::string>("DetectorName","HGCalEESensitive");
131  desc.add<edm::InputTag>("DigiSource",edm::InputTag("hgcalDigis","EE"));
132  desc.add<bool>("ifNose",false);
133  desc.add<bool>("ifHCAL",false);
134  desc.addUntracked<int>("Verbosity",0);
135  desc.addUntracked<int>("SampleIndx",0);
136  descriptions.add("hgcalDigiValidationEEDefault",desc);
137 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void HGCalDigiValidation::fillDigiInfo ( digiInfo hinfo)
private

Definition at line 335 of file HGCalDigiValidation.cc.

References HGCalDigiValidation::digiInfo::adc, ADC_, HGCalDigiValidation::digiInfo::charge, charge_, DigiOccupancy_XY_, HGCalDigiValidation::digiInfo::layer, HGCalDigiValidation::digiInfo::x, and HGCalDigiValidation::digiInfo::y.

335  {
336  int ilayer = hinfo.layer;
337  charge_.at(ilayer)->Fill(hinfo.charge);
338  DigiOccupancy_XY_.at(ilayer)->Fill(hinfo.x, hinfo.y);
339  ADC_.at(ilayer)->Fill(hinfo.adc);
340 }
std::vector< MonitorElement * > charge_
std::vector< MonitorElement * > DigiOccupancy_XY_
std::vector< MonitorElement * > ADC_
void HGCalDigiValidation::fillDigiInfo ( )
private

Definition at line 342 of file HGCalDigiValidation.cc.

References DigiOccupancy_Minus_, DigiOccupancy_Plus_, OccupancyMap_minus_, and OccupancyMap_plus_.

Referenced by analyze(), digiValidation(), and ~HGCalDigiValidation().

342  {
343  for (const auto & itr : OccupancyMap_plus_) {
344  int layer = itr.first;
345  int occupancy = itr.second;
346  DigiOccupancy_Plus_.at(layer)->Fill(occupancy);
347  }
348  for (const auto & itr : OccupancyMap_minus_) {
349  int layer = itr.first;
350  int occupancy = itr.second;
351  DigiOccupancy_Minus_.at(layer)->Fill(occupancy);
352  }
353 }
std::vector< MonitorElement * > DigiOccupancy_Minus_
std::map< int, int > OccupancyMap_minus_
std::map< int, int > OccupancyMap_plus_
std::vector< MonitorElement * > DigiOccupancy_Plus_
void HGCalDigiValidation::fillOccupancyMap ( std::map< int, int > &  OccupancyMap,
int  layer 
)
private

Definition at line 329 of file HGCalDigiValidation.cc.

Referenced by digiValidation(), and ~HGCalDigiValidation().

330  {
331  if (OccupancyMap.find(layer) != OccupancyMap.end()) OccupancyMap[layer] ++;
332  else OccupancyMap[layer] = 1;
333 }

Member Data Documentation

std::vector<MonitorElement*> HGCalDigiValidation::ADC_
private

Definition at line 95 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

std::vector<MonitorElement*> HGCalDigiValidation::charge_
private

Definition at line 93 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

std::vector<MonitorElement*> HGCalDigiValidation::DigiOccupancy_Minus_
private

Definition at line 97 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

std::vector<MonitorElement*> HGCalDigiValidation::DigiOccupancy_Plus_
private

Definition at line 96 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

std::vector<MonitorElement*> HGCalDigiValidation::DigiOccupancy_XY_
private

Definition at line 94 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

edm::EDGetToken HGCalDigiValidation::digiSource_
private

Definition at line 85 of file HGCalDigiValidation.cc.

Referenced by analyze(), and HGCalDigiValidation().

int HGCalDigiValidation::firstLayer_
private

Definition at line 88 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), digiValidation(), and dqmBeginRun().

bool HGCalDigiValidation::ifHCAL_
private

Definition at line 86 of file HGCalDigiValidation.cc.

Referenced by analyze(), and HGCalDigiValidation().

bool HGCalDigiValidation::ifNose_
private

Definition at line 86 of file HGCalDigiValidation.cc.

int HGCalDigiValidation::layers_
private

Definition at line 88 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and dqmBeginRun().

MonitorElement* HGCalDigiValidation::MeanDigiOccupancy_Minus_
private

Definition at line 99 of file HGCalDigiValidation.cc.

Referenced by bookHistograms().

MonitorElement* HGCalDigiValidation::MeanDigiOccupancy_Plus_
private

Definition at line 98 of file HGCalDigiValidation.cc.

Referenced by bookHistograms().

std::string HGCalDigiValidation::nameDetector_
private

Definition at line 84 of file HGCalDigiValidation.cc.

Referenced by analyze(), bookHistograms(), dqmBeginRun(), and HGCalDigiValidation().

std::map<int, int> HGCalDigiValidation::OccupancyMap_minus_
private

Definition at line 91 of file HGCalDigiValidation.cc.

Referenced by analyze(), digiValidation(), and fillDigiInfo().

std::map<int, int> HGCalDigiValidation::OccupancyMap_plus_
private

Definition at line 90 of file HGCalDigiValidation.cc.

Referenced by analyze(), digiValidation(), and fillDigiInfo().

int HGCalDigiValidation::SampleIndx_
private

Definition at line 87 of file HGCalDigiValidation.cc.

Referenced by analyze().

int HGCalDigiValidation::verbosity_
private

Definition at line 87 of file HGCalDigiValidation.cc.

Referenced by analyze(), digiValidation(), and dqmBeginRun().