Changeset 2373
- Timestamp:
- 10/03/03 11:33:55 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.cxx
r2341 r2373 176 176 cout<<"WARNING: not able to read ..."<<input_thres<<endl; 177 177 cout<<"Threshold will be set to "<<threshold<<" for all pixels"<<endl; 178 for (Int_t k=0; k< CAMERA_PIXELS; k++ ) {178 for (Int_t k=0; k<pix; k++ ) { 179 179 chan_thres[k] = threshold ; 180 180 } 181 181 } 182 182 else { 183 for (i=0;i< CAMERA_PIXELS;i++){183 for (i=0;i<pix;i++){ 184 184 fscanf(unit_thres, "%f",&chan_thres[i]); 185 185 } … … 188 188 } 189 189 else { 190 for (Int_t k=0; k< CAMERA_PIXELS; k++ ) {190 for (Int_t k=0; k<pix; k++ ) { 191 191 chan_thres[k] = threshold ; 192 192 } … … 277 277 } 278 278 else { 279 while ( i < CAMERA_PIXELS)279 while ( i < pix ) 280 280 { 281 281 fscanf ( unit, " %d", &id ) ; … … 303 303 } 304 304 else { 305 while ( i < CAMERA_PIXELS)305 while ( i < pix ) 306 306 { 307 307 for ( Int_t k=0; k<TRIGGER_CELLS; k++ ) { … … 313 313 for ( Int_t k=0; k<TRIGGER_CELLS; k++ ) { 314 314 fscanf ( unit, "%d ", &i ) ; 315 if ((i-1)< CAMERA_PIXELS)315 if ((i-1)<pix) 316 316 TC[k][i-1]=TRUE; 317 317 } … … 327 327 // 328 328 329 for ( i =0 ; i < CAMERA_PIXELS; i++ ) {329 for ( i =0 ; i <pix ; i++ ) { 330 330 used [i] = FALSE ; 331 331 dknt [i] = FALSE ; … … 511 511 // 512 512 513 #ifndef __STARRESPO__ 513 514 for(i=0; i < pixnum;i++ ) 514 515 { 515 516 MGeomPix &pixel = (*camgeom)[i]; 516 517 for ( Int_t k=0; k<6; k++ ) { 517 NN[k][i]=pixel.GetNeighbor(k);518 519 } 520 518 NN[k][i]=pixel.GetNeighbor(k); 519 } 520 } 521 #endif 521 522 // 522 523 // Read in the lookup table for trigger cells
Note:
See TracChangeset
for help on using the changeset viewer.