Changeset 18331 for branches/MarsGapdTimeJitter/fact
- Timestamp:
- 09/02/15 11:05:56 (9 years ago)
- Location:
- branches/MarsGapdTimeJitter
- Files:
-
- 4 edited
- 8 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/MarsGapdTimeJitter
- Property svn:mergeinfo changed
/trunk/Mars merged: 18284-18287,18307-18315
- Property svn:mergeinfo changed
-
branches/MarsGapdTimeJitter/fact/analysis/callisto.C
r18282 r18331 21 21 22 22 MStatusDisplay *d = new MStatusDisplay; 23 24 // ------------------------------------------------------ 25 26 // ------------------------------------------------------ 27 28 // Calib: 51 / 90 / 197 (20% TH) 29 // Data: 52 / 64 / 104 (20% TH) 30 31 // Extraction range in slices. It will always(!) contain the full range 32 // of integration 33 const int first_slice = 25; // 10ns 34 const int last_slice = 225; // 125ns 35 36 const double heighttm = 0.5; // IntegralAbs { 1.5pe * 9.6mV/pe } / IntegralRel { 0.5 } 37 38 Long_t max = 0; // All 39 Long_t max0 = max; // Time marker 40 Long_t max1 = max; // Light pulser 41 //Long_t max2 = 3000; // Calibration ratio 42 Long_t max3 = max; // Pedestal Rndm 43 Long_t max4 = max; // Pedestal Ext 44 Long_t max5 = max; // Data 45 46 // ========================= Result ================================== 47 48 //double scale = 0.1; 49 double scale = 0.1024; 50 51 // ====================================================== 52 53 if (map && gSystem->AccessPathName(map, kFileExists)) 54 { 55 gLog << err << "ERROR - Cannot access mapping file '" << map << "'" << endl; 56 return 1; 57 } 58 59 // The sequence file which defines the files for the analysis 60 MSequence seq(seqfile); 61 if (!seq.IsValid()) 62 { 63 gLog << err << "ERROR - Sequence '" << seqfile << "' invalid!" << endl; 64 return 2; 65 } 23 66 24 67 MBadPixelsCam badpixels; … … 38 81 // 1393 39 82 40 // ------------------------------------------------------ 41 42 // ------------------------------------------------------ 43 44 // Calib: 51 / 90 / 197 (20% TH) 45 // Data: 52 / 64 / 104 (20% TH) 46 47 // Extraction range in slices. It will always(!) contain the full range 48 // of integration 49 const int first_slice = 25; // 10ns 50 const int last_slice = 225; // 125ns 51 52 const double heighttm = 0.5; // IntegralAbs { 1.5pe * 9.6mV/pe } / IntegralRel { 0.5 } 53 54 Long_t max = 0; // All 55 Long_t max0 = max; // Time marker 56 Long_t max1 = max; // Light pulser 57 //Long_t max2 = 3000; // Calibration ratio 58 Long_t max3 = max; // Pedestal Rndm 59 Long_t max4 = max; // Pedestal Ext 60 Long_t max5 = max; // Data 61 62 // ========================= Result ================================== 63 64 //double scale = 0.1; 65 double scale = 0.1024; 66 67 // ====================================================== 68 69 if (map && gSystem->AccessPathName(map, kFileExists)) 70 { 71 gLog << err << "ERROR - Cannot access mapping file '" << map << "'" << endl; 72 return 1; 73 } 74 75 // The sequence file which defines the files for the analysis 76 MSequence seq(seqfile); 77 if (!seq.IsValid()) 78 { 79 gLog << err << "ERROR - Sequence '" << seqfile << "' invalid!" << endl; 80 return 2; 83 // broken drs-board: 84 // https://www.fact-project.org/logbook/showthread.php?tid=3521 85 // in the analysis effect visible 10.1. - 25.5.2015 86 // according to logbook: 87 // first report of problem: 88 // https://www.fact-project.org/logbook/showthread.php?tid=2772&pid=15756#pid15756 89 // repair action: 90 // https://www.fact-project.org/logbook/showthread.php?tid=3298 91 // affected pixels: 92 // SW: 1193 1194 1195 1391 1392 1393 1304 1305 1306 93 if (seq.GetNight().GetNightAsInt()>20141114 && seq.GetNight().GetNightAsInt()<20150526) 94 { 95 gLog << "Exclude broken drs-board..." << endl; 96 badpixels[1193].SetUnsuitable(MBadPixelsPix::kUnsuitable); 97 badpixels[1194].SetUnsuitable(MBadPixelsPix::kUnsuitable); 98 badpixels[1195].SetUnsuitable(MBadPixelsPix::kUnsuitable); 99 badpixels[1391].SetUnsuitable(MBadPixelsPix::kUnsuitable); 100 badpixels[1392].SetUnsuitable(MBadPixelsPix::kUnsuitable); 101 badpixels[1393].SetUnsuitable(MBadPixelsPix::kUnsuitable); 102 badpixels[1304].SetUnsuitable(MBadPixelsPix::kUnsuitable); 103 badpixels[1305].SetUnsuitable(MBadPixelsPix::kUnsuitable); 104 badpixels[1306].SetUnsuitable(MBadPixelsPix::kUnsuitable); 81 105 } 82 106 -
branches/MarsGapdTimeJitter/fact/processing/buildseqentries.C
r18282 r18331 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 { -
branches/MarsGapdTimeJitter/fact/resources/sequences.rc
r15236 r18331 225 225 BGBB?TU?PP? 0 226 226 PCD+ 0 227 BGPP? 20150716 228 P?D+ 20150716 227 229 228 230 #[bB][gG][bB][bB][tT][pP][pP] 0 20120116
Note:
See TracChangeset
for help on using the changeset viewer.