Fork me on GitHub

Changeset e79c954 in git


Ignore:
Timestamp:
07/02/20 19:23:40 (5 weeks ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
master
Children:
942a705
Parents:
46c8df8
Message:

added UseMomentumVector? flag

Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/Efficiency.cc

    r46c8df8 re79c954  
    7878  fItInputArray = fInputArray->MakeIterator();
    7979
     80  // switch to compute efficiency 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/Efficiency.h

    r46c8df8 re79c954  
    5353  TObjArray *fOutputArray; //!
    5454
     55  Double_t fUseMomentumVector; //!
     56
    5557  ClassDef(Efficiency, 1)
    5658};
Note: See TracChangeset for help on using the changeset viewer.