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