Ignore:
Timestamp:
03/03/05 20:33:56 (20 years ago)
Author:
moralejo
Message:
 Skip the generation of the gaussian pmt time jitter if the value set in
 the input card is 0 (should be faster)
Location:
trunk/MagicSoft/Simulation/Detector/Camera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Camera/TOBEDONE

    r6714 r6728  
    1717
    1818- Add to the output the MPointingPos container
     19
     20- Update in Mars MFadcDefine.h with the new SUBBINS value!!!
  • trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx

    r6712 r6728  
    41374137  float *pmtjit;
    41384138
     4139  // reset variables
     4140
    41394141  pmtjit = new float[camgeom->GetNumPixels()];
    4140 
    4141   // reset variables
     4142  memset((char*)pmtjit, 0, camgeom->GetNumPixels()*sizeof(float));
    41424143
    41434144  TRandom random;
     
    41474148    {
    41484149      nphe[i] = 0.0;
     4150
     4151      if ( !(pmt_jitter>0.) )
     4152        continue;
    41494153      //
    41504154      // PMT time jitter: gaussian, not negative (MTrigger::FillShow does
     
    48654869  static UInt_t seed = (UInt_t)(get_seeds(0)*get_seeds(1));
    48664870
     4871  // reset variables
     4872
    48674873  pmtjit = new float[camgeom->GetNumPixels()];
    4868 
    4869   // reset variables
     4874  memset((char*)pmtjit, 0, camgeom->GetNumPixels()*sizeof(float));
    48704875
    48714876  TRandom random;
     
    48754880    {
    48764881      nphe[i] = 0.0;
     4882
     4883      if ( !(pmt_jitter > 0.))
     4884        continue;
    48774885
    48784886      //
     
    50685076//
    50695077// $Log: not supported by cvs2svn $
     5078// Revision 1.97  2005/03/02 21:45:06  moralejo
     5079//
     5080//  Changed meaning of pmt_jitter: now it is not the jitter per phe-, but
     5081//  the jitter of the total pulse in each pixel (and independent from pixel
     5082//  to pixel).
     5083//
     5084//  The delay between the high and low gain peaks can be set now to a non
     5085//  integer number of FADC slices. Now by default it is 16.5.
     5086//
    50705087// Revision 1.96  2005/03/01 21:57:01  moralejo
    50715088//
Note: See TracChangeset for help on using the changeset viewer.