Fork me on GitHub

Changeset 84a097e in git for modules/TreeWriter.cc


Ignore:
Timestamp:
Dec 2, 2019, 6:55:22 PM (5 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
Timing
Children:
2ad823e, 6fc566b
Parents:
c614dd7
Message:

first iteration of adding timing in Delphes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TreeWriter.cc

    rc614dd7 r84a097e  
    360360    entry->Yd = candidate->Yd;
    361361    entry->Zd = candidate->Zd;
     362    entry->Td = candidate->Td*1.0E-3/c_light;
     363
     364    if(candidate->ClusterIndex != -1)
     365    {
     366      entry->TOFreco = 1E-3*(candidate->Position.T() - candidate->InitialPosition.T())/c_light;
     367    }
     368    else
     369    {
     370      entry->TOFreco =-1E6;
     371    }
    362372
    363373    const TLorentzVector &momentum = candidate->Momentum;
     
    380390
    381391    particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
     392    entry->TOFgen  = 1E-3*particle->L/(c_light*particle->Momentum.P()/particle->Momentum.E());
     393   
    382394    const TLorentzVector &initialPosition = particle->Position;
    383395
Note: See TracChangeset for help on using the changeset viewer.