g4tools
5.4.0
g4tools
tools
histo
base_cloud
Go to the documentation of this file.
1
// Copyright (C) 2010, Guy Barrand. All rights reserved.
2
// See the file tools.license for terms.
3
4
#ifndef tools_histo_base_cloud
5
#define tools_histo_base_cloud
6
7
#include <string>
8
#include <vector>
9
10
#ifdef TOOLS_MEM
11
#include "../mem"
12
#endif
13
14
namespace
tools
{
15
namespace
histo {
16
17
class
base_cloud
{
18
static
const
std::string& s_class() {
19
static
const
std::string s_v(
"tools::histo::base_cloud"
);
20
return
s_v;
21
}
22
protected
:
23
base_cloud
(
int
aLimit)
24
:
m_limit
(aLimit)
25
,
m_Sw
(0)
26
{
27
#ifdef TOOLS_MEM
28
mem::increment(s_class().c_str());
29
#endif
30
}
31
virtual
~base_cloud
(){
32
#ifdef TOOLS_MEM
33
mem::decrement(s_class().c_str());
34
#endif
35
}
36
public
:
37
base_cloud
(
const
base_cloud
& a_from)
38
:
m_title
(a_from.
m_title
)
39
,
m_limit
(a_from.
m_limit
)
40
,
m_Sw
(a_from.
m_Sw
)
41
,
m_ws
(a_from.
m_ws
)
42
{
43
#ifdef TOOLS_MEM
44
mem::increment(s_class().c_str());
45
#endif
46
}
47
48
base_cloud
&
operator=
(
const
base_cloud
& a_from){
49
m_title
= a_from.
m_title
;
50
m_limit
= a_from.
m_limit
;
51
m_Sw
= a_from.
m_Sw
;
52
m_ws
= a_from.
m_ws
;
53
return
*
this
;
54
}
55
public
:
56
const
std::string&
title
()
const
{
return
m_title
;}
57
int
max_entries
()
const
{
return
m_limit
;}
58
protected
:
59
static
int
UNLIMITED
() {
return
-1;}
60
static
unsigned
int
BINS
() {
return
100;}
61
protected
:
62
std::string
m_title
;
63
int
m_limit
;
64
double
m_Sw
;
65
std::vector<double>
m_ws
;
66
};
67
68
}}
69
70
#endif
tools::histo::base_cloud::operator=
base_cloud & operator=(const base_cloud &a_from)
Definition:
base_cloud:48
tools::histo::base_cloud::title
const std::string & title() const
Definition:
base_cloud:56
tools::histo::base_cloud::m_Sw
double m_Sw
Definition:
base_cloud:64
tools::histo::base_cloud::m_limit
int m_limit
Definition:
base_cloud:63
tools::histo::base_cloud::max_entries
int max_entries() const
Definition:
base_cloud:57
tools::histo::base_cloud::UNLIMITED
static int UNLIMITED()
Definition:
base_cloud:59
tools::histo::base_cloud::m_title
std::string m_title
Definition:
base_cloud:62
tools::histo::base_cloud::base_cloud
base_cloud(const base_cloud &a_from)
Definition:
base_cloud:37
tools::histo::base_cloud::m_ws
std::vector< double > m_ws
Definition:
base_cloud:65
tools::histo::base_cloud::~base_cloud
virtual ~base_cloud()
Definition:
base_cloud:31
tools
inlined C code : ///////////////////////////////////
Definition:
aida_ntuple:26
tools::histo::base_cloud::base_cloud
base_cloud(int aLimit)
Definition:
base_cloud:23
tools::histo::base_cloud
Definition:
base_cloud:17
tools::histo::base_cloud::BINS
static unsigned int BINS()
Definition:
base_cloud:60
Generated by
1.8.20