Fork me on GitHub

Changeset ba75867 in git


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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesClasses.cc

    r5107603 rba75867  
    175175  Tau[3] = 0.0;
    176176  Tau[4] = 0.0;
     177
     178  SoftDroppedJet.SetXYZT(0.0, 0.0, 0.0, 0.0);
     179  SoftDroppedSubJet1.SetXYZT(0.0, 0.0, 0.0, 0.0);
     180  SoftDroppedSubJet2.SetXYZT(0.0, 0.0, 0.0, 0.0);
     181
    177182  for(i = 0; i < 5; ++i)
    178183  {
     
    351356  object.NSubJetsSoftDropped = NSubJetsSoftDropped;
    352357
     358  object.SoftDroppedJet =SoftDroppedJet;
     359  object.SoftDroppedSubJet1 = SoftDroppedSubJet1;
     360  object.SoftDroppedSubJet2 = SoftDroppedSubJet2;
     361
    353362  object.fFactory = fFactory;
    354363  object.fArray = 0;
     
    457466  Tau[4] = 0.0;
    458467
     468  SoftDroppedJet.SetXYZT(0.0, 0.0, 0.0, 0.0);
     469  SoftDroppedSubJet1.SetXYZT(0.0, 0.0, 0.0, 0.0);
     470  SoftDroppedSubJet2.SetXYZT(0.0, 0.0, 0.0, 0.0);
     471
     472
    459473  for(i = 0; i < 5; ++i)
    460474  {
  • classes/DelphesClasses.h

    r5107603 rba75867  
    388388  Float_t Tau[5]; // N-subjettiness
    389389
     390  TLorentzVector SoftDroppedJet;
     391  TLorentzVector SoftDroppedSubJet1;
     392  TLorentzVector SoftDroppedSubJet2;
     393
    390394  TLorentzVector TrimmedP4[5]; // first entry (i = 0) is the total Trimmed Jet 4-momenta and from i = 1 to 4 are the trimmed subjets 4-momenta
    391395  TLorentzVector PrunedP4[5]; // first entry (i = 0) is the total Pruned Jet 4-momenta and from i = 1 to 4 are the pruned subjets 4-momenta
     
    625629  // Other Substructure variables
    626630
     631  TLorentzVector SoftDroppedJet;
     632  TLorentzVector SoftDroppedSubJet1;
     633  TLorentzVector SoftDroppedSubJet2;
     634
    627635  TLorentzVector TrimmedP4[5]; // first entry (i = 0) is the total Trimmed Jet 4-momenta and from i = 1 to 4 are the trimmed subjets 4-momenta
    628636  TLorentzVector PrunedP4[5]; // first entry (i = 0) is the total Pruned Jet 4-momenta and from i = 1 to 4 are the pruned subjets 4-momenta
  • 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.