Fork me on GitHub

Changeset 530 in svn for trunk/Delphes.cpp


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

track efficiencies can be floating numbers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.