Changes in / [f0caf50:cbc56c5] in git
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rf0caf50 rcbc56c5 1754 1754 external/fastjet/internal/numconsts.hh \ 1755 1755 external/fastjet/PseudoJet.hh \ 1756 external/fastjet/internal/deprecated.hh \ 1757 external/fastjet/ClusterSequence.hh 1756 external/fastjet/internal/deprecated.hh 1758 1757 @touch $@ 1759 1758 … … 1902 1901 display/DelphesBranchElement.h: \ 1903 1902 display/DelphesCaloData.h 1903 @touch $@ 1904 1905 external/fastjet/contribs/ValenciaPlugin/ValenciaPlugin.hh: \ 1906 external/fastjet/ClusterSequence.hh \ 1907 external/fastjet/JetDefinition.hh 1904 1908 @touch $@ 1905 1909 -
classes/DelphesHepMCReader.cc
rf0caf50 rcbc56c5 333 333 //--------------------------------------------------------------------------- 334 334 335 void 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 350 335 void DelphesHepMCReader::AnalyzeParticle(DelphesFactory *factory, 351 336 TObjArray *allParticleOutputArray, -
classes/DelphesHepMCReader.h
rf0caf50 rcbc56c5 59 59 TStopwatch *readStopWatch, TStopwatch *procStopWatch); 60 60 61 void AnalyzeWeight(ExRootTreeBranch *branch);62 63 61 private: 64 62 -
readers/DelphesCMSFWLite.cpp
rf0caf50 rcbc56c5 64 64 65 65 void ConvertInput(fwlite::Event &event, Long64_t eventCounter, 66 ExRootTreeBranch *branchEvent, ExRootTreeBranch *branch Weight,66 ExRootTreeBranch *branchEvent, ExRootTreeBranch *branchRwgt, 67 67 DelphesFactory *factory, TObjArray *allParticleOutputArray, 68 68 TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray, Bool_t firstEvent) … … 153 153 for(itWeightsInfo = vectorWeightsInfo.begin(); itWeightsInfo != vectorWeightsInfo.end(); ++itWeightsInfo) 154 154 { 155 weight = static_cast<Weight *>(branch Weight->NewEntry());155 weight = static_cast<Weight *>(branchRwgt->NewEntry()); 156 156 weight->Weight = itWeightsInfo->wgt; 157 157 } … … 292 292 TStopwatch eventStopWatch; 293 293 ExRootTreeWriter *treeWriter = 0; 294 ExRootTreeBranch *branchEvent = 0, *branch Weight = 0;294 ExRootTreeBranch *branchEvent = 0, *branchRwgt = 0; 295 295 ExRootConfReader *confReader = 0; 296 296 Delphes *modularDelphes = 0; … … 333 333 334 334 branchEvent = treeWriter->NewBranch("Event", HepMCEvent::Class()); 335 branch Weight = treeWriter->NewBranch("Weight", Weight::Class());335 branchRwgt = treeWriter->NewBranch("Weight", Weight::Class()); 336 336 337 337 confReader = new ExRootConfReader; … … 377 377 for(event.toBegin(); !event.atEnd() && !interrupted; ++event) 378 378 { 379 ConvertInput(event, eventCounter, branchEvent, branch Weight, factory,379 ConvertInput(event, eventCounter, branchEvent, branchRwgt, factory, 380 380 allParticleOutputArray, stableParticleOutputArray, partonOutputArray, firstEvent); 381 381 modularDelphes->ProcessTask(); -
readers/DelphesHepMC.cpp
rf0caf50 rcbc56c5 63 63 TStopwatch readStopWatch, procStopWatch; 64 64 ExRootTreeWriter *treeWriter = 0; 65 ExRootTreeBranch *branchEvent = 0 , *branchWeight = 0;65 ExRootTreeBranch *branchEvent = 0; 66 66 ExRootConfReader *confReader = 0; 67 67 Delphes *modularDelphes = 0; … … 103 103 104 104 branchEvent = treeWriter->NewBranch("Event", HepMCEvent::Class()); 105 branchWeight = treeWriter->NewBranch("Weight", Weight::Class());106 105 107 106 confReader = new ExRootConfReader; … … 195 194 196 195 reader->AnalyzeEvent(branchEvent, eventCounter, &readStopWatch, &procStopWatch); 197 reader->AnalyzeWeight(branchWeight);198 196 199 197 treeWriter->Fill();
Note:
See TracChangeset
for help on using the changeset viewer.