10 #ifndef StMuChainMaker_hh
11 #define StMuChainMaker_hh
17 #if !defined(ST_NO_NAMESPACES)
22 typedef pair<string,Long_t> StMuStringLongPair;
23 typedef vector<StMuStringLongPair> StMuStringLongPairVector;
24 typedef vector<StMuStringLongPair>::iterator StMuStringLongPairVectorIterator;
33 static void setUseFileCatalog(
const char* connection=
"mysql://duvall.star.bnl.gov:3306/FileCatalog_BNL") {
34 mSQLConnection = string(connection);
37 TChain* make(
string dir,
string file,
string filter,
int maxFiles=10);
38 void fromFileCatalog(
string file);
39 void fromList(
string file);
40 void fromFile(
string file);
41 void fromDir(
string dir);
43 void subFilter(
string filter);
44 string basename(
string);
45 string dirname(
string);
46 string buildFileName(
string dir,
string fileName,
string extention);
49 static string mSQLConnection;
52 string mSubFilters[100];
56 StMuStringLongPairVector mFileList;
57 bool pass(
string file,
string* filters);
58 void add(StMuStringLongPairVector);
59 void add(StMuStringLongPair);