Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TreeWriter.cc

    rd248604 ra95da74  
    356356    entry->DZ = candidate->DZ;
    357357    entry->Nclusters = candidate->Nclusters;
    358     entry->dNdx = candidate->dNdx;
    359358
    360359    entry->ErrorP = candidate->ErrorP;
     
    405404    entry->Mass = m;
    406405
    407     //particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
    408     //const TLorentzVector &initialPosition = particle->Position;
    409     const TLorentzVector &initialPosition = candidate->InitialPosition;
     406    particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
     407    const TLorentzVector &initialPosition = particle->Position;
    410408
    411409    entry->X = initialPosition.X();
     
    413411    entry->Z = initialPosition.Z();
    414412    entry->T = initialPosition.T() * 1.0E-3 / c_light;
    415     entry->ErrorT =candidate-> ErrorT * 1.0E-3 / c_light;
    416413
    417414    entry->Particle = particle;
     
    512509    entry->DZ = candidate->DZ;
    513510    entry->Nclusters = candidate->Nclusters;
    514     entry->dNdx = candidate->dNdx;
    515511
    516512    entry->ErrorP = candidate->ErrorP;
     
    561557    entry->Mass = m;
    562558
    563     //particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
    564     //const TLorentzVector &initialPosition = particle->Position;
    565     const TLorentzVector &initialPosition = candidate->InitialPosition;
     559    particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
     560    const TLorentzVector &initialPosition = particle->Position;
    566561
    567562    entry->X = initialPosition.X();
     
    569564    entry->Z = initialPosition.Z();
    570565    entry->T = initialPosition.T() * 1.0E-3 / c_light;
    571     entry->ErrorT = candidate-> ErrorT * 1.0E-3 / c_light;
    572566
    573567    entry->VertexIndex = candidate->ClusterIndex;
     
    580574    entry->Edges[3] = candidate->Edges[3];
    581575
    582     //entry->T = position.T() * 1.0E-3 / c_light;
     576    entry->T = position.T() * 1.0E-3 / c_light;
    583577    entry->NTimeHits = candidate->NTimeHits;
    584578
Note: See TracChangeset for help on using the changeset viewer.