14 id_ |= (ieta & 0x1f) | ((iphi & 0x1f) << 5);
23 int phi_index = icrate % 9;
24 if ((icard == 0) || (icard == 2) || (icard == 4))
25 phi_index = phi_index * 2;
26 else if ((icard == 1) || (icard == 3) || (icard == 5))
27 phi_index = phi_index * 2 + 1;
29 phi_index = phi_index * 2 + irgn;
31 else if (icard == 999)
32 phi_index = phi_index * 2 + (irgn / 4);
33 iphi = (22 - phi_index) % 18;
38 eta_index = (icard / 2) * 2 + irgn;
42 else if (icard == 999)
43 eta_index = (irgn % 4) + 7;
46 ieta = 10 - eta_index;
48 ieta = 11 + eta_index;
51 id_ |= (ieta & 0x1f) | ((iphi & 0x1f) << 5);
63 unsigned rct_phi_index = (22 -
iphi()) % 18;
64 if ((
ieta() == 4) || (
ieta() == 17)) {
66 }
else if ((
ieta() > 4) && (
ieta() <= 10)) {
68 card = ((2 -
index) * 2) + (rct_phi_index % 2);
69 }
else if ((
ieta() >= 11) && (
ieta() < 17)) {
71 card = (index * 2) + (rct_phi_index % 2);
79 unsigned rct_phi_index = (22 -
iphi()) % 18;
81 rgn = (3 -
ieta()) + 4 * (rct_phi_index % 2);
82 }
else if (
ieta() > 17) {
83 rgn = (
ieta() - 18) + 4 * (rct_phi_index % 2);
84 }
else if ((
ieta() == 4) || (
ieta() == 17)) {
85 rgn = (rct_phi_index % 2);
86 }
else if ((
ieta() > 4) && (
ieta() <= 10)) {
88 }
else if ((
ieta() >= 11) && (
ieta() < 17)) {
89 rgn = ((
ieta() - 1) % 2);
unsigned ieta() const
global eta index (0-21)
static const unsigned N_ETA
unsigned rctRegion() const
return RCT region index (0-1 for barrel, 0-7 for HF)
unsigned rctCard() const
return RCT card number (0-6)
L1CaloRegionDetId()
create null id
unsigned rctCrate() const
return RCT crate number (0-17)
unsigned iphi() const
global phi index (0-17)
static const unsigned N_PHI