Fork me on GitHub

Changeset fbad4c7 in git for readers


Ignore:
Timestamp:
May 24, 2018, 9:12:31 PM (7 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
4689481
Parents:
4fd4f01 (diff), 792092a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into photonId

Conflicts:

cards/CMS_PhaseII/CMS_PhaseII_200PU_v03.tcl

Location:
readers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • readers/CMakeLists.txt

    r4fd4f01 rfbad4c7  
    99list(REMOVE_ITEM executables DelphesCMSFWLite.cpp)
    1010list(REMOVE_ITEM executables DelphesProMC.cpp)
    11 list(REMOVE_ITEM executables DelphesPythia8.cpp)
     11if(NOT PYTHIA8_FOUND)
     12  list(REMOVE_ITEM executables DelphesPythia8.cpp)
     13endif()
    1214
    1315# build all executables and put them into bin/
  • readers/DelphesCMSFWLite.cpp

    r4fd4f01 rfbad4c7  
    6464
    6565void ConvertInput(fwlite::Event &event, Long64_t eventCounter,
    66   ExRootTreeBranch *branchEvent, ExRootTreeBranch *branchRwgt,
     66  ExRootTreeBranch *branchEvent, ExRootTreeBranch *branchWeight,
    6767  DelphesFactory *factory, TObjArray *allParticleOutputArray,
    6868  TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray, Bool_t firstEvent)
     
    153153    for(itWeightsInfo = vectorWeightsInfo.begin(); itWeightsInfo != vectorWeightsInfo.end(); ++itWeightsInfo)
    154154    {
    155       weight = static_cast<Weight *>(branchRwgt->NewEntry());
     155      weight = static_cast<Weight *>(branchWeight->NewEntry());
    156156      weight->Weight = itWeightsInfo->wgt;
    157157    }
     
    292292  TStopwatch eventStopWatch;
    293293  ExRootTreeWriter *treeWriter = 0;
    294   ExRootTreeBranch *branchEvent = 0, *branchRwgt = 0;
     294  ExRootTreeBranch *branchEvent = 0, *branchWeight = 0;
    295295  ExRootConfReader *confReader = 0;
    296296  Delphes *modularDelphes = 0;
     
    333333
    334334    branchEvent = treeWriter->NewBranch("Event", HepMCEvent::Class());
    335     branchRwgt = treeWriter->NewBranch("Weight", Weight::Class());
     335    branchWeight = treeWriter->NewBranch("Weight", Weight::Class());
    336336
    337337    confReader = new ExRootConfReader;
     
    377377      for(event.toBegin(); !event.atEnd() && !interrupted; ++event)
    378378      {
    379         ConvertInput(event, eventCounter, branchEvent, branchRwgt, factory,
     379        ConvertInput(event, eventCounter, branchEvent, branchWeight, factory,
    380380          allParticleOutputArray, stableParticleOutputArray, partonOutputArray, firstEvent);
    381381        modularDelphes->ProcessTask();
  • readers/DelphesHepMC.cpp

    r4fd4f01 rfbad4c7  
    6363  TStopwatch readStopWatch, procStopWatch;
    6464  ExRootTreeWriter *treeWriter = 0;
    65   ExRootTreeBranch *branchEvent = 0;
     65  ExRootTreeBranch *branchEvent = 0, *branchWeight = 0;
    6666  ExRootConfReader *confReader = 0;
    6767  Delphes *modularDelphes = 0;
     
    103103
    104104    branchEvent = treeWriter->NewBranch("Event", HepMCEvent::Class());
     105    branchWeight = treeWriter->NewBranch("Weight", Weight::Class());
    105106
    106107    confReader = new ExRootConfReader;
     
    194195
    195196            reader->AnalyzeEvent(branchEvent, eventCounter, &readStopWatch, &procStopWatch);
     197            reader->AnalyzeWeight(branchWeight);
    196198
    197199            treeWriter->Fill();
Note: See TracChangeset for help on using the changeset viewer.