CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
HGCGeometryValidation Class Reference
Inheritance diagram for HGCGeometryValidation:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

 HGCGeometryValidation (const edm::ParameterSet &)
 
 ~HGCGeometryValidation () 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 &)
 

Protected Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Private Attributes

edm::EDGetTokenT< PHGCalValidInfog4Token_
 
std::vector< std::string > geometrySource_
 
std::vector< edm::ESGetToken< HGCalDDDConstants, IdealGeometryRecord > > geomToken_
 
MonitorElementhebdX
 
MonitorElementhebdxVsLayer
 
MonitorElementhebdxVsX
 
MonitorElementhebdY
 
MonitorElementhebdyVsLayer
 
MonitorElementhebdyVsY
 
MonitorElementhebdZ
 
MonitorElementhebdzVsLayer
 
MonitorElementhebdzVsZ
 
MonitorElementhebLayerVsEnStep
 
MonitorElementhebTotEdepStep
 
MonitorElementhebXG4VsId
 
MonitorElementhebYG4VsId
 
MonitorElementhebZG4VsId
 
MonitorElementheedX
 
MonitorElementheedxVsLayer
 
MonitorElementheedxVsX
 
MonitorElementheedY
 
MonitorElementheedyVsLayer
 
MonitorElementheedyVsY
 
MonitorElementheedZ
 
MonitorElementheedzVsLayer
 
MonitorElementheedzVsZ
 
MonitorElementheeLayerVsEnStep
 
MonitorElementheeTotEdepStep
 
MonitorElementheeXG4VsId
 
MonitorElementheeYG4VsId
 
MonitorElementheeZG4VsId
 
MonitorElementhefdX
 
MonitorElementhefdxVsLayer
 
MonitorElementhefdxVsX
 
MonitorElementhefdY
 
MonitorElementhefdyVsLayer
 
MonitorElementhefdyVsY
 
MonitorElementhefdZ
 
MonitorElementhefdzVsLayer
 
MonitorElementhefdzVsZ
 
MonitorElementhefLayerVsEnStep
 
MonitorElementhefTotEdepStep
 
MonitorElementhefXG4VsId
 
MonitorElementhefYG4VsId
 
MonitorElementhefZG4VsId
 
std::vector< const HGCalDDDConstants * > hgcGeometry_
 
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 Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 39 of file HGCGeometryValidation.cc.

Constructor & Destructor Documentation

◆ HGCGeometryValidation()

HGCGeometryValidation::HGCGeometryValidation ( const edm::ParameterSet cfg)
explicit

Definition at line 77 of file HGCGeometryValidation.cc.

References looper::cfg, g4Token_, geometrySource_, geomToken_, Skims_PA_cff::name, and verbosity_.

77  {
78  g4Token_ = consumes<PHGCalValidInfo>(cfg.getParameter<edm::InputTag>("g4Source"));
79  geometrySource_ = cfg.getUntrackedParameter<std::vector<std::string>>("geometrySource");
80  verbosity_ = cfg.getUntrackedParameter<int>("verbosity", 0);
81  for (const auto &name : geometrySource_)
82  geomToken_.emplace_back(
83  esConsumes<HGCalDDDConstants, IdealGeometryRecord, edm::Transition::BeginRun>(edm::ESInputTag{"", name}));
84 }
std::vector< edm::ESGetToken< HGCalDDDConstants, IdealGeometryRecord > > geomToken_
edm::EDGetTokenT< PHGCalValidInfo > g4Token_
std::vector< std::string > geometrySource_

◆ ~HGCGeometryValidation()

HGCGeometryValidation::~HGCGeometryValidation ( )
override

Definition at line 86 of file HGCGeometryValidation.cc.

86 {}

Member Function Documentation

◆ analyze()

void HGCGeometryValidation::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 162 of file HGCGeometryValidation.cc.

