Changeset 76d3973 in git
- Timestamp:
- Aug 19, 2013, 3:53:30 PM (11 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 8560904
- Parents:
- b286067
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rb286067 r76d3973 1 1 3.0.10: 2 added PileUpDistribution parameter to the PileUpMerger module 2 3 added UsePTSum and PTSumMax parameters to the Isolation module 3 4 added posibility to read reweighting information from LHEF -
modules/PileUpMerger.cc
rb286067 r76d3973 57 57 const char *fileName; 58 58 59 fPileUpDistribution = GetInt("PileUpDistribution", 0); 60 59 61 fMeanPileUp = GetDouble("MeanPileUp", 10); 60 62 fZVertexSpread = GetDouble("ZVertexSpread", 0.05)*1.0E3; … … 88 90 Float_t px, py, pz, e; 89 91 Double_t dz, dphi; 90 Int_t poisson, event;92 Int_t numberOfEvents, event; 91 93 Long64_t allEntries, entry; 92 94 Candidate *candidate; … … 101 103 factory = GetFactory(); 102 104 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 } 104 117 105 118 allEntries = fReader->GetEntries(); 106 119 107 for(event = 0; event < poisson; ++event)120 for(event = 0; event < numberOfEvents; ++event) 108 121 { 109 122 do -
modules/PileUpMerger.h
rb286067 r76d3973 33 33 private: 34 34 35 Int_t fPileUpDistribution; 35 36 Double_t fMeanPileUp; 36 37 Double_t fZVertexSpread;
Note:
See TracChangeset
for help on using the changeset viewer.