Hall C ROOT/C++ Analyzer (hcana)
Loading...
Searching...
No Matches
THcTrigApp.cxx
Go to the documentation of this file.
1
47
#include "
THcTrigApp.h
"
48
49
#include <algorithm>
50
51
#include "
TDatime.h
"
52
53
#include "
THcGlobals.h
"
54
#include "
THcParmList.h
"
55
56
57
THcTrigApp::THcTrigApp
(
const
char
* name,
const
char
* description)
58
:
59
THaApparatus
(name, description),
60
fKwPrefix(
""
)
61
{
62
// Construct the kwPrefix here. Better place would be in `Setup` method.
63
string
kwPrefix = name;
64
std::transform(kwPrefix.begin(), kwPrefix.end(), kwPrefix.begin(), ::tolower);
65
fKwPrefix
= kwPrefix;
66
}
67
68
69
THcTrigApp::~THcTrigApp
() {}
70
71
72
Int_t
THcTrigApp::Reconstruct
() {
73
// Don't need reconstruction here.
74
return
0;
75
}
76
77
78
std::string
THcTrigApp::GetKwPrefix
() {
79
return
fKwPrefix
;
80
}
81
82
83
Int_t
THcTrigApp::ReadRunDatabase
(
const
TDatime
& date) {
84
return
kOK
;
85
}
86
87
88
Int_t
THcTrigApp::ReadDatabase
(
const
TDatime
& date) {
89
return
kOK
;
90
}
91
92
93
Int_t
THcTrigApp::DefineVariables
(
THaAnalysisObject::EMode
mode) {
94
if
(
mode
==
kDefine
&&
fIsSetup
)
return
kOK
;
95
fIsSetup
= (
mode
==
kDefine
);
96
97
return
kOK
;
98
// std::vector<RVarDef> vars;
99
// RVarDef end {0};
100
// vars.push_back(end);
101
102
// return DefineVarsFromList(vars.data(), mode);
103
}
104
105
106
THcTrigApp::THcTrigApp
() {}
107
108
109
ClassImp
(
THcTrigApp
)
Int_t
int Int_t
TDatime.h
mode
Option_t Option_t TPoint TPoint const char mode
ClassImp
ClassImp(VDC::AnalyticTTDConv) using namespace std
THcGlobals.h
THcParmList.h
THcTrigApp.h
TDatime
THaAnalysisObject::kOK
kOK
THaAnalysisObject::EMode
EMode
THaAnalysisObject::kDefine
kDefine
THaAnalysisObject::fIsSetup
Bool_t fIsSetup
THaApparatus
THcTrigApp
A mock spectrometer to hold all trigger related data.
Definition
THcTrigApp.h:14
THcTrigApp::~THcTrigApp
virtual ~THcTrigApp()
A destructor.
Definition
THcTrigApp.cxx:69
THcTrigApp::DefineVariables
virtual Int_t DefineVariables(EMode mode=kDefine)
Definition
THcTrigApp.cxx:93
THcTrigApp::GetKwPrefix
std::string GetKwPrefix()
Returns prefix used for parameters in param files.
Definition
THcTrigApp.cxx:78
THcTrigApp::fKwPrefix
std::string fKwPrefix
Definition
THcTrigApp.h:28
THcTrigApp::ReadDatabase
virtual Int_t ReadDatabase(const TDatime &date)
Definition
THcTrigApp.cxx:88
THcTrigApp::Reconstruct
virtual Int_t Reconstruct()
Does nothing and returns 0.
Definition
THcTrigApp.cxx:72
THcTrigApp::ReadRunDatabase
virtual Int_t ReadRunDatabase(const TDatime &date)
Definition
THcTrigApp.cxx:83
THcTrigApp::THcTrigApp
THcTrigApp()
Definition
THcTrigApp.cxx:106
src
THcTrigApp.cxx
Generated by
1.9.8