11#ifdef __USE_DATABASE__
58 QwParityDB(QwOptions &options);
60 virtual ~QwParityDB();
62 void SetupOneRun(QwEventBuffer& qwevt);
63 void FillParameterFiles(QwSubsystemArrayParity& subsys);
65 UInt_t GetMonitorID(
const string& name, Bool_t zero_id_is_error=kTRUE);
66 UInt_t GetMainDetectorID(
const string& name, Bool_t zero_id_is_error=kTRUE);
67 UInt_t GetLumiDetectorID(
const string& name, Bool_t zero_id_is_error=kTRUE);
68 const string GetMeasurementID(
const Int_t index);
69 UInt_t GetSlowControlDetectorID(
const string& name);
70 UInt_t GetErrorCodeID(
const string& name);
72 UInt_t GetRunNumber() {
return fRunNumber;}
73 UInt_t GetSegmentNumber() {
return fSegmentNumber;}
74 UInt_t GetRunID() {
return fRunID;}
75 UInt_t GetRunletID() {
return fRunletID;}
76 UInt_t GetAnalysisID() {
return fAnalysisID;};
79 UInt_t GetRunID(QwEventBuffer& qwevt);
80 UInt_t GetRunletID(QwEventBuffer& qwevt);
81 UInt_t GetAnalysisID(QwEventBuffer& qwevt);
82 Bool_t SetRunNumber(
const UInt_t runnum);
83 Bool_t SetSegmentNumber(
const UInt_t segment);
84 static void DefineAdditionalOptions(QwOptions& options);
85 void ProcessAdditionalOptions(QwOptions &options);
89 UInt_t SetRunID(QwEventBuffer& qwevt);
90 UInt_t SetRunletID(QwEventBuffer& qwevt);
91 UInt_t SetAnalysisID(QwEventBuffer& qwevt);
92 void StoreMonitorIDs();
93 void StoreMainDetectorIDs();
94 void StoreLumiDetectorIDs();
95 void StoreMeasurementIDs();
96 void StoreSlowControlDetectorIDs();
97 void StoreErrorCodeIDs();
100 Int_t fSegmentNumber;
104 bool fDisableAnalysisCheck;
106 static std::map<string, unsigned int> fMonitorIDs;
107 static std::map<string, unsigned int> fMainDetectorIDs;
108 static std::map<string, unsigned int> fLumiDetectorIDs;
109 static std::map<string, unsigned int> fSlowControlDetectorIDs;
110 static std::map<string, unsigned char> fErrorCodeIDs;
111 static std::vector<string> fMeasurementIDs;
113 friend class StoreMonitorID;
114 friend class StoreMainDetectorID;
115 friend class StoreLumiDetectorID;
116 friend class StoreMeasurementID;
117 friend class StoreSlowControlDetectorID;
118 friend class StoreErrorCodeID;
ANSI color codes and color management for terminal output.
A class for handling connections to the Qweak database.
An options class which parses command line, config file and environment.
A logfile class, based on an identical class in the Hermes analyzer.
Basic data types and constants used throughout the Qweak analysis framework.
Database interface for QwIntegrationPMT and subsystems.
Subsystem array container for parity analysis with asymmetry calculations.
A database interface class.
Event buffer management for reading and processing CODA data.