CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
GEMDQMBase Class Reference

#include <GEMDQMBase.h>

Inheritance diagram for GEMDQMBase:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator > GEMDAQStatusSource GEMDigiSource GEMRecHitSource

Classes

class  BookingHelper
 
class  MEMapInfT
 
class  MEStationInfo
 

Public Types

typedef MEMapInfT< MEMap2Ids, ME2IdsKeyMEMap2Inf
 
typedef MEMapInfT< MEMap3Ids, ME3IdsKeyMEMap3Inf
 
typedef MEMapInfT< MEMap4Ids, ME4IdsKeyMEMap4Inf
 
- 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 >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Public Member Functions

 GEMDQMBase (const edm::ParameterSet &cfg)
 
 ~GEMDQMBase () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
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
 
virtual void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Protected Member Functions

template<typename T >
bool checkRefs (const std::vector< T * > &)
 
dqm::impl::MonitorElementCreateSummaryHist (DQMStore::IBooker &ibooker, TString strName)
 
int GenerateMEPerChamber (DQMStore::IBooker &ibooker)
 
int getDetOccXBin (const int, const int, const int)
 
int getIEtaFromVFAT (const int station, const int vfat)
 
int getIEtaFromVFATGE11 (const int vfat)
 
int getMaxVFAT (const int)
 
int getNumEtaPartitions (const GEMStation *)
 
int getVFATNumber (const int, const int, const int)
 
int getVFATNumberByStrip (const int, const int, const int)
 
int getVFATNumberGE11 (const int, const int, const int)
 
int initGeometry (edm::EventSetup const &iSetup)
 
ME3IdsKey key4Tokey3 (ME4IdsKey key)
 
int keyToChamber (ME4IdsKey key)
 
int keyToIEta (ME4IdsKey key)
 
int keyToLayer (ME3IdsKey key)
 
int keyToLayer (ME4IdsKey key)
 
int keyToRegion (ME2IdsKey key)
 
int keyToRegion (ME3IdsKey key)
 
int keyToRegion (ME4IdsKey key)
 
int keyToStation (ME2IdsKey key)
 
int keyToStation (ME3IdsKey key)
 
int keyToStation (ME4IdsKey key)
 
int loadChambers ()
 
virtual int ProcessWithMEMap2 (BookingHelper &bh, ME2IdsKey key)
 
virtual int ProcessWithMEMap3 (BookingHelper &bh, ME3IdsKey key)
 
virtual int ProcessWithMEMap3WithChamber (BookingHelper &bh, ME4IdsKey key)
 
virtual int ProcessWithMEMap4 (BookingHelper &bh, ME4IdsKey key)
 
int SortingLayers (std::vector< ME3IdsKey > &listLayers)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Protected Attributes

std::vector< GEMChambergemChambers_
 
const GEMGeometryGEMGeometry_
 
std::string log_category_
 
std::map< ME3IdsKey, MEStationInfomapStationInfo_
 
std::map< ME3IdsKey, int > mapStationToIdx_
 
std::map< ME2IdsKey, bool > MEMap2Check_
 
std::map< ME3IdsKey, bool > MEMap3Check_
 
std::map< ME4IdsKey, bool > MEMap3WithChCheck_
 
std::map< ME4IdsKey, bool > MEMap4Check_
 
int nMaxNumCh_
 
Int_t nNumEtaPartitionGE0_
 
Int_t nNumEtaPartitionGE11_
 
Int_t nNumEtaPartitionGE21_
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Additional Inherited Members

- 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 &)
 

Detailed Description

Definition at line 29 of file GEMDQMBase.h.

Member Typedef Documentation

◆ MEMap2Inf

Definition at line 316 of file GEMDQMBase.h.

◆ MEMap3Inf

Definition at line 317 of file GEMDQMBase.h.

◆ MEMap4Inf

Definition at line 318 of file GEMDQMBase.h.

Constructor & Destructor Documentation

◆ GEMDQMBase()

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

Definition at line 6 of file GEMDQMBase.cc.

6  {
7  log_category_ = cfg.getUntrackedParameter<std::string>("logCategory");
8 
12 }

