38 if( strcmp(name,
"EB") == 0 ) {
42 if( strcmp(name,
"EB_crystal_number") == 0 ) {
44 1011000000UL+10000*id1+id2,
48 if( strcmp(name,
"EB_trigger_tower") == 0 ) {
50 1021000000UL+10000*id1+id2,
54 if( strcmp(name,
"EB_mem_channel") == 0 ) {
56 1191000000UL+10000*id1+id2,
60 if( strcmp(name,
"EB_mem_TT") == 0 ) {
62 1181000000UL+10000*id1+id2,
66 if( strcmp(name,
"EB_LM_PN") == 0 ) {
68 1131000000UL+10000*id1+id2,
75 if( strcmp(name,
"EE") == 0 ) {
79 if( strcmp(name,
"EE_crystal_number") == 0 ) {
81 2010000000UL+1000000*((id1>=1&&id1<=9)?2:0)+1000*
int(id2/1000)+
int(id2%1000),
82 (id1>=1&&id1<=9)?+1:-1,
86 if( strcmp(name,
"EE_readout_tower") == 0 ) {
88 2110000000UL+100*((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10)))+id2,
89 ((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10))),
92 if( strcmp(name,
"EE_mem_channel") == 0 ) {
94 100*((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10)))+id2,
95 ((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10))),
98 if( strcmp(name,
"EE_mem_TT") == 0 ) {
100 100*((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10)))+id2,
101 ((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10))),
104 if( strcmp(name,
"EE_LM_PN") == 0 ) {
106 100*((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10)))+id2,
107 ((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10))),
111 throw( std::runtime_error(
"Unknown 'name': " + std::string( name ) ) );
static EcalLogicID getEcalLogicID(const char *name, const int id1=EcalLogicID::NULLID, const int id2=EcalLogicID::NULLID, const int id3=EcalLogicID::NULLID)