|
[Rivet-svn] rivet: Write out the Counter rather than componentsRivet Mercurial rivet at projects.hepforge.orgSun Dec 10 22:00:01 GMT 2017
details: https://rivet.hepforge.org/hg/rivet/rev/f92a399b188a branches: changeset: 6167:f92a399b188a user: Andy Buckley <andy at insectnation.org> date: Sun Dec 10 21:50:03 2017 +0000 description: Write out the Counter rather than components diffs (21 lines): --- a/src/Core/AnalysisHandler.cc Sat Dec 09 00:29:06 2017 +0000 +++ b/src/Core/AnalysisHandler.cc Sun Dec 10 21:50:03 2017 +0000 @@ -13,7 +13,7 @@ AnalysisHandler::AnalysisHandler(const string& runname) : _runname(runname), - _eventcounter("/_EVTCOUNT2"), + _eventcounter("/_EVTCOUNT"), _numEvents(0), _sumOfWeights(0.0), _sumOfWeightsSq(0.0), _xs(NAN), _initialised(false), _ignoreBeams(false) { } @@ -255,8 +255,8 @@ vector<AnalysisObjectPtr> AnalysisHandler::getData() const { vector<AnalysisObjectPtr> rtn; // Event counter - rtn.push_back( make_shared<Counter>(YODA::Dbn0D(_numEvents, _sumOfWeights, _sumOfWeightsSq), "/_EVTCOUNT") ); rtn.push_back( make_shared<Counter>(_eventcounter) ); + // rtn.push_back( make_shared<Counter>(YODA::Dbn0D(_numEvents, _sumOfWeights, _sumOfWeightsSq), "/_EVTCOUNT") ); // Cross-section + err as scatter YODA::Scatter1D::Points pts; pts.insert(YODA::Point1D(_xs, _xserr)); rtn.push_back( make_shared<Scatter1D>(pts, "/_XSEC") );
More information about the Rivet-svn mailing list |