simple-tof-analysis
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Groups
Pages
script_others
dEdx_scripts_maciej
fitting
TShine
include
TSNamed.h
1
/*
2
* TSNamed.h
3
*
4
* Created on: May 26, 2014
5
* Author: Silvestro di Luise
6
* Silvestro.Di.Luise@cern.ch
7
*
8
*
9
*/
10
21
#ifndef TSNAMED_H_
22
#define TSNAMED_H_
23
24
#include <string>
25
26
#include <TString.h>
27
#include <TObject.h>
28
29
#include "StringUtils.h"
30
31
32
#include "MessageMgr.h"
33
34
35
using
std::string;
36
37
38
class
TSNamed
:
public
TObject {
39
40
41
public
:
42
43
TSNamed
();
44
TSNamed
(TString name, TString label, TString title);
45
virtual
~
TSNamed
();
46
47
void
Clear();
48
49
virtual
TString GetDescription()
const
{
return
fDescription;}
50
TString GetLabel()
const
{
return
fLabel;}
51
TString Label()
const
{
return
fLabel;}
52
TString Name()
const
{
return
fName;}
53
TString Title()
const
{
return
fTitle;}
54
55
//Override TObject::GetName in order to make
56
//objects Inherithing from TSName searchable in
57
//ROOT containers
58
const
char
* GetName()
const
{
return
fName.Data(); }
59
const
char
* GetTitle()
const
{
return
fTitle.Data(); }
60
61
virtual
void
SetLabel(TString);
62
virtual
void
SetName(TString);
63
virtual
void
SetTitle(TString);
64
65
66
private
:
67
68
69
void
fBuildStrDescription();
70
71
72
TString fName;
73
TString fLabel;
74
TString fTitle;
75
76
TString fDescription;
77
78
};
79
80
#endif
/* TSNAMED_H_ */
TSNamed
Definition:
TSNamed.h:38
Generated by
1.8.5