LOGO

RestFrames  v1.0.0
RestFrames HEP Event Analysis Software Library
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 
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>
53  list += *this;
54  list += cat;
55  return list;
56  }
57 
61  list += *this;
62  list += cats;
63  return list;
64  }
65 
66  HistPlotCategory::operator RFList<const HistPlotCategory>() const {
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 }
std::string GetName() const
Returns object name.
Definition: RFBase.cc:104
RestFrames::RFList< const HistPlotCategory > operator+(const HistPlotCategory &cat) const
Combines HistPlotCategory into list.