38 std::string errorReport =
checkReadoutModuleValues(l_atlas_tb, l_barrel_ec, l_pos_neg, l_em_hec_fcal, l_rosId, l_rodFragId, l_rodCrate, l_rodSlot) ;
40 if( errorReport.length() != 0 ) {
42 msg << MSG::ERROR <<
" createReadoutModuleID called with parameters: "
43 << l_atlas_tb <<
", " << l_barrel_ec <<
", " << l_pos_neg <<
", " << l_em_hec_fcal
44 <<
", " << l_rosId <<
", " << l_rodFragId <<
", " << l_rodCrate <<
", " << l_rodSlot <<
endmsg;
45 msg << MSG::ERROR << errorReport <<
endmsg;
49 l_rodCrate = l_rodCrate-1;
62 std::string l_std_str =
"";
64 if( l_atlas_tb > 1 || l_atlas_tb < 0 ) {
65 l_std_str += std::string(
"atlas_tb out of range ,") ;
67 if( l_barrel_ec > 1 || l_barrel_ec < 0 ) {
68 l_std_str += std::string(
"barrel_ec out of range ,") ;
70 if( l_pos_neg > 1 || l_pos_neg < 0 ) {
71 l_std_str += std::string(
"pos_neg out of range ,") ;
73 if( l_em_hec_fcal > 2 || l_em_hec_fcal < 0 ) {
74 l_std_str += std::string(
"em_hec_fcal out of range ,") ;
77 if( l_barrel_ec == 0 && l_em_hec_fcal == 0 ) {
79 if( l_rosId > 27 || l_rosId < 0) {
80 l_std_str += std::string(
"rosId out of range ,") ;
82 if( l_rodFragId > 223 || l_rodFragId < 0) {
83 l_std_str += std::string(
"rodFragId out of range ,") ;
85 if( l_rodCrate > 4 || l_rodCrate < 1) {
86 l_std_str += std::string(
"rodCrate out of range ,") ;
88 if( l_rodSlot > 14 || l_rodSlot < 1) {
89 l_std_str += std::string(
"rodSlot out of range ,") ;
92 if( l_barrel_ec == 1 && l_em_hec_fcal == 0 ) {
94 if( l_rosId > 17 || l_rosId < 0) {
95 l_std_str += std::string(
"rosId out of range ,") ;
97 if( l_rodFragId > 137 || l_rodFragId < 0) {
98 l_std_str += std::string(
"rodFragId out of range ,") ;
100 if( l_rodCrate > 3 || l_rodCrate < 1) {
101 l_std_str += std::string(
"rodCrate out of range ,") ;
103 if( l_rodSlot > 13 || l_rodSlot < 1) {
104 l_std_str += std::string(
"rodSlot out of range ,") ;
107 if( l_barrel_ec == 1 && l_em_hec_fcal == 1 ) {
109 if( l_rosId > 2 || l_rosId < 0) {
110 l_std_str += std::string(
"rosId out of range ,") ;
112 if( l_rodFragId > 23 || l_rodFragId < 0) {
113 l_std_str += std::string(
"rodFragId out of range ,") ;
116 if( l_rodCrate > 2 || l_rodCrate < 1) {
117 l_std_str += std::string(
"rodCrate out of range ,") ;
119 if( l_rodSlot > 6 || l_rodSlot < 1) {
120 l_std_str += std::string(
"rodSlot out of range ,") ;
123 if( l_barrel_ec == 1 && l_em_hec_fcal == 2 ) {
125 if( l_rosId > 1 || l_rosId < 0) {
126 l_std_str += std::string(
"rosId out of range ,") ;
128 if( l_rodFragId > 13 || l_rodFragId < 0) {
129 l_std_str += std::string(
"rodFragId out of range ,") ;
131 if( l_rodCrate > 2 || l_rodCrate < 1) {
133 l_std_str += std::string(
"rodCrate out of range ,") ;
135 if( l_rodSlot > 4 || l_rodSlot < 1) {
136 l_std_str += std::string(
"rodSlot out of range ,") ;
167 if(l_barrel_ec == 0) {
174 else if(l_emhf == 0) {
181 else if(l_emhf == 1) {
188 else if(l_emhf == 2) {
226 char * l_str =
new char[200] ;
227 sprintf( l_str ,
"atlas_tb : %d, barrel_ec : %d, pos_neg: %d, em_hec_fcal: %d, rosId: %d, rodFragId: %d, rodCrate: %d, rodSlot: %d ",
229 std::string
str(l_str);
236 char * l_str =
new char[200] ;
237 sprintf( l_str ,
"atlas_tb : %d, subDet : %x, rosId: %d, rodFragId: %d, rodCrate: %d, rodSlot: %d ",
239 std::string
str(l_str);