|
|
Go to the documentation of this file.
31 const auto&& superchambers =
station->superChambers();
37 const auto&
chambers = superchambers.front()->chambers();
43 return chambers.front()->nEtaPartitions();
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);
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;
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);
186 Int_t nLa = gid.
layer();
187 char cLS = (nCh % 2 == 0 ?
'L' :
'S');
194 for (
auto iEta : ch.etaPartitions()) {
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_
GEMDQMBase(const edm::ParameterSet &cfg)
Int_t nNumEtaPartitionGE21_
virtual void setXTitle(std::string const &title)
dqm::impl::MonitorElement * CreateSummaryHist(DQMStore::IBooker &ibooker, TString strName)
constexpr int chamber() const
int initGeometry(edm::EventSetup const &iSetup)
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
bool getData(T &iHolder) const
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
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > geomToken_
virtual int ProcessWithMEMap3WithChamber(BookingHelper &bh, ME4IdsKey key)
int getNumEtaPartitions(const GEMStation *)
virtual int ProcessWithMEMap3(BookingHelper &bh, ME3IdsKey key)
static const int maxChan_
int GenerateMEPerChamber(DQMStore::IBooker &ibooker)