Hall C ROOT/C++ Analyzer (hcana)
THcDummySpectrometer.cxx
Go to the documentation of this file.
1 
47 #include "THcDummySpectrometer.h"
48 
49 #include "TDatime.h"
50 
51 #include "THcGlobals.h"
52 #include "THcParmList.h"
53 
54 
56  const char* name, const char* description
57 ) :
58  THaApparatus(name, description),
59  fKwPrefix("")
60 {
61  // Construct the kwPrefix here. Better place would be in `Setup` method.
62  TString kwPrefix = name;
63  kwPrefix.ToUpper();
64  fKwPrefix = kwPrefix;
65 }
66 
67 
69 
70 
72  // Don't need reconstruction here.
73  return 0;
74 }
75 
76 
78  return fKwPrefix;
79 }
80 
81 
83  return kOK;
84 }
85 
86 
88  return kOK;
89 }
90 
91 
92 Int_t THcDummySpectrometer::DefineVariables(THaAnalysisObject::EMode mode) {
93  if (mode == kDefine && fIsSetup) return kOK;
94  fIsSetup = (mode == kDefine);
95 
96  return kOK;
97  // std::vector<RVarDef> vars;
98  // RVarDef end {0};
99  // vars.push_back(end);
100 
101  // return DefineVarsFromList(vars.data(), mode);
102 }
103 
104 
106 
107 
virtual Int_t ReadDatabase(const TDatime &date)
void ToUpper()
int Int_t
TString GetKwPrefix()
Returns prefix used for parameters in param files.
virtual Int_t ReadRunDatabase(const TDatime &date)
ClassImp(THcDCLookupTTDConv) THcDCLookupTTDConv
virtual ~THcDummySpectrometer()
A destructor.
A dummy spectrometer apparatus for testing detectors.
virtual Int_t DefineVariables(EMode mode=kDefine)
virtual Int_t Reconstruct()
Does nothing and returns 0.