File: GeneralStatistics.cc

package info (click to toggle)
herwig%2B%2B 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 27,128 kB
  • ctags: 24,739
  • sloc: cpp: 188,949; fortran: 23,193; sh: 11,365; python: 5,069; ansic: 3,539; makefile: 1,865; perl: 2
file content (35 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download
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;
}