1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
// -*- C++ -*-
//
// GeneralStatictis.cc is a part of Herwig++ - A multi-purpose Monte Carlo event generator
// Copyright (C) 2002-2012 The Herwig Collaboration
//
// Herwig++ is licenced under version 2 of the GPL, see COPYING for details.
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
//
//
// This is the implementation of the non-inlined, non-templated member
// functions of the GeneralStatistics class.
//
#include "GeneralStatistics.h"
using namespace Herwig;
GeneralStatistics::~GeneralStatistics() {}
void GeneralStatistics::put(PersistentOStream & os) const {
os << theBias << theMaxWeight
<< theMinWeight << theSumWeights
<< theSumSquaredWeights << theSumAbsWeights
<< theSelectedPoints << theAcceptedPoints
<< theNanPoints << theAllPoints << theLastWeight;
}
void GeneralStatistics::get(PersistentIStream & is) {
is >> theBias >> theMaxWeight
>> theMinWeight >> theSumWeights
>> theSumSquaredWeights >> theSumAbsWeights
>> theSelectedPoints >> theAcceptedPoints
>> theNanPoints >> theAllPoints >> theLastWeight;
}
|