Fork me on GitHub

Changeset 15 in svn


Ignore:
Timestamp:
Nov 6, 2008, 4:44:48 PM (16 years ago)
Author:
severine ovyn
Message:

remove PT sorted bug

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Delphes.cpp

    r11 r15  
    216216      input_particles.clear();
    217217      TSimpleArray<TRootGenParticle> NFCentralQ;
    218 
     218      inclusive_jets.clear();
     219      sorted_jets.clear();
    219220
    220221      // Loop over all particles in event
     
    471472         
    472473          // sort jets into increasing pt
    473           sorted_by_pt(inclusive_jets);
     474          sorted_jets = sorted_by_pt(inclusive_jets);
    474475        }
    475      
    476       for (unsigned int i = 0; i < inclusive_jets.size(); i++) {
     476      cout<<"**********"<<endl;
     477      for (unsigned int i = 0; i < sorted_jets.size(); i++) {
    477478        elementJet = (TRootJet*) branchJet->NewEntry();
    478479        TLorentzVector JET;
    479         JET.SetPxPyPzE(inclusive_jets[i].px(),inclusive_jets[i].py(),inclusive_jets[i].pz(),inclusive_jets[i].E());
     480        JET.SetPxPyPzE(sorted_jets[i].px(),sorted_jets[i].py(),sorted_jets[i].pz(),sorted_jets[i].E());
     481        cout<<"JET.Pt() "<<JET.Pt()<<endl;
    480482        elementJet->Set(JET);
    481483        // b-jets
  • trunk/Makefile

    r11 r15  
    4040        interface/LHEFConverter.h \
    4141        interface/STDHEPConverter.h \
     42        interface/SmearUtil.h \
     43        Utilities/Fastjet/include/fastjet/PseudoJet.hh \
     44        Utilities/Fastjet/include/fastjet/ClusterSequence.hh \
     45        Utilities/Fastjet/include/fastjet/config.h
     46Resolutions$(ExeSuf): \
     47        tmp/Resolutions.$(ObjSuf)
     48
     49tmp/Resolutions.$(ObjSuf): \
     50        Resolutions.cpp \
     51        Utilities/ExRootAnalysis/interface/ExRootTreeReader.h \
     52        Utilities/ExRootAnalysis/interface/ExRootTreeWriter.h \
     53        Utilities/ExRootAnalysis/interface/ExRootTreeBranch.h \
     54        interface/DataConverter.h \
     55        interface/HEPEVTConverter.h \
     56        interface/LHEFConverter.h \
     57        interface/STDHEPConverter.h \
    4258        interface/SmearUtil.h
    4359EXECUTABLE =  \
    44         Delphes$(ExeSuf)
     60        Delphes$(ExeSuf) \
     61        Resolutions$(ExeSuf)
    4562
    4663EXECUTABLE_OBJ =  \
    47         tmp/Delphes.$(ObjSuf)
     64        tmp/Delphes.$(ObjSuf) \
     65        tmp/Resolutions.$(ObjSuf)
    4866
    4967tmp/Utilities/ExRootAnalysis/src/BlockClassesDict.$(SrcSuf): \
     
    490508        @touch $@
    491509
     510Utilities/Fastjet/include/fastjet/PseudoJet.hh: \
     511        Utilities/Fastjet/include/fastjet/internal/numconsts.hh
     512        @touch $@
     513
    492514
    493515
  • trunk/genMakefile.tcl

    r11 r15  
    126126  global prefix suffix objSuf exeSuf
    127127   
    128   set executable [glob -nocomplain {Delphes.cpp} ]
     128  set executable [glob -nocomplain {Delphes.cpp} {Resolutions.cpp}]
    129129                               
    130130  set exeFiles {}
Note: See TracChangeset for help on using the changeset viewer.