|
[Rivet-svn] r2595 - trunk/testblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Jul 14 22:50:51 BST 2010
Author: buckley Date: Wed Jul 14 22:50:51 2010 New Revision: 2595 Log: Comment tidying Modified: trunk/test/testApi.cc Modified: trunk/test/testApi.cc ============================================================================== --- trunk/test/testApi.cc Wed Jul 14 22:49:24 2010 (r2594) +++ trunk/test/testApi.cc Wed Jul 14 22:50:51 2010 (r2595) @@ -17,15 +17,16 @@ vector<string> moreanalyses(1, "D0_2007_S7075677"); rivet.addAnalyses(moreanalyses); - rivet.init(); //< Obsolete, but allowed for compatibility + // Initialise: obsolete, but allowed for compatibility + rivet.init(); std::istream* file = new std::fstream("testApi.hepmc", std::ios::in); HepMC::IO_GenEvent hepmcio(*file); HepMC::GenEvent* evt = hepmcio.read_next_event(); double sum_of_weights = 0.0; while (evt) { + // Analyse current event rivet.analyze(*evt); - // Problem with HepMC file portability: temporarily disable sum_of_weights += evt->weights()[0]; // Clean up and get next event @@ -35,7 +36,7 @@ delete file; file = 0; rivet.setCrossSection(1.0); - rivet.setSumOfWeights(sum_of_weights); // not necessary, but allowed + rivet.setSumOfWeights(sum_of_weights); //< Not necessary, but allowed rivet.finalize(); rivet.writeData("out");
More information about the Rivet-svn mailing list |