Ignore:
Timestamp:
03/20/00 08:18:01 (25 years ago)
Author:
harald
Message:
I found in the implementation of Oscar a smaller bug concerning the
procedure of copying two arrays.
File:
1 edited

Legend:

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

    r373 r375  
    842842          //  Loop over all pixels
    843843          for (int j=0;j<TRIGGER_PIXELS;j++){
    844             Dummy=Muster;
     844
     845            //
     846            //  I commented out this line here
     847            //      Dummy=Muster;
     848
    845849            for (int k=0; k<TRIGGER_PIXELS; k++){
    846850              Neighb[k]=kFALSE;
     851
     852              Dummy[k]  = Muster[k] ;
    847853            }
    848854            if(Muster[j]){
     
    937943                Bool_t Aux2[TRIGGER_PIXELS];
    938944                for (int jj=0;jj<TRIGGER_PIXELS;jj++)
    939                         Aux2[jj]=kFALSE;
     945                  Aux2[jj]=kFALSE;
     946               
    940947                for (int i=0;i<TRIGGER_PIXELS;i++){
    941948                  if (Neighb[i]) {
    942949                    //  Loop over pixels that achive neighbouring condition
    943                     Aux1=Neighb;
     950                   
     951                    // huschel
     952                    // here also some corrections were neccessary
     953                    //
     954                    //Aux1=Neighb;
     955
     956                    for (int jj=0;jj<TRIGGER_PIXELS;jj++) {
     957                      Aux1[jj] = Neighb[jj] ;   // huschel
     958
     959                      Aux2[jj]=kFALSE;
     960                    }
     961
    944962                    Aux1[i]=kFALSE;
    945                     for (int jj=0;jj<TRIGGER_PIXELS;jj++)
    946                       Aux2[jj]=kFALSE;
    947963                    Aux2[j]=kTRUE;
    948964                    //  It checks if taking any of the pixels we lose
Note: See TracChangeset for help on using the changeset viewer.