References looper::cfg, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~GEMDQMBase()

GEMDQMBase::~GEMDQMBase ( )
inlineoverride

Definition at line 355 of file GEMDQMBase.h.

355 {};

Member Function Documentation

◆ checkRefs()

template<typename T >
bool GEMDQMBase::checkRefs ( const std::vector< T * > &  refs)
inlineprotected

Definition at line 420 of file GEMDQMBase.h.

420  {
421  if (refs.empty())
422  return false;
423  if (refs.front() == nullptr)
424  return false;
425  return true;
426 }

◆ CreateSummaryHist()

dqm::impl::MonitorElement * GEMDQMBase::CreateSummaryHist ( DQMStore::IBooker ibooker,
TString  strName 
)
protected

Definition at line 121 of file GEMDQMBase.cc.

121  {
122  std::vector<ME3IdsKey> listLayers;
123  for (auto const& [key, stationInfo] : mapStationInfo_)
124  listLayers.push_back(key);
125  SortingLayers(listLayers);
126  for (Int_t i = 0; i < (Int_t)listLayers.size(); i++)
127  mapStationToIdx_[listLayers[i]] = i + 1;
128 
129  auto h2Res =
130  ibooker.book2D(strName, "", nMaxNumCh_, 0.5, nMaxNumCh_ + 0.5, listLayers.size(), 0.5, listLayers.size() + 0.5);
131 
132  if (h2Res == nullptr)
133  return nullptr;
134 
135  for (Int_t i = 1; i <= nMaxNumCh_; i++)
136  h2Res->setBinLabel(i, Form("%i", i), 1);
137  for (Int_t i = 1; i <= (Int_t)listLayers.size(); i++) {
138  auto key = listLayers[i - 1];
139  h2Res->setBinLabel(i, Form("GE%+i/%iL%i", keyToRegion(key), keyToStation(key), keyToLayer(key)), 2);
140  Int_t nNumCh = mapStationInfo_[key].nNumChambers_;
141  h2Res->setBinContent(0, i, nNumCh);
142  }
143 
144  return h2Res;
145 }

References dqm::implementation::IBooker::book2D(), mps_fire::i, crabWrapper::key, and dqm::impl::MonitorElement::setBinLabel().

Referenced by GEMDigiSource::bookHistograms(), and GEMDAQStatusSource::bookHistograms().

◆ GenerateMEPerChamber()

int GEMDQMBase::GenerateMEPerChamber ( DQMStore::IBooker ibooker)
protected

Definition at line 147 of file GEMDQMBase.cc.

147  {
148  MEMap2Check_.clear();
149  MEMap3Check_.clear();
150  MEMap3WithChCheck_.clear();
151  MEMap4Check_.clear();
152  for (const auto& ch : gemChambers_) {
153  GEMDetId gid = ch.id();
154  ME2IdsKey key2{gid.region(), gid.station()};
155  ME3IdsKey key3{gid.region(), gid.station(), gid.layer()};
156  ME4IdsKey key3WithChamber{gid.region(), gid.station(), gid.layer(), gid.chamber()};
157  if (!MEMap2Check_[key2]) {
158  auto strSuffixName = GEMUtils::getSuffixName(key2);
159  auto strSuffixTitle = GEMUtils::getSuffixTitle(key2);
160  BookingHelper bh2(ibooker, strSuffixName, strSuffixTitle);
161  ProcessWithMEMap2(bh2, key2);
162  MEMap2Check_[key2] = true;
163  }
164  if (!MEMap3Check_[key3]) {
165  auto strSuffixName = GEMUtils::getSuffixName(key3);
166  auto strSuffixTitle = GEMUtils::getSuffixTitle(key3);
167  BookingHelper bh3(ibooker, strSuffixName, strSuffixTitle);
168  ProcessWithMEMap3(bh3, key3);
169  MEMap3Check_[key3] = true;
170  }
171  if (!MEMap3WithChCheck_[key3WithChamber]) {
172  auto strSuffixName = GEMUtils::getSuffixName(key3) + Form("_ch%02i", gid.chamber());
173  auto strSuffixTitle = GEMUtils::getSuffixTitle(key3) + Form(" Chamber %02i", gid.chamber());
174  BookingHelper bh3Ch(ibooker, strSuffixName, strSuffixTitle);
175  ProcessWithMEMap3WithChamber(bh3Ch, key3WithChamber);
176  MEMap3WithChCheck_[key3WithChamber] = true;
177  }
178  for (auto iEta : ch.etaPartitions()) {
179  GEMDetId rId = iEta->id();
180  ME4IdsKey key4{gid.region(), gid.station(), gid.layer(), rId.roll()};
181  if (!MEMap4Check_[key4]) {
182  auto strSuffixName = GEMUtils::getSuffixName(key3) + Form("_ieta%02i", rId.roll());
183  auto strSuffixTitle = GEMUtils::getSuffixTitle(key3) + Form(" iEta %02i", rId.roll());
184  BookingHelper bh4(ibooker, strSuffixName, strSuffixTitle);
185  ProcessWithMEMap4(bh4, key4);
186  MEMap4Check_[key4] = true;
187  }
188  }
189  }
190  return 0;
191 }

