Fork me on GitHub

Changeset 27197df in git for modules


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

Location:
modules
Files:
2 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();
  • modules/MomentumSmearing.h

    r3b3071a r27197df  
    5555  TObjArray *fOutputArray; //!
    5656
     57  Double_t fUseMomentumVector; //!
     58
    5759  ClassDef(MomentumSmearing, 1)
    5860};
Note: See TracChangeset for help on using the changeset viewer.