Changeset 7265 for trunk/MagicSoft/Mars/datacenter/macros
- Timestamp:
- 08/05/05 18:33:55 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/macros
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/filldotraw.C
r7260 r7265 133 133 } 134 134 135 Int_t Process(MSQLServer &serv, TString fname, Bool_t dummy)135 int Process(MSQLServer &serv, TString fname, Bool_t dummy) 136 136 { 137 137 MRawRunHeader h; … … 165 165 } 166 166 167 Int_t filldotraw(TString fname, Bool_t dummy=kTRUE)167 int filldotraw(TString fname, Bool_t dummy=kTRUE) 168 168 { 169 169 TEnv env("sql.rc"); … … 186 186 } 187 187 188 Int_t filldotraw(Int_t runno, Bool_t dummy=kTRUE)188 int filldotraw(Int_t runno, Bool_t dummy=kTRUE) 189 189 { 190 190 TEnv env("sql.rc"); -
trunk/MagicSoft/Mars/datacenter/macros/fillsinope.C
r7262 r7265 94 94 for (Int_t i=0 ; i<9 ; i++) 95 95 { 96 cout << "value: " << values[i] << endl; 96 // cout << "value: " << values[i] << endl; 97 // cout << "str: " << str << endl; 97 98 str = env.GetValue(values[i], ""); 98 99 if (str.IsNull()) … … 174 175 } 175 176 176 TString fname(Form("%s/sinope/%s/sinope %08d.txt",177 TString fname(Form("%s/sinope/%s/sinope-dat%08d.txt", 177 178 datapath.Data(), date.Data(), runno)); 178 179 cout << "file: " << fname << endl; … … 180 181 datapath.Data(), date.Data(), runno)); 181 182 cout << "file-cal: " << fnamecal << endl; 182 183 fname="/home/bla/Mars.cvs/bla.txt";184 fnamecal="/home/bla/Mars.cvs/blacal.txt";185 183 186 184 Int_t rc=0; … … 190 188 191 189 rc=Process(serv, fnamecal, runno, kTRUE, dummy); 192 193 190 return rc; 194 195 191 } -
trunk/MagicSoft/Mars/datacenter/macros/getdolist.C
r7256 r7265 112 112 query+=Form(" ORDER BY %s.%s DESC ", table.Data(), rc.GetValue(table+".Primary", "")); 113 113 114 if (table="RunProcessStatus") 115 query+="LIMIT 0, 500"; 116 114 117 cout << "query: " << query << endl; 115 118 116 119 TSQLResult *res = serv.Query(query); 117 120 if (!res) 121 { 122 cout << "ERROR - Query failed: " << query << endl; 118 123 return 0; 124 } 119 125 120 126 -
trunk/MagicSoft/Mars/datacenter/macros/setupdb.C
r7262 r7265 595 595 " fCaCoFileFound INT UNSIGNED NULL," 596 596 " fRawFileAvail DATETIME NULL," 597 " f FillDotRawDATETIME NULL,"597 " fDataCheckDone DATETIME NULL," 598 598 " fTimingCorrection DATETIME NULL," 599 599 " fMerpp DATETIME NULL,"
Note:
See TracChangeset
for help on using the changeset viewer.