References GEMDetId::chamber(), GEMUtils::getSuffixName(), GEMUtils::getSuffixTitle(), L1TowerCalibrationProducer_cfi::iEta, GEMDetId::layer(), GEMDetId::region(), GEMDetId::roll(), and GEMDetId::station().

Referenced by GEMRecHitSource::bookHistograms(), GEMDigiSource::bookHistograms(), and GEMDAQStatusSource::bookHistograms().

◆ getDetOccXBin()

int GEMDQMBase::getDetOccXBin ( const int  chamber,
const int  layer,
const int  n_chambers 
)
inlineprotected

Definition at line 461 of file GEMDQMBase.h.

461  {
462  return n_chambers * (chamber - 1) + layer;
463 }

References relativeConstraints::chamber.

◆ getIEtaFromVFAT()

int GEMDQMBase::getIEtaFromVFAT ( const int  station,
const int  vfat 
)
inlineprotected

Definition at line 453 of file GEMDQMBase.h.

453  {
454  if (station == 1)
455  return getIEtaFromVFATGE11(vfat);
456  return getIEtaFromVFATGE11(vfat); // FIXME: What about GE21 and GE0?
457 }

References getIEtaFromVFATGE11(), and relativeConstraints::station.

Referenced by GEMDQMBase::MEMapInfT< M, K >::SetLabelForVFATs().

◆ getIEtaFromVFATGE11()

int GEMDQMBase::getIEtaFromVFATGE11 ( const int  vfat)
inlineprotected

Definition at line 459 of file GEMDQMBase.h.

459 { return 8 - (vfat % nNumEtaPartitionGE11_); }

References nNumEtaPartitionGE11_.

Referenced by getIEtaFromVFAT().

◆ getMaxVFAT()

int GEMDQMBase::getMaxVFAT ( const int  station)
inlineprotected

Definition at line 429 of file GEMDQMBase.h.

429  {
430  if (station == 1)
431  return GEMeMap::maxVFatGE11_;
432  else if (station == 2)
433  return GEMeMap::maxVFatGE21_;
434  else
435  return -1;
436 }

References GEMeMap::maxVFatGE11_, GEMeMap::maxVFatGE21_, and relativeConstraints::station.

◆ getNumEtaPartitions()

int GEMDQMBase::getNumEtaPartitions ( const GEMStation station)
protected

Definition at line 29 of file GEMDQMBase.cc.

29  {
30  const auto&& superchambers = station->superChambers();
31  if (not checkRefs(superchambers)) {
32  edm::LogError(log_category_) << "failed to get a valid vector of GEMSuperChamber ptrs" << std::endl;
33  return 0;
34  }
35 
36  const auto& chambers = superchambers.front()->chambers();
37  if (not checkRefs(chambers)) {
38  edm::LogError(log_category_) << "failed to get a valid vector of GEMChamber ptrs" << std::endl;
39  return 0;
40  }
41 
42  return chambers.front()->nEtaPartitions();
43 }

References chambers, and relativeConstraints::station.

◆ getVFATNumber()

