diff --git a/macros/CCEScan/Hamburg b/macros/CCEScan/Hamburg index 64aebe9..53b5991 100755 --- a/macros/CCEScan/Hamburg +++ b/macros/CCEScan/Hamburg Binary files differ diff --git a/macros/CCEScan/Hamburg.C b/macros/CCEScan/Hamburg.C index 459727d..e034d79 100755 --- a/macros/CCEScan/Hamburg.C +++ b/macros/CCEScan/Hamburg.C @@ -197,6 +197,11 @@ TVectorD v_temp2 = *vp_temp2; TVectorD v_time1 = *vp_time1; TVectorD v_time2 = *vp_time2; + + double v_time1_max = v_time1.Max(); + double v_time2_max = v_time2.Max(); + double v_fillTime_max = v_fillTime.Max(); + Info("Hamburg", "temp1, temp2 and lumi vectors finish at %f, %f, %f", v_time1_max, v_time2_max, v_fillTime_max); // Extract information about the flux in the corresponding layer TString vn_sector("v_sector_"); @@ -331,7 +336,16 @@ double tStart = 1262325600; // 1-1-2010 // double tStop = 1372654800; // 1-7-2013 - double tStop = 1448928000; // 1-12-2015 + // double tStop = 1448928000; // 1-12-2015 + double tStop = 1577750400; // 31-12-2019 + + std::vector endTimes; + endTimes.push_back(tStop); + endTimes.push_back(v_time1_max); + endTimes.push_back(v_time2_max); + endTimes.push_back(v_fillTime_max); + TVectorD v_endTimes(endTimes.size(), &endTimes[0]); + tStop = v_endTimes.Min(); double tRun = tStart; double tFillEnd = tStart; @@ -346,6 +360,9 @@ Info("Hamburg","Steps are %6.2f sec",tStep); Info("Hamburg","Start running"); + int print_interval = 0; + int print_freq = 200; + // Run between the start and the stop time and check if the index for temperature and luminosity needs to be increased while (tRun v_low_red; int redFac = (int)(86400/tStep); - Printf("%d",v_val.size()); + // Printf("%d",v_val.size()); for (int i=0; i