Changeset 18308
- Timestamp:
- 08/31/15 00:37:40 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/processing/buildseqentries.C
r18134 r18308 136 136 if (arr.GetEntries()>2) 137 137 fMax = GetId(arr[2]->GetName()); 138 cout << "----> " << fMin << " " << fMax << endl; 138 139 } 139 140 … … 217 218 if (run>0) 218 219 { 220 cout << " - - > " << run << endl; 219 221 if (run<fMin || run>fMax) 220 222 return kFALSE; … … 915 917 } 916 918 917 TString PrepareString(TSQLResult &res, TArrayL &runs )919 TString PrepareString(TSQLResult &res, TArrayL &runs, TArrayL &nights) 918 920 { 919 921 // Number of result rows … … 921 923 922 924 runs.Set(rows); // initialize size of array for run numbers 925 nights.Set(rows); // initialize size of array for nights 923 926 924 927 TArrayD start(rows); // instantiate array for start times … … 932 935 { 933 936 runs[idx] = atol((*row)[0]); // run number 937 nights[idx] = atol((*row)[4]); // night 934 938 935 939 const TString tstart = ((*row)[2]); // start time … … 1021 1025 /*const*/ 1022 1026 TString query = 1023 "SELECT fRunID, fRunTypeKEY, fRunStart, fRunStop "1027 "SELECT fRunID, fRunTypeKEY, fRunStart, fRunStop, fNight*1000 " 1024 1028 " FROM RunInfo WHERE fExcludedFDAKEY=1 AND "; 1025 1029 query += Form("fRunID BETWEEN %ld AND %ld AND " … … 1038 1042 // and an array with the corresponding run-numbers 1039 1043 TArrayL runs; 1040 const TString str = PrepareString(*res, runs); 1044 TArrayL nights; 1045 const TString str = PrepareString(*res, runs, nights); 1041 1046 1042 1047 delete res; … … 1071 1076 { 1072 1077 // Check if regular expressions matchs 1073 const Ssiz_t len = obj->Match(str, pos, runs[pos]);1078 const Ssiz_t len = obj->Match(str, pos, nights[pos]); 1074 1079 if (len>0) 1075 1080 {
Note:
See TracChangeset
for help on using the changeset viewer.