int GEMDQMBase::getVFATNumber ( const int  station,
const int  ieta,
const int  vfat_phi 
)
inlineprotected

Definition at line 438 of file GEMDQMBase.h.

438  {
439  if (station == 1)
440  return getVFATNumberGE11(station, ieta, vfat_phi);
441  return getVFATNumberGE11(station, ieta, vfat_phi); // FIXME: What about GE21 and GE0?
442 }

References getVFATNumberGE11(), LEDCalibrationChannels::ieta, and relativeConstraints::station.

Referenced by GEMDAQStatusSource::analyze(), and getVFATNumberByStrip().

◆ getVFATNumberByStrip()

int GEMDQMBase::getVFATNumberByStrip ( const int  station,
const int  ieta,
const int  strip 
)
inlineprotected

Definition at line 448 of file GEMDQMBase.h.

448  {
449  const int vfat_phi = (strip % GEMeMap::maxChan_) ? strip / GEMeMap::maxChan_ + 1 : strip / GEMeMap::maxChan_;
450  return getVFATNumber(station, ieta, vfat_phi);
451 }

References getVFATNumber(), LEDCalibrationChannels::ieta, GEMeMap::maxChan_, relativeConstraints::station, and digitizers_cfi::strip.

Referenced by GEMDigiSource::analyze().

◆ getVFATNumberGE11()

int GEMDQMBase::getVFATNumberGE11 ( const int  station,
const int  ieta,
const int  vfat_phi 
)
inlineprotected

Definition at line 444 of file GEMDQMBase.h.

444  {
445  return vfat_phi * nNumEtaPartitionGE11_ + (8 - ieta);
446 }

References LEDCalibrationChannels::ieta, and nNumEtaPartitionGE11_.

Referenced by getVFATNumber().

◆ initGeometry()

int GEMDQMBase::initGeometry ( edm::EventSetup const &  iSetup)
protected

Definition at line 14 of file GEMDQMBase.cc.

14  {
15  GEMGeometry_ = nullptr;
16  try {
18  iSetup.get<MuonGeometryRecord>().get(hGeom);
19  GEMGeometry_ = &*hGeom;
21  edm::LogError(log_category_) << "+++ Error : GEM geometry is unavailable on event loop. +++\n";
22  return -1;
23  }
24 
25  return 0;
26 }

References MillePedeFileConverter_cfg::e, edm::EventSetup::get(), and get.

Referenced by GEMRecHitSource::bookHistograms(), GEMDigiSource::bookHistograms(), and GEMDAQStatusSource::bookHistograms().

◆ key4Tokey3()

ME3IdsKey GEMDQMBase::key4Tokey3 ( ME4IdsKey  key)
inlineprotected

◆ keyToChamber()

int GEMDQMBase::keyToChamber ( ME4IdsKey  key)
inlineprotected

Definition at line 375 of file GEMDQMBase.h.

375 { return std::get<3>(key); };

References crabWrapper::key.

Referenced by GEMDAQStatusSource::analyze().

◆ keyToIEta()

int GEMDQMBase::keyToIEta ( ME4IdsKey  key)
inlineprotected

Definition at line 376 of file GEMDQMBase.h.

376 { return std::get<3>(key); };

References crabWrapper::key.

◆ keyToLayer() [1/2]

int GEMDQMBase::keyToLayer ( ME3IdsKey  key)
inlineprotected

Definition at line 373 of file GEMDQMBase.h.

373 { return std::get<2>(key); };

References crabWrapper::key.

Referenced by key4Tokey3().

◆ keyToLayer() [2/2]

int GEMDQMBase::keyToLayer ( ME4IdsKey  key)
inlineprotected

Definition at line 374 of file GEMDQMBase.h.

374 { return std::get<2>(key); };

References crabWrapper::key.

◆ keyToRegion() [1/3]

int GEMDQMBase::keyToRegion ( ME2IdsKey  key)
inlineprotected

Definition at line 367 of file GEMDQMBase.h.

367 { return std::get<0>(key); };

References crabWrapper::key.

Referenced by key4Tokey3().

◆ keyToRegion() [2/3]

int GEMDQMBase::keyToRegion ( ME3IdsKey  key)
inlineprotected

