36 if( strcmp(name,
"EB") == 0 ) {
40 if( strcmp(name,
"EB_crystal_number") == 0 ) {
42 1011000000UL+10000*id1+id2,
46 if( strcmp(name,
"EB_trigger_tower") == 0 ) {
48 1021000000UL+10000*id1+id2,
52 if( strcmp(name,
"EB_mem_channel") == 0 ) {
54 1191000000UL+10000*id1+id2,
58 if( strcmp(name,
"EB_mem_TT") == 0 ) {
60 1181000000UL+10000*id1+id2,
64 if( strcmp(name,
"EB_LM_PN") == 0 ) {
66 1131000000UL+10000*id1+id2,
73 if( strcmp(name,
"EE") == 0 ) {
77 if( strcmp(name,
"EE_crystal_number") == 0 ) {
79 2010000000UL+1000000*((id1>=1&&id1<=9)?2:0)+1000*
int(id2/1000)+
int(id2%1000),
80 (id1>=1&&id1<=9)?+1:-1,
84 if( strcmp(name,
"EE_readout_tower") == 0 ) {
86 2110000000UL+100*((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10)))+id2,
87 ((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10))),
90 if( strcmp(name,
"EE_mem_channel") == 0 ) {
92 100*((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10)))+id2,
93 ((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10))),
96 if( strcmp(name,
"EE_mem_TT") == 0 ) {
98 100*((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10)))+id2,
99 ((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10))),
102 if( strcmp(name,
"EE_LM_PN") == 0 ) {
104 100*((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10)))+id2,
105 ((id1>=1&&id1<=9)?(646+(id1-1)):(601+(id1-10))),
109 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)