Fork me on GitHub

Changeset 56562d0 in git for modules/PdgCodeFilter.cc


Ignore:
Timestamp:
Sep 23, 2016, 1:37:48 PM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
96abea4
Parents:
6934875
Message:

added require charge possibility in PdgCodeCodeFilter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/PdgCodeFilter.cc

    r6934875 r56562d0  
    7979  fStatus = GetInt("Status", 1);
    8080
     81  fRequireCharge = GetBool("RequireCharge", false);
     82  fCharge = GetInt("Charge", 1);
     83
    8184  // import input array
    8285  fInputArray = ImportArray(GetString("InputArray", "Delphes/allParticles"));
     
    123126    if(pt < fPTMin) continue;
    124127    if(fRequireStatus && (candidate->Status != fStatus)) continue;
     128    if(fRequireCharge && (candidate->Charge != fCharge)) continue;
    125129
    126130    pass = kTRUE;
Note: See TracChangeset for help on using the changeset viewer.