34 edm::LogError(
"MuonGEMGeometry") <<
"+++ Error : GEM geometry is unavailable on event loop. +++\n";
39 LogDebug(
"GEMCheckGeometry")<<
"ibooker set current folder\n";
41 for(
auto region : GEMGeometry_->
regions()) {
42 TString
title = TString::Format(
"Geometry's phi distribution on Region %d ; #phi(degree); ;",region->region());
43 TString
name = TString::Format(
"geo_phi_r%d",region->region());
44 auto temp_me = ibooker.
book2D(name.Data(), title.Data(), 360000, -180., 180, 12,1,13);
46 temp_me->setBinLabel(2,
"St1,La1_odd",2);
47 temp_me->setBinLabel(3,
"St1,La2_even",2);
48 temp_me->setBinLabel(4,
"St1,La2_odd",2);
49 temp_me->setBinLabel(5,
"St2,La1_even",2);
50 temp_me->setBinLabel(6,
"St2,La1_odd",2);
51 temp_me->setBinLabel(7,
"St2,La2_even",2);
52 temp_me->setBinLabel(8,
"St2,La2_odd",2);
57 for(
auto region : GEMGeometry_->
regions())
58 for (
auto station : region->stations())
60 for (
auto sch :
ring->superChambers())
61 for (
auto ch : sch->chambers())
62 for (
auto roll : ch->etaPartitions()) {
75 double phi = roll->toGlobal(lEdge).phi().degrees();
78 int region_idx =
id.region();
79 int station_idx =
id.station();
80 int chamber_idx =
id.chamber();
81 int layer_idx =
id.layer();
83 int value = (station_idx-1)*4+(layer_idx-1)*2+(chamber_idx%2)+1;
85 if ( region_idx ==1 ) {
86 UInt_t
hash = TString(
"geo_phi_r1").Hash();
90 UInt_t
hash = TString(
"geo_phi_r-1").Hash();
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::map< UInt_t, MonitorElement * > theStdPlots
CaloTopology const * topology(0)
~GEMCheckGeometry() override
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)
void analyze(const edm::Event &e, const edm::EventSetup &) override
GEMCheckGeometry(const edm::ParameterSet &gc)
Container::value_type value_type
virtual LocalPoint localPosition(float strip) const =0
const std::vector< const GEMRegion * > & regions() const
Return a vector of all GEM regions.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)