Fork me on GitHub

Changeset b68a60f in git


Ignore:
Timestamp:
May 16, 2013, 3:51:19 PM (12 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
ae1d49f
Parents:
cf22deb
Message:

add pileup rotation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/PileUpMerger.cc

    rcf22deb rb68a60f  
    8787  Float_t x, y, z, t;
    8888  Float_t px, py, pz, e;
    89   Double_t dz;
     89  Double_t dz, dphi;
    9090  Int_t poisson, event;
    9191  Long64_t allEntries, entry;
     
    116116
    117117    dz = gRandom->Gaus(0.0, fZVertexSpread);
     118    dphi = gRandom->Uniform(-TMath::Pi(), TMath::Pi());
    118119
    119120    while(fReader->ReadParticle(pid, x, y, z, t, px, py, pz, e))
     
    132133
    133134      candidate->Momentum.SetPxPyPzE(px, py, pz, e);
     135      candidate->Momentum.RotateZ(dphi);
     136
    134137      candidate->Position.SetXYZT(x, y, z + dz, t);
     138      candidate->Position.RotateZ(dphi);
    135139
    136140      fOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.