CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Types | Private Attributes
EcalEndcapDigisValidation Class Reference

#include <EcalEndcapDigisValidation.h>

Inheritance diagram for EcalEndcapDigisValidation:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

void bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
 EcalEndcapDigisValidation (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~EcalEndcapDigisValidation () override
 Destructor. More...
 
- 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
 

Protected Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &c) override
 Analyze. More...
 
void checkCalibrations (edm::EventSetup const &c)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Private Types

typedef std::map< uint32_t, float, std::less< uint32_t > > MapType
 

Private Attributes

double barrelADCtoGeV_
 
edm::EDGetTokenT< EEDigiCollectionEEdigiCollectionToken_
 
double endcapADCtoGeV_
 
std::map< int, double, std::less< int > > gainConv_
 
MonitorElementmeEEDigiADCAnalog_ [10]
 
MonitorElementmeEEDigiADCg12_ [10]
 
MonitorElementmeEEDigiADCg1_ [10]
 
MonitorElementmeEEDigiADCg6_ [10]
 
MonitorElementmeEEDigiADCGlobal_
 
MonitorElementmeEEDigiADCgS_ [10]
 
MonitorElementmeEEDigiGain_ [10]
 
MonitorElementmeEEDigiMultiplicityzm_
 
MonitorElementmeEEDigiMultiplicityzp_
 
MonitorElementmeEEDigiOccupancyzm_
 
MonitorElementmeEEDigiOccupancyzp_
 
MonitorElementmeEEMaximumgt100ADC_
 
MonitorElementmeEEMaximumgt20ADC_
 
MonitorElementmeEEnADCafterSwitch_
 
MonitorElementmeEEPedestal_
 
std::string outputFile_
 
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcdpAgc
 
bool verbose_
 

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
 
- 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 &)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 35 of file EcalEndcapDigisValidation.h.

Member Typedef Documentation

◆ MapType

typedef std::map<uint32_t, float, std::less<uint32_t> > EcalEndcapDigisValidation::MapType
private

Definition at line 36 of file EcalEndcapDigisValidation.h.

Constructor & Destructor Documentation

◆ EcalEndcapDigisValidation()

EcalEndcapDigisValidation::EcalEndcapDigisValidation ( const edm::ParameterSet ps)

Constructor.

Definition at line 15 of file EcalEndcapDigisValidation.cc.

References barrelADCtoGeV_, edm::BeginRun, endcapADCtoGeV_, gainConv_, edm::ParameterSet::getUntrackedParameter(), mps_fire::i, meEEDigiADCAnalog_, meEEDigiADCg12_, meEEDigiADCg1_, meEEDigiADCg6_, meEEDigiADCGlobal_, meEEDigiADCgS_, meEEDigiGain_, meEEDigiMultiplicityzm_, meEEDigiMultiplicityzp_, meEEDigiOccupancyzm_, meEEDigiOccupancyzp_, meEEMaximumgt100ADC_, meEEMaximumgt20ADC_, meEEnADCafterSwitch_, meEEPedestal_, and verbose_.

