Fork me on GitHub

Changes in / [cbc56c5:f0caf50] in git


Ignore:
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rcbc56c5 rf0caf50  
    17541754        external/fastjet/internal/numconsts.hh \
    17551755        external/fastjet/PseudoJet.hh \
    1756         external/fastjet/internal/deprecated.hh
     1756        external/fastjet/internal/deprecated.hh \
     1757        external/fastjet/ClusterSequence.hh
    17571758        @touch $@
    17581759
     
    19011902display/DelphesBranchElement.h: \
    19021903        display/DelphesCaloData.h
    1903         @touch $@
    1904 
    1905 external/fastjet/contribs/ValenciaPlugin/ValenciaPlugin.hh: \
    1906         external/fastjet/ClusterSequence.hh \
    1907         external/fastjet/JetDefinition.hh
    19081904        @touch $@
    19091905
  • classes/DelphesHepMCReader.cc

    rcbc56c5 rf0caf50  
    333333//---------------------------------------------------------------------------
    334334
     335void DelphesHepMCReader::AnalyzeWeight(ExRootTreeBranch *branch)
     336{
     337  Weight *element;
     338  vector< double >::const_iterator itWeight;
     339
     340  for(itWeight = fWeight.begin(); itWeight != fWeight.end(); ++itWeight)
     341  {
     342    element = static_cast<Weight *>(branch->NewEntry());
     343
     344    element->Weight = *itWeight;
     345  }
     346}
     347
     348//---------------------------------------------------------------------------
     349
    335350void DelphesHepMCReader::AnalyzeParticle(DelphesFactory *factory,
    336351  TObjArray *allParticleOutputArray,
  • classes/DelphesHepMCReader.h

    rcbc56c5 rf0caf50  
    5959    TStopwatch *readStopWatch, TStopwatch *procStopWatch);
    6060
     61  void AnalyzeWeight(ExRootTreeBranch *branch);
     62
    6163private:
    6264
  • readers/DelphesCMSFWLite.cpp

    rcbc56c5 rf0caf50  
    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

    rcbc56c5 rf0caf50  
    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.