Changeset 7459 for trunk/MagicSoft/Mars/datacenter/macros/filldotrbk.C
- Timestamp:
- 01/10/06 13:44:29 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/filldotrbk.C
r7112 r7459 32 32 // 33 33 // Usage: 34 // .x filldotrbk.C("/ data/MAGIC/Period014", kTRUE)35 // 36 // While the first argument is the directory in which all subdirectories where37 // searche s for CC_*.rbk files. All these files were analysed and the runbook34 // .x filldotrbk.C("/magic/subsystemdata/cc/", kTRUE) 35 // 36 // The first argument is the directory in which all subdirectories are 37 // searched for CC_*.rbk files. All these files are analysed and the runbook 38 38 // entries will be put into the DB, eg: 39 // "/data/MAGIC" would do it for all data 40 // "/data/MAGIC/Period019/ccdata" would do it for one Period 41 // "/data/MAGIC/Period019/ccdata/2004_05_17" would do it for a single day 42 // "/data/MAGIC/Period019/ccdata/file.rbk" would do it for a single file 39 // "/magic/subsystemdata/cc" would do it for all data 40 // "/magic/subsystemdata/cc/2005" for one year 41 // "/magic/subsystemdata/cc/2005/11" for one month 42 // "/magic/subsystemdata/cc/2005/11/11" for a single day 43 // "/magic/subsystemdata/cc/2005/11/11/file.rbk" for a single file 43 44 // 44 45 // The second argument is the 'dummy-mode'. If it is kTRUE dummy-mode is … … 46 47 // for tests. 47 48 // 48 // Before an antry is added its existance is checked... if it is addedalready49 // i t is ignored.49 // Before an entry is added, its existance is checked... if it is already 50 // in the database, it is ignored. 50 51 // 51 52 // The macro can also be run without ACLiC but this is a lot slower... … … 96 97 } 97 98 } 98 99 99 delete res; 100 101 100 return rc; 102 101 } … … 105 104 { 106 105 106 //check if entry is already in database 107 107 if (ExistStr(serv, "fRunBookDate", "RunBook", date)) 108 108 return 0; … … 116 116 entry.Remove(i--); 117 117 118 //insert entry into the database 118 119 TString query("INSERT RunBook (fRunBookDate, fRunBookText) VALUES (\""); 119 120 query += date; … … 178 179 } 179 180 */ 181 182 //skip run statistics from old runbooks 180 183 if (entry.Contains("MAGIC ELECTRONIC RUNBOOK") || 181 184 entry.Contains("DATA RUN STATISTICS") || … … 220 223 cout << endl; 221 224 225 //get all runbook files in path 222 226 if (path.EndsWith(".rbk")) 223 227 return process(serv, dummy, path); 224 228 229 //fill entries for each runbook file 225 230 MDirIter Next(path, "CC_*.rbk", -1); 226 231 while (1)
Note:
See TracChangeset
for help on using the changeset viewer.