Fork me on GitHub

Changeset 1323 in svn for trunk/modules/PileUpMerger.cc


Ignore:
Timestamp:
Nov 8, 2013, 5:09:58 PM (11 years ago)
Author:
Pavel Demin
Message:

add vertex block

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/PileUpMerger.cc

    r1268 r1323  
    7070
    7171  // create output arrays
    72   fOutputArray = ExportArray(GetString("OutputArray", "stableParticles"));
     72  fParticleOutputArray = ExportArray(GetString("ParticleOutputArray", "stableParticles"));
     73  fVertexOutputArray = ExportArray(GetString("VertexOutputArray", "vertices"));
    7374}
    7475
     
    9899  while((candidate = static_cast<Candidate*>(fItInputArray->Next())))
    99100  {
    100     fOutputArray->Add(candidate);
     101    fParticleOutputArray->Add(candidate);
    101102  }
    102103
     
    131132    dphi = gRandom->Uniform(-TMath::Pi(), TMath::Pi());
    132133
     134    candidate = factory->NewCandidate();
     135    candidate->Position.SetXYZT(0.0, 0.0, dz, 0.0);
     136    fVertexOutputArray->Add(candidate);
     137
    133138    while(fReader->ReadParticle(pid, x, y, z, t, px, py, pz, e))
    134139    {
     
    151156      candidate->Position.RotateZ(dphi);
    152157
    153       fOutputArray->Add(candidate);
     158      fParticleOutputArray->Add(candidate);
    154159    }
    155160  }
Note: See TracChangeset for help on using the changeset viewer.