Changeset 2373 for trunk


Ignore:
Timestamp:
10/03/03 11:33:55 (21 years ago)
Author:
blanch
Message:
A define variable has been introduced to compile StarResponse ans global
variable CAMERA_PIXELS has been replaced by actual pixels in
MTrigger::MTrigger(int pix)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.cxx

    r2341 r2373  
    176176      cout<<"WARNING: not able to read ..."<<input_thres<<endl;
    177177      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++ ) {
    179179        chan_thres[k] = threshold ;
    180180      }
    181181    }
    182182    else {
    183       for (i=0;i<CAMERA_PIXELS;i++){
     183      for (i=0;i<pix;i++){
    184184        fscanf(unit_thres, "%f",&chan_thres[i]);
    185185      }
     
    188188  }
    189189  else {
    190     for (Int_t k=0; k<CAMERA_PIXELS; k++ ) {
     190    for (Int_t k=0; k<pix; k++ ) {
    191191      chan_thres[k] = threshold ;
    192192    }
     
    277277  } 
    278278  else {
    279     while ( i < CAMERA_PIXELS )
     279    while ( i < pix )
    280280      {
    281281        fscanf ( unit, " %d", &id ) ;
     
    303303  } 
    304304  else {
    305     while ( i < CAMERA_PIXELS )
     305    while ( i < pix )
    306306      {
    307307        for ( Int_t k=0; k<TRIGGER_CELLS; k++ ) {
     
    313313        for ( Int_t k=0; k<TRIGGER_CELLS; k++ ) {
    314314          fscanf ( unit, "%d ", &i ) ;
    315           if ((i-1)<CAMERA_PIXELS)
     315          if ((i-1)<pix)
    316316            TC[k][i-1]=TRUE;
    317317        }
     
    327327  //
    328328 
    329   for ( i =0 ; i <CAMERA_PIXELS ; i++ ) {
     329  for ( i =0 ; i <pix ; i++ ) {
    330330    used [i] = FALSE ;
    331331    dknt [i] = FALSE ;
     
    511511  //
    512512 
     513#ifndef __STARRESPO__
    513514  for(i=0; i < pixnum;i++ )
    514515    {
    515516      MGeomPix &pixel = (*camgeom)[i];
    516517      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
    521522  //
    522523  //  Read in the lookup table for trigger cells
Note: See TracChangeset for help on using the changeset viewer.