8 #include "StFttDbMaker.h"
10 #include "St_db_Maker/St_db_Maker.h"
11 #include "StMessMgr.h"
16 LOG_INFO <<
"******** StFttDbMaker::StFttDbMaker = "<<name<<endm;
18 AddData(mFttDb,
".const");
21 StFttDbMaker::~StFttDbMaker() {
25 int StFttDbMaker::Init(){
27 return StMaker::Init();
38 int StFttDbMaker::InitRun(
int runNumber) {
39 LOG_INFO <<
"StFttDbMaker::InitRun - run = " << runNumber << endm;
42 std::ifstream file(
"vmm_map.dat");
45 std::cout <<
"Loading Hardware Map from FILE!!" << std::endl;
46 std::cout <<
"Remove / rename file to load from DB" << std::endl;
47 mFttDb->loadHardwareMapFromFile(
"vmm_map.dat" );
50 TDataSet *mDbDataSet = GetDataBase(
"Geometry/ftt/fttHardwareMap");
52 St_fttHardwareMap *dataset = (St_fttHardwareMap*) mDbDataSet->
Find(
"fttHardwareMap");
53 mFttDb->loadHardwareMapFromDb( dataset );
55 LOG_WARN <<
"Cannot access `Geometry/ftt/fttHardwareMap` and no local `vmm_map.dat` file provided. Cannot load ftt hardware mapping" << endm;
60 TDataSet *mDbDataSetDW = GetDataBase(
"Calibrations/ftt/fttDataWindows");
63 St_fttDataWindows *dataset = (St_fttDataWindows*) mDbDataSetDW->
Find(
"fttDataWindows");
64 mFttDb->loadDataWindowsFromDb( dataset );
66 LOG_WARN <<
"Cannot access `Calibrations/ftt/fttDataWindows`" << endm;
virtual void Clear(Option_t *option="")
User defined functions.
void Clear(Option_t *option)
User defined functions.
virtual TDataSet * Find(const char *path) const