References runTauDisplay::dtype, PHGCalValidInfo::eehgcEdep(), PHGCalValidInfo::eeTotEdep(), dqm::impl::MonitorElement::Fill(), DetId::Forward, g4Token_, hebdX, hebdxVsLayer, hebdxVsX, hebdY, hebdyVsLayer, hebdyVsY, hebdZ, hebdzVsLayer, hebdzVsZ, PHGCalValidInfo::hebhgcEdep(), hebLayerVsEnStep, PHGCalValidInfo::hebTotEdep(), hebTotEdepStep, hebXG4VsId, hebYG4VsId, hebZG4VsId, heedX, heedxVsLayer, heedxVsX, heedY, heedyVsLayer, heedyVsY, heedZ, heedzVsLayer, heedzVsZ, heeLayerVsEnStep, heeTotEdepStep, heeXG4VsId, heeYG4VsId, heeZG4VsId, hefdX, hefdxVsLayer, hefdxVsX, hefdY, hefdyVsLayer, hefdyVsY, hefdZ, hefdzVsLayer, hefdzVsZ, PHGCalValidInfo::hefhgcEdep(), hefLayerVsEnStep, PHGCalValidInfo::hefTotEdep(), hefTotEdepStep, hefXG4VsId, hefYG4VsId, hefZG4VsId, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, hgcGeometry_, PHGCalValidInfo::hitDets(), PHGCalValidInfo::hitIndex(), PHGCalValidInfo::hitvtxX(), PHGCalValidInfo::hitvtxY(), PHGCalValidInfo::hitvtxZ(), mps_fire::i, l1ctLayer2EG_cff::id, iEvent, if(), createfilelist::int, LEDCalibrationChannels::iphi, edm::HandleBase::isValid(), phase1PixelTopology::layer, mmtocm, HGCalTestNumbering::unpackHexagonIndex(), verbosity_, HGCalWaferIndex::waferU(), HGCalWaferIndex::waferV(), geometryCSVtoXML::xx, geometryCSVtoXML::xy, geometryCSVtoXML::yy, ecaldqm::zside(), and geometryCSVtoXML::zz.

