StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dbMaker.C
1 // NOTE - chain needs to be declared global so for StHbtEventReader
2 //==========================================================================================
3 #include "TH1.h"
4 #include "TChain.h"
5 #include "TSystem.h"
6 #include <iostream>
7 
8 void dbMaker(const char* dbName="test.db", const char* inputList="test.lis") {
9  gROOT->LoadMacro("StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
10  loadSharedLibraries();
11  cout << "loding done " << endl;
12 
13  StMuDebug::setLevel(0); // switch of some debug output
14  StMuDbReader* db = StMuDbReader::instance();
15  db->addDb("dAu200.db");
16  db->addDb(dbName);
17  StMuDebug::setLevel(0); // switch of some debug output
18  db->createDB(dbName,inputList);
19 }
20 
21 
22 
int addDb(const char *dbFile)
add entries in dbFile to internal data base ( mDb ), will call sortDb(), returns number of entries in...
static void setLevel(unsigned int level)
sets the debug level
Definition: StMuDebug.h:74
int createDB(const char *dbFile, const char *inputList)
scan the files in inputList for the number of events add add them to the dbFile file. Create dbFile file if not existent returns number of entries in mDb