BCMTFProcess.h
1 #ifndef __BCMTFPROCESS__H
2 #define __BCMTFPROCESS__H
3 
14 /*
15  * Copyright (C) 2007-2018, the BAT core developer team
16  * All rights reserved.
17  *
18  * For the licensing terms see doc/COPYING.
19  * For documentation see http://mpp.mpg.de/bat
20  */
21 
22 // ---------------------------------------------------------
23 
24 #include "../../BAT/BCAux.h"
25 
26 #include <string>
27 
28 // ---------------------------------------------------------
30 {
31 public:
32 
39  BCMTFProcess(const std::string& name);
40 
43  ~BCMTFProcess();
44 
51  const std::string& GetName() const
52  { return fName; };
53 
56  const std::string& GetSafeName() const
57  { return fSafeName; };
58 
61  int GetHistogramColor() const
62  { return fHistogramColor; };
63 
67  { return fHistogramFillStyle; };
68 
72  { return fHistogramLineStyle; };
73 
82  void SetName(const std::string& name)
83  { fName = name; fSafeName = BCAux::SafeName(name); };
84 
88  void SetHistogramColor(int color)
89  { fHistogramColor = color; };
90 
94  void SetHistogramFillStyle(int style)
95  { fHistogramFillStyle = style; };
96 
100  void SetHistogramLineStyle(int style)
101  { fHistogramLineStyle = style; };
102 
105 private:
106 
109  std::string fName;
110 
113  std::string fSafeName;
114 
117  int fHistogramColor;
118 
121  int fHistogramFillStyle;
122 
125  int fHistogramLineStyle;
126 
127 };
128 // ---------------------------------------------------------
129 
130 #endif
int GetHistogramLineStyle() const
Definition: BCMTFProcess.h:71
int GetHistogramColor() const
Definition: BCMTFProcess.h:61
int GetHistogramFillStyle() const
Definition: BCMTFProcess.h:66
std::string SafeName(const std::string &name)
Convert a name into a safe name for use in ROOT object naming.
Definition: BCAux.cxx:111
const std::string & GetSafeName() const
Definition: BCMTFProcess.h:56
A class describing a process.
Definition: BCMTFProcess.h:29
const std::string & GetName() const
Definition: BCMTFProcess.h:51
BCMTFProcess(const std::string &name)
The default constructor.
void SetName(const std::string &name)
Set the name of the process.
Definition: BCMTFProcess.h:82
~BCMTFProcess()
The default destructor.
void SetHistogramColor(int color)
Set the histogram color.
Definition: BCMTFProcess.h:88
void SetHistogramLineStyle(int style)
Set the histogram line style.
Definition: BCMTFProcess.h:100
void SetHistogramFillStyle(int style)
Set the histogram fill style.
Definition: BCMTFProcess.h:94