Changeset 18331
- Timestamp:
- 09/02/15 11:05:56 (9 years ago)
- Location:
- branches/MarsGapdTimeJitter
- Files:
-
- 6 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/ceres.rc
r18038 r18331 134 134 ConesTransmission.FileName: resmc/fact/Transmittance_1439Cones_FACT_bearbeitet.txt 135 135 136 # A backward motivated overall PDE adjustment. Introduced by Fabian T. to produce the ICRC2015 Crab spectrum. Fabian, please comment a bit more on this. In case this is only about the additional shielding of our camera support structure, then we schould actually name it like this. 137 138 AdditionalPhotonAcceptance.Function.Name: 0.8 139 AdditionalPhotonAcceptance.Function.Npx: 100L 140 AdditionalPhotonAcceptance.Function.Xmin: 290L 141 AdditionalPhotonAcceptance.Function.Xmax: 900L 142 136 143 # ------------------------------------------------------------------------- 137 144 # Setup what in MMCS would be called "additional spot size" … … 238 245 239 246 ResidualTimeSpread.Val: 0.0 240 241 247 # last line comment -
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 -
branches/MarsGapdTimeJitter/mimage/MImgCleanTime.cc
r17860 r18331 99 99 const Float_t time1 = pix1.GetArrivalTime(); 100 100 101 if (pix1.IsPixelUnmapped()) 102 return Island(0,time1); 103 101 104 Island island(pix1.GetNumPhotons(), time1); 102 105 … … 106 109 107 110 MSignalPix &pix2 = (*fEvt)[idx2]; 111 if (pix2.IsPixelUnmapped()) 112 continue; 108 113 109 114 const Int_t island2 = pix2.GetIdxIsland(); … … 137 142 Int_t MImgCleanTime::Process() 138 143 { 139 // The assumption is that all pixels contain valid data144 // The assumption is that all mapped pixels contain valid data 140 145 const UInt_t npix = fEvt->GetNumPixels(); 141 146 for (UInt_t i=0; i<npix; i++) 142 147 { 143 148 MSignalPix &pix = (*fEvt)[i]; 144 pix.SetPixelUnused(); 149 if (!pix.IsPixelUnmapped()) 150 pix.SetPixelUnused(); 145 151 pix.SetPixelCore(kFALSE); 146 152 pix.SetIdxIsland(-1); … … 182 188 // The ideal cut would be to allow that a single 183 189 // pixel still can connect two clusters 184 if (I1.count==1 || I 1.count==1)190 if (I1.count==1 || I2.count==1) 185 191 continue; 186 192
Note:
See TracChangeset
for help on using the changeset viewer.