Definition at line 368 of file GEMDQMBase.h.

368 { return std::get<0>(key); };

References crabWrapper::key.

◆ keyToRegion() [3/3]

int GEMDQMBase::keyToRegion ( ME4IdsKey  key)
inlineprotected

Definition at line 369 of file GEMDQMBase.h.

369 { return std::get<0>(key); };

References crabWrapper::key.

◆ keyToStation() [1/3]

int GEMDQMBase::keyToStation ( ME2IdsKey  key)
inlineprotected

Definition at line 370 of file GEMDQMBase.h.

370 { return std::get<1>(key); };

References crabWrapper::key.

Referenced by key4Tokey3().

◆ keyToStation() [2/3]

int GEMDQMBase::keyToStation ( ME3IdsKey  key)
inlineprotected

Definition at line 371 of file GEMDQMBase.h.

371 { return std::get<1>(key); };

References crabWrapper::key.

◆ keyToStation() [3/3]

int GEMDQMBase::keyToStation ( ME4IdsKey  key)
inlineprotected

Definition at line 372 of file GEMDQMBase.h.

372 { return std::get<1>(key); };

References crabWrapper::key.

◆ loadChambers()

int GEMDQMBase::loadChambers ( )
protected

Definition at line 45 of file GEMDQMBase.cc.

45  {
46  if (GEMGeometry_ == nullptr)
47  return -1;
48  gemChambers_.clear();
49  const std::vector<const GEMSuperChamber*>& superChambers_ = GEMGeometry_->superChambers();
50  for (auto sch : superChambers_) { // FIXME: This loop can be merged into the below loop
51  int n_lay = sch->nChambers();
52  for (int l = 0; l < n_lay; l++) {
53  Bool_t bExist = false;
54  for (const auto& ch : gemChambers_) {
55  if (ch.id() == sch->chamber(l + 1)->id()) {
56  bExist = true;
57  break;
58  }
59  }
60  if (bExist)
61  continue;
62  gemChambers_.push_back(*sch->chamber(l + 1));
63  }
64  }
65 
66  // Borrwed from DQMOffline/Muon/src/GEMOfflineMonitor.cc
67  nMaxNumCh_ = 0;
68  for (const GEMRegion* region : GEMGeometry_->regions()) {
69  const int region_number = region->region();
70 
71  for (const GEMStation* station : region->stations()) {
72  const auto&& superchambers = station->superChambers();
73 
74  const int station_number = station->station();
75  const int num_superchambers = superchambers.size();
76  const int num_layers = superchambers.front()->nChambers();
77  const int max_vfat = getMaxVFAT(station->station()); // the numer of VFATs per GEMEtaPartition
78  const int num_etas = getNumEtaPartitions(station); // the number of eta partitions per GEMChamber
79  const int num_vfat = num_etas * max_vfat; // the number of VFATs per GEMChamber
80  const int num_strip = GEMeMap::maxChan_; // the number of strips (channels) per VFAT
81 
82  nMaxNumCh_ = std::max(nMaxNumCh_, num_superchambers);
83 
84  for (int layer_number = 1; layer_number <= num_layers; layer_number++) {
85  ME3IdsKey key3(region_number, station_number, layer_number);
86  mapStationInfo_[key3] = MEStationInfo(
87  region_number, station_number, layer_number, num_superchambers, num_etas, num_vfat, num_strip);
88  }
89  }
90  }
91 
92  if (mapStationInfo_.find(ME3IdsKey(-1, 0, 1)) != mapStationInfo_.end())
93  nNumEtaPartitionGE0_ = mapStationInfo_[ME3IdsKey(-1, 0, 1)].nNumEtaPartitions_;
94  if (mapStationInfo_.find(ME3IdsKey(-1, 1, 1)) != mapStationInfo_.end())
95  nNumEtaPartitionGE11_ = mapStationInfo_[ME3IdsKey(-1, 1, 1)].nNumEtaPartitions_;
96  if (mapStationInfo_.find(ME3IdsKey(-1, 2, 1)) != mapStationInfo_.end())
97  nNumEtaPartitionGE21_ = mapStationInfo_[ME3IdsKey(-1, 2, 1)].nNumEtaPartitions_;
98 
99  return 0;
100 }

