Fork me on GitHub

Changeset 56562d0 in git


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

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

    r6934875 r56562d0  
    5353  Bool_t fRequireStatus; //!
    5454  Int_t fStatus; //!
     55  Bool_t fRequireCharge; //!
     56  Int_t fCharge; //!
     57
    5558
    5659  std::vector<Int_t> fPdgCodes;
Note: See TracChangeset for help on using the changeset viewer.