22 id_ |= (ieta & 0x1f) | ((iphi & 0x1f)<<5);
35 int phi_index = icrate % 9;
36 if ((icard == 0) || (icard == 2) || (icard == 4))
37 phi_index = phi_index * 2;
38 else if ((icard == 1) || (icard == 3) || (icard == 5))
39 phi_index = phi_index * 2 + 1;
41 phi_index = phi_index * 2 + irgn;
43 else if (icard == 999)
44 phi_index = phi_index * 2 + (irgn/4);
45 iphi = (22 - phi_index) % 18;
50 eta_index = (icard/2) * 2 + irgn;
54 else if (icard == 999)
55 eta_index = (irgn % 4) + 7;
58 ieta = 10 - eta_index;
60 ieta = 11 + eta_index;
63 id_ |= (ieta & 0x1f) | ((iphi & 0x1f)<<5);
75 unsigned rct_phi_index = (22 -
iphi()) % 18;
76 if ((
ieta() == 4) || (
ieta() == 17)){
79 else if ((
ieta() > 4) && (
ieta() <= 10)){
81 card = ((2 -
index) * 2) + (rct_phi_index % 2);
83 else if ((
ieta() >= 11) && (
ieta() < 17)){
85 card = (index * 2) + (rct_phi_index % 2);
93 unsigned rct_phi_index = (22 -
iphi()) % 18;
95 rgn = (3 -
ieta()) + 4 * (rct_phi_index % 2);
97 else if (
ieta() > 17){
98 rgn = (
ieta() - 18) + 4 * (rct_phi_index % 2);
100 else if ((
ieta() == 4) || (
ieta() == 17)){
101 rgn = (rct_phi_index % 2);
103 else if ((
ieta() > 4) && (
ieta() <= 10)){
106 else if ((
ieta() >= 11) && (
ieta() < 17)){
107 rgn = ((
ieta() - 1) % 2);
unsigned ieta() const
global eta index (0-21)
unsigned rctRegion() const
return RCT region index (0-1 for barrel, 0-7 for HF)
static const unsigned N_ETA
static const unsigned N_PHI
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)