#ifndef l2calcore_h #define l2calcore_h #include #include #include /* trigger configuration */ #define CTOF1 (1<<0) // (S11 + S12) * (S21 + S22) * (S31 + S32) #define CTOF2 (1<<1) // (S11 * S12) * (S21 * S22) * (S31 * S32) #define CTOF3 (1<<2) // (S21 + S22) * (S31 + S32) #define CTOF4 (1<<3) // (S21 * S22) * (S31 * S32) #define CTOF5 (1<<4) // S12 * (S21 * S22) #define CTOF6 (1<<5) // (S11 + S12) * (S31 + S32) #define CTOF7 (1<<6) // (S11 * S12) * (S31 * S32) #define CS4 (1<<7) // S4_1 #define CCALO (1<<8) // CALO_1 + CALO_2 + CALO_3 + CALO_4 #define CCALIB_ON (1<<9) /* Pattern Trigger definitions */ #define PT_LENGTH 6 /* PT: scintillators */ #define S11(pt) (pt[5] != 0) #define S12(pt) (pt[4] != 0) #define S21(pt) ((pt[3] & 0x00F) != 0) #define S22(pt) ((pt[3] & 0x0F0) != 0) #define S31(pt) ((pt[2] & 0x03F) != 0) #define S32(pt) ((pt[2] & 0xFC0) != 0) /* PT: calorimeter */ #define PCaloST(pt) (pt[0] & 0x0F) #define PCalo(pt) ((pt[0] & 0x0F) != 0) #define PCaloSection(pt, s) ((pt[0] & (1<