StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StDetectorDbMaker.cxx
1 #include "StMessMgr.h"
2 #include "StDetectorDbSpaceCharge.h"
3 #include "St_trigDetSumsC.h"
4 #include "StDetectorDbMaker.h"
5 #include "StDetectorDbRichScalers.h"
6 #if 0
7 #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
8 #include "StMuDSTMaker/COMMON/StMuDst.h"
9 #include "StMuDSTMaker/COMMON/StMuEvent.h"
10 #endif
11 St_trigDetSums* St_trigDetSumsC::fgTableCopy = 0;
12 Int_t StDetectorDbMaker::_debug = 0;
13 StDetectorDbMaker *StDetectorDbMaker::fgStDetectorDbMaker = 0;
14 ClassImp(StDetectorDbMaker)
15 //_____________________________________________________________________________
16 //_____________________________________________________________________________
17 Int_t StDetectorDbMaker::InitRun (Int_t runumber) {
18  if (m_ConstSet) m_ConstSet->Delete(); // Clear Chair Instances
19  return 0;
20 }
21 //_____________________________________________________________________________
23 #if 0 /* Move to St_trigDetSumsC to unify reading daq and StEvent files */
24  // Also need to update instances for classes done in InitRun.
25  // This is needed because of a feature in TTable
26  // Please ingore unused variables..the call to instane() is needed!
27 
28  // Must delete any existing St_trigDetSumsC first, or absence from DAQ stream
29  // in the middle of a file won't properly trigger looking to DB, nor do we
30  // want to keep old table around
31  if (GetMode() != 1) {
32  TDataSet *set = GetDataSet("inputStream_DAQ");
33  if (set) {
34  St_trigDetSums *table = (St_trigDetSums *) set->Find("trigDetSums");
35  if (table) {
36  LOG_QA << "get trigDetSums from inputStream_DAQ" << endm;
37  StMaker::GetChain()->AddData(new St_trigDetSumsC(table));
38  }
39  }
40  }
41 #endif
42  return kStOK;
43 }
virtual void AddData(TDataSet *data, const char *dir=".data")
User methods.
Definition: StMaker.cxx:332
virtual void Delete(Option_t *opt="")
Definition: TDataSet.cxx:320
Definition: Stypes.h:40
virtual Int_t Make()
virtual TDataSet * Find(const char *path) const
Definition: TDataSet.cxx:362