Fork me on GitHub

Changeset 62d3bc5 in git


Ignore:
Timestamp:
Jun 20, 2016, 12:03:59 PM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
3e2bb2b
Parents:
5496767
Message:

added candidates for gen vtx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/PileUpMerger.cc

    r5496767 r62d3bc5  
    147147  sumpt2 = 0.0;
    148148
     149  factory = GetFactory();
     150  vertex = factory->NewCandidate();
     151
    149152  while((candidate = static_cast<Candidate*>(fItInputArray->Next())))
    150153  {
     
    171174      nch++;
    172175      sumpt2 += pt*pt;
     176      vertex->AddCandidate(candidate);
    173177    }
    174178  }
     
    181185
    182186  nvtx++;
    183   factory = GetFactory();
    184 
    185   vertex = factory->NewCandidate();
    186187  vertex->Position.SetXYZT(vx, vy, dz, dt);
    187188  vertex->ClusterIndex = nvtx;
     
    271272        sumpt2 += pt*pt;
    272273        vertex->AddCandidate(candidate);
    273 
    274274      }
    275275
Note: See TracChangeset for help on using the changeset viewer.