Fork me on GitHub

Changeset ba75867 in git for modules


Ignore:
Timestamp:
Dec 5, 2017, 8:33:08 PM (7 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
6965fe1
Parents:
5107603
Message:

add SoftDropped jets for python analysis

Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/FastJetFinder.cc

    r5107603 rba75867  
    494494      candidate->NSubJetsSoftDropped = softdrop_jet.pieces().size();
    495495
     496      candidate->SoftDroppedJet = candidate->SoftDroppedP4[0];
     497
    496498      for (size_t i = 0; i < subjets.size()  and i < 4; i++)
    497499      {
    498500            if(subjets.at(i).pt() < 0) continue ;
    499501            candidate->SoftDroppedP4[i+1].SetPtEtaPhiM(subjets.at(i).pt(), subjets.at(i).eta(), subjets.at(i).phi(), subjets.at(i).m());
     502            if(i==0) candidate->SoftDroppedSubJet1 = candidate->SoftDroppedP4[i+1];
     503            if(i==1) candidate->SoftDroppedSubJet2 = candidate->SoftDroppedP4[i+1];
    500504      }
    501505    }
  • modules/TreeWriter.cc

    r5107603 rba75867  
    681681    entry->NSubJetsSoftDropped = candidate->NSubJetsSoftDropped;
    682682
     683    entry->SoftDroppedJet     = candidate->SoftDroppedJet ;
     684    entry->SoftDroppedSubJet1 = candidate->SoftDroppedSubJet1 ;
     685    entry->SoftDroppedSubJet2 = candidate->SoftDroppedSubJet2;
     686
     687
    683688    for(i = 0; i < 5; i++)
    684689    {
Note: See TracChangeset for help on using the changeset viewer.