#include <GEMCheckGeometry.h>
Definition at line 13 of file GEMCheckGeometry.h.
GEMCheckGeometry::~GEMCheckGeometry |
( |
| ) |
|
|
override |
Definition at line 20 of file GEMCheckGeometry.cc.
References DQMStore::IBooker::book2D(), detailPlot_, MillePedeFileConverter_cfg::e, edm::EventSetup::get(), cond::hash, triggerObjects_cff::id, StripTopology::localPosition(), LogDebug, dataset::name, phi, GEMGeometry::regions(), relativeConstraints::ring, MonitorElement::setBinLabel(), DQMStore::IBooker::setCurrentFolder(), relativeConstraints::station, digitizers_cfi::strip, theStdPlots, fftjetcommon_cfi::title, and ecaldqm::topology().
28 GEMGeometry_ = &*hGeom;
30 edm::LogError(
"MuonGEMGeometry") <<
"+++ Error : GEM geometry is unavailable on event loop. +++\n";
35 LogDebug(
"GEMCheckGeometry") <<
"ibooker set current folder\n";
37 for (
auto region : GEMGeometry_->
regions()) {
38 TString
title = TString::Format(
"Geometry's phi distribution on Region %d ; #phi(degree); ;", region->region());
39 TString
name = TString::Format(
"geo_phi_r%d", region->region());
40 auto temp_me = ibooker.
book2D(name.Data(), title.Data(), 360000, -180., 180, 12, 1, 13);
42 temp_me->setBinLabel(2,
"St1,La1_odd", 2);
43 temp_me->setBinLabel(3,
"St1,La2_even", 2);
44 temp_me->setBinLabel(4,
"St1,La2_odd", 2);
45 temp_me->setBinLabel(5,
"St2,La1_even", 2);
46 temp_me->setBinLabel(6,
"St2,La1_odd", 2);
47 temp_me->setBinLabel(7,
"St2,La2_even", 2);
48 temp_me->setBinLabel(8,
"St2,La2_odd", 2);
52 for (
auto region : GEMGeometry_->
regions())
53 for (
auto station : region->stations())
55 for (
auto sch :
ring->superChambers())
56 for (
auto ch : sch->chambers())
57 for (
auto roll : ch->etaPartitions()) {
68 double phi = roll->toGlobal(lEdge).phi().degrees();
71 int region_idx =
id.region();
72 int station_idx =
id.station();
73 int chamber_idx =
id.chamber();
74 int layer_idx =
id.layer();
76 int value = (station_idx - 1) * 4 + (layer_idx - 1) * 2 + (chamber_idx % 2) + 1;
78 if (region_idx == 1) {
79 UInt_t
hash = TString(
"geo_phi_r1").Hash();
82 UInt_t hash = TString(
"geo_phi_r-1").Hash();
CaloTopology const * topology(0)
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
Container::value_type value_type
void setCurrentFolder(std::string const &fullpath)
const std::vector< const GEMRegion * > & regions() const
Return a vector of all GEM regions.
MonitorElement * book2D(Args &&...args)
std::map< UInt_t, MonitorElement * > theStdPlots
bool GEMCheckGeometry::detailPlot_ |
|
private |
double GEMCheckGeometry::GE11PhiBegin_ |
|
private |
double GEMCheckGeometry::GE11PhiStep_ |
|
private |
double GEMCheckGeometry::maxPhi_ |
|
private |
double GEMCheckGeometry::minPhi_ |
|
private |