162  {
163  //Accessing G4 information
165  iEvent.getByToken(g4Token_, infoLayer);
166 
167  if (infoLayer.isValid()) {
168  //step vertex information
169  std::vector<float> hitVtxX = infoLayer->hitvtxX();
170  std::vector<float> hitVtxY = infoLayer->hitvtxY();
171  std::vector<float> hitVtxZ = infoLayer->hitvtxZ();
172  std::vector<unsigned int> hitDet = infoLayer->hitDets();
173  std::vector<unsigned int> hitIdx = infoLayer->hitIndex();
174 
175  //energy information
176  std::vector<float> edepLayerEE = infoLayer->eehgcEdep();
177  std::vector<float> edepLayerHE = infoLayer->hefhgcEdep();
178  std::vector<float> edepLayerHB = infoLayer->hebhgcEdep();
179 
180  unsigned int i;
181  for (i = 0; i < edepLayerEE.size(); i++) {
182  heeLayerVsEnStep->Fill(i, edepLayerEE.at(i));
183  }
184 
185  for (i = 0; i < edepLayerHE.size(); i++) {
186  hefLayerVsEnStep->Fill(i, edepLayerHE.at(i));
187  }
188 
189  for (i = 0; i < edepLayerHB.size(); i++) {
190  hebLayerVsEnStep->Fill(i, edepLayerHB.at(i));
191  }
192 
193  //fill total energy deposited
194  heeTotEdepStep->Fill((double)infoLayer->eeTotEdep());
195  hefTotEdepStep->Fill((double)infoLayer->hefTotEdep());
196  hebTotEdepStep->Fill((double)infoLayer->hebTotEdep());
197 
198  //loop over all hits
199  for (unsigned int i = 0; i < hitVtxX.size(); i++) {
200  hitVtxX.at(i) = mmtocm * hitVtxX.at(i);
201  hitVtxY.at(i) = mmtocm * hitVtxY.at(i);
202  hitVtxZ.at(i) = mmtocm * hitVtxZ.at(i);
203 
204  if ((hitDet.at(i) == (unsigned int)(DetId::Forward)) || (hitDet.at(i) == (unsigned int)(DetId::HGCalEE)) ||
205  (hitDet.at(i) == (unsigned int)(DetId::HGCalHSi)) || (hitDet.at(i) == (unsigned int)(DetId::HGCalHSc))) {
206  double xx, yy;
207  int dtype(0), layer(0), zside(1);
208  std::pair<float, float> xy;
209  if (hitDet.at(i) == (unsigned int)(DetId::Forward)) {
210  int subdet, wafer, celltype, cell;
211  HGCalTestNumbering::unpackHexagonIndex(hitIdx.at(i), subdet, zside, layer, wafer, celltype, cell);
212  dtype = (subdet == (int)(HGCEE)) ? 0 : 1;
213  xy = hgcGeometry_[dtype]->locateCell(cell, layer, wafer, true); //cm
214  } else if ((hitDet.at(i) == (unsigned int)(DetId::HGCalEE)) ||
215  (hitDet.at(i) == (unsigned int)(DetId::HGCalHSi))) {
216  HGCSiliconDetId id(hitIdx.at(i));
217  dtype = (id.det() == DetId::HGCalEE) ? 0 : 1;
218  layer = id.layer();
219  zside = id.zside();
220  xy = hgcGeometry_[dtype]->locateCell(layer, id.waferU(), id.waferV(), id.cellU(), id.cellV(), true, true);
221  } else {
222  HGCScintillatorDetId id(hitIdx.at(i));
223  dtype = 2;
224  layer = id.layer();
225  zside = id.zside();
226  xy = hgcGeometry_[dtype]->locateCellTrap(layer, id.ietaAbs(), id.iphi(), true);
227  }
228  double zz = hgcGeometry_[dtype]->waferZ(layer, true); //cm
229  if (zside < 0)
230  zz = -zz;
231  xx = (zside < 0) ? -xy.first : xy.first;
232  yy = xy.second;
233 
234  if (dtype == 0) {
235  heedzVsZ->Fill(zz, (hitVtxZ.at(i) - zz));
236  heedyVsY->Fill(yy, (hitVtxY.at(i) - yy));
237  heedxVsX->Fill(xx, (hitVtxX.at(i) - xx));
238 
239  heeXG4VsId->Fill(hitVtxX.at(i), xx);
240  heeYG4VsId->Fill(hitVtxY.at(i), yy);
241  heeZG4VsId->Fill(hitVtxZ.at(i), zz);
242 
243  heedzVsLayer->Fill(layer, (hitVtxZ.at(i) - zz));
244  heedyVsLayer->Fill(layer, (hitVtxY.at(i) - yy));
245  heedxVsLayer->Fill(layer, (hitVtxX.at(i) - xx));
246 
247  heedX->Fill((hitVtxX.at(i) - xx));
248  heedZ->Fill((hitVtxZ.at(i) - zz));
249  heedY->Fill((hitVtxY.at(i) - yy));
250 
251  } else if (dtype == 1) {
252  hefdzVsZ->Fill(zz, (hitVtxZ.at(i) - zz));
253  hefdyVsY->Fill(yy, (hitVtxY.at(i) - yy));
254  hefdxVsX->Fill(xx, (hitVtxX.at(i) - xx));
255 
256  hefXG4VsId->Fill(hitVtxX.at(i), xx);
257  hefYG4VsId->Fill(hitVtxY.at(i), yy);
258  hefZG4VsId->Fill(hitVtxZ.at(i), zz);
259 
260  hefdzVsLayer->Fill(layer, (hitVtxZ.at(i) - zz));
261  hefdyVsLayer->Fill(layer, (hitVtxY.at(i) - yy));
262  hefdxVsLayer->Fill(layer, (hitVtxX.at(i) - xx));
263 
264  hefdX->Fill((hitVtxX.at(i) - xx));
265  hefdZ->Fill((hitVtxZ.at(i) - zz));
266  hefdY->Fill((hitVtxY.at(i) - yy));
267 
268  } else {
269  hebdzVsZ->Fill(zz, (hitVtxZ.at(i) - zz));
270  hebdyVsY->Fill(yy, (hitVtxY.at(i) - yy));
271  hebdxVsX->Fill(xx, (hitVtxX.at(i) - xx));
272 
273  hebXG4VsId->Fill(hitVtxX.at(i), xx);
274  hebYG4VsId->Fill(hitVtxY.at(i), yy);
275  hebZG4VsId->Fill(hitVtxZ.at(i), zz);
276 
277  hebdzVsLayer->Fill(layer, (hitVtxZ.at(i) - zz));
278  hebdyVsLayer->Fill(layer, (hitVtxY.at(i) - yy));
279  hebdxVsLayer->Fill(layer, (hitVtxX.at(i) - xx));
280 
281  hebdX->Fill((hitVtxX.at(i) - xx));
282  hebdZ->Fill((hitVtxZ.at(i) - zz));
283  hebdY->Fill((hitVtxY.at(i) - yy));
284  }
285  }
286  } //end G4 hits
287 
288  } else {
289  if (verbosity_ > 0)
290  edm::LogVerbatim("HGCalValid") << "HGCGeometryValidation::No PHGCalInfo";
291  }
292 }
Log< level::Info, true > LogVerbatim
std::vector< unsigned int > hitIndex() const
float hefTotEdep() const
edm::EDGetTokenT< PHGCalValidInfo > g4Token_
std::vector< float > hefhgcEdep() const
std::vector< float > hitvtxZ() const
int32_t waferU(const int32_t index)
int zside(DetId const &)
std::vector< unsigned int > hitDets() const
constexpr std::array< uint8_t, layerIndexSize > layer
void Fill(long long x)
int iEvent
Definition: GenABIO.cc:224
MonitorElement * hefTotEdepStep
MonitorElement * hefLayerVsEnStep
MonitorElement * heeLayerVsEnStep
std::vector< float > eehgcEdep() const
const double mmtocm
std::vector< float > hebhgcEdep() const
MonitorElement * hebTotEdepStep
std::vector< float > hitvtxY() const
bool isValid() const
Definition: HandleBase.h:70
MonitorElement * hebLayerVsEnStep
std::vector< const HGCalDDDConstants * > hgcGeometry_
int32_t waferV(const int32_t index)
float hebTotEdep() const
float eeTotEdep() const
MonitorElement * heeTotEdepStep
static void unpackHexagonIndex(const uint32_t &idx, int &subdet, int &z, int &lay, int &wafer, int &celltyp, int &cell)
std::vector< float > hitvtxX() const

