Fork me on GitHub

Changeset 27197df in git for modules/MomentumSmearing.cc


Ignore:
Timestamp:
Apr 20, 2021, 6:20:12 PM (4 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
master
Children:
4739226
Parents:
3b3071a
Message:

added UseMomentumVector option to momentum smearing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/MomentumSmearing.cc

    r3b3071a r27197df  
    7878  fItInputArray = fInputArray->MakeIterator();
    7979
     80  // switch to compute momentum smearing based on momentum vector eta, phi
     81  fUseMomentumVector = GetBool("UseMomentumVector", false);
     82
    8083  // create output array
    8184
     
    104107    eta = candidatePosition.Eta();
    105108    phi = candidatePosition.Phi();
     109
     110    if (fUseMomentumVector){
     111      eta = candidateMomentum.Eta();
     112      phi = candidateMomentum.Phi();
     113    }
     114
    106115    pt = candidateMomentum.Pt();
    107116    e = candidateMomentum.E();
Note: See TracChangeset for help on using the changeset viewer.