16  : EEdigiCollectionToken_(consumes<EEDigiCollection>(ps.getParameter<edm::InputTag>("EEdigiCollection"))),
17  pAgc(esConsumes<edm::Transition::BeginRun>()) {
18  // verbosity switch
19  verbose_ = ps.getUntrackedParameter<bool>("verbose", false);
20 
21  gainConv_[1] = 1.;
22  gainConv_[2] = 2.;
23  gainConv_[3] = 12.;
24  gainConv_[0] = 12.; // saturated channels
25  barrelADCtoGeV_ = 0.035;
26  endcapADCtoGeV_ = 0.06;
27 
28  meEEDigiOccupancyzp_ = nullptr;
29  meEEDigiOccupancyzm_ = nullptr;
30 
31  meEEDigiMultiplicityzp_ = nullptr;
32  meEEDigiMultiplicityzm_ = nullptr;
33 
34  meEEDigiADCGlobal_ = nullptr;
35 
36  for (int i = 0; i < 10; i++) {
37  meEEDigiADCAnalog_[i] = nullptr;
38  meEEDigiADCgS_[i] = nullptr;
39  meEEDigiADCg1_[i] = nullptr;
40  meEEDigiADCg6_[i] = nullptr;
41  meEEDigiADCg12_[i] = nullptr;
42  meEEDigiGain_[i] = nullptr;
43  }
44 
45  meEEPedestal_ = nullptr;
46 
47  meEEMaximumgt100ADC_ = nullptr;
48 
49  meEEMaximumgt20ADC_ = nullptr;
50 
51  meEEnADCafterSwitch_ = nullptr;
52 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > pAgc
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meEEDigiADCAnalog_[10]
edm::EDGetTokenT< EEDigiCollection > EEdigiCollectionToken_
MonitorElement * meEEDigiADCg12_[10]
std::map< int, double, std::less< int > > gainConv_

◆ ~EcalEndcapDigisValidation()

EcalEndcapDigisValidation::~EcalEndcapDigisValidation ( )
override

Destructor.

Definition at line 54 of file EcalEndcapDigisValidation.cc.

54 {}

Member Function Documentation

◆ analyze()

void EcalEndcapDigisValidation::analyze ( edm::Event const &  e,
edm::EventSetup const &  c 
)
overrideprotectedvirtual

Analyze.

Reimplemented from DQMEDAnalyzer.

Definition at line 111 of file EcalEndcapDigisValidation.cc.

References MillePedeFileConverter_cfg::e, EEdigiCollectionToken_, endcapADCtoGeV_, dqm::impl::MonitorElement::Fill(), gainConv_, mps_fire::i, EEDataFrame::id(), createfilelist::int, edm::HandleBase::isValid(), EEDetId::ix(), EEDetId::iy(), LogDebug, EcalDataFrame::MAXSAMPLES, meEEDigiADCAnalog_, meEEDigiADCg12_, meEEDigiADCg1_, meEEDigiADCg6_, meEEDigiADCGlobal_, meEEDigiADCgS_, meEEDigiGain_, meEEDigiMultiplicityzm_, meEEDigiMultiplicityzp_, meEEDigiOccupancyzm_, meEEDigiOccupancyzp_, meEEMaximumgt100ADC_, meEEMaximumgt20ADC_, meEEnADCafterSwitch_, meEEPedestal_, ecalTB2006H4_GenSimDigiReco_cfg::mySample, ElectronMcFakeValidator_cfi::Pmax, edm::Handle< T >::product(), DetId::rawId(), edm::DataFrameContainer::reserve(), ecalGpuTask_cfi::sample, EcalDataFrame::size(), edm::DataFrameContainer::size(), and EEDetId::zside().

111  {
112  //LogInfo("EventInfo") << " Run = " << e.id().run() << " Event = " << e.id().event();
113 
114  Handle<EEDigiCollection> EcalDigiEE;
115 
116  e.getByToken(EEdigiCollectionToken_, EcalDigiEE);
117 
118  // Return if no Endcap data available
119  if (!EcalDigiEE.isValid())
120  return;
121 
122  // ENDCAP
123 
124  // loop over Digis
125 
126  const EEDigiCollection* endcapDigi = EcalDigiEE.product();
127 
128  std::vector<double> eeAnalogSignal;
129  std::vector<double> eeADCCounts;
130  std::vector<double> eeADCGains;
131  eeAnalogSignal.reserve(EEDataFrame::MAXSAMPLES);
132  eeADCCounts.reserve(EEDataFrame::MAXSAMPLES);
133  eeADCGains.reserve(EEDataFrame::MAXSAMPLES);
134 
135  int nDigiszp = 0;
136  int nDigiszm = 0;
137 
138  for (unsigned int digis = 0; digis < EcalDigiEE->size(); ++digis) {
139  EEDataFrame eedf = (*endcapDigi)[digis];
140  int nrSamples = eedf.size();
141 
142  EEDetId eeid = eedf.id();
143 
144  if (eeid.zside() > 0) {
146  meEEDigiOccupancyzp_->Fill(eeid.ix(), eeid.iy());
147  nDigiszp++;
148  } else if (eeid.zside() < 0) {
150  meEEDigiOccupancyzm_->Fill(eeid.ix(), eeid.iy());
151  nDigiszm++;
152  }
153 
154  double Emax = 0.;
155  int Pmax = 0;
156  double pedestalPreSample = 0.;
157  double pedestalPreSampleAnalog = 0.;
158  int countsAfterGainSwitch = -1;
159  double higherGain = 1.;
160  int higherGainSample = 0;
161 
162  for (int sample = 0; sample < nrSamples; ++sample) {
163  eeAnalogSignal[sample] = 0.;
164  eeADCCounts[sample] = 0.;
165  eeADCGains[sample] = 0.;
166  }
167 
168  for (int sample = 0; sample < nrSamples; ++sample) {
170 
171  eeADCCounts[sample] = (mySample.adc());
172  eeADCGains[sample] = (mySample.gainId());
173  eeAnalogSignal[sample] = (eeADCCounts[sample] * gainConv_[(int)eeADCGains[sample]] * endcapADCtoGeV_);
174 
175  if (Emax < eeAnalogSignal[sample]) {
176  Emax = eeAnalogSignal[sample];
177  Pmax = sample;
178  }
179 
180  if (sample < 3) {
181  pedestalPreSample += eeADCCounts[sample];
182  pedestalPreSampleAnalog += eeADCCounts[sample] * gainConv_[(int)eeADCGains[sample]] * endcapADCtoGeV_;
183  }
184 
185  if (sample > 0 && (((eeADCGains[sample] > eeADCGains[sample - 1]) && (eeADCGains[sample - 1] != 0)) ||
186  (countsAfterGainSwitch < 0 && eeADCGains[sample] == 0))) {
187  higherGain = eeADCGains[sample];
188  higherGainSample = sample;
189  countsAfterGainSwitch = 1;
190  }
191 
192  if ((higherGain > 1 && (higherGainSample != sample) && (eeADCGains[sample] == higherGain)) ||
193  (higherGain == 3 && (higherGainSample != sample) && (eeADCGains[sample] == 0)) ||
194  (higherGain == 0 && (higherGainSample != sample) && ((eeADCGains[sample] == 0) || (eeADCGains[sample] == 3))))
195  countsAfterGainSwitch++;
196  }
197  pedestalPreSample /= 3.;
198  pedestalPreSampleAnalog /= 3.;
199 
200  LogDebug("DigiInfo") << "Endcap Digi for EEDetId = " << eeid.rawId() << " x,y " << eeid.ix() << " " << eeid.iy();
201  for (int i = 0; i < 10; i++) {
202  LogDebug("DigiInfo") << "sample " << i << " ADC = " << eeADCCounts[i] << " gain = " << eeADCGains[i]
203  << " Analog = " << eeAnalogSignal[i];
204  }
205  LogDebug("DigiInfo") << "Maximum energy = " << Emax << " in sample " << Pmax
206  << " Pedestal from pre-sample = " << pedestalPreSampleAnalog;
207  if (countsAfterGainSwitch > 0)
208  LogDebug("DigiInfo") << "Counts after switch " << countsAfterGainSwitch;
209 
210  if (countsAfterGainSwitch > 0 && countsAfterGainSwitch < 5) {
211  edm::LogWarning("DigiWarning") << "Wrong number of counts after gain switch before next switch! "
212  << countsAfterGainSwitch;
213  for (int i = 0; i < 10; i++) {
214  edm::LogWarning("DigiWarning") << "sample " << i << " ADC = " << eeADCCounts[i] << " gain = " << eeADCGains[i]
215  << " Analog = " << eeAnalogSignal[i];
216  }
217  }
218 
219  for (int i = 0; i < 10; i++) {
220  if (meEEDigiADCGlobal_ &&
221  (Emax - pedestalPreSampleAnalog * gainConv_[(int)eeADCGains[Pmax]]) > 100. * endcapADCtoGeV_)
222  meEEDigiADCGlobal_->Fill(i, eeAnalogSignal[i]);
223  if (meEEDigiADCAnalog_[i])
224  meEEDigiADCAnalog_[i]->Fill(eeAnalogSignal[i]);
225  if (eeADCGains[i] == 0) {
226  if (meEEDigiADCgS_[i])
227  meEEDigiADCgS_[i]->Fill(eeADCCounts[i]);
228  } else if (eeADCGains[i] == 3) {
229  if (meEEDigiADCg1_[i])
230  meEEDigiADCg1_[i]->Fill(eeADCCounts[i]);
231  } else if (eeADCGains[i] == 2) {
232  if (meEEDigiADCg6_[i])
233  meEEDigiADCg6_[i]->Fill(eeADCCounts[i]);
234  } else if (eeADCGains[i] == 1) {
235  if (meEEDigiADCg12_[i])
236  meEEDigiADCg12_[i]->Fill(eeADCCounts[i]);
237  }
238  if (meEEDigiGain_[i])
239  meEEDigiGain_[i]->Fill(eeADCGains[i]);
240  }
241 
242  if (meEEPedestal_)
243  meEEPedestal_->Fill(pedestalPreSample);
244  if (meEEMaximumgt20ADC_ &&
245  (Emax - pedestalPreSampleAnalog * gainConv_[(int)eeADCGains[Pmax]]) > 20. * endcapADCtoGeV_)
247  if (meEEMaximumgt100ADC_ &&
248  (Emax - pedestalPreSampleAnalog * gainConv_[(int)eeADCGains[Pmax]]) > 100. * endcapADCtoGeV_)
251  meEEnADCafterSwitch_->Fill(countsAfterGainSwitch);
252  }
253 
255  meEEDigiMultiplicityzp_->Fill(nDigiszp);
257  meEEDigiMultiplicityzm_->Fill(nDigiszm);
258 }
T const * product() const
Definition: Handle.h:70
int ix() const
Definition: EEDetId.h:77
key_type id() const
Definition: EEDataFrame.h:24
int size() const
Definition: EcalDataFrame.h:26
void Fill(long long x)
MonitorElement * meEEDigiADCAnalog_[10]
edm::EDGetTokenT< EEDigiCollection > EEdigiCollectionToken_
MonitorElement * meEEDigiADCg12_[10]
void reserve(size_t isize)
int zside() const
Definition: EEDetId.h:71
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
bool isValid() const
Definition: HandleBase.h:70
std::map< int, double, std::less< int > > gainConv_
static constexpr int MAXSAMPLES
Definition: EcalDataFrame.h:48
Log< level::Warning, false > LogWarning
int iy() const
Definition: EEDetId.h:83
#define LogDebug(id)

◆ bookHistograms()

void EcalEndcapDigisValidation::bookHistograms ( DQMStore::IBooker i,
edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 56 of file EcalEndcapDigisValidation.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::IBooker::bookProfile(), timingPdfMaker::histo, mps_fire::i, meEEDigiADCAnalog_, meEEDigiADCg12_, meEEDigiADCg1_, meEEDigiADCg6_, meEEDigiADCGlobal_, meEEDigiADCgS_, meEEDigiGain_, meEEDigiMultiplicityzm_, meEEDigiMultiplicityzp_, meEEDigiOccupancyzm_, meEEDigiOccupancyzp_, meEEMaximumgt100ADC_, meEEMaximumgt20ADC_, meEEnADCafterSwitch_, meEEPedestal_, and dqm::implementation::NavigatorBase::setCurrentFolder().

56  {
57  Char_t histo[200];
58 
59  ibooker.setCurrentFolder("EcalDigisV/EcalDigiTask");
60 
61  sprintf(histo, "EcalDigiTask Endcap occupancy z+");
62  meEEDigiOccupancyzp_ = ibooker.book2D(histo, histo, 100, 0., 100., 100, 0., 100.);
63 
64  sprintf(histo, "EcalDigiTask Endcap occupancy z-");
65  meEEDigiOccupancyzm_ = ibooker.book2D(histo, histo, 100, 0., 100., 100, 0., 100.);
66 
67  sprintf(histo, "EcalDigiTask Endcap multiplicity z+");
68  meEEDigiMultiplicityzp_ = ibooker.book1D(histo, histo, 100, 0., 7324.);
69 
70  sprintf(histo, "EcalDigiTask Endcap multiplicity z-");
71  meEEDigiMultiplicityzm_ = ibooker.book1D(histo, histo, 100, 0., 7324.);
72 
73  sprintf(histo, "EcalDigiTask Endcap global pulse shape");
74  meEEDigiADCGlobal_ = ibooker.bookProfile(histo, histo, 10, 0, 10, 10000, 0., 1000.);
75 
76  for (int i = 0; i < 10; i++) {
77  sprintf(histo, "EcalDigiTask Endcap analog pulse %02d", i + 1);
78  meEEDigiADCAnalog_[i] = ibooker.book1D(histo, histo, 4000, 0., 400.);
79 
80  sprintf(histo, "EcalDigiTask Endcap ADC pulse %02d Gain 0 - Saturated", i + 1);
81  meEEDigiADCgS_[i] = ibooker.book1D(histo, histo, 4096, -0.5, 4095.5);
82 
83  sprintf(histo, "EcalDigiTask Endcap ADC pulse %02d Gain 1", i + 1);
84  meEEDigiADCg1_[i] = ibooker.book1D(histo, histo, 4096, -0.5, 4095.5);
85 
86  sprintf(histo, "EcalDigiTask Endcap ADC pulse %02d Gain 6", i + 1);
87  meEEDigiADCg6_[i] = ibooker.book1D(histo, histo, 4096, -0.5, 4095.5);
88 
89  sprintf(histo, "EcalDigiTask Endcap ADC pulse %02d Gain 12", i + 1);
90  meEEDigiADCg12_[i] = ibooker.book1D(histo, histo, 4096, -0.5, 4095.5);
91 
92  sprintf(histo, "EcalDigiTask Endcap gain pulse %02d", i + 1);
93  meEEDigiGain_[i] = ibooker.book1D(histo, histo, 4, 0, 4);
94  }
95 
96  sprintf(histo, "EcalDigiTask Endcap pedestal for pre-sample");
97  meEEPedestal_ = ibooker.book1D(histo, histo, 4096, -0.5, 4095.5);
98 
99  sprintf(histo, "EcalDigiTask Endcap maximum position gt 100 ADC");
100  meEEMaximumgt100ADC_ = ibooker.book1D(histo, histo, 10, 0., 10.);
101 
102  sprintf(histo, "EcalDigiTask Endcap maximum position gt 20 ADC");
103  meEEMaximumgt20ADC_ = ibooker.book1D(histo, histo, 10, 0., 10.);
104 
105  sprintf(histo, "EcalDigiTask Endcap ADC counts after gain switch");
106  meEEnADCafterSwitch_ = ibooker.book1D(histo, histo, 10, 0., 10.);
107 }
MonitorElement * meEEDigiADCAnalog_[10]
MonitorElement * meEEDigiADCg12_[10]

◆ checkCalibrations()

void EcalEndcapDigisValidation::checkCalibrations ( edm::EventSetup const &  c)
protected

Definition at line 260 of file EcalEndcapDigisValidation.cc.

References barrelADCtoGeV_, endcapADCtoGeV_, options_cfi::eventSetup, EcalMGPAGainRatio::gain12Over6(), EcalMGPAGainRatio::gain6Over1(), gainConv_, EcalADCToGeVConstant::getEBValue(), EcalADCToGeVConstant::getEEValue(), LogDebug, and pAgc.

Referenced by dqmBeginRun().

260  {
261  // ADC -> GeV Scale
262  const EcalADCToGeVConstant* agc = &eventSetup.getData(pAgc);
263 
264  EcalMGPAGainRatio* defaultRatios = new EcalMGPAGainRatio();
265 
266  gainConv_[1] = 1.;
267  gainConv_[2] = defaultRatios->gain12Over6();
268  gainConv_[3] = gainConv_[2] * (defaultRatios->gain6Over1());
269  gainConv_[0] = gainConv_[2] * (defaultRatios->gain6Over1());
270 
271  LogDebug("EcalDigi") << " Gains conversions: "
272  << "\n"
273  << " g0 = " << gainConv_[0] << "\n"
274  << " g1 = " << gainConv_[1] << "\n"
275  << " g2 = " << gainConv_[2] << "\n"
276  << " g3 = " << gainConv_[3];
277 
278  delete defaultRatios;
279 
280  const double barrelADCtoGeV_ = agc->getEBValue();
281  LogDebug("EcalDigi") << " Barrel GeV/ADC = " << barrelADCtoGeV_;
282  const double endcapADCtoGeV_ = agc->getEEValue();
283  LogDebug("EcalDigi") << " Endcap GeV/ADC = " << endcapADCtoGeV_;
284 }
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > pAgc
float gain12Over6() const
float gain6Over1() const
std::map< int, double, std::less< int > > gainConv_
#define LogDebug(id)

◆ dqmBeginRun()

void EcalEndcapDigisValidation::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &  c 
)
overridevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 109 of file EcalEndcapDigisValidation.cc.

References DummyCfis::c, and checkCalibrations().

109 { checkCalibrations(c); }
void checkCalibrations(edm::EventSetup const &c)

Member Data Documentation

◆ barrelADCtoGeV_

double EcalEndcapDigisValidation::barrelADCtoGeV_
private

Definition at line 64 of file EcalEndcapDigisValidation.h.

Referenced by checkCalibrations(), and EcalEndcapDigisValidation().

◆ EEdigiCollectionToken_

edm::EDGetTokenT<EEDigiCollection> EcalEndcapDigisValidation::EEdigiCollectionToken_
private

Definition at line 59 of file EcalEndcapDigisValidation.h.

Referenced by analyze().

◆ endcapADCtoGeV_

double EcalEndcapDigisValidation::endcapADCtoGeV_
private

◆ gainConv_

std::map<int, double, std::less<int> > EcalEndcapDigisValidation::gainConv_
private

◆ meEEDigiADCAnalog_

MonitorElement* EcalEndcapDigisValidation::meEEDigiADCAnalog_[10]
private

Definition at line 75 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEDigiADCg12_

MonitorElement* EcalEndcapDigisValidation::meEEDigiADCg12_[10]
private

Definition at line 80 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEDigiADCg1_

MonitorElement* EcalEndcapDigisValidation::meEEDigiADCg1_[10]
private

Definition at line 78 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEDigiADCg6_

MonitorElement* EcalEndcapDigisValidation::meEEDigiADCg6_[10]
private

Definition at line 79 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEDigiADCGlobal_

MonitorElement* EcalEndcapDigisValidation::meEEDigiADCGlobal_
private

Definition at line 73 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEDigiADCgS_

MonitorElement* EcalEndcapDigisValidation::meEEDigiADCgS_[10]
private

Definition at line 77 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEDigiGain_

MonitorElement* EcalEndcapDigisValidation::meEEDigiGain_[10]
private

Definition at line 82 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEDigiMultiplicityzm_

MonitorElement* EcalEndcapDigisValidation::meEEDigiMultiplicityzm_
private

Definition at line 71 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEDigiMultiplicityzp_

MonitorElement* EcalEndcapDigisValidation::meEEDigiMultiplicityzp_
private

Definition at line 70 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEDigiOccupancyzm_

MonitorElement* EcalEndcapDigisValidation::meEEDigiOccupancyzm_
private

Definition at line 68 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEDigiOccupancyzp_

MonitorElement* EcalEndcapDigisValidation::meEEDigiOccupancyzp_
private

Definition at line 67 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEMaximumgt100ADC_

MonitorElement* EcalEndcapDigisValidation::meEEMaximumgt100ADC_
private

Definition at line 86 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEMaximumgt20ADC_

MonitorElement* EcalEndcapDigisValidation::meEEMaximumgt20ADC_
private

Definition at line 88 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEnADCafterSwitch_

MonitorElement* EcalEndcapDigisValidation::meEEnADCafterSwitch_
private

Definition at line 90 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ meEEPedestal_

MonitorElement* EcalEndcapDigisValidation::meEEPedestal_
private

Definition at line 84 of file EcalEndcapDigisValidation.h.

Referenced by analyze(), bookHistograms(), and EcalEndcapDigisValidation().

◆ outputFile_

std::string EcalEndcapDigisValidation::outputFile_
private

Definition at line 57 of file EcalEndcapDigisValidation.h.

◆ pAgc

edm::ESGetToken<EcalADCToGeVConstant, EcalADCToGeVConstantRcd> EcalEndcapDigisValidation::pAgc
private

Definition at line 60 of file EcalEndcapDigisValidation.h.

Referenced by checkCalibrations().

◆ verbose_

bool EcalEndcapDigisValidation::verbose_
private

Definition at line 55 of file EcalEndcapDigisValidation.h.

Referenced by EcalEndcapDigisValidation().