Changeset 5273


Ignore:
Timestamp:
10/14/04 13:55:02 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx

    r5269 r5273  
    2121//
    2222// $RCSfile: camera.cxx,v $
    23 // $Revision: 1.74 $
     23// $Revision: 1.75 $
    2424// $Author: moralejo $
    25 // $Date: 2004-10-13 17:05:05 $
     25// $Date: 2004-10-14 12:55:02 $
    2626//
    2727////////////////////////////////////////////////////////////////////////
     
    40054005  static char flag[SIZE_OF_FLAGS + 1];
    40064006  static float radius_mm;
     4007  static UInt_t seed = (UInt_t)(get_seeds(0)*get_seeds(1));
    40074008
    40084009  Float_t t;
     
    40204021
    40214022  TRandom random;
    4022   random.SetSeed((Int_t)(get_seeds(0)*get_seeds(1)));
     4023  random.SetSeed(seed);
    40234024
    40244025  float C1, C2, C3, rho;
     
    42004201    *itotnphe += 1;
    42014202  }
     4203
     4204  seed = random.GetSeed(); // Get seed for next call
    42024205         
    42034206  return(0);
     
    45994602          // use the option trigger_delay in the input card instead.
    46004603
    4601           Fadc_CT[ict]->TriggeredFadc(3.);
     4604          Fadc_CT[ict]->TriggeredFadc(13.);
    46024605
    46034606          //
     
    46704673  float radius_mm, focal_dist_mm;
    46714674  int total_photons;
     4675  static UInt_t seed = (UInt_t)(get_seeds(0)*get_seeds(1));
    46724676
    46734677  // reset variables
     
    46804684
    46814685  TRandom random;
    4682   random.SetSeed((Int_t)(get_seeds(0)*get_seeds(1)));
     4686  random.SetSeed(seed);
    46834687
    46844688  //
     
    47114715
    47124716      // time
    4713       time = random.Gaus(4.*sigma_time, sigma_time);
    4714 
    4715       cout << "### " << time << endl << endl;
     4717      //      time = random.Gaus(0., sigma_time);
     4718      time = 10.;
    47164719
    47174720      // wavelength
     
    48404843      *itotnphe += 1;
    48414844    }
    4842   cout << "$$" << endl;
     4845
     4846  seed = random.GetSeed(); // Get seed for next call
     4847
    48434848  return(0);
    48444849
     
    48554860//
    48564861// $Log: not supported by cvs2svn $
     4862// Revision 1.74  2004/10/13 17:05:05  moralejo
     4863// *** empty log message ***
     4864//
    48574865// Revision 1.72  2004/10/12 13:39:34  moralejo
    48584866//
Note: See TracChangeset for help on using the changeset viewer.