References cmsLHEtoEOSManager::l, SiStripPI::max, GEMeMap::maxChan_, HLT_FULL_cff::region, and relativeConstraints::station.

Referenced by GEMRecHitSource::bookHistograms(), GEMDigiSource::bookHistograms(), and GEMDAQStatusSource::bookHistograms().

◆ ProcessWithMEMap2()

virtual int GEMDQMBase::ProcessWithMEMap2 ( BookingHelper bh,
ME2IdsKey  key 
)
inlineprotectedvirtual

Definition at line 362 of file GEMDQMBase.h.

362 { return 0; }; // must be overrided

◆ ProcessWithMEMap3()

virtual int GEMDQMBase::ProcessWithMEMap3 ( BookingHelper bh,
ME3IdsKey  key 
)
inlineprotectedvirtual

Reimplemented in GEMDAQStatusSource, GEMDigiSource, and GEMRecHitSource.

Definition at line 363 of file GEMDQMBase.h.

363 { return 0; }; // must be overrided

◆ ProcessWithMEMap3WithChamber()

virtual int GEMDQMBase::ProcessWithMEMap3WithChamber ( BookingHelper bh,
ME4IdsKey  key 
)
inlineprotectedvirtual

Reimplemented in GEMDAQStatusSource, GEMDigiSource, and GEMRecHitSource.

Definition at line 365 of file GEMDQMBase.h.

365 { return 0; }; // must be overrided

◆ ProcessWithMEMap4()

virtual int GEMDQMBase::ProcessWithMEMap4 ( BookingHelper bh,
ME4IdsKey  key 
)
inlineprotectedvirtual

Reimplemented in GEMRecHitSource.

Definition at line 364 of file GEMDQMBase.h.

364 { return 0; }; // must be overrided

◆ SortingLayers()

int GEMDQMBase::SortingLayers ( std::vector< ME3IdsKey > &  listLayers)
protected

Definition at line 102 of file GEMDQMBase.cc.

102  {
103  std::sort(listLayers.begin(), listLayers.end(), [](ME3IdsKey key1, ME3IdsKey key2) {
104  Int_t re1 = std::get<0>(key1), st1 = std::get<1>(key1), la1 = std::get<2>(key1);
105  Int_t re2 = std::get<0>(key2), st2 = std::get<1>(key2), la2 = std::get<2>(key2);
106  if (re1 < 0 && re2 > 0)
107  return false;
108  if (re1 > 0 && re2 < 0)
109  return true;
110  Bool_t bRes = (re1 < 0); // == re2 < 0
111  Int_t sum1 = 256 * std::abs(re1) + 16 * st1 + 1 * la1;
112  Int_t sum2 = 256 * std::abs(re2) + 16 * st2 + 1 * la2;
113  if (sum1 <= sum2)
114  return bRes;
115  return !bRes;
116  });
117 
118  return 0;
119 }

References funct::abs(), and combinedConstraintHelpers::sum2().

Member Data Documentation

◆ gemChambers_

std::vector<GEMChamber> GEMDQMBase::gemChambers_
protected

Definition at line 402 of file GEMDQMBase.h.

Referenced by GEMRecHitSource::analyze(), and GEMDigiSource::analyze().

◆ GEMGeometry_

const GEMGeometry* GEMDQMBase::GEMGeometry_
protected

◆ log_category_

std::string GEMDQMBase::log_category_
protected

Definition at line 398 of file GEMDQMBase.h.

Referenced by GEMRecHitSource::analyze(), and GEMDAQStatusSource::analyze().

◆ mapStationInfo_

std::map<ME3IdsKey, MEStationInfo> GEMDQMBase::mapStationInfo_
protected

◆ mapStationToIdx_

std::map<ME3IdsKey, int> GEMDQMBase::mapStationToIdx_
protected

Definition at line 410 of file GEMDQMBase.h.

Referenced by GEMDigiSource::analyze(), and GEMDAQStatusSource::analyze().

◆ MEMap2Check_

