RestFrames
v1.0.1
RestFrames HEP Event Analysis Software Library
src
HistPlotCategory.cc
Go to the documentation of this file.
1
// RestFrames: particle physics event analysis library
3
// --------------------------------------------------------------------
4
// Copyright (c) 2014-2016, Christopher Rogan
14
// This file is part of RestFrames.
15
//
16
// RestFrames is free software; you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation; either version 2 of the License, or
19
// (at your option) any later version.
20
//
21
// RestFrames is distributed in the hope that it will be useful,
22
// but WITHOUT ANY WARRANTY; without even the implied warranty of
23
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
// GNU General Public License for more details.
25
//
26
// You should have received a copy of the GNU General Public License
27
// along with RestFrames. If not, see <http://www.gnu.org/licenses/>.
29
30
#include "
RestFrames/HistPlotCategory.hh
"
31
32
namespace
RestFrames {
33
34
int
HistPlotCategory::m_class_key = 0;
35
36
HistPlotCategory::HistPlotCategory
() :
RFBase
()
37
{
38
m_Log.
SetSource
(
"HistPlotCategory "
+
GetName
());
39
}
40
41
HistPlotCategory::HistPlotCategory
(
const
std::string& name,
42
const
std::string& title)
43
:
RFBase
(name, title,
HistPlotCategory
::m_class_key++)
44
{
45
m_Log.
SetSource
(
"HistPlotCategory "
+
GetName
());
46
}
47
48
HistPlotCategory::~HistPlotCategory() {}
49
50
RFList<const HistPlotCategory>
51
HistPlotCategory::operator +
(
const
HistPlotCategory
& cat)
const
{
52
RFList<const HistPlotCategory>
list;
53
list += *
this
;
54
list += cat;
55
return
list;
56
}
57
58
RFList<const HistPlotCategory>
59
HistPlotCategory::operator +
(
const
RFList<const HistPlotCategory>
& cats)
const
{
60
RFList<const HistPlotCategory>
list;
61
list += *
this
;
62
list += cats;
63
return
list;
64
}
65
66
HistPlotCategory::operator
RFList<const HistPlotCategory>
()
const
{
67
RFList<const HistPlotCategory>
list;
68
list += *
this
;
69
return
list;
70
}
71
72
HistPlotCategory
&
HistPlotCategory::Empty
(){
73
return
HistPlotCategory::m_Empty;
74
}
75
76
HistPlotCategory
HistPlotCategory::m_Empty;
77
78
}
RestFrames::HistPlotCategory
Definition:
HistPlotCategory.hh:40
HistPlotCategory.hh
RestFrames::HistPlotCategory::Empty
static HistPlotCategory & Empty()
Returns empty HistPlotCategory.
Definition:
HistPlotCategory.cc:72
RestFrames::RFList
Definition:
RFList.hh:43
RestFrames::RFBase
Base class for all RestFrame package objects.
Definition:
RFBase.hh:53
RestFrames::RFBase::GetName
std::string GetName() const
Returns object name.
Definition:
RFBase.cc:104
RestFrames::RFLog::SetSource
void SetSource(const std::string &source)
Sets name of instance that is associated with.
Definition:
RFLog.cc:182
RestFrames::HistPlotCategory::operator+
RestFrames::RFList< const HistPlotCategory > operator+(const HistPlotCategory &cat) const
Combines HistPlotCategory into list.
Definition:
HistPlotCategory.cc:51
RestFrames::HistPlotCategory::HistPlotCategory
HistPlotCategory()
Empty constructor.
Definition:
HistPlotCategory.cc:36
Generated on Thu Dec 17 2020 14:04:47 for RestFrames by
1.8.17