Changeset 9191
- Timestamp:
- 12/09/08 15:47:31 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9187 r9191 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2008/12/09 Thomas Bretz 22 23 * datacenter/macros/buildsequenceentries.C: 24 - propagate the condition to get the sequences of one day 25 to the subsequent splitting of the block to decreasde 26 strange results in case of incosistency in the db (for example 27 if Arehucas write nonsense run numbers) 28 29 20 30 21 31 2008/12/02 Daniela Dorner -
trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C
r9108 r9191 890 890 } 891 891 892 Int_t SplitBlock(Int_t runstart, Int_t runstop )892 Int_t SplitBlock(Int_t runstart, Int_t runstop, const TString &cond) 893 893 { 894 894 // Request data necessary to split block into sequences 895 constTString query=895 /*const*/ TString query= 896 896 Form("SELECT fRunNumber*1000+fFileNumber AS Id, fRunTypeKEY, fRunStart, fRunStop" 897 897 " FROM RunData " 898 898 " WHERE fRunNumber*1000+fFileNumber BETWEEN %d AND %d AND " 899 " fExcludedFDAKEY=1 AND (fRunTypeKEY BETWEEN 2 AND 4)" 900 " ORDER BY Id", runstart, runstop); 899 /*" fExcludedFDAKEY=1 AND (fRunTypeKEY BETWEEN 2 AND 4)" 900 " ORDER BY Id"*/, runstart, runstop); 901 902 query += cond; 903 query += " ORDER BY Id"; 904 901 905 902 906 // Send query … … 1001 1005 } 1002 1006 1003 Int_t BuildBlocks(TSQLResult *res, TExMap &blocks )1007 Int_t BuildBlocks(TSQLResult *res, TExMap &blocks, const TString &cond) 1004 1008 { 1005 1009 // col key content … … 1072 1076 cout << " - Identical conditions from " << runstart << " to " << runstop << endl; 1073 1077 blocks.Add((ULong_t)blocks.GetSize(), runstart, runstop); 1074 if (SplitBlock(runstart, runstop )==2)1078 if (SplitBlock(runstart, runstop, cond)==2) 1075 1079 return 2; 1076 1080 cout << " - Transition from " << RunType(keys[1]) << ":"; … … 1105 1109 //fill values into TExMap (last value) 1106 1110 blocks.Add((ULong_t)blocks.GetSize(), runstart, runstop); 1107 if (SplitBlock(runstart, runstop )==2)1111 if (SplitBlock(runstart, runstop, cond)==2) 1108 1112 return 2; 1109 1113 } … … 1184 1188 1185 1189 TExMap blocks; 1186 const Int_t rc = BuildBlocks(res, blocks );1190 const Int_t rc = BuildBlocks(res, blocks, cond); 1187 1191 delete res; 1188 1192
Note:
See TracChangeset
for help on using the changeset viewer.