Fork me on GitHub

Changeset 1ad8eca in git for modules/TimeSmearing.cc


Ignore:
Timestamp:
Aug 24, 2021, 11:53:15 AM (3 years ago)
Author:
michele <michele.selvaggi@…>
Branches:
master
Children:
61dccd3
Parents:
5c257a5
Message:

fixed momentum cut and generalised to neutrals

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TimeSmearing.cc

    r5c257a5 r1ad8eca  
    5252
    5353TimeSmearing::TimeSmearing() :
    54   fItTrackInputArray(0), fResolutionFormula(0)
     54  fItInputArray(0), fResolutionFormula(0)
    5555{
    5656        fResolutionFormula = new DelphesFormula;
     
    7474
    7575  // import track input array
    76   fTrackInputArray = ImportArray(GetString("TrackInputArray", "MuonMomentumSmearing/muons"));
    77   fItTrackInputArray = fTrackInputArray->MakeIterator();
     76  fInputArray = ImportArray(GetString("InputArray", "MuonMomentumSmearing/muons"));
     77  fItInputArray = fInputArray->MakeIterator();
    7878
    7979
     
    8686void TimeSmearing::Finish()
    8787{
    88   if(fItTrackInputArray) delete fItTrackInputArray;
     88  if(fItInputArray) delete fItInputArray;
    8989}
    9090
     
    100100  const Double_t c_light = 2.99792458E8;
    101101
    102   fItTrackInputArray->Reset();
    103   while((candidate = static_cast<Candidate *>(fItTrackInputArray->Next())))
     102  fItInputArray->Reset();
     103  while((candidate = static_cast<Candidate *>(fItInputArray->Next())))
    104104  {
    105105
Note: See TracChangeset for help on using the changeset viewer.