Fork me on GitHub

Changeset 2886328 in git for readers


Ignore:
Timestamp:
May 14, 2018, 8:51:54 AM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
f0caf50
Parents:
d203a37
Message:

replace branchRwgt with branchWeight in DelphesCMSFWLite.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • readers/DelphesCMSFWLite.cpp

    rd203a37 r2886328  
    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();
Note: See TracChangeset for help on using the changeset viewer.