Fork me on GitHub

Changeset 530 in svn


Ignore:
Timestamp:
Sep 14, 2009, 5:07:50 PM (15 years ago)
Author:
Xavier Rouby
Message:

track efficiencies can be floating numbers

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r529 r530  
     1* Changes relative to V.1.8
     2  - track reconstruction efficiencies can now be floating numbers
     3
    14 /-----------------------------------------\
    25| 16 August 2009: release Version1.8        |
  • trunk/Delphes.cpp

    r494 r530  
    9595 
    9696  srand (time (NULL));         /* Initialisation du générateur */
     97  TRandom3 * grandom = new TRandom3();
    9798  TStopwatch globalwatch, loopwatch, triggerwatch, frogwatch, lhcowatch;
    9899  globalwatch.Start();
     
    498499             
    499500                  // 2.1a.2.3.5 Tracks
    500                   if( (rand()%100) < DET->TRACK_eff && sET!=0)
     501                  //if( (rand()%100) < DET->TRACK_eff && sET!=0)
     502                  if( (grandom->Uniform()*100.) < DET->TRACK_eff && sET!=0)
    501503                    {
    502504                      elementTrack = (TRootTracks*) branchTrack->NewEntry();
     
    789791  delete JETRUN;
    790792  delete VFD;
     793  delete grandom; // TRandom3
    791794 
    792795}
Note: See TracChangeset for help on using the changeset viewer.