Fork me on GitHub

Changeset e3ab175 in git


Ignore:
Timestamp:
Jun 25, 2013, 5:10:52 PM (12 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
2f82259
Parents:
4600a41
Message:

fix several problems in DelphesProMC

Location:
examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/DelphesProMC.cpp

    r4600a41 re3ab175  
    6464
    6565  element->ProcessID = mutableEvent->process_id();
    66   element->MPI = 1;
    67   element->Weight = 1.0;
     66  element->MPI = mutableEvent->mpi();
     67  element->Weight = mutableEvent->weight();
    6868  element->Scale = mutableEvent->scale();
    6969  element->AlphaQED = mutableEvent->alpha_qed();
     
    182182    treeWriter = new ExRootTreeWriter(outputFile, "Delphes");
    183183
    184     branchEvent = treeWriter->NewBranch("Event", LHEFEvent::Class());
     184    branchEvent = treeWriter->NewBranch("Event", HepMCEvent::Class());
    185185
    186186    confReader = new ExRootConfReader;
     
    237237
    238238      inputFile->close();
     239      delete inputFile;
    239240    }
    240241
  • examples/DelphesProMC.sh

    r4600a41 re3ab175  
    22INC="-I$PROMC/include -I$PROMC/src"
    33
    4 LIB="-L$PROMC/lib -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz"
     4LIB="$PROMC/src/*.cc -L$PROMC/lib -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz"
    55
    6 g++ -I. -Iexternal $INC `root-config --cflags --ldflags --libs` -lEG -L. -lDelphes $LIB -o DelphesProMC examples/DelphesProMC.cpp $PROMC/src/*.cc
     6g++ -I. -Iexternal $INC `root-config --cflags --ldflags --libs` -lEG -L. -lDelphes $LIB -o DelphesProMC examples/DelphesProMC.cpp
    77
Note: See TracChangeset for help on using the changeset viewer.