Fork me on GitHub

Changeset 70bb4cb in git for modules/UniqueObjectFinder.cc


Ignore:
Timestamp:
Jan 22, 2019, 5:04:07 PM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
ImprovedOutputFile, Timing, llp, master
Children:
8a11cdc
Parents:
3b3d0ad
Message:

add possibility to calculate MET with smeared jets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/UniqueObjectFinder.cc

    r3b3d0ad r70bb4cb  
    6767void UniqueObjectFinder::Init()
    6868{
     69  // use GetUniqueID algorithm to find unique objects (faster than the default Overlaps method)
     70  fUseUniqueID = GetBool("UseUniqueID", false);
     71
    6972  // import arrays with output from other modules
    7073
     
    146149    while((previousCandidate = static_cast<Candidate*>(iterator.Next())))
    147150    {
    148       if(candidate->Overlaps(previousCandidate))
     151      if(fUseUniqueID)
    149152      {
    150         return kFALSE;
     153        if(candidate->GetUniqueID() == previousCandidate->GetUniqueID())
     154        {
     155          return kFALSE;
     156        }
     157      }
     158      else
     159      {
     160        if(candidate->Overlaps(previousCandidate))
     161        {
     162          return kFALSE;
     163        }
    151164      }
    152165    }
Note: See TracChangeset for help on using the changeset viewer.