|
|
#include <GEMDQMBase.h>
|
template<typename T > |
bool | checkRefs (const std::vector< T * > &) |
|
dqm::impl::MonitorElement * | CreateSummaryHist (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 | getVFATNumberByDigi (const int, const int, const int) |
|
int | getVFATNumberGE11 (const int, const int, const int) |
|
int | initGeometry (edm::EventSetup const &iSetup) |
|
ME2IdsKey | key3Tokey2 (ME3IdsKey key) |
|
ME3IdsKey | key4Tokey3 (ME4IdsKey key) |
|
int | keyToChamber (ME4IdsKey key) |
|
int | keyToIEta (ME3IdsKey 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 | ProcessWithMEMap2AbsReWithEta (BookingHelper &bh, ME3IdsKey key) |
|
virtual int | ProcessWithMEMap2WithEta (BookingHelper &bh, ME3IdsKey key) |
|
virtual int | ProcessWithMEMap3 (BookingHelper &bh, ME3IdsKey key) |
|
virtual int | ProcessWithMEMap3WithChamber (BookingHelper &bh, ME4IdsKey key) |
|
virtual int | ProcessWithMEMap4 (BookingHelper &bh, ME4IdsKey key) |
|
int | readRadiusEtaPartition (int nRegion, int nStation) |
|
int | SortingLayers (std::vector< ME3IdsKey > &listLayers) |
|
uint64_t | meId () const |
|
Definition at line 29 of file GEMDQMBase.h.
◆ MEMap2Inf
◆ MEMap3Inf
◆ MEMap4Inf
◆ GEMDQMBase()
◆ ~GEMDQMBase()
GEMDQMBase::~GEMDQMBase |
( |
| ) |
|
|
inlineoverride |
◆ checkRefs()
template<typename T >
bool GEMDQMBase::checkRefs |
( |
const std::vector< T * > & |
refs | ) |
|
|
inlineprotected |
Definition at line 533 of file GEMDQMBase.h.
536 if (refs.front() ==
nullptr)
◆ CreateSummaryHist()
Definition at line 122 of file GEMDQMBase.cc.
123 std::vector<ME3IdsKey> listLayers;
125 listLayers.push_back(
key);
127 for (Int_t
i = 0;
i < (Int_t)listLayers.size();
i++)
133 h2Res->setYTitle(
"Layer");
135 if (h2Res ==
nullptr)
139 h2Res->setBinLabel(
i, Form(
"%i",
i), 1);
140 for (Int_t
i = 1;
i <= (Int_t)listLayers.size();
i++) {
141 auto key = listLayers[
i - 1];
144 auto label = Form(
"GE%i%i-%cL%i;%s",
150 h2Res->setBinLabel(
i,
label, 2);
152 h2Res->setBinContent(0,
i, nNumCh);
References funct::abs(), dqm::implementation::IBooker::book2D(), GEMUtils::getSuffixName(), mps_fire::i, crabWrapper::key, label, HLT_FULL_cff::region, and dqm::impl::MonitorElement::setXTitle().
Referenced by GEMDigiSource::bookHistograms(), and GEMDAQStatusSource::bookHistograms().
◆ GenerateMEPerChamber()
Definition at line 158 of file GEMDQMBase.cc.
173 BookingHelper bh2(ibooker, strSuffixName, strSuffixTitle);
180 BookingHelper bh3(ibooker, strSuffixName, strSuffixTitle);
186 Int_t nLa = gid.
layer();
187 char cLS = (nCh % 2 == 0 ?
'L' :
'S');
190 BookingHelper bh3Ch(ibooker, strSuffixName, strSuffixTitle);
194 for (
auto iEta : ch.etaPartitions()) {
202 BookingHelper bh4(ibooker, strSuffixName, strSuffixTitle);
209 BookingHelper bh3(ibooker, strSuffixName, strSuffixTitle);
216 BookingHelper bh3(ibooker, strSuffixName, strSuffixTitle);
References funct::abs(), GEMDetId::chamber(), GEMUtils::getSuffixName(), GEMUtils::getSuffixTitle(), L1TowerCalibrationProducer_cfi::iEta, GEMDetId::ieta(), GEMDetId::layer(), GEMDetId::region(), 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 |
◆ getIEtaFromVFAT()
int GEMDQMBase::getIEtaFromVFAT |
( |
const int |
station, |
|
|
const int |
vfat |
|
) |
| |
|
inlineprotected |
◆ getIEtaFromVFATGE11()
int GEMDQMBase::getIEtaFromVFATGE11 |
( |
const int |
vfat | ) |
|
|
inlineprotected |
◆ getMaxVFAT()
int GEMDQMBase::getMaxVFAT |
( |
const int |
station | ) |
|
|
inlineprotected |
◆ getNumEtaPartitions()
int GEMDQMBase::getNumEtaPartitions |
( |
const GEMStation * |
station | ) |
|
|
protected |
◆ getVFATNumber()
int GEMDQMBase::getVFATNumber |
( |
const int |
station, |
|
|
const int |
ieta, |
|
|
const int |
vfat_phi |
|
) |
| |
|
inlineprotected |
◆ getVFATNumberByDigi()
int GEMDQMBase::getVFATNumberByDigi |
( |
const int |
station, |
|
|
const int |
ieta, |
|
|
const int |
digi |
|
) |
| |
|
inlineprotected |
◆ getVFATNumberGE11()
int GEMDQMBase::getVFATNumberGE11 |
( |
const int |
station, |
|
|
const int |
ieta, |
|
|
const int |
vfat_phi |
|
) |
| |
|
inlineprotected |
◆ initGeometry()
◆ key3Tokey2()
◆ key4Tokey3()
◆ keyToChamber()
int GEMDQMBase::keyToChamber |
( |
ME4IdsKey |
key | ) |
|
|
inlineprotected |
◆ keyToIEta() [1/2]
◆ keyToIEta() [2/2]
◆ keyToLayer() [1/2]
◆ keyToLayer() [2/2]
◆ keyToRegion() [1/3]
◆ keyToRegion() [2/3]
◆ keyToRegion() [3/3]
◆ keyToStation() [1/3]
int GEMDQMBase::keyToStation |
( |
ME2IdsKey |
key | ) |
|
|
inlineprotected |
◆ keyToStation() [2/3]
int GEMDQMBase::keyToStation |
( |
ME3IdsKey |
key | ) |
|
|
inlineprotected |
◆ keyToStation() [3/3]
int GEMDQMBase::keyToStation |
( |
ME4IdsKey |
key | ) |
|
|
inlineprotected |
◆ loadChambers()
int GEMDQMBase::loadChambers |
( |
| ) |
|
|
protected |
Definition at line 46 of file GEMDQMBase.cc.
51 for (
auto sch : superChambers_) {
52 int n_lay = sch->nChambers();
53 for (
int l = 0;
l < n_lay;
l++) {
54 Bool_t bExist =
false;
56 if (ch.id() == sch->chamber(
l + 1)->id()) {
70 const int region_number =
region->region();
73 const auto&& superchambers =
station->superChambers();
75 const int station_number =
station->station();
76 const int num_superchambers = superchambers.size();
77 const int num_layers = superchambers.front()->nChambers();
80 const int num_vfat = num_etas * max_vfat;
85 for (
int layer_number = 1; layer_number <= num_layers; layer_number++) {
86 ME3IdsKey key3(region_number, station_number, layer_number);
88 MEStationInfo(region_number, station_number, layer_number, num_superchambers, num_etas, num_vfat, num_digi);
References cmsLHEtoEOSManager::l, SiStripPI::max, GEMeMap::maxChan_, HLT_FULL_cff::region, and relativeConstraints::station.
Referenced by GEMRecHitSource::bookHistograms(), GEMDigiSource::bookHistograms(), and GEMDAQStatusSource::bookHistograms().
◆ ProcessWithMEMap2()
◆ ProcessWithMEMap2AbsReWithEta()
◆ ProcessWithMEMap2WithEta()
◆ ProcessWithMEMap3()
◆ ProcessWithMEMap3WithChamber()
◆ ProcessWithMEMap4()
◆ readRadiusEtaPartition()
int GEMDQMBase::readRadiusEtaPartition |
( |
int |
nRegion, |
|
|
int |
nStation |
|
) |
| |
|
protected |
◆ SortingLayers()
int GEMDQMBase::SortingLayers |
( |
std::vector< ME3IdsKey > & |
listLayers | ) |
|
|
protected |
Definition at line 103 of file GEMDQMBase.cc.
105 Int_t re1 = std::get<0>(key1), st1 = std::get<1>(key1), la1 = std::get<2>(key1);
106 Int_t re2 = std::get<0>(key2), st2 = std::get<1>(key2), la2 = std::get<2>(key2);
107 if (re1 < 0 && re2 > 0)
109 if (re1 > 0 && re2 < 0)
111 Bool_t bRes = (re1 < 0);
112 Int_t sum1 = 256 *
std::abs(re1) + 16 * st1 + 1 * la1;
References funct::abs(), jetUpdater_cfi::sort, and combinedConstraintHelpers::sum2().
◆ gemChambers_
◆ GEMGeometry_
◆ log_category_
std::string GEMDQMBase::log_category_ |
◆ mapStationInfo_
◆ mapStationToIdx_
std::map<ME3IdsKey, int> GEMDQMBase::mapStationToIdx_ |
|
protected |
◆ MEMap2AbsReWithEtaCheck_
std::map<ME3IdsKey, bool> GEMDQMBase::MEMap2AbsReWithEtaCheck_ |
|
protected |
◆ MEMap2Check_
std::map<ME2IdsKey, bool> GEMDQMBase::MEMap2Check_ |
|
protected |
◆ MEMap2WithEtaCheck_
std::map<ME3IdsKey, bool> GEMDQMBase::MEMap2WithEtaCheck_ |
|
protected |
◆ MEMap3Check_
std::map<ME3IdsKey, bool> GEMDQMBase::MEMap3Check_ |
|
protected |
◆ MEMap3WithChCheck_
std::map<ME4IdsKey, bool> GEMDQMBase::MEMap3WithChCheck_ |
|
protected |
◆ MEMap4Check_
std::map<ME4IdsKey, bool> GEMDQMBase::MEMap4Check_ |
|
protected |
◆ nMaxNumCh_
int GEMDQMBase::nMaxNumCh_ |
|
protected |
◆ nNumEtaPartitionGE0_
Int_t GEMDQMBase::nNumEtaPartitionGE0_ |
|
protected |
◆ nNumEtaPartitionGE11_
Int_t GEMDQMBase::nNumEtaPartitionGE11_ |
|
protected |
◆ nNumEtaPartitionGE21_
Int_t GEMDQMBase::nNumEtaPartitionGE21_ |
|
protected |
std::map< ME3IdsKey, bool > MEMap3Check_
std::map< ME3IdsKey, bool > MEMap2AbsReWithEtaCheck_
std::vector< GEMChamber > gemChambers_
std::tuple< Int_t, Int_t > ME2IdsKey
std::map< ME4IdsKey, bool > MEMap4Check_
int keyToStation(ME2IdsKey key)
constexpr int layer() const
constexpr int region() const
const GEMGeometry * GEMGeometry_
std::tuple< Int_t, Int_t, Int_t, Int_t > ME4IdsKey
std::map< ME3IdsKey, bool > MEMap2WithEtaCheck_
int SortingLayers(std::vector< ME3IdsKey > &listLayers)
int getMaxVFAT(const int)
virtual int ProcessWithMEMap2WithEta(BookingHelper &bh, ME3IdsKey key)
TString getSuffixName(Int_t region_id)
Int_t nNumEtaPartitionGE0_
static const int maxVFatGE21_
int getVFATNumberGE11(const int, const int, const int)
Int_t nNumEtaPartitionGE21_
virtual void setXTitle(std::string const &title)
static const int maxVFatGE11_
constexpr std::array< uint8_t, layerIndexSize > layer
constexpr int chamber() const
int getVFATNumber(const int, const int, const int)
std::map< ME4IdsKey, bool > MEMap3WithChCheck_
virtual int ProcessWithMEMap2AbsReWithEta(BookingHelper &bh, ME3IdsKey key)
virtual int ProcessWithMEMap2(BookingHelper &bh, ME2IdsKey key)
bool checkRefs(const std::vector< T * > &)
static char chambers[264][20]
const std::vector< const GEMRegion * > & regions() const
Return a vector of all GEM regions.
Int_t nNumEtaPartitionGE11_
virtual int ProcessWithMEMap4(BookingHelper &bh, ME4IdsKey key)
Log< level::Error, false > LogError
int keyToLayer(ME3IdsKey key)
std::string log_category_
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
TString getSuffixTitle(Int_t region_id)
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
std::map< ME3IdsKey, int > mapStationToIdx_
int keyToRegion(ME2IdsKey key)
constexpr int station() const
std::map< ME2IdsKey, bool > MEMap2Check_
Abs< T >::type abs(const T &t)
const std::vector< const GEMSuperChamber * > & superChambers() const
Return a vector of all GEM super chambers.
constexpr int ieta() const
virtual int ProcessWithMEMap3WithChamber(BookingHelper &bh, ME4IdsKey key)
int getNumEtaPartitions(const GEMStation *)
int getIEtaFromVFATGE11(const int vfat)
virtual int ProcessWithMEMap3(BookingHelper &bh, ME3IdsKey key)
static const int maxChan_