Fork me on GitHub

Changeset 1146 in svn for trunk/examples


Ignore:
Timestamp:
Jun 25, 2013, 5:10:52 PM (11 years ago)
Author:
Pavel Demin
Message:

fix several problems in DelphesProMC

Location:
trunk/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/DelphesProMC.cpp

    r1140 r1146  
    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
  • trunk/examples/DelphesProMC.sh

    r1140 r1146  
    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.