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:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

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 DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 

Private Member Functions

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

Private Attributes

std::vector< MonitorElement * > ADC_
 
std::vector< MonitorElement * > DigiOccupancy_Minus_
 
std::vector< MonitorElement * > DigiOccupancy_Plus_
 
std::vector< MonitorElement * > DigiOccupancy_XY_
 
edm::EDGetToken digiSource_
 
int firstLayer_
 
const bool ifNose_
 
int layers_
 
MonitorElementMeanDigiOccupancy_Minus_
 
MonitorElementMeanDigiOccupancy_Plus_
 
const std::string nameDetector_
 
std::map< int, int > OccupancyMap_minus_
 
std::map< int, int > OccupancyMap_plus_
 
const int SampleIndx_
 
std::vector< MonitorElement * > TOA_
 
const edm::ESGetToken< HGCalDDDConstants, IdealGeometryRecordtok_hgcalc_
 
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecordtok_hgcalg_
 
std::vector< MonitorElement * > TOT_
 
const int verbosity_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 37 of file HGCalDigiValidation.cc.

Constructor & Destructor Documentation

◆ HGCalDigiValidation()

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

Definition at line 88 of file HGCalDigiValidation.cc.

References nameDetector_.

89  : nameDetector_(iConfig.getParameter<std::string>("DetectorName")),
90  ifNose_(iConfig.getParameter<bool>("ifNose")),
91  verbosity_(iConfig.getUntrackedParameter<int>("Verbosity", 0)),
92  SampleIndx_(iConfig.getUntrackedParameter<int>("SampleIndx", 0)),
93  tok_hgcalc_(esConsumes<HGCalDDDConstants, IdealGeometryRecord, edm::Transition::BeginRun>(
95  tok_hgcalg_(esConsumes<HGCalGeometry, IdealGeometryRecord>(edm::ESInputTag{"", nameDetector_})),
96  firstLayer_(1) {
97  auto temp = iConfig.getParameter<edm::InputTag>("DigiSource");
98  if ((nameDetector_ == "HGCalEESensitive") || (nameDetector_ == "HGCalHESiliconSensitive") ||
99  (nameDetector_ == "HGCalHEScintillatorSensitive") || (nameDetector_ == "HGCalHFNoseSensitive")) {
100  digiSource_ = consumes<HGCalDigiCollection>(temp);
101  } else {
102  throw cms::Exception("BadHGCDigiSource") << "HGCal DetectorName given as " << nameDetector_ << " must be: "
103  << "\"HGCalEESensitive\", \"HGCalHESiliconSensitive\", or "
104  << "\"HGCalHEScintillatorSensitive\", \"HGCalHFNoseSensitive\"!";
105  }
106 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > tok_hgcalg_
T getUntrackedParameter(std::string const &, T const &) const
const edm::ESGetToken< HGCalDDDConstants, IdealGeometryRecord > tok_hgcalc_
const std::string nameDetector_
edm::EDGetToken digiSource_

◆ ~HGCalDigiValidation()

HGCalDigiValidation::~HGCalDigiValidation ( )
inlineoverride

Definition at line 51 of file HGCalDigiValidation.cc.

51 {}

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 118 of file HGCalDigiValidation.cc.

References gpuClustering::adc, ALCARECOTkAlJpsiMuMu_cff::charge, HGCSample::data(), digiSource_, digiValidation(), fillDigiInfo(), PedestalClient_cfi::gain, motionPolicyChamber::geom0, edm::EventSetup::getData(), iEvent, edm::HandleBase::isValid(), HGCalDetId::layer(), HGCScintillatorDetId::layer(), HFNoseDetId::layer(), HGCSiliconDetId::layer(), phase1PixelTopology::layer, HGCSample::mode(), nameDetector_, gpuPixelDoublets::ntot, OccupancyMap_minus_, OccupancyMap_plus_, edm::Handle< T >::product(), SampleIndx_, edm::SortedCollection< T, SORT >::size(), HGCSample::threshold(), HGCSample::toa(), tok_hgcalg_, and verbosity_.

118  {
119  OccupancyMap_plus_.clear();
120  OccupancyMap_minus_.clear();
121 
122  int geomType(0);
123  const HGCalGeometry* geom0 = &iSetup.getData(tok_hgcalg_);
124  if (geom0->topology().waferHexagon8())
125  geomType = 1;
126  else if (geom0->topology().tileTrapezoid())
127  geomType = 2;
128  if (nameDetector_ == "HGCalHFNoseSensitive")
129  geomType = 3;
130 
131  unsigned int ntot(0), nused(0);
132  if ((nameDetector_ == "HGCalEESensitive") || (nameDetector_ == "HGCalHFNoseSensitive")) {
133  //HGCalEE
134  edm::Handle<HGCalDigiCollection> theHGCEEDigiContainers;
135  iEvent.getByToken(digiSource_, theHGCEEDigiContainers);
136  if (theHGCEEDigiContainers.isValid()) {
137  if (verbosity_ > 0)
138  edm::LogVerbatim("HGCalValidation")
139  << nameDetector_ << " with " << theHGCEEDigiContainers->size() << " element(s)";
140  for (const auto& it : *(theHGCEEDigiContainers.product())) {
141  ntot++;
142  nused++;
143  DetId detId = it.id();
144  int layer = ((geomType == 0) ? HGCalDetId(detId).layer()
145  : (geomType == 1) ? HGCSiliconDetId(detId).layer()
146  : HFNoseDetId(detId).layer());
147  const HGCSample& hgcSample = it.sample(SampleIndx_);
148  uint16_t gain = hgcSample.toa();
149  uint16_t adc = hgcSample.data();
150  double charge = gain;
151  bool totmode = hgcSample.mode();
152  bool zerothreshold = hgcSample.threshold();
153  digiValidation(detId, geom0, layer, adc, charge, totmode, zerothreshold);
154  }
155  fillDigiInfo();
156  } else {
157  edm::LogVerbatim("HGCalValidation") << "DigiCollection handle does not "
158  << "exist for " << nameDetector_;
159  }
160  } else if ((nameDetector_ == "HGCalHESiliconSensitive") || (nameDetector_ == "HGCalHEScintillatorSensitive")) {
161  //HGCalHE
162  edm::Handle<HGCalDigiCollection> theHGCHEDigiContainers;
163  iEvent.getByToken(digiSource_, theHGCHEDigiContainers);
164  if (theHGCHEDigiContainers.isValid()) {
165  if (verbosity_ > 0)
166  edm::LogVerbatim("HGCalValidation")
167  << nameDetector_ << " with " << theHGCHEDigiContainers->size() << " element(s)";
168  for (const auto& it : *(theHGCHEDigiContainers.product())) {
169  ntot++;
170  nused++;
171  DetId detId = it.id();
172  int layer = ((geomType == 0)
173  ? HGCalDetId(detId).layer()
174  : ((geomType == 1) ? HGCSiliconDetId(detId).layer() : HGCScintillatorDetId(detId).layer()));
175  const HGCSample& hgcSample = it.sample(SampleIndx_);
176  uint16_t gain = hgcSample.toa();
177  uint16_t adc = hgcSample.data();
178  double charge = gain;
179  bool totmode = hgcSample.mode();
180  bool zerothreshold = hgcSample.threshold();
181  digiValidation(detId, geom0, layer, adc, charge, totmode, zerothreshold);
182  }
183  fillDigiInfo();
184  } else {
185  edm::LogVerbatim("HGCalValidation") << "DigiCollection handle does not "
186  << "exist for " << nameDetector_;
187  }
188  } else {
189  edm::LogWarning("HGCalValidation") << "invalid detector name !! " << nameDetector_;
190  }
191  if (verbosity_ > 0)
192  edm::LogVerbatim("HGCalValidation") << "Event " << iEvent.id().event() << " with " << ntot << " total and " << nused
193  << " used digis";
194 }
Log< level::Info, true > LogVerbatim
int layer() const
get the layer #
Definition: HFNoseDetId.h:56
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > tok_hgcalg_
size_type size() const
T const * product() const
Definition: Handle.h:70
bool mode() const
Definition: HGCSample.h:67
wrapper for a data word
Definition: HGCSample.h:13
constexpr std::array< uint8_t, layerIndexSize > layer
uint16_t data() const
Definition: HGCSample.h:70
int layer() const
get the layer #
int iEvent
Definition: GenABIO.cc:224
int layer() const
get the layer #
bool getData(T &iHolder) const
Definition: EventSetup.h:122
const std::string nameDetector_
uint16_t toa() const
Definition: HGCSample.h:69
Definition: DetId.h:17
int layer() const
get the layer #
Definition: HGCalDetId.h:46
void digiValidation(const T1 &detId, const T2 *geom, int layer, uint16_t adc, double charge, bool mode, bool threshold)
edm::EDGetToken digiSource_
bool isValid() const
Definition: HandleBase.h:70
std::map< int, int > OccupancyMap_minus_
std::map< int, int > OccupancyMap_plus_
bool threshold() const
Definition: HGCSample.h:66
Log< level::Warning, false > LogWarning
__shared__ uint32_t ntot
uint16_t *__restrict__ uint16_t const *__restrict__ adc

◆ bookHistograms()

void HGCalDigiValidation::bookHistograms ( DQMStore::IBooker iB,
edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 273 of file HGCalDigiValidation.cc.

References ADC_, dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), DigiOccupancy_Minus_, DigiOccupancy_Plus_, DigiOccupancy_XY_, firstLayer_, layers_, MeanDigiOccupancy_Minus_, MeanDigiOccupancy_Plus_, nameDetector_, dqm::implementation::NavigatorBase::setCurrentFolder(), cond::impl::to_string(), TOA_, and TOT_.

273  {
274  iB.setCurrentFolder("HGCAL/HGCalDigisV/" + nameDetector_);
275 
276  std::ostringstream histoname;
277  for (int il = 0; il < layers_; ++il) {
278  int ilayer = firstLayer_ + il;
279  auto istr1 = std::to_string(ilayer);
280  while (istr1.size() < 2) {
281  istr1.insert(0, "0");
282  }
283  histoname.str("");
284  histoname << "TOA_"
285  << "layer_" << istr1;
286  TOA_.push_back(iB.book1D(histoname.str().c_str(), "toa_", 1024, 0, 1024));
287 
288  histoname.str("");
289  histoname << "ADC_"
290  << "layer_" << istr1;
291  ADC_.push_back(iB.book1D(histoname.str().c_str(), "ADCDigiOccupancy", 1024, 0, 1024));
292 
293  histoname.str("");
294  histoname << "TOT_"
295  << "layer_" << istr1;
296  TOT_.push_back(iB.book1D(histoname.str().c_str(), "TOTDigiOccupancy", 4096, 0, 4096));
297 
298  histoname.str("");
299  histoname << "DigiOccupancy_XY_"
300  << "layer_" << istr1;
301  DigiOccupancy_XY_.push_back(iB.book2D(histoname.str().c_str(), "DigiOccupancy", 50, -500, 500, 50, -500, 500));
302 
303  histoname.str("");
304  histoname << "DigiOccupancy_Plus_"
305  << "layer_" << istr1;
306  DigiOccupancy_Plus_.push_back(iB.book1D(histoname.str().c_str(), "DigiOccupancy +z", 100, 0, 1000));
307  histoname.str("");
308  histoname << "DigiOccupancy_Minus_"
309  << "layer_" << istr1;
310  DigiOccupancy_Minus_.push_back(iB.book1D(histoname.str().c_str(), "DigiOccupancy -z", 100, 0, 1000));
311  }
312 
313  histoname.str("");
314  histoname << "SUMOfDigiOccupancy_Plus";
315  MeanDigiOccupancy_Plus_ = iB.book1D(histoname.str().c_str(), "SUMOfDigiOccupancy_Plus", layers_, -0.5, layers_ - 0.5);
316  histoname.str("");
317  histoname << "SUMOfRecDigiOccupancy_Minus";
319  iB.book1D(histoname.str().c_str(), "SUMOfDigiOccupancy_Minus", layers_, -0.5, layers_ - 0.5);
320 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
std::vector< MonitorElement * > TOA_
std::vector< MonitorElement * > DigiOccupancy_XY_
std::vector< MonitorElement * > TOT_
std::string to_string(const V &value)
Definition: OMSAccess.h:71
const std::string nameDetector_
std::vector< MonitorElement * > DigiOccupancy_Minus_
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:212
MonitorElement * MeanDigiOccupancy_Minus_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
std::vector< MonitorElement * > ADC_
MonitorElement * MeanDigiOccupancy_Plus_
std::vector< MonitorElement * > DigiOccupancy_Plus_

◆ digiValidation()

template<class T1 , class T2 >
void HGCalDigiValidation::digiValidation ( const T1 &  detId,
const T2 *  geom,
int  layer,
uint16_t  adc,
double  charge,
bool  mode,
bool  threshold 
)
private

Definition at line 197 of file HGCalDigiValidation.cc.

References gpuClustering::adc, ALCARECOTkAlJpsiMuMu_cff::charge, TauDecayModes::dec, fillDigiInfo(), fillOccupancyMap(), firstLayer_, relativeConstraints::geom, globals_cff::id1, phase1PixelTopology::layer, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, OccupancyMap_minus_, OccupancyMap_plus_, remoteMonitoring_LASER_era2018_cfg::threshold, and verbosity_.

Referenced by analyze().

198  {
199  if (verbosity_ > 1)
200  edm::LogVerbatim("HGCalValidation") << std::hex << detId.rawId() << std::dec << " " << detId.rawId();
201  DetId id1 = DetId(detId.rawId());
202  const GlobalPoint& global1 = geom->getPosition(id1);
203 
204  if (verbosity_ > 1)
205  edm::LogVerbatim("HGCalValidation") << " adc = " << adc << " toa = " << charge;
206 
207  digiInfo hinfo;
208  hinfo.x = global1.x();
209  hinfo.y = global1.y();
210  hinfo.z = global1.z();
211  hinfo.adc = adc;
212  hinfo.charge = charge;
213  hinfo.layer = layer - firstLayer_;
214  hinfo.mode = mode;
215  hinfo.threshold = threshold;
216 
217  if (verbosity_ > 1)
218  edm::LogVerbatim("HGCalValidation") << "gx = " << hinfo.x << " gy = " << hinfo.y << " gz = " << hinfo.z;
219 
220  if (global1.eta() > 0)
222  else
224 
226 }
Log< level::Info, true > LogVerbatim
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: DetId.h:17
std::map< int, int > OccupancyMap_minus_
std::map< int, int > OccupancyMap_plus_
void fillOccupancyMap(std::map< int, int > &OccupancyMap, int layer)
uint16_t *__restrict__ uint16_t const *__restrict__ adc

◆ dqmBeginRun()

void HGCalDigiValidation::dqmBeginRun ( const edm::Run ,
const edm::EventSetup iSetup 
)
overridevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 262 of file HGCalDigiValidation.cc.

References HGCalDDDConstants::firstLayer(), firstLayer_, edm::EventSetup::getData(), HGCalDDDConstants::layers(), layers_, nameDetector_, tok_hgcalc_, and verbosity_.

262  {
263  const HGCalDDDConstants* hgcons = &iSetup.getData(tok_hgcalc_);
264  layers_ = hgcons->layers(true);
265  firstLayer_ = hgcons->firstLayer();
266 
267  if (verbosity_ > 0)
268  edm::LogVerbatim("HGCalValidation") << "current DQM directory: "
269  << "HGCAL/HGCalDigisV/" << nameDetector_ << " layer = " << layers_
270  << " with the first one at " << firstLayer_;
271 }
Log< level::Info, true > LogVerbatim
int firstLayer() const
const edm::ESGetToken< HGCalDDDConstants, IdealGeometryRecord > tok_hgcalc_
unsigned int layers(bool reco) const
bool getData(T &iHolder) const
Definition: EventSetup.h:122
const std::string nameDetector_

◆ fillDescriptions()

void HGCalDigiValidation::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 108 of file HGCalDigiValidation.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLT_2022v12_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

108  {
110  desc.add<std::string>("DetectorName", "HGCalEESensitive");
111  desc.add<edm::InputTag>("DigiSource", edm::InputTag("hgcalDigis", "EE"));
112  desc.add<bool>("ifNose", false);
113  desc.addUntracked<int>("Verbosity", 0);
114  desc.addUntracked<int>("SampleIndx", 2); // central bx
115  descriptions.add("hgcalDigiValidationEEDefault", desc);
116 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ fillDigiInfo() [1/2]

void HGCalDigiValidation::fillDigiInfo ( digiInfo hinfo)
private

Definition at line 235 of file HGCalDigiValidation.cc.

References ADC_, DigiOccupancy_XY_, TOA_, and TOT_.

235  {
236  int ilayer = hinfo.layer;
237  TOA_.at(ilayer)->Fill(hinfo.charge);
238 
239  if (hinfo.mode) {
240  TOT_.at(ilayer)->Fill(hinfo.adc);
241  }
242 
243  if (!hinfo.mode && hinfo.threshold) {
244  ADC_.at(ilayer)->Fill(hinfo.adc);
245  DigiOccupancy_XY_.at(ilayer)->Fill(hinfo.x, hinfo.y);
246  }
247 }
std::vector< MonitorElement * > TOA_
std::vector< MonitorElement * > DigiOccupancy_XY_
std::vector< MonitorElement * > TOT_
std::vector< MonitorElement * > ADC_

◆ fillDigiInfo() [2/2]

void HGCalDigiValidation::fillDigiInfo ( )
private

Definition at line 249 of file HGCalDigiValidation.cc.

References DigiOccupancy_Minus_, DigiOccupancy_Plus_, phase1PixelTopology::layer, OccupancyMap_minus_, and OccupancyMap_plus_.

Referenced by analyze(), and digiValidation().

249  {
250  for (const auto& itr : OccupancyMap_plus_) {
251  int layer = itr.first;
252  int occupancy = itr.second;
253  DigiOccupancy_Plus_.at(layer)->Fill(occupancy);
254  }
255  for (const auto& itr : OccupancyMap_minus_) {
256  int layer = itr.first;
257  int occupancy = itr.second;
258  DigiOccupancy_Minus_.at(layer)->Fill(occupancy);
259  }
260 }
constexpr std::array< uint8_t, layerIndexSize > layer
std::vector< MonitorElement * > DigiOccupancy_Minus_
std::map< int, int > OccupancyMap_minus_
std::map< int, int > OccupancyMap_plus_
std::vector< MonitorElement * > DigiOccupancy_Plus_

◆ fillOccupancyMap()

void HGCalDigiValidation::fillOccupancyMap ( std::map< int, int > &  OccupancyMap,
int  layer 
)
private

Definition at line 228 of file HGCalDigiValidation.cc.

References phase1PixelTopology::layer.

Referenced by digiValidation().

228  {
229  if (OccupancyMap.find(layer) != OccupancyMap.end())
230  OccupancyMap[layer]++;
231  else
232  OccupancyMap[layer] = 1;
233 }
constexpr std::array< uint8_t, layerIndexSize > layer

Member Data Documentation

◆ ADC_

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

Definition at line 80 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

◆ DigiOccupancy_Minus_

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

Definition at line 83 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

◆ DigiOccupancy_Plus_

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

Definition at line 82 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

◆ DigiOccupancy_XY_

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

Definition at line 79 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

◆ digiSource_

edm::EDGetToken HGCalDigiValidation::digiSource_
private

Definition at line 73 of file HGCalDigiValidation.cc.

Referenced by analyze().

◆ firstLayer_

int HGCalDigiValidation::firstLayer_
private

Definition at line 72 of file HGCalDigiValidation.cc.

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

◆ ifNose_

const bool HGCalDigiValidation::ifNose_
private

Definition at line 68 of file HGCalDigiValidation.cc.

◆ layers_

int HGCalDigiValidation::layers_
private

Definition at line 72 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and dqmBeginRun().

◆ MeanDigiOccupancy_Minus_

MonitorElement* HGCalDigiValidation::MeanDigiOccupancy_Minus_
private

Definition at line 85 of file HGCalDigiValidation.cc.

Referenced by bookHistograms().

◆ MeanDigiOccupancy_Plus_

MonitorElement* HGCalDigiValidation::MeanDigiOccupancy_Plus_
private

Definition at line 84 of file HGCalDigiValidation.cc.

Referenced by bookHistograms().

◆ nameDetector_

const std::string HGCalDigiValidation::nameDetector_
private

Definition at line 67 of file HGCalDigiValidation.cc.

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

◆ OccupancyMap_minus_

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

Definition at line 76 of file HGCalDigiValidation.cc.

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

◆ OccupancyMap_plus_

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

Definition at line 75 of file HGCalDigiValidation.cc.

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

◆ SampleIndx_

const int HGCalDigiValidation::SampleIndx_
private

Definition at line 69 of file HGCalDigiValidation.cc.

Referenced by analyze().

◆ TOA_

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

Definition at line 78 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

◆ tok_hgcalc_

const edm::ESGetToken<HGCalDDDConstants, IdealGeometryRecord> HGCalDigiValidation::tok_hgcalc_
private

Definition at line 70 of file HGCalDigiValidation.cc.

Referenced by dqmBeginRun().

◆ tok_hgcalg_

const edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> HGCalDigiValidation::tok_hgcalg_
private

Definition at line 71 of file HGCalDigiValidation.cc.

Referenced by analyze().

◆ TOT_

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

Definition at line 81 of file HGCalDigiValidation.cc.

Referenced by bookHistograms(), and fillDigiInfo().

◆ verbosity_

const int HGCalDigiValidation::verbosity_
private

Definition at line 69 of file HGCalDigiValidation.cc.

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