Hall C ROOT/C++ Analyzer (hcana)
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 
70 
71 
73  // Don't need reconstruction here.
74  return 0;
75 }
76 
77 
78 std::string THcTrigApp::GetKwPrefix() {
79  return fKwPrefix;
80 }
81 
82 
84  return kOK;
85 }
86 
87 
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 
107 
108 
std::string fKwPrefix
Definition: THcTrigApp.h:28
virtual Int_t DefineVariables(EMode mode=kDefine)
Definition: THcTrigApp.cxx:93
A mock spectrometer to hold all trigger related data.
Definition: THcTrigApp.h:14
int Int_t
virtual Int_t ReadRunDatabase(const TDatime &date)
Definition: THcTrigApp.cxx:83
std::string GetKwPrefix()
Returns prefix used for parameters in param files.
Definition: THcTrigApp.cxx:78
virtual ~THcTrigApp()
A destructor.
Definition: THcTrigApp.cxx:69
virtual Int_t Reconstruct()
Does nothing and returns 0.
Definition: THcTrigApp.cxx:72
virtual Int_t ReadDatabase(const TDatime &date)
Definition: THcTrigApp.cxx:88
ClassImp(THcDCLookupTTDConv) THcDCLookupTTDConv