Fork me on GitHub

Changeset 76d3973 in git


Ignore:
Timestamp:
Aug 19, 2013, 3:53:30 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
8560904
Parents:
b286067
Message:

added PileUpDistribution parameter to the PileUpMerger module

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rb286067 r76d3973  
    113.0.10:
     2  added PileUpDistribution parameter to the PileUpMerger module
    23  added UsePTSum and PTSumMax parameters to the Isolation module
    34  added posibility to read reweighting information from LHEF
  • modules/PileUpMerger.cc

    rb286067 r76d3973  
    5757  const char *fileName;
    5858
     59  fPileUpDistribution = GetInt("PileUpDistribution", 0);
     60
    5961  fMeanPileUp  = GetDouble("MeanPileUp", 10);
    6062  fZVertexSpread = GetDouble("ZVertexSpread", 0.05)*1.0E3;
     
    8890  Float_t px, py, pz, e;
    8991  Double_t dz, dphi;
    90   Int_t poisson, event;
     92  Int_t numberOfEvents, event;
    9193  Long64_t allEntries, entry;
    9294  Candidate *candidate;
     
    101103  factory = GetFactory();
    102104
    103   poisson = gRandom->Poisson(fMeanPileUp);
     105  switch(fPileUpDistribution)
     106  {
     107    case 0:
     108      numberOfEvents = gRandom->Poisson(fMeanPileUp);
     109      break;
     110    case 1:
     111      numberOfEvents = gRandom->Integer(2*fMeanPileUp + 1);
     112      break;
     113    default:
     114      numberOfEvents = gRandom->Poisson(fMeanPileUp);
     115      break;
     116  }
    104117
    105118  allEntries = fReader->GetEntries();
    106119
    107   for(event = 0; event < poisson; ++event)
     120  for(event = 0; event < numberOfEvents; ++event)
    108121  {
    109122    do
  • modules/PileUpMerger.h

    rb286067 r76d3973  
    3333private:
    3434
     35  Int_t fPileUpDistribution;
    3536  Double_t fMeanPileUp;
    3637  Double_t fZVertexSpread;
Note: See TracChangeset for help on using the changeset viewer.