std::map<ME2IdsKey, bool> GEMDQMBase::MEMap2Check_
protected

Definition at line 404 of file GEMDQMBase.h.

◆ MEMap3Check_

std::map<ME3IdsKey, bool> GEMDQMBase::MEMap3Check_
protected

Definition at line 405 of file GEMDQMBase.h.

◆ MEMap3WithChCheck_

std::map<ME4IdsKey, bool> GEMDQMBase::MEMap3WithChCheck_
protected

Definition at line 406 of file GEMDQMBase.h.

◆ MEMap4Check_

std::map<ME4IdsKey, bool> GEMDQMBase::MEMap4Check_
protected

Definition at line 407 of file GEMDQMBase.h.

◆ nMaxNumCh_

int GEMDQMBase::nMaxNumCh_
protected

Definition at line 409 of file GEMDQMBase.h.

◆ nNumEtaPartitionGE0_

Int_t GEMDQMBase::nNumEtaPartitionGE0_
protected

Definition at line 413 of file GEMDQMBase.h.

◆ nNumEtaPartitionGE11_

Int_t GEMDQMBase::nNumEtaPartitionGE11_
protected

Definition at line 414 of file GEMDQMBase.h.

Referenced by getIEtaFromVFATGE11(), and getVFATNumberGE11().

◆ nNumEtaPartitionGE21_

Int_t GEMDQMBase::nNumEtaPartitionGE21_
protected

Definition at line 415 of file GEMDQMBase.h.

