-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43991 from yeckang/GE21_chambers_2024_14_0_X_back
[GEM][backport] GEMGeometryBuilder update for the 2024 geometry
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
Updated: 7 August 2020 | ||
Updated by Ian J. Watson ([email protected]) to allow GE2/1 demonstrator to be built | ||
Updated: 7 December 2021 | ||
Updated by Yechan Kang ([email protected]) to allow GE2/1 demonstrator to be built while 2 GE2/1 layers are in the other region during 2024 | ||
Updated : 13 Feburary 2024 | ||
*/ | ||
#include "Geometry/GEMGeometryBuilder/src/GEMGeometryBuilder.h" | ||
#include "Geometry/GEMGeometry/interface/GEMGeometry.h" | ||
|
@@ -74,7 +76,7 @@ void GEMGeometryBuilder::build(GEMGeometry& theGeometry, | |
fvGE2.parent(); | ||
doSuper = fvGE2.nextSibling(); | ||
} | ||
bool demonstratorGeometry = nGE21 == 1; | ||
bool demonstratorGeometry = nGE21 % 2 == 1; | ||
|
||
#ifdef EDM_ML_DEBUG | ||
edm::LogVerbatim("Geometry") << "Found " << nGE21 << " GE2/1 chambers. Demonstrator geometry on? " | ||
|
@@ -369,7 +371,7 @@ void GEMGeometryBuilder::build(GEMGeometry& theGeometry, | |
} | ||
} | ||
|
||
bool demonstratorGeometry = nGE21 == 1; | ||
bool demonstratorGeometry = nGE21 % 2 == 1; | ||
#ifdef EDM_ML_DEBUG | ||
edm::LogVerbatim("Geometry") << "Found " << nGE21 << " GE2/1 chambers. Demonstrator geometry on? " | ||
<< demonstratorGeometry; | ||
|
@@ -585,8 +587,7 @@ void GEMGeometryBuilder::buildRegions(GEMGeometry& theGeometry, | |
auto chamber = theGeometry.chamber(chId); | ||
if (!chamber) { | ||
// this particular layer 1 chamber *should* be missing in the demonstrator geometry (we only have layer 2) | ||
if (!demonstratorGeometry or | ||
not(chId.region() == 1 and chId.station() == 2 and chId.chamber() == 16 and chId.layer() == 1)) { | ||
if (!demonstratorGeometry or not(chId.station() == 2)) { | ||
edm::LogWarning("GEMGeometryBuilder") << "Missing chamber " << chId; | ||
} | ||
} else { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters