Fork me on GitHub

Changeset 7c7fe5e in git


Ignore:
Timestamp:
Jan 22, 2019, 4:21:08 PM (6 years ago)
Author:
GitHub <noreply@…>
Branches:
ImprovedOutputFile, Timing, llp, master
Children:
771843a
Parents:
d20cefb (diff), 7a86a5c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Pavel Demin <pavel-demin@…> (01/22/19 16:21:08)
git-committer:
GitHub <noreply@…> (01/22/19 16:21:08)
Message:

Merge pull request #65 from chekanov/master

Propogate pileup information from HepSim

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • modules/PdgCodeFilter.cc

    rd20cefb r7c7fe5e  
    7676  fInvert = GetBool("Invert", false);
    7777
     78  // no pileup
     79  fRequireNotPileup = GetBool("RequireNotPileup", false);
     80
    7881  fRequireStatus = GetBool("RequireStatus", false);
    7982  fStatus = GetInt("Status", 1);
     
    127130    if(fRequireStatus && (candidate->Status != fStatus)) continue;
    128131    if(fRequireCharge && (candidate->Charge != fCharge)) continue;
     132    if(fRequireNotPileup && (candidate->IsPU   >0     )) continue;
    129133
    130134    pass = kTRUE;
  • modules/PdgCodeFilter.h

    rd20cefb r7c7fe5e  
    5555  Bool_t fRequireCharge; //!
    5656  Int_t fCharge; //!
    57 
     57  Bool_t fRequireNotPileup; //!
    5858
    5959  std::vector<Int_t> fPdgCodes;
  • modules/StatusPidFilter.cc

    rd20cefb r7c7fe5e  
    153153{
    154154  // PT threshold
    155 
    156155  fPTMin = GetDouble("PTMin", 0.5);
     156
     157  // keep or remove pileup particles
     158  fRequireNotPileup = GetBool("RequireNotPileup", false);
    157159
    158160  // import input array
     
    227229    if(!pass || (candidate->Momentum.Pt() < fPTMin && !(is_b_hadron || is_b_quark || is_tau_daughter || is_W_daughter)) ) continue;
    228230
     231    // not pileup particles
     232    if(fRequireNotPileup && (candidate->IsPU >0)) continue;
     233
    229234    fOutputArray->Add(candidate);
    230235  }
  • modules/StatusPidFilter.h

    rd20cefb r7c7fe5e  
    5151  Double_t fPTMin; //!
    5252
     53  Bool_t fRequireNotPileup; //!
     54
    5355  TIterator *fItInputArray; //!
    5456
  • readers/DelphesProMC.cpp

    rd20cefb r7c7fe5e  
    125125    candidate->Status = status;
    126126
     127    candidate->IsPU=0;
     128    if (mutableParticles->barcode(i)>0) candidate->IsPU=1; // pileup particle
     129
    127130    candidate->M1 = mutableParticles->mother1(i);
    128131    candidate->M2 = mutableParticles->mother2(i);
     
    231234      cout << "** Reading " << argv[i] << endl;
    232235
     236      // use 64 bit
     237      //inputFile = new ProMCBook(argv[i], "r", true);
     238
     239      //use 32 bit zip (faster but limitted to 64k events)
    233240      inputFile = new ProMCBook(argv[i], "r");
    234241
Note: See TracChangeset for help on using the changeset viewer.