@@ -147,6 +147,11 @@ int GEMDQMBase::SortingLayers(std::vector<ME4IdsKey>& listLayers) {
147147 return 0 ;
148148}
149149
150+ int GEMDQMBase::getDisplayModuleNumber (int station, int layer, int module_number) {
151+ if (station == 2 && layer == 1 ) return module_number + 4 ;
152+ return module_number;
153+ }
154+
150155dqm::impl::MonitorElement* GEMDQMBase::CreateSummaryHist (DQMStore::IBooker& ibooker, TString strName) {
151156 std::vector<ME4IdsKey> listLayers;
152157 for (auto const & [key3, stationInfo] : mapStationInfo_) {
@@ -175,14 +180,15 @@ dqm::impl::MonitorElement* GEMDQMBase::CreateSummaryHist(DQMStore::IBooker& iboo
175180
176181 auto region = keyToRegion (key);
177182 auto strInfo = GEMUtils::getSuffixName (key3); // NOTE: It starts with '_'
183+ auto module_number = getDisplayModuleNumber (keyToStation (key), keyToLayer (key), keyToModule (key));
178184 if (mapStationInfo_[key3].nNumModules_ > 1 ) {
179- strInfo += Form (" -M%i" , keyToModule (key) );
185+ strInfo += Form (" -M%i" , module_number );
180186 }
181187 auto label = Form (" GE%+i1-%cL%i-M%i;%s" ,
182188 region * keyToStation (key),
183189 (region > 0 ? ' P' : ' M' ),
184190 keyToLayer (key),
185- keyToModule (key) ,
191+ module_number ,
186192 strInfo.Data ());
187193 h2Res->setBinLabel (i, label, 2 );
188194 Int_t nNumCh = mapStationInfo_[key3].nNumChambers_ ;
@@ -246,8 +252,10 @@ int GEMDQMBase::GenerateMEPerChamber(DQMStore::IBooker& ibooker) {
246252 if (!MEMap4Check_[key4]) {
247253 Int_t nLa = gid.layer ();
248254 TString strSuffixCh = Form (" -L%i" , nLa);
249- if (mapStationInfo_[key3].nNumModules_ > 1 )
250- strSuffixCh = Form (" -L%i-M%i" , nLa, module_number);
255+ if (mapStationInfo_[key3].nNumModules_ > 1 ) {
256+ Int_t nMo = getDisplayModuleNumber (gid.station (), nLa, module_number);
257+ strSuffixCh = Form (" -L%i-M%i" , nLa, nMo);
258+ }
251259 auto strSuffixName = GEMUtils::getSuffixName (key2) + strSuffixCh;
252260 auto strSuffixTitle = GEMUtils::getSuffixTitle (key2) + strSuffixCh;
253261 BookingHelper bh4 (ibooker, strSuffixName, strSuffixTitle);
@@ -270,8 +278,10 @@ int GEMDQMBase::GenerateMEPerChamber(DQMStore::IBooker& ibooker) {
270278 Int_t nLa = gid.layer ();
271279 char cLS = (nCh % 2 == 0 ? ' L' : ' S' ); // FIXME: Is it general enough?
272280 TString strSuffixCh = Form (" -%02iL%i-%c" , nCh, nLa, cLS);
273- if (mapStationInfo_[key3].nNumModules_ > 1 )
274- strSuffixCh = Form (" -%02iL%i-M%i-%c" , nCh, nLa, module_number, cLS);
281+ if (mapStationInfo_[key3].nNumModules_ > 1 ) {
282+ Int_t nMo = getDisplayModuleNumber (gid.station (), nLa, module_number);
283+ strSuffixCh = Form (" -%02iL%i-M%i-%c" , nCh, nLa, nMo, cLS);
284+ }
275285 auto strSuffixName = GEMUtils::getSuffixName (key2) + strSuffixCh;
276286 auto strSuffixTitle = GEMUtils::getSuffixTitle (key2) + strSuffixCh;
277287 BookingHelper bh5Ch (ibooker, strSuffixName, strSuffixTitle);
0 commit comments