Ignore:
Timestamp:
10/17/03 20:56:53 (21 years ago)
Author:
blanch
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Simulation/Detector/include-MTrigger
Files:
2 edited

Legend:

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

    r2373 r2393  
    262262  GenElec = new TRandom() ;
    263263
     264  GenElec->SetSeed(0);
     265
    264266  //
    265267  //  Read in the lookup table for NN trigger
     
    885887      <<endl;
    886888
    887     for (i=0;i<(UInt_t)(TRIGGER_TIME_SLICES*1001);i++){
     889    for (i=0;i<TRIGGER_TIME_SLICES*1001;i++){
    888890      noise[i]=GenElec->Gaus(0., rausch  );
    889891      }
     
    10301032    fclose (unit) ;
    10311033
    1032     for (int i=0;i<CAMERA_PIXELS;i++)
     1034    for (int i=0;i<CAMERA_PIXELS;i++){
    10331035      thres[i]=thres_aux[i];
    1034   }
     1036    }
     1037  }
     1038
    10351039}
    10361040
     
    11381142  for ( i=0 ; i < pixnum; i++  ) {
    11391143    if ( used [i] == TRUE ) {
    1140            
     1144
    11411145      for ( ii=1 ; ii<TRIGGER_TIME_SLICES; ii++ ) {
    11421146        //
     
    11441148        // form low to big signals
    11451149        //
    1146        
    11471150        if ( a_sig[i][ii-1] <   chan_thres[i]  &&
    11481151             a_sig[i][ii]   >=  chan_thres[i]  ) {
     
    13151318    //
    13161319    Int_t iReturn = 0 ;
    1317  
     1320
    13181321    for (Int_t iS=0; iS< TRIGGER_TIME_SLICES; iS++ ) {
    13191322     
     
    13261329      else SlicesZero[iS] = FALSE;
    13271330    }
    1328 
    13291331    return ( iReturn ) ;
    13301332  }
  • trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.hxx

    r2342 r2393  
    178178  ~MTrigger() ;
    179179
     180  void SetSeed(UInt_t seed)  {GenElec->SetSeed(seed);}
     181
    180182  void Reset() ;
    181183
Note: See TracChangeset for help on using the changeset viewer.