GEMDQMBase::MEMap3Check_
std::map< ME3IdsKey, bool > MEMap3Check_
Definition: GEMDQMBase.h:405
GEMDQMBase::gemChambers_
std::vector< GEMChamber > gemChambers_
Definition: GEMDQMBase.h:402
ME2IdsKey
std::tuple< Int_t, Int_t > ME2IdsKey
Definition: GEMValidationUtils.h:16
GEMDQMBase::MEMap4Check_
std::map< ME4IdsKey, bool > MEMap4Check_
Definition: GEMDQMBase.h:407
mps_fire.i
i
Definition: mps_fire.py:428
GEMDQMBase::keyToStation
int keyToStation(ME2IdsKey key)
Definition: GEMDQMBase.h:370
GEMDetId::layer
constexpr int layer() const
Definition: GEMDetId.h:187
GEMDetId::region
constexpr int region() const
Definition: GEMDetId.h:168
relativeConstraints.station
station
Definition: relativeConstraints.py:67
GEMDQMBase::GEMGeometry_
const GEMGeometry * GEMGeometry_
Definition: GEMDQMBase.h:400
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
ME4IdsKey
std::tuple< Int_t, Int_t, Int_t, Int_t > ME4IdsKey
Definition: GEMValidationUtils.h:20
GEMDQMBase::SortingLayers
int SortingLayers(std::vector< ME3IdsKey > &listLayers)
Definition: GEMDQMBase.cc:102
GEMDQMBase::getMaxVFAT
int getMaxVFAT(const int)
Definition: GEMDQMBase.h:429
GEMDQMBase::nMaxNumCh_
int nMaxNumCh_
Definition: GEMDQMBase.h:409
GEMUtils::getSuffixName
TString getSuffixName(Int_t region_id)
Definition: GEMValidationUtils.cc:5
GEMDQMBase::nNumEtaPartitionGE0_
Int_t nNumEtaPartitionGE0_
Definition: GEMDQMBase.h:413
GEMeMap::maxVFatGE21_
static const int maxVFatGE21_
Definition: GEMeMap.h:66
GEMDQMBase::getVFATNumberGE11
int getVFATNumberGE11(const int, const int, const int)
Definition: GEMDQMBase.h:444
GEMDQMBase::nNumEtaPartitionGE21_
Int_t nNumEtaPartitionGE21_
Definition: GEMDQMBase.h:415
GEMStation
Definition: GEMStation.h:19
edm::ESHandle< GEMGeometry >
GEMeMap::maxVFatGE11_
static const int maxVFatGE11_
Definition: GEMeMap.h:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
GEMDetId::chamber
constexpr int chamber() const
Definition: GEMDetId.h:180
GEMDQMBase::getVFATNumber
int getVFATNumber(const int, const int, const int)
Definition: GEMDQMBase.h:438
GEMDQMBase::MEMap3WithChCheck_
std::map< ME4IdsKey, bool > MEMap3WithChCheck_
Definition: GEMDQMBase.h:406
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
GEMDetId::roll
constexpr int roll() const
Definition: GEMDetId.h:191
GEMDQMBase::ProcessWithMEMap2
virtual int ProcessWithMEMap2(BookingHelper &bh, ME2IdsKey key)
Definition: GEMDQMBase.h:362
GEMDetId
Definition: GEMDetId.h:18
GEMDQMBase::checkRefs
bool checkRefs(const std::vector< T * > &)
Definition: GEMDQMBase.h:420
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88338
dqm::impl::MonitorElement::setBinLabel
virtual 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)
Definition: MonitorElement.cc:771
chambers
static char chambers[264][20]
Definition: ReadPGInfo.cc:243
GEMGeometry::regions
const std::vector< const GEMRegion * > & regions() const
Return a vector of all GEM regions.
Definition: GEMGeometry.cc:30
GEMDQMBase::nNumEtaPartitionGE11_
Int_t nNumEtaPartitionGE11_
Definition: GEMDQMBase.h:414
GEMDQMBase::ProcessWithMEMap4
virtual int ProcessWithMEMap4(BookingHelper &bh, ME4IdsKey key)
Definition: GEMDQMBase.h:364
combinedConstraintHelpers::sum2
void sum2(T &x, T y)
Definition: CombinedKinematicConstraintT.h:74
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
get
#define get
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
looper.cfg
cfg
Definition: looper.py:297
GEMDQMBase::keyToLayer
int keyToLayer(ME3IdsKey key)
Definition: GEMDQMBase.h:373
GEMDQMBase::log_category_
std::string log_category_
Definition: GEMDQMBase.h:398
GEMDQMBase::mapStationInfo_
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:411
dqm::implementation::IBooker::book2D
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:177
GEMUtils::getSuffixTitle
TString getSuffixTitle(Int_t region_id)
Definition: GEMValidationUtils.cc:34
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
ME3IdsKey
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
Definition: GEMValidationUtils.h:19
GEMDQMBase::mapStationToIdx_
std::map< ME3IdsKey, int > mapStationToIdx_
Definition: GEMDQMBase.h:410
GEMDQMBase::keyToRegion
int keyToRegion(ME2IdsKey key)
Definition: GEMDQMBase.h:367
edm::eventsetup::NoProxyException
Definition: NoProxyException.h:31
L1TowerCalibrationProducer_cfi.iEta
iEta
Definition: L1TowerCalibrationProducer_cfi.py:60
GEMDetId::station
constexpr int station() const
Definition: GEMDetId.h:176
GEMDQMBase::MEMap2Check_
std::map< ME2IdsKey, bool > MEMap2Check_
Definition: GEMDQMBase.h:404
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
GEMGeometry::superChambers
const std::vector< const GEMSuperChamber * > & superChambers() const
Return a vector of all GEM super chambers.
Definition: GEMGeometry.cc:36
GEMRegion
Definition: GEMRegion.h:19
GEMDQMBase::ProcessWithMEMap3WithChamber
virtual int ProcessWithMEMap3WithChamber(BookingHelper &bh, ME4IdsKey key)
Definition: GEMDQMBase.h:365
GEMDQMBase::getNumEtaPartitions
int getNumEtaPartitions(const GEMStation *)
Definition: GEMDQMBase.cc:29
crabWrapper.key
key
Definition: crabWrapper.py:19
GEMDQMBase::getIEtaFromVFATGE11
int getIEtaFromVFATGE11(const int vfat)
Definition: GEMDQMBase.h:459
GEMDQMBase::ProcessWithMEMap3
virtual int ProcessWithMEMap3(BookingHelper &bh, ME3IdsKey key)
Definition: GEMDQMBase.h:363
MuonGeometryRecord
Definition: MuonGeometryRecord.h:34
GEMeMap::maxChan_
static const int maxChan_
Definition: GEMeMap.h:67
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37