18 id_ |= (ieta & 0x1f) | ((iphi & 0x1f)<<5);
31 int phi_index = icrate % 9;
32 if ((icard == 0) || (icard == 2) || (icard == 4))
33 phi_index = phi_index * 2;
34 else if ((icard == 1) || (icard == 3) || (icard == 5))
35 phi_index = phi_index * 2 + 1;
37 phi_index = phi_index * 2 + irgn;
39 else if (icard == 999)
40 phi_index = phi_index * 2 + (irgn/4);
41 iphi = (22 - phi_index) % 18;
46 eta_index = (icard/2) * 2 + irgn;
50 else if (icard == 999)
51 eta_index = (irgn % 4) + 7;
54 ieta = 10 - eta_index;
56 ieta = 11 + eta_index;
59 id_ |= (ieta & 0x1f) | ((iphi & 0x1f)<<5);
71 unsigned rct_phi_index = (22 -
iphi()) % 18;
72 if ((
ieta() == 4) || (
ieta() == 17)){
75 else if ((
ieta() > 4) && (
ieta() <= 10)){
77 card = ((2 -
index) * 2) + (rct_phi_index % 2);
79 else if ((
ieta() >= 11) && (
ieta() < 17)){
81 card = (index * 2) + (rct_phi_index % 2);
89 unsigned rct_phi_index = (22 -
iphi()) % 18;
91 rgn = (3 -
ieta()) + 4 * (rct_phi_index % 2);
93 else if (
ieta() > 17){
94 rgn = (
ieta() - 18) + 4 * (rct_phi_index % 2);
96 else if ((
ieta() == 4) || (
ieta() == 17)){
97 rgn = (rct_phi_index % 2);
99 else if ((
ieta() > 4) && (
ieta() <= 10)){
102 else if ((
ieta() >= 11) && (
ieta() < 17)){
103 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