◆ bookHistograms()

void HGCGeometryValidation::bookHistograms ( DQMStore::IBooker iB,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 101 of file HGCGeometryValidation.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), hebdX, hebdxVsLayer, hebdxVsX, hebdY, hebdyVsLayer, hebdyVsY, hebdZ, hebdzVsLayer, hebdzVsZ, hebLayerVsEnStep, hebTotEdepStep, hebXG4VsId, hebYG4VsId, hebZG4VsId, heedX, heedxVsLayer, heedxVsX, heedY, heedyVsLayer, heedyVsY, heedZ, heedzVsLayer, heedzVsZ, heeLayerVsEnStep, heeTotEdepStep, heeXG4VsId, heeYG4VsId, heeZG4VsId, hefdX, hefdxVsLayer, hefdxVsX, hefdY, hefdyVsLayer, hefdyVsY, hefdZ, hefdzVsLayer, hefdzVsZ, hefLayerVsEnStep, hefTotEdepStep, hefXG4VsId, hefYG4VsId, hefZG4VsId, and dqm::implementation::NavigatorBase::setCurrentFolder().

101  {
102  iB.setCurrentFolder("HGCAL/HGCalSimHitsV/Geometry");
103 
104  //initiating histograms
105  heeTotEdepStep = iB.book1D("heeTotEdepStep", "", 100, 0, 100);
106  hefTotEdepStep = iB.book1D("hefTotEdepStep", "", 100, 0, 100);
107  hebTotEdepStep = iB.book1D("hebTotEdepStep", "", 100, 0, 100);
108 
109  hebLayerVsEnStep = iB.book2D("hebLayerVsEnStep", "", 25, 0, 25, 100, 0, 0.01);
110  hefLayerVsEnStep = iB.book2D("hefLayerVsEnStep", "", 36, 0, 36, 100, 0, 0.01);
111  heeLayerVsEnStep = iB.book2D("heeLayerVsEnStep", "", 84, 0, 84, 100, 0, 0.01);
112 
113  heeXG4VsId = iB.book2D("heeXG4VsId", "", 600, -300, 300, 600, -300, 300);
114  heeYG4VsId = iB.book2D("heeYG4VsId", "", 600, -300, 300, 600, -300, 300);
115  heeZG4VsId = iB.book2D("heeZG4VsId", "", 3000, 320, 350, 3000, 320, 350);
116 
117  hefXG4VsId = iB.book2D("hefXG4VsId", "", 600, -300, 300, 600, -300, 300);
118  hefYG4VsId = iB.book2D("hefYG4VsId", "", 600, -300, 300, 600, -300, 300);
119  hefZG4VsId = iB.book2D("hefZG4VsId", "", 6000, 350, 410, 6000, 350, 410);
120 
121  hebXG4VsId = iB.book2D("hebXG4VsId", "", 600, -300, 300, 600, -300, 300);
122  hebYG4VsId = iB.book2D("hebYG4VsId", "", 600, -300, 300, 600, -300, 300);
123  hebZG4VsId = iB.book2D("hebZG4VsId", "", 220, 400, 620, 220, 400, 620);
124 
125  heedzVsZ = iB.book2D("heedzVsZ", "", 600, 320, 350, 100, -1, 1);
126  heedyVsY = iB.book2D("heedyVsY", "", 400, -200, 200, 100, -1, 1);
127  heedxVsX = iB.book2D("heedxVsX", "", 400, -200, 200, 100, -1, 1);
128 
129  hefdzVsZ = iB.book2D("hefdzVsZ", "", 1200, 350, 410, 100, -1, 1);
130  hefdyVsY = iB.book2D("hefdyVsY", "", 400, -200, 200, 100, -1, 1);
131  hefdxVsX = iB.book2D("hefdxVsX", "", 400, -200, 200, 100, -1, 1);
132 
133  hebdzVsZ = iB.book2D("hebdzVsZ", "", 220, 400, 620, 100, -5, 5);
134  hebdyVsY = iB.book2D("hebdyVsY", "", 400, -200, 200, 100, -5, 5);
135  hebdxVsX = iB.book2D("hebdxVsX", "", 400, -200, 200, 100, -5, 5);
136 
137  heedzVsLayer = iB.book2D("heedzVsLayer", "", 100, 0, 100, 100, -1, 1);
138  hefdzVsLayer = iB.book2D("hefdzVsLayer", "", 40, 0, 40, 100, -1, 1);
139  hebdzVsLayer = iB.book2D("hebdzVsLayer", "", 50, 0, 25, 100, -5, 5);
140 
141  heedyVsLayer = iB.book2D("heedyVsLayer", "", 100, 0, 100, 100, -1, 1);
142  hefdyVsLayer = iB.book2D("hefdyVsLayer", "", 40, 0, 40, 100, -1, 1);
143  hebdyVsLayer = iB.book2D("hebdyVsLayer", "", 50, 0, 25, 100, -5, 5);
144 
145  heedxVsLayer = iB.book2D("heedxVsLayer", "", 100, 0, 100, 100, -1, 1);
146  hefdxVsLayer = iB.book2D("hefdxVsLayer", "", 40, 0, 40, 500, -1, 1);
147  hebdxVsLayer = iB.book2D("hebdxVsLayer", "", 50, 0, 25, 500, -5, 5.0);
148 
149  heedX = iB.book1D("heedX", "", 100, -1, 1);
150  heedY = iB.book1D("heedY", "", 100, -1, 1);
151  heedZ = iB.book1D("heedZ", "", 100, -1, 1);
152 
153  hefdX = iB.book1D("hefdX", "", 100, -1, 1);
154  hefdY = iB.book1D("hefdY", "", 100, -1, 1);
155  hefdZ = iB.book1D("hefdZ", "", 100, -1, 1);
156 
157  hebdX = iB.book1D("hebdX", "", 100, -1, 1);
158  hebdY = iB.book1D("hebdY", "", 100, -1, 1);
159  hebdZ = iB.book1D("hebdZ", "", 100, -1, 1);
160 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
MonitorElement * hefTotEdepStep
MonitorElement * hefLayerVsEnStep
MonitorElement * heeLayerVsEnStep
MonitorElement * hebTotEdepStep
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 * hebLayerVsEnStep
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
MonitorElement * heeTotEdepStep

◆ dqmBeginRun()

void HGCGeometryValidation::dqmBeginRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 94 of file HGCGeometryValidation.cc.

References geometrySource_, geomToken_, edm::EventSetup::getData(), hgcGeometry_, and mps_fire::i.

94  {
95  //initiating hgcnumbering
96  for (size_t i = 0; i < geometrySource_.size(); i++) {
97  hgcGeometry_.emplace_back(&iSetup.getData(geomToken_[i]));
98  }
99 }
std::vector< edm::ESGetToken< HGCalDDDConstants, IdealGeometryRecord > > geomToken_
std::vector< const HGCalDDDConstants * > hgcGeometry_
std::vector< std::string > geometrySource_

◆ fillDescriptions()

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

Definition at line 88 of file HGCGeometryValidation.cc.

References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.

88  {
90  desc.setUnknown();
91  descriptions.addDefault(desc);
92 }
void addDefault(ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ g4Token_

edm::EDGetTokenT<PHGCalValidInfo> HGCGeometryValidation::g4Token_
private

Definition at line 51 of file HGCGeometryValidation.cc.

Referenced by analyze(), and HGCGeometryValidation().

◆ geometrySource_

std::vector<std::string> HGCGeometryValidation::geometrySource_
private

Definition at line 52 of file HGCGeometryValidation.cc.

Referenced by dqmBeginRun(), and HGCGeometryValidation().

◆ geomToken_

std::vector<edm::ESGetToken<HGCalDDDConstants, IdealGeometryRecord> > HGCGeometryValidation::geomToken_
private

Definition at line 54 of file HGCGeometryValidation.cc.

Referenced by dqmBeginRun(), and HGCGeometryValidation().

◆ hebdX

MonitorElement* HGCGeometryValidation::hebdX
private

Definition at line 74 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebdxVsLayer

MonitorElement * HGCGeometryValidation::hebdxVsLayer
private

Definition at line 65 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebdxVsX

MonitorElement * HGCGeometryValidation::hebdxVsX
private

Definition at line 62 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebdY

MonitorElement * HGCGeometryValidation::hebdY
private

Definition at line 74 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebdyVsLayer

MonitorElement * HGCGeometryValidation::hebdyVsLayer
private

Definition at line 64 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebdyVsY

MonitorElement * HGCGeometryValidation::hebdyVsY
private

Definition at line 62 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebdZ

MonitorElement * HGCGeometryValidation::hebdZ
private

Definition at line 74 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebdzVsLayer

MonitorElement * HGCGeometryValidation::hebdzVsLayer
private

Definition at line 63 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebdzVsZ

MonitorElement* HGCGeometryValidation::hebdzVsZ
private

Definition at line 62 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebLayerVsEnStep

MonitorElement* HGCGeometryValidation::hebLayerVsEnStep
private

Definition at line 69 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebTotEdepStep

MonitorElement * HGCGeometryValidation::hebTotEdepStep
private

Definition at line 71 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebXG4VsId

MonitorElement * HGCGeometryValidation::hebXG4VsId
private

Definition at line 66 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebYG4VsId

MonitorElement * HGCGeometryValidation::hebYG4VsId
private

Definition at line 67 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hebZG4VsId

MonitorElement * HGCGeometryValidation::hebZG4VsId
private

Definition at line 68 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heedX

MonitorElement* HGCGeometryValidation::heedX
private

Definition at line 72 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heedxVsLayer

MonitorElement* HGCGeometryValidation::heedxVsLayer
private

Definition at line 65 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heedxVsX

MonitorElement * HGCGeometryValidation::heedxVsX
private

Definition at line 60 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heedY

MonitorElement * HGCGeometryValidation::heedY
private

Definition at line 72 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heedyVsLayer

MonitorElement* HGCGeometryValidation::heedyVsLayer
private

Definition at line 64 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heedyVsY

MonitorElement * HGCGeometryValidation::heedyVsY
private

Definition at line 60 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heedZ

MonitorElement * HGCGeometryValidation::heedZ
private

Definition at line 72 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heedzVsLayer

MonitorElement* HGCGeometryValidation::heedzVsLayer
private

Definition at line 63 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heedzVsZ

MonitorElement* HGCGeometryValidation::heedzVsZ
private

Definition at line 60 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heeLayerVsEnStep

MonitorElement * HGCGeometryValidation::heeLayerVsEnStep
private

Definition at line 69 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heeTotEdepStep

MonitorElement* HGCGeometryValidation::heeTotEdepStep
private

Definition at line 71 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heeXG4VsId

MonitorElement* HGCGeometryValidation::heeXG4VsId
private

Definition at line 66 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heeYG4VsId

MonitorElement* HGCGeometryValidation::heeYG4VsId
private

Definition at line 67 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ heeZG4VsId

MonitorElement* HGCGeometryValidation::heeZG4VsId
private

Definition at line 68 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefdX

MonitorElement* HGCGeometryValidation::hefdX
private

Definition at line 73 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefdxVsLayer

MonitorElement * HGCGeometryValidation::hefdxVsLayer
private

Definition at line 65 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefdxVsX

MonitorElement * HGCGeometryValidation::hefdxVsX
private

Definition at line 61 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefdY

MonitorElement * HGCGeometryValidation::hefdY
private

Definition at line 73 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefdyVsLayer

MonitorElement * HGCGeometryValidation::hefdyVsLayer
private

Definition at line 64 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefdyVsY

MonitorElement * HGCGeometryValidation::hefdyVsY
private

Definition at line 61 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefdZ

MonitorElement * HGCGeometryValidation::hefdZ
private

Definition at line 73 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefdzVsLayer

MonitorElement * HGCGeometryValidation::hefdzVsLayer
private

Definition at line 63 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefdzVsZ

MonitorElement* HGCGeometryValidation::hefdzVsZ
private

Definition at line 61 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefLayerVsEnStep

MonitorElement * HGCGeometryValidation::hefLayerVsEnStep
private

Definition at line 69 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefTotEdepStep

MonitorElement * HGCGeometryValidation::hefTotEdepStep
private

Definition at line 71 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefXG4VsId

MonitorElement * HGCGeometryValidation::hefXG4VsId
private

Definition at line 66 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefYG4VsId

MonitorElement * HGCGeometryValidation::hefYG4VsId
private

Definition at line 67 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hefZG4VsId

MonitorElement * HGCGeometryValidation::hefZG4VsId
private

Definition at line 68 of file HGCGeometryValidation.cc.

Referenced by analyze(), and bookHistograms().

◆ hgcGeometry_

std::vector<const HGCalDDDConstants *> HGCGeometryValidation::hgcGeometry_
private

Definition at line 57 of file HGCGeometryValidation.cc.

Referenced by analyze(), and dqmBeginRun().

◆ verbosity_

int HGCGeometryValidation::verbosity_
private

Definition at line 53 of file HGCGeometryValidation.cc.

Referenced by analyze(), and HGCGeometryValidation().