32 for (
int iCell = 0; iCell < 17664; iCell++) {
33 auto [smod, mod, iphi, ieta] = testgeometry->GetCellIndex(iCell);
47 int ieta = CellId % 2;
48 int iphi = (CellId % 4 == 2 || CellId % 4 == 3) ? 1 : 0;
50 int smod = 0, mod = 0;
51 if (CellId >= 0 && CellId < 11520) {
53 mod = (CellId % 1152) / 4;
54 }
else if (CellId >= 11520 && CellId < 12288) {
55 smod = 10 + (CellId - 11520) / 384;
56 mod = ((CellId - 11520) % 384) / 4;
57 }
else if (CellId >= 12288 && CellId < 16896) {
58 smod = 12 + (CellId - 12288) / 768;
59 mod = ((CellId - 12288) % 768) / 4;
60 }
else if (CellId >= 16896 && CellId < 17664) {
61 smod = 18 + (CellId - 16896) / 384;
62 mod = ((CellId - 16896) % 384) / 4;
65 return std::make_tuple(smod, mod, iphi, ieta);
static Geometry * GetInstanceFromRunNumber(Int_t runNumber, const std::string_view="", const std::string_view mcname="TGeant3", const std::string_view mctitle="")
Instanciate geometry depending on the run number. Mostly used in analysis and MC anchors.