herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
Utilities
Statistics
CrossSections.h
1
// -*- C++ -*-
2
//
3
// CrossSections.hpp is a part of myStatistics
4
// Copyright (C) 2012-2019 Simon Platzer, The Herwig Collaboration
5
//
6
// myStatistics is licenced under version 3 of the GPL, see COPYING for details.
7
//
8
#ifndef MYSTATISTICS_CrossSections_hpp_included
9
#define MYSTATISTICS_CrossSections_hpp_included
10
11
#include "Distribution.h"
12
13
namespace
Statistics {
14
19
class
CrossSections
{
20
21
public
:
22
26
CrossSections
();
27
31
explicit
CrossSections
(
const
std::string& newName);
32
36
virtual
~CrossSections
();
37
38
public
:
39
43
Distribution
&
addDistribution
(
const
Distribution
&);
44
48
Distribution
&
distribution
(
const
std::string& histoName);
49
53
const
Distribution
&
distribution
(
const
std::string& histoName)
const
;
54
58
const
std::map<std::string,Distribution>&
distributions
()
const
{
return
theDistributions
; }
59
63
const
std::string&
name
()
const
{
return
theName
; }
64
68
void
name
(
const
std::string& newName) {
theName
= newName; }
69
73
double
integral
()
const
{
return
theIntegral
; }
74
78
double
varianceOfIntegral
()
const
{
return
theVarianceOfIntegral
; }
79
80
public
:
81
85
CrossSections
&
operator+=
(
const
CrossSections
& other);
86
87
public
:
88
92
void
fromXML
(
const
XML::Element
&);
93
97
XML::Element
toXML
()
const
;
98
99
private
:
100
104
std::string
theName
;
105
109
double
theIntegral
;
110
114
double
theVarianceOfIntegral
;
115
119
std::map<std::string,Distribution>
theDistributions
;
120
121
122
};
123
124
}
125
126
#endif
// MYSTATISTICS_CrossSections_hpp_included
Statistics::CrossSections
A simulation run.
Definition:
CrossSections.h:19
Statistics::CrossSections::name
const std::string & name() const
Return the name of the run.
Definition:
CrossSections.h:63
Statistics::CrossSections::distributions
const std::map< std::string, Distribution > & distributions() const
Return the distributions.
Definition:
CrossSections.h:58
Statistics::CrossSections::theVarianceOfIntegral
double theVarianceOfIntegral
The variance of the integral.
Definition:
CrossSections.h:114
Statistics::CrossSections::theName
std::string theName
The name of the run.
Definition:
CrossSections.h:104
Statistics::CrossSections::name
void name(const std::string &newName)
Set the name of the run.
Definition:
CrossSections.h:68
Statistics::CrossSections::operator+=
CrossSections & operator+=(const CrossSections &other)
Add.
Statistics::CrossSections::theIntegral
double theIntegral
The integral.
Definition:
CrossSections.h:109
Statistics::CrossSections::fromXML
void fromXML(const XML::Element &)
Fill run data from an XML element.
Statistics::CrossSections::addDistribution
Distribution & addDistribution(const Distribution &)
Add a distribution.
Statistics::CrossSections::integral
double integral() const
The integral.
Definition:
CrossSections.h:73
Statistics::CrossSections::CrossSections
CrossSections()
Default constructor.
Statistics::CrossSections::varianceOfIntegral
double varianceOfIntegral() const
The variance of the integral.
Definition:
CrossSections.h:78
Statistics::CrossSections::CrossSections
CrossSections(const std::string &newName)
Construct giving a name and seed.
Statistics::CrossSections::distribution
Distribution & distribution(const std::string &histoName)
Return a given distribution.
Statistics::CrossSections::~CrossSections
virtual ~CrossSections()
Destructor.
Statistics::CrossSections::distribution
const Distribution & distribution(const std::string &histoName) const
Return a given distribution.
Statistics::CrossSections::toXML
XML::Element toXML() const
Return an XML element for the data of this run.
Statistics::CrossSections::theDistributions
std::map< std::string, Distribution > theDistributions
The distributions.
Definition:
CrossSections.h:119
Statistics::Distribution
A (one dimensional) distribution.
Definition:
Distribution.h:21
XML::Element
Element represents a (tree of) XML elements.
Definition:
Element.h:56
Generated on Thu Jun 20 2024 17:50:53 for Herwig by
1.9.6