19 void endJob()
override;
22 virtual void fillMAP();
1934 std::cout <<
"============== endJob ===================================" << std::endl;
1936 std::cout <<
" --------------------------------------- " << std::endl;
1937 std::cout <<
" for Run = " <<
run0 <<
" with runcounter = " << runcounter <<
" #ev = " << eventcounter << std::endl;
1938 std::cout <<
" #LS = " << lscounterrun <<
" #LS10 = " << lscounterrun10 <<
" Last LS = " << ls0 << std::endl;
1939 std::cout <<
" --------------------------------------------- " << std::endl;
1940 h_nls_per_run->Fill(
float(lscounterrun));
1941 h_nls_per_run10->Fill(
float(lscounterrun10));
1943 hOutputFile->SetCompressionLevel(2);
1945 hOutputFile->Write();
1953 std::cout <<
"===== possible max number of events in ntuple(each 50th recorded) = " << nevent50 << std::endl;
1954 std::cout <<
"===== but limited by maxNeventsInNtuple = " << maxNeventsInNtuple_ << std::endl;
1955 std::cout <<
"===== full number of events*HBHEdigis and qie11 = " << nnnnnnhbhe <<
" and " << nnnnnnhbheqie11
1957 std::cout <<
"===== full number of events*HBHEdigis = " << nnnnnn << std::endl;
1958 std::cout <<
"===== full number of events*HFdigis and qie10 = " << counterhf <<
" and " << counterhfqie10
1960 std::cout <<
"===== full number of events*HOdigis = " << counterho << std::endl;
1962 std::cout <<
"===== Start writing user histograms =====" << std::endl;
1965 h_bcnvsamplitude_HB->Write();
1966 h_bcnvsamplitude0_HB->Write();
1967 h_bcnvsamplitude_HE->Write();
1968 h_bcnvsamplitude0_HE->Write();
1969 h_bcnvsamplitude_HF->Write();
1970 h_bcnvsamplitude0_HF->Write();
1971 h_bcnvsamplitude_HO->Write();
1972 h_bcnvsamplitude0_HO->Write();
1974 h_orbitNumvsamplitude_HB->Write();
1975 h_orbitNumvsamplitude0_HB->Write();
1976 h_orbitNumvsamplitude_HE->Write();
1977 h_orbitNumvsamplitude0_HE->Write();
1978 h_orbitNumvsamplitude_HF->Write();
1979 h_orbitNumvsamplitude0_HF->Write();
1980 h_orbitNumvsamplitude_HO->Write();
1981 h_orbitNumvsamplitude0_HO->Write();
1983 h_2DsumADCAmplEtaPhiLs0->Write();
1984 h_2DsumADCAmplEtaPhiLs1->Write();
1985 h_2DsumADCAmplEtaPhiLs2->Write();
1986 h_2DsumADCAmplEtaPhiLs3->Write();
1988 h_2DsumADCAmplEtaPhiLs00->Write();
1989 h_2DsumADCAmplEtaPhiLs10->Write();
1990 h_2DsumADCAmplEtaPhiLs20->Write();
1991 h_2DsumADCAmplEtaPhiLs30->Write();
1993 h_sumADCAmplEtaPhiLs->Write();
1994 h_sumADCAmplEtaPhiLs_bbbc->Write();
1995 h_sumADCAmplEtaPhiLs_bbb1->Write();
1996 h_sumADCAmplEtaPhiLs_lscounterM1->Write();
1997 h_sumADCAmplEtaPhiLs_ietaphi->Write();
1998 h_sumADCAmplEtaPhiLs_lscounterM1orbitNum->Write();
1999 h_sumADCAmplEtaPhiLs_orbitNum->Write();
2001 if (recordHistoes_) {
2002 h_errorGeneral->Write();
2006 h_amplError->Write();
2007 h_amplFine->Write();
2009 h_errorGeneral_HB->Write();
2010 h_error1_HB->Write();
2011 h_error2_HB->Write();
2012 h_error3_HB->Write();
2013 h_error4_HB->Write();
2014 h_error5_HB->Write();
2015 h_error6_HB->Write();
2016 h_error7_HB->Write();
2017 h_amplError_HB->Write();
2018 h_amplFine_HB->Write();
2019 h_mapDepth1Error_HB->Write();
2020 h_mapDepth2Error_HB->Write();
2021 h_mapDepth3Error_HB->Write();
2022 h_mapDepth4Error_HB->Write();
2023 h_fiber0_HB->Write();
2024 h_fiber1_HB->Write();
2025 h_fiber2_HB->Write();
2026 h_repetedcapid_HB->Write();
2028 h_errorGeneral_HE->Write();
2029 h_error1_HE->Write();
2030 h_error2_HE->Write();
2031 h_error3_HE->Write();
2032 h_error4_HE->Write();
2033 h_error5_HE->Write();
2034 h_error6_HE->Write();
2035 h_error7_HE->Write();
2036 h_amplError_HE->Write();
2037 h_amplFine_HE->Write();
2038 h_mapDepth1Error_HE->Write();
2039 h_mapDepth2Error_HE->Write();
2040 h_mapDepth3Error_HE->Write();
2041 h_mapDepth4Error_HE->Write();
2042 h_mapDepth5Error_HE->Write();
2043 h_mapDepth6Error_HE->Write();
2044 h_mapDepth7Error_HE->Write();
2045 h_fiber0_HE->Write();
2046 h_fiber1_HE->Write();
2047 h_fiber2_HE->Write();
2048 h_repetedcapid_HE->Write();
2050 h_errorGeneral_HF->Write();
2051 h_error1_HF->Write();
2052 h_error2_HF->Write();
2053 h_error3_HF->Write();
2054 h_error4_HF->Write();
2055 h_error5_HF->Write();
2056 h_error6_HF->Write();
2057 h_error7_HF->Write();
2058 h_amplError_HF->Write();
2059 h_amplFine_HF->Write();
2060 h_mapDepth1Error_HF->Write();
2061 h_mapDepth2Error_HF->Write();
2062 h_mapDepth3Error_HF->Write();
2063 h_mapDepth4Error_HF->Write();
2064 h_fiber0_HF->Write();
2065 h_fiber1_HF->Write();
2066 h_fiber2_HF->Write();
2067 h_repetedcapid_HF->Write();
2069 h_errorGeneral_HO->Write();
2070 h_error1_HO->Write();
2071 h_error2_HO->Write();
2072 h_error3_HO->Write();
2073 h_error4_HO->Write();
2074 h_error5_HO->Write();
2075 h_error6_HO->Write();
2076 h_error7_HO->Write();
2077 h_amplError_HO->Write();
2078 h_amplFine_HO->Write();
2079 h_mapDepth4Error_HO->Write();
2080 h_fiber0_HO->Write();
2081 h_fiber1_HO->Write();
2082 h_fiber2_HO->Write();
2083 h_repetedcapid_HO->Write();
2086 h_numberofhitsHBtest->Write();
2087 h_numberofhitsHEtest->Write();
2088 h_numberofhitsHFtest->Write();
2089 h_numberofhitsHOtest->Write();
2090 h_AmplitudeHBtest->Write();
2091 h_AmplitudeHBtest1->Write();
2092 h_AmplitudeHBtest6->Write();
2093 h_AmplitudeHEtest->Write();
2094 h_AmplitudeHEtest1->Write();
2095 h_AmplitudeHEtest6->Write();
2096 h_AmplitudeHFtest->Write();
2097 h_AmplitudeHOtest->Write();
2098 h_totalAmplitudeHB->Write();
2099 h_totalAmplitudeHE->Write();
2100 h_totalAmplitudeHF->Write();
2101 h_totalAmplitudeHO->Write();
2102 h_totalAmplitudeHBperEvent->Write();
2103 h_totalAmplitudeHEperEvent->Write();
2104 h_totalAmplitudeHFperEvent->Write();
2105 h_totalAmplitudeHOperEvent->Write();
2107 h_ADCAmpl345Zoom_HB->Write();
2108 h_ADCAmpl345Zoom1_HB->Write();
2109 h_ADCAmpl345_HB->Write();
2111 h_ADCAmpl_HBCapIdNoError->Write();
2112 h_ADCAmpl345_HBCapIdNoError->Write();
2113 h_ADCAmpl_HBCapIdError->Write();
2114 h_ADCAmpl345_HBCapIdError->Write();
2116 h_ADCAmplZoom_HB->Write();
2117 h_ADCAmplZoom1_HB->Write();
2118 h_ADCAmpl_HB->Write();
2120 h_AmplitudeHBrest->Write();
2121 h_AmplitudeHBrest1->Write();
2122 h_AmplitudeHBrest6->Write();
2124 h_mapDepth1ADCAmpl225_HB->Write();
2125 h_mapDepth2ADCAmpl225_HB->Write();
2126 h_mapDepth1ADCAmpl_HB->Write();
2127 h_mapDepth2ADCAmpl_HB->Write();
2128 h_mapDepth1ADCAmpl12_HB->Write();
2129 h_mapDepth2ADCAmpl12_HB->Write();
2131 h_mapDepth3ADCAmpl225_HB->Write();
2132 h_mapDepth4ADCAmpl225_HB->Write();
2133 h_mapDepth3ADCAmpl_HB->Write();
2134 h_mapDepth4ADCAmpl_HB->Write();
2135 h_mapDepth3ADCAmpl12_HB->Write();
2136 h_mapDepth4ADCAmpl12_HB->Write();
2138 h_TSmeanA_HB->Write();
2139 h_mapDepth1TSmeanA225_HB->Write();
2140 h_mapDepth2TSmeanA225_HB->Write();
2141 h_mapDepth1TSmeanA_HB->Write();
2142 h_mapDepth2TSmeanA_HB->Write();
2143 h_mapDepth3TSmeanA225_HB->Write();
2144 h_mapDepth4TSmeanA225_HB->Write();
2145 h_mapDepth3TSmeanA_HB->Write();
2146 h_mapDepth4TSmeanA_HB->Write();
2148 h_TSmaxA_HB->Write();
2149 h_mapDepth1TSmaxA225_HB->Write();
2150 h_mapDepth2TSmaxA225_HB->Write();
2151 h_mapDepth1TSmaxA_HB->Write();
2152 h_mapDepth2TSmaxA_HB->Write();
2153 h_mapDepth3TSmaxA225_HB->Write();
2154 h_mapDepth4TSmaxA225_HB->Write();
2155 h_mapDepth3TSmaxA_HB->Write();
2156 h_mapDepth4TSmaxA_HB->Write();
2158 h_Amplitude_HB->Write();
2159 h_mapDepth1Amplitude225_HB->Write();
2160 h_mapDepth2Amplitude225_HB->Write();
2161 h_mapDepth1Amplitude_HB->Write();
2162 h_mapDepth2Amplitude_HB->Write();
2163 h_mapDepth3Amplitude225_HB->Write();
2164 h_mapDepth4Amplitude225_HB->Write();
2165 h_mapDepth3Amplitude_HB->Write();
2166 h_mapDepth4Amplitude_HB->Write();
2169 h_mapDepth1Ampl047_HB->Write();
2170 h_mapDepth2Ampl047_HB->Write();
2171 h_mapDepth1Ampl_HB->Write();
2172 h_mapDepth2Ampl_HB->Write();
2173 h_mapDepth1AmplE34_HB->Write();
2174 h_mapDepth2AmplE34_HB->Write();
2175 h_mapDepth1_HB->Write();
2176 h_mapDepth2_HB->Write();
2177 h_mapDepth3Ampl047_HB->Write();
2178 h_mapDepth4Ampl047_HB->Write();
2179 h_mapDepth3Ampl_HB->Write();
2180 h_mapDepth4Ampl_HB->Write();
2181 h_mapDepth3AmplE34_HB->Write();
2182 h_mapDepth4AmplE34_HB->Write();
2183 h_mapDepth3_HB->Write();
2184 h_mapDepth4_HB->Write();
2186 h_mapDepth1ADCAmpl225Copy_HB->Write();
2187 h_mapDepth2ADCAmpl225Copy_HB->Write();
2188 h_mapDepth3ADCAmpl225Copy_HB->Write();
2189 h_mapDepth4ADCAmpl225Copy_HB->Write();
2190 h_mapDepth1ADCAmpl225Copy_HE->Write();
2191 h_mapDepth2ADCAmpl225Copy_HE->Write();
2192 h_mapDepth3ADCAmpl225Copy_HE->Write();
2193 h_mapDepth4ADCAmpl225Copy_HE->Write();
2194 h_mapDepth5ADCAmpl225Copy_HE->Write();
2195 h_mapDepth6ADCAmpl225Copy_HE->Write();
2196 h_mapDepth7ADCAmpl225Copy_HE->Write();
2197 h_mapDepth1ADCAmpl225Copy_HF->Write();
2198 h_mapDepth2ADCAmpl225Copy_HF->Write();
2199 h_mapDepth3ADCAmpl225Copy_HF->Write();
2200 h_mapDepth4ADCAmpl225Copy_HF->Write();
2201 h_mapDepth4ADCAmpl225Copy_HO->Write();
2203 h_ADCAmpl_HF->Write();
2204 h_ADCAmplrest1_HF->Write();
2205 h_ADCAmplrest6_HF->Write();
2207 h_ADCAmplZoom1_HF->Write();
2208 h_mapDepth1ADCAmpl225_HF->Write();
2209 h_mapDepth2ADCAmpl225_HF->Write();
2210 h_mapDepth1ADCAmpl_HF->Write();
2211 h_mapDepth2ADCAmpl_HF->Write();
2212 h_mapDepth1ADCAmpl12_HF->Write();
2213 h_mapDepth2ADCAmpl12_HF->Write();
2214 h_mapDepth3ADCAmpl225_HF->Write();
2215 h_mapDepth4ADCAmpl225_HF->Write();
2216 h_mapDepth3ADCAmpl_HF->Write();
2217 h_mapDepth4ADCAmpl_HF->Write();
2218 h_mapDepth3ADCAmpl12_HF->Write();
2219 h_mapDepth4ADCAmpl12_HF->Write();
2221 h_TSmeanA_HF->Write();
2222 h_mapDepth1TSmeanA225_HF->Write();
2223 h_mapDepth2TSmeanA225_HF->Write();
2224 h_mapDepth1TSmeanA_HF->Write();
2225 h_mapDepth2TSmeanA_HF->Write();
2226 h_mapDepth3TSmeanA225_HF->Write();
2227 h_mapDepth4TSmeanA225_HF->Write();
2228 h_mapDepth3TSmeanA_HF->Write();
2229 h_mapDepth4TSmeanA_HF->Write();
2231 h_TSmaxA_HF->Write();
2232 h_mapDepth1TSmaxA225_HF->Write();
2233 h_mapDepth2TSmaxA225_HF->Write();
2234 h_mapDepth1TSmaxA_HF->Write();
2235 h_mapDepth2TSmaxA_HF->Write();
2236 h_mapDepth3TSmaxA225_HF->Write();
2237 h_mapDepth4TSmaxA225_HF->Write();
2238 h_mapDepth3TSmaxA_HF->Write();
2239 h_mapDepth4TSmaxA_HF->Write();
2241 h_Amplitude_HF->Write();
2242 h_mapDepth1Amplitude225_HF->Write();
2243 h_mapDepth2Amplitude225_HF->Write();
2244 h_mapDepth1Amplitude_HF->Write();
2245 h_mapDepth2Amplitude_HF->Write();
2246 h_mapDepth3Amplitude225_HF->Write();
2247 h_mapDepth4Amplitude225_HF->Write();
2248 h_mapDepth3Amplitude_HF->Write();
2249 h_mapDepth4Amplitude_HF->Write();
2252 h_mapDepth1Ampl047_HF->Write();
2253 h_mapDepth2Ampl047_HF->Write();
2254 h_mapDepth3Ampl047_HF->Write();
2255 h_mapDepth4Ampl047_HF->Write();
2257 h_mapDepth1Ampl_HF->Write();
2258 h_mapDepth2Ampl_HF->Write();
2259 h_mapDepth1AmplE34_HF->Write();
2260 h_mapDepth2AmplE34_HF->Write();
2261 h_mapDepth1_HF->Write();
2262 h_mapDepth2_HF->Write();
2263 h_mapDepth3Ampl_HF->Write();
2264 h_mapDepth4Ampl_HF->Write();
2265 h_mapDepth3AmplE34_HF->Write();
2266 h_mapDepth4AmplE34_HF->Write();
2267 h_mapDepth3_HF->Write();
2268 h_mapDepth4_HF->Write();
2271 h_ADCAmpl_HO->Write();
2272 h_ADCAmplrest1_HO->Write();
2273 h_ADCAmplrest6_HO->Write();
2275 h_ADCAmplZoom1_HO->Write();
2276 h_ADCAmpl_HO_copy->Write();
2277 h_mapDepth4ADCAmpl225_HO->Write();
2278 h_mapDepth4ADCAmpl_HO->Write();
2279 h_mapDepth4ADCAmpl12_HO->Write();
2281 h_TSmeanA_HO->Write();
2282 h_mapDepth4TSmeanA225_HO->Write();
2283 h_mapDepth4TSmeanA_HO->Write();
2285 h_TSmaxA_HO->Write();
2286 h_mapDepth4TSmaxA225_HO->Write();
2287 h_mapDepth4TSmaxA_HO->Write();
2289 h_Amplitude_HO->Write();
2290 h_mapDepth4Amplitude225_HO->Write();
2291 h_mapDepth4Amplitude_HO->Write();
2293 h_mapDepth4Ampl047_HO->Write();
2294 h_mapDepth4Ampl_HO->Write();
2295 h_mapDepth4AmplE34_HO->Write();
2296 h_mapDepth4_HO->Write();
2300 h_ADCAmpl345Zoom_HE->Write();
2301 h_ADCAmpl345Zoom1_HE->Write();
2302 h_ADCAmpl345_HE->Write();
2303 h_ADCAmpl_HE->Write();
2304 h_ADCAmplrest_HE->Write();
2305 h_ADCAmplrest1_HE->Write();
2306 h_ADCAmplrest6_HE->Write();
2308 h_ADCAmplZoom1_HE->Write();
2310 h_corrforxaMAIN_HE->Write();
2311 h_corrforxaMAIN0_HE->Write();
2312 h_corrforxaADDI_HE->Write();
2313 h_corrforxaADDI0_HE->Write();
2315 h_mapDepth1ADCAmpl225_HE->Write();
2316 h_mapDepth2ADCAmpl225_HE->Write();
2317 h_mapDepth3ADCAmpl225_HE->Write();
2318 h_mapDepth4ADCAmpl225_HE->Write();
2319 h_mapDepth5ADCAmpl225_HE->Write();
2320 h_mapDepth6ADCAmpl225_HE->Write();
2321 h_mapDepth7ADCAmpl225_HE->Write();
2323 h_mapADCAmplfirstpeak_HE->Write();
2324 h_mapADCAmplfirstpeak0_HE->Write();
2325 h_mapADCAmplsecondpeak_HE->Write();
2326 h_mapADCAmplsecondpeak0_HE->Write();
2327 h_mapADCAmpl11firstpeak_HE->Write();
2328 h_mapADCAmpl11firstpeak0_HE->Write();
2329 h_mapADCAmpl11secondpeak_HE->Write();
2330 h_mapADCAmpl11secondpeak0_HE->Write();
2331 h_mapADCAmpl12firstpeak_HE->Write();
2332 h_mapADCAmpl12firstpeak0_HE->Write();
2333 h_mapADCAmpl12secondpeak_HE->Write();
2334 h_mapADCAmpl12secondpeak0_HE->Write();
2336 h_gsmdifferencefit1_HE->Write();
2337 h_gsmdifferencefit2_HE->Write();
2338 h_gsmdifferencefit3_HE->Write();
2339 h_gsmdifferencefit4_HE->Write();
2340 h_gsmdifferencefit5_HE->Write();
2341 h_gsmdifferencefit6_HE->Write();
2343 h_mapDepth1ADCAmpl_HE->Write();
2344 h_mapDepth2ADCAmpl_HE->Write();
2345 h_mapDepth3ADCAmpl_HE->Write();
2346 h_mapDepth4ADCAmpl_HE->Write();
2347 h_mapDepth5ADCAmpl_HE->Write();
2348 h_mapDepth6ADCAmpl_HE->Write();
2349 h_mapDepth7ADCAmpl_HE->Write();
2350 h_mapDepth1ADCAmpl12_HE->Write();
2351 h_mapDepth2ADCAmpl12_HE->Write();
2352 h_mapDepth3ADCAmpl12_HE->Write();
2353 h_mapDepth4ADCAmpl12_HE->Write();
2354 h_mapDepth5ADCAmpl12_HE->Write();
2355 h_mapDepth6ADCAmpl12_HE->Write();
2356 h_mapDepth7ADCAmpl12_HE->Write();
2358 h_mapDepth1ADCAmplSiPM_HE->Write();
2359 h_mapDepth2ADCAmplSiPM_HE->Write();
2360 h_mapDepth3ADCAmplSiPM_HE->Write();
2361 h_mapDepth1ADCAmpl12SiPM_HE->Write();
2362 h_mapDepth2ADCAmpl12SiPM_HE->Write();
2363 h_mapDepth3ADCAmpl12SiPM_HE->Write();
2365 h_mapDepth1linADCAmpl12_HE->Write();
2366 h_mapDepth2linADCAmpl12_HE->Write();
2367 h_mapDepth3linADCAmpl12_HE->Write();
2369 h_TSmeanA_HE->Write();
2370 h_mapDepth1TSmeanA225_HE->Write();
2371 h_mapDepth2TSmeanA225_HE->Write();
2372 h_mapDepth3TSmeanA225_HE->Write();
2373 h_mapDepth4TSmeanA225_HE->Write();
2374 h_mapDepth5TSmeanA225_HE->Write();
2375 h_mapDepth6TSmeanA225_HE->Write();
2376 h_mapDepth7TSmeanA225_HE->Write();
2377 h_mapDepth1TSmeanA_HE->Write();
2378 h_mapDepth2TSmeanA_HE->Write();
2379 h_mapDepth3TSmeanA_HE->Write();
2380 h_mapDepth4TSmeanA_HE->Write();
2381 h_mapDepth5TSmeanA_HE->Write();
2382 h_mapDepth6TSmeanA_HE->Write();
2383 h_mapDepth7TSmeanA_HE->Write();
2385 h_TSmaxA_HE->Write();
2386 h_mapDepth1TSmaxA225_HE->Write();
2387 h_mapDepth2TSmaxA225_HE->Write();
2388 h_mapDepth3TSmaxA225_HE->Write();
2389 h_mapDepth4TSmaxA225_HE->Write();
2390 h_mapDepth5TSmaxA225_HE->Write();
2391 h_mapDepth6TSmaxA225_HE->Write();
2392 h_mapDepth7TSmaxA225_HE->Write();
2393 h_mapDepth1TSmaxA_HE->Write();
2394 h_mapDepth2TSmaxA_HE->Write();
2395 h_mapDepth3TSmaxA_HE->Write();
2396 h_mapDepth4TSmaxA_HE->Write();
2397 h_mapDepth5TSmaxA_HE->Write();
2398 h_mapDepth6TSmaxA_HE->Write();
2399 h_mapDepth7TSmaxA_HE->Write();
2401 h_Amplitude_HE->Write();
2402 h_mapDepth1Amplitude225_HE->Write();
2403 h_mapDepth2Amplitude225_HE->Write();
2404 h_mapDepth3Amplitude225_HE->Write();
2405 h_mapDepth4Amplitude225_HE->Write();
2406 h_mapDepth5Amplitude225_HE->Write();
2407 h_mapDepth6Amplitude225_HE->Write();
2408 h_mapDepth7Amplitude225_HE->Write();
2409 h_mapDepth1Amplitude_HE->Write();
2410 h_mapDepth2Amplitude_HE->Write();
2411 h_mapDepth3Amplitude_HE->Write();
2412 h_mapDepth4Amplitude_HE->Write();
2413 h_mapDepth5Amplitude_HE->Write();
2414 h_mapDepth6Amplitude_HE->Write();
2415 h_mapDepth7Amplitude_HE->Write();
2418 h_mapDepth1Ampl047_HE->Write();
2419 h_mapDepth2Ampl047_HE->Write();
2420 h_mapDepth3Ampl047_HE->Write();
2421 h_mapDepth4Ampl047_HE->Write();
2422 h_mapDepth5Ampl047_HE->Write();
2423 h_mapDepth6Ampl047_HE->Write();
2424 h_mapDepth7Ampl047_HE->Write();
2425 h_mapDepth1Ampl_HE->Write();
2426 h_mapDepth2Ampl_HE->Write();
2427 h_mapDepth3Ampl_HE->Write();
2428 h_mapDepth4Ampl_HE->Write();
2429 h_mapDepth5Ampl_HE->Write();
2430 h_mapDepth6Ampl_HE->Write();
2431 h_mapDepth7Ampl_HE->Write();
2432 h_mapDepth1AmplE34_HE->Write();
2433 h_mapDepth2AmplE34_HE->Write();
2434 h_mapDepth3AmplE34_HE->Write();
2435 h_mapDepth4AmplE34_HE->Write();
2436 h_mapDepth5AmplE34_HE->Write();
2437 h_mapDepth6AmplE34_HE->Write();
2438 h_mapDepth7AmplE34_HE->Write();
2439 h_mapDepth1_HE->Write();
2440 h_mapDepth2_HE->Write();
2441 h_mapDepth3_HE->Write();
2442 h_mapDepth4_HE->Write();
2443 h_mapDepth5_HE->Write();
2444 h_mapDepth6_HE->Write();
2445 h_mapDepth7_HE->Write();
2449 h_FullSignal3D_HB->Write();
2450 h_FullSignal3D0_HB->Write();
2451 h_FullSignal3D_HE->Write();
2452 h_FullSignal3D0_HE->Write();
2453 h_FullSignal3D_HO->Write();
2454 h_FullSignal3D0_HO->Write();
2455 h_FullSignal3D_HF->Write();
2456 h_FullSignal3D0_HF->Write();
2458 h_nbadchannels_depth1_HB->Write();
2459 h_runnbadchannels_depth1_HB->Write();
2460 h_runnbadchannelsC_depth1_HB->Write();
2461 h_runbadrate_depth1_HB->Write();
2462 h_runbadrateC_depth1_HB->Write();
2463 h_runbadrate0_depth1_HB->Write();
2465 h_nbadchannels_depth2_HB->Write();
2466 h_runnbadchannels_depth2_HB->Write();
2467 h_runnbadchannelsC_depth2_HB->Write();
2468 h_runbadrate_depth2_HB->Write();
2469 h_runbadrateC_depth2_HB->Write();
2470 h_runbadrate0_depth2_HB->Write();
2472 h_nbadchannels_depth1_HE->Write();
2473 h_runnbadchannels_depth1_HE->Write();
2474 h_runnbadchannelsC_depth1_HE->Write();
2475 h_runbadrate_depth1_HE->Write();
2476 h_runbadrateC_depth1_HE->Write();
2477 h_runbadrate0_depth1_HE->Write();
2479 h_nbadchannels_depth2_HE->Write();
2480 h_runnbadchannels_depth2_HE->Write();
2481 h_runnbadchannelsC_depth2_HE->Write();
2482 h_runbadrate_depth2_HE->Write();
2483 h_runbadrateC_depth2_HE->Write();
2484 h_runbadrate0_depth2_HE->Write();
2486 h_nbadchannels_depth3_HE->Write();
2487 h_runnbadchannels_depth3_HE->Write();
2488 h_runnbadchannelsC_depth3_HE->Write();
2489 h_runbadrate_depth3_HE->Write();
2490 h_runbadrateC_depth3_HE->Write();
2491 h_runbadrate0_depth3_HE->Write();
2493 h_nbadchannels_depth1_HF->Write();
2494 h_runnbadchannels_depth1_HF->Write();
2495 h_runnbadchannelsC_depth1_HF->Write();
2496 h_runbadrate_depth1_HF->Write();
2497 h_runbadrateC_depth1_HF->Write();
2498 h_runbadrate0_depth1_HF->Write();
2500 h_nbadchannels_depth2_HF->Write();
2501 h_runnbadchannels_depth2_HF->Write();
2502 h_runnbadchannelsC_depth2_HF->Write();
2503 h_runbadrate_depth2_HF->Write();
2504 h_runbadrateC_depth2_HF->Write();
2505 h_runbadrate0_depth2_HF->Write();
2507 h_nbadchannels_depth4_HO->Write();
2508 h_runnbadchannels_depth4_HO->Write();
2509 h_runnbadchannelsC_depth4_HO->Write();
2510 h_runbadrate_depth4_HO->Write();
2511 h_runbadrateC_depth4_HO->Write();
2512 h_runbadrate0_depth4_HO->Write();
2515 h_mapCapCalib047_HB->Write();
2516 h_mapCapCalib047_HE->Write();
2517 h_mapCapCalib047_HO->Write();
2518 h_mapCapCalib047_HF->Write();
2520 h_ADCCalib_HB->Write();
2521 h_ADCCalib1_HB->Write();
2522 h_mapADCCalib047_HB->Write();
2523 h_mapADCCalib_HB->Write();
2524 h_RatioCalib_HB->Write();
2525 h_mapRatioCalib047_HB->Write();
2526 h_mapRatioCalib_HB->Write();
2527 h_TSmaxCalib_HB->Write();
2528 h_mapTSmaxCalib047_HB->Write();
2529 h_mapTSmaxCalib_HB->Write();
2530 h_TSmeanCalib_HB->Write();
2531 h_mapTSmeanCalib047_HB->Write();
2532 h_mapTSmeanCalib_HB->Write();
2533 h_WidthCalib_HB->Write();
2534 h_mapWidthCalib047_HB->Write();
2535 h_mapWidthCalib_HB->Write();
2537 h_ADCCalib_HE->Write();
2538 h_ADCCalib1_HE->Write();
2539 h_mapADCCalib047_HE->Write();
2540 h_mapADCCalib_HE->Write();
2541 h_RatioCalib_HE->Write();
2542 h_mapRatioCalib047_HE->Write();
2543 h_mapRatioCalib_HE->Write();
2544 h_TSmaxCalib_HE->Write();
2545 h_mapTSmaxCalib047_HE->Write();
2546 h_mapTSmaxCalib_HE->Write();
2547 h_TSmeanCalib_HE->Write();
2548 h_mapTSmeanCalib047_HE->Write();
2549 h_mapTSmeanCalib_HE->Write();
2550 h_WidthCalib_HE->Write();
2551 h_mapWidthCalib047_HE->Write();
2552 h_mapWidthCalib_HE->Write();
2554 h_ADCCalib_HO->Write();
2555 h_ADCCalib1_HO->Write();
2556 h_mapADCCalib047_HO->Write();
2557 h_mapADCCalib_HO->Write();
2558 h_RatioCalib_HO->Write();
2559 h_mapRatioCalib047_HO->Write();
2560 h_mapRatioCalib_HO->Write();
2561 h_TSmaxCalib_HO->Write();
2562 h_mapTSmaxCalib047_HO->Write();
2563 h_mapTSmaxCalib_HO->Write();
2564 h_TSmeanCalib_HO->Write();
2565 h_mapTSmeanCalib047_HO->Write();
2566 h_mapTSmeanCalib_HO->Write();
2567 h_WidthCalib_HO->Write();
2568 h_mapWidthCalib047_HO->Write();
2569 h_mapWidthCalib_HO->Write();
2571 h_ADCCalib_HF->Write();
2572 h_ADCCalib1_HF->Write();
2573 h_mapADCCalib047_HF->Write();
2574 h_mapADCCalib_HF->Write();
2575 h_RatioCalib_HF->Write();
2576 h_mapRatioCalib047_HF->Write();
2577 h_mapRatioCalib_HF->Write();
2578 h_TSmaxCalib_HF->Write();
2579 h_mapTSmaxCalib047_HF->Write();
2580 h_mapTSmaxCalib_HF->Write();
2581 h_TSmeanCalib_HF->Write();
2582 h_mapTSmeanCalib047_HF->Write();
2583 h_mapTSmeanCalib_HF->Write();
2584 h_WidthCalib_HF->Write();
2585 h_mapWidthCalib047_HF->Write();
2586 h_mapWidthCalib_HF->Write();
2589 h_nls_per_run->Write();
2590 h_nls_per_run10->Write();
2591 h_nevents_per_LS->Write();
2592 h_nevents_per_LSzoom->Write();
2593 h_nevents_per_eachRealLS->Write();
2594 h_nevents_per_eachLS->Write();
2595 h_lsnumber_per_eachLS->Write();
2598 h_sumPedestalLS1->Write();
2599 h_2DsumPedestalLS1->Write();
2600 h_sumPedestalperLS1->Write();
2601 h_2D0sumPedestalLS1->Write();
2602 h_sum0PedestalperLS1->Write();
2604 h_sumPedestalLS2->Write();
2605 h_2DsumPedestalLS2->Write();
2606 h_sumPedestalperLS2->Write();
2607 h_2D0sumPedestalLS2->Write();
2608 h_sum0PedestalperLS2->Write();
2610 h_sumPedestalLS3->Write();
2611 h_2DsumPedestalLS3->Write();
2612 h_sumPedestalperLS3->Write();
2613 h_2D0sumPedestalLS3->Write();
2614 h_sum0PedestalperLS3->Write();
2616 h_sumPedestalLS4->Write();
2617 h_2DsumPedestalLS4->Write();
2618 h_sumPedestalperLS4->Write();
2619 h_2D0sumPedestalLS4->Write();
2620 h_sum0PedestalperLS4->Write();
2622 h_sumPedestalLS5->Write();
2623 h_2DsumPedestalLS5->Write();
2624 h_sumPedestalperLS5->Write();
2625 h_2D0sumPedestalLS5->Write();
2626 h_sum0PedestalperLS5->Write();
2628 h_sumPedestalLS6->Write();
2629 h_2DsumPedestalLS6->Write();
2630 h_sumPedestalperLS6->Write();
2631 h_2D0sumPedestalLS6->Write();
2632 h_sum0PedestalperLS6->Write();
2634 h_sumPedestalLS7->Write();
2635 h_2DsumPedestalLS7->Write();
2636 h_sumPedestalperLS7->Write();
2637 h_2D0sumPedestalLS7->Write();
2638 h_sum0PedestalperLS7->Write();
2640 h_sumPedestalLS8->Write();
2641 h_2DsumPedestalLS8->Write();
2642 h_sumPedestalperLS8->Write();
2643 h_2D0sumPedestalLS8->Write();
2644 h_sum0PedestalperLS8->Write();
2649 h_2DsumADCAmplLSdepth4HEu->Write();
2650 h_2D0sumADCAmplLSdepth4HEu->Write();
2651 h_2DsumADCAmplLSdepth5HEu->Write();
2652 h_2D0sumADCAmplLSdepth5HEu->Write();
2653 h_2DsumADCAmplLSdepth6HEu->Write();
2654 h_2D0sumADCAmplLSdepth6HEu->Write();
2655 h_2DsumADCAmplLSdepth7HEu->Write();
2656 h_2D0sumADCAmplLSdepth7HEu->Write();
2657 h_2DsumADCAmplLSdepth3HFu->Write();
2658 h_2D0sumADCAmplLSdepth3HFu->Write();
2659 h_2DsumADCAmplLSdepth4HFu->Write();
2660 h_2D0sumADCAmplLSdepth4HFu->Write();
2662 h_2DsumADCAmplLSdepth3HBu->Write();
2663 h_2D0sumADCAmplLSdepth3HBu->Write();
2664 h_2DsumADCAmplLSdepth4HBu->Write();
2665 h_2D0sumADCAmplLSdepth4HBu->Write();
2667 h_sumADCAmplLS1copy1->Write();
2668 h_sumADCAmplLS1copy2->Write();
2669 h_sumADCAmplLS1copy3->Write();
2670 h_sumADCAmplLS1copy4->Write();
2671 h_sumADCAmplLS1copy5->Write();
2672 h_sumADCAmplLS1->Write();
2673 h_2DsumADCAmplLS1->Write();
2674 h_2DsumADCAmplLS1_LSselected->Write();
2675 h_sumADCAmplperLS1->Write();
2676 h_sumCutADCAmplperLS1->Write();
2677 h_2D0sumADCAmplLS1->Write();
2678 h_sum0ADCAmplperLS1->Write();
2680 h_sumADCAmplLS2->Write();
2681 h_2DsumADCAmplLS2->Write();
2682 h_2DsumADCAmplLS2_LSselected->Write();
2683 h_sumADCAmplperLS2->Write();
2684 h_sumCutADCAmplperLS2->Write();
2685 h_2D0sumADCAmplLS2->Write();
2686 h_sum0ADCAmplperLS2->Write();
2688 h_sumADCAmplLS3->Write();
2689 h_2DsumADCAmplLS3->Write();
2690 h_2DsumADCAmplLS3_LSselected->Write();
2691 h_sumADCAmplperLS3->Write();
2692 h_sumCutADCAmplperLS3->Write();
2693 h_2D0sumADCAmplLS3->Write();
2694 h_sum0ADCAmplperLS3->Write();
2696 h_sumADCAmplLS4->Write();
2697 h_2DsumADCAmplLS4->Write();
2698 h_2DsumADCAmplLS4_LSselected->Write();
2699 h_sumADCAmplperLS4->Write();
2700 h_sumCutADCAmplperLS4->Write();
2701 h_2D0sumADCAmplLS4->Write();
2702 h_sum0ADCAmplperLS4->Write();
2704 h_sumADCAmplLS5->Write();
2705 h_2DsumADCAmplLS5->Write();
2706 h_2DsumADCAmplLS5_LSselected->Write();
2707 h_sumADCAmplperLS5->Write();
2708 h_sumCutADCAmplperLS5->Write();
2709 h_2D0sumADCAmplLS5->Write();
2710 h_sum0ADCAmplperLS5->Write();
2712 h_sumADCAmplLS6->Write();
2713 h_2DsumADCAmplLS6->Write();
2714 h_2DsumADCAmplLS6_LSselected->Write();
2715 h_2D0sumADCAmplLS6->Write();
2716 h_sumADCAmplperLS6->Write();
2717 h_sumCutADCAmplperLS6->Write();
2718 h_sum0ADCAmplperLS6->Write();
2719 h_sumADCAmplperLS6u->Write();
2720 h_sumCutADCAmplperLS6u->Write();
2721 h_sum0ADCAmplperLS6u->Write();
2723 h_sumADCAmplperLSdepth4HEu->Write();
2724 h_sumADCAmplperLSdepth5HEu->Write();
2725 h_sumADCAmplperLSdepth6HEu->Write();
2726 h_sumADCAmplperLSdepth7HEu->Write();
2727 h_sumCutADCAmplperLSdepth4HEu->Write();
2728 h_sumCutADCAmplperLSdepth5HEu->Write();
2729 h_sumCutADCAmplperLSdepth6HEu->Write();
2730 h_sumCutADCAmplperLSdepth7HEu->Write();
2731 h_sum0ADCAmplperLSdepth4HEu->Write();
2732 h_sum0ADCAmplperLSdepth5HEu->Write();
2733 h_sum0ADCAmplperLSdepth6HEu->Write();
2734 h_sum0ADCAmplperLSdepth7HEu->Write();
2736 h_sumADCAmplperLSdepth3HBu->Write();
2737 h_sumADCAmplperLSdepth4HBu->Write();
2738 h_sumCutADCAmplperLSdepth3HBu->Write();
2739 h_sumCutADCAmplperLSdepth4HBu->Write();
2740 h_sum0ADCAmplperLSdepth3HBu->Write();
2741 h_sum0ADCAmplperLSdepth4HBu->Write();
2743 h_sumADCAmplperLS1_P1->Write();
2744 h_sum0ADCAmplperLS1_P1->Write();
2745 h_sumADCAmplperLS1_P2->Write();
2746 h_sum0ADCAmplperLS1_P2->Write();
2747 h_sumADCAmplperLS1_M1->Write();
2748 h_sum0ADCAmplperLS1_M1->Write();
2749 h_sumADCAmplperLS1_M2->Write();
2750 h_sum0ADCAmplperLS1_M2->Write();
2752 h_sumADCAmplperLS3_P1->Write();
2753 h_sum0ADCAmplperLS3_P1->Write();
2754 h_sumADCAmplperLS3_P2->Write();
2755 h_sum0ADCAmplperLS3_P2->Write();
2756 h_sumADCAmplperLS3_M1->Write();
2757 h_sum0ADCAmplperLS3_M1->Write();
2758 h_sumADCAmplperLS3_M2->Write();
2759 h_sum0ADCAmplperLS3_M2->Write();
2761 h_sumADCAmplperLS6_P1->Write();
2762 h_sum0ADCAmplperLS6_P1->Write();
2763 h_sumADCAmplperLS6_P2->Write();
2764 h_sum0ADCAmplperLS6_P2->Write();
2765 h_sumADCAmplperLS6_M1->Write();
2766 h_sum0ADCAmplperLS6_M1->Write();
2767 h_sumADCAmplperLS6_M2->Write();
2768 h_sum0ADCAmplperLS6_M2->Write();
2770 h_sumADCAmplperLS8_P1->Write();
2771 h_sum0ADCAmplperLS8_P1->Write();
2772 h_sumADCAmplperLS8_P2->Write();
2773 h_sum0ADCAmplperLS8_P2->Write();
2774 h_sumADCAmplperLS8_M1->Write();
2775 h_sum0ADCAmplperLS8_M1->Write();
2776 h_sumADCAmplperLS8_M2->Write();
2777 h_sum0ADCAmplperLS8_M2->Write();
2779 h_sumADCAmplLS7->Write();
2780 h_2DsumADCAmplLS7->Write();
2781 h_2DsumADCAmplLS7_LSselected->Write();
2782 h_2D0sumADCAmplLS7->Write();
2783 h_sumADCAmplperLS7->Write();
2784 h_sumCutADCAmplperLS7->Write();
2785 h_sum0ADCAmplperLS7->Write();
2786 h_sumADCAmplperLS7u->Write();
2787 h_sumCutADCAmplperLS7u->Write();
2788 h_sum0ADCAmplperLS7u->Write();
2790 h_sumADCAmplLS8->Write();
2791 h_2DsumADCAmplLS8->Write();
2792 h_2DsumADCAmplLS8_LSselected->Write();
2793 h_sumADCAmplperLS8->Write();
2794 h_sumCutADCAmplperLS8->Write();
2795 h_2D0sumADCAmplLS8->Write();
2796 h_sum0ADCAmplperLS8->Write();
2799 h_sumTSmeanALS1->Write();
2800 h_2DsumTSmeanALS1->Write();
2801 h_sumTSmeanAperLS1->Write();
2802 h_sumTSmeanAperLS1_LSselected->Write();
2803 h_sumCutTSmeanAperLS1->Write();
2804 h_2D0sumTSmeanALS1->Write();
2805 h_sum0TSmeanAperLS1->Write();
2807 h_sumTSmeanALS2->Write();
2808 h_2DsumTSmeanALS2->Write();
2809 h_sumTSmeanAperLS2->Write();
2810 h_sumCutTSmeanAperLS2->Write();
2811 h_2D0sumTSmeanALS2->Write();
2812 h_sum0TSmeanAperLS2->Write();
2814 h_sumTSmeanALS3->Write();
2815 h_2DsumTSmeanALS3->Write();
2816 h_sumTSmeanAperLS3->Write();
2817 h_sumCutTSmeanAperLS3->Write();
2818 h_2D0sumTSmeanALS3->Write();
2819 h_sum0TSmeanAperLS3->Write();
2821 h_sumTSmeanALS4->Write();
2822 h_2DsumTSmeanALS4->Write();
2823 h_sumTSmeanAperLS4->Write();
2824 h_sumCutTSmeanAperLS4->Write();
2825 h_2D0sumTSmeanALS4->Write();
2826 h_sum0TSmeanAperLS4->Write();
2828 h_sumTSmeanALS5->Write();
2829 h_2DsumTSmeanALS5->Write();
2830 h_sumTSmeanAperLS5->Write();
2831 h_sumCutTSmeanAperLS5->Write();
2832 h_2D0sumTSmeanALS5->Write();
2833 h_sum0TSmeanAperLS5->Write();
2835 h_sumTSmeanALS6->Write();
2836 h_2DsumTSmeanALS6->Write();
2837 h_sumTSmeanAperLS6->Write();
2838 h_sumCutTSmeanAperLS6->Write();
2839 h_2D0sumTSmeanALS6->Write();
2840 h_sum0TSmeanAperLS6->Write();
2842 h_sumTSmeanALS7->Write();
2843 h_2DsumTSmeanALS7->Write();
2844 h_sumTSmeanAperLS7->Write();
2845 h_sumCutTSmeanAperLS7->Write();
2846 h_2D0sumTSmeanALS7->Write();
2847 h_sum0TSmeanAperLS7->Write();
2849 h_sumTSmeanALS8->Write();
2850 h_2DsumTSmeanALS8->Write();
2851 h_sumTSmeanAperLS8->Write();
2852 h_sumCutTSmeanAperLS8->Write();
2853 h_2D0sumTSmeanALS8->Write();
2854 h_sum0TSmeanAperLS8->Write();
2857 h_sumTSmaxALS1->Write();
2858 h_2DsumTSmaxALS1->Write();
2859 h_sumTSmaxAperLS1->Write();
2860 h_sumTSmaxAperLS1_LSselected->Write();
2861 h_sumCutTSmaxAperLS1->Write();
2862 h_2D0sumTSmaxALS1->Write();
2863 h_sum0TSmaxAperLS1->Write();
2865 h_sumTSmaxALS2->Write();
2866 h_2DsumTSmaxALS2->Write();
2867 h_sumTSmaxAperLS2->Write();
2868 h_sumCutTSmaxAperLS2->Write();
2869 h_2D0sumTSmaxALS2->Write();
2870 h_sum0TSmaxAperLS2->Write();
2872 h_sumTSmaxALS3->Write();
2873 h_2DsumTSmaxALS3->Write();
2874 h_sumTSmaxAperLS3->Write();
2875 h_sumCutTSmaxAperLS3->Write();
2876 h_2D0sumTSmaxALS3->Write();
2877 h_sum0TSmaxAperLS3->Write();
2879 h_sumTSmaxALS4->Write();
2880 h_2DsumTSmaxALS4->Write();
2881 h_sumTSmaxAperLS4->Write();
2882 h_sumCutTSmaxAperLS4->Write();
2883 h_2D0sumTSmaxALS4->Write();
2884 h_sum0TSmaxAperLS4->Write();
2886 h_sumTSmaxALS5->Write();
2887 h_2DsumTSmaxALS5->Write();
2888 h_sumTSmaxAperLS5->Write();
2889 h_sumCutTSmaxAperLS5->Write();
2890 h_2D0sumTSmaxALS5->Write();
2891 h_sum0TSmaxAperLS5->Write();
2893 h_sumTSmaxALS6->Write();
2894 h_2DsumTSmaxALS6->Write();
2895 h_sumTSmaxAperLS6->Write();
2896 h_sumCutTSmaxAperLS6->Write();
2897 h_2D0sumTSmaxALS6->Write();
2898 h_sum0TSmaxAperLS6->Write();
2900 h_sumTSmaxALS7->Write();
2901 h_2DsumTSmaxALS7->Write();
2902 h_sumTSmaxAperLS7->Write();
2903 h_sumCutTSmaxAperLS7->Write();
2904 h_2D0sumTSmaxALS7->Write();
2905 h_sum0TSmaxAperLS7->Write();
2907 h_sumTSmaxALS8->Write();
2908 h_2DsumTSmaxALS8->Write();
2909 h_sumTSmaxAperLS8->Write();
2910 h_sumCutTSmaxAperLS8->Write();
2911 h_2D0sumTSmaxALS8->Write();
2912 h_sum0TSmaxAperLS8->Write();
2915 h_sumAmplitudeLS1->Write();
2916 h_2DsumAmplitudeLS1->Write();
2917 h_sumAmplitudeperLS1->Write();
2918 h_sumAmplitudeperLS1_LSselected->Write();
2919 h_sumCutAmplitudeperLS1->Write();
2920 h_2D0sumAmplitudeLS1->Write();
2921 h_sum0AmplitudeperLS1->Write();
2923 h_sumAmplitudeLS2->Write();
2924 h_2DsumAmplitudeLS2->Write();
2925 h_sumAmplitudeperLS2->Write();
2926 h_sumCutAmplitudeperLS2->Write();
2927 h_2D0sumAmplitudeLS2->Write();
2928 h_sum0AmplitudeperLS2->Write();
2930 h_sumAmplitudeLS3->Write();
2931 h_2DsumAmplitudeLS3->Write();
2932 h_sumAmplitudeperLS3->Write();
2933 h_sumCutAmplitudeperLS3->Write();
2934 h_2D0sumAmplitudeLS3->Write();
2935 h_sum0AmplitudeperLS3->Write();
2937 h_sumAmplitudeLS4->Write();
2938 h_2DsumAmplitudeLS4->Write();
2939 h_sumAmplitudeperLS4->Write();
2940 h_sumCutAmplitudeperLS4->Write();
2941 h_2D0sumAmplitudeLS4->Write();
2942 h_sum0AmplitudeperLS4->Write();
2944 h_sumAmplitudeLS5->Write();
2945 h_2DsumAmplitudeLS5->Write();
2946 h_sumAmplitudeperLS5->Write();
2947 h_sumCutAmplitudeperLS5->Write();
2948 h_2D0sumAmplitudeLS5->Write();
2949 h_sum0AmplitudeperLS5->Write();
2951 h_sumAmplitudeLS6->Write();
2952 h_2DsumAmplitudeLS6->Write();
2953 h_sumAmplitudeperLS6->Write();
2954 h_sumCutAmplitudeperLS6->Write();
2955 h_2D0sumAmplitudeLS6->Write();
2956 h_sum0AmplitudeperLS6->Write();
2958 h_sumAmplitudeLS7->Write();
2959 h_2DsumAmplitudeLS7->Write();
2960 h_sumAmplitudeperLS7->Write();
2961 h_sumCutAmplitudeperLS7->Write();
2962 h_2D0sumAmplitudeLS7->Write();
2963 h_sum0AmplitudeperLS7->Write();
2965 h_sumAmplitudeLS8->Write();
2966 h_2DsumAmplitudeLS8->Write();
2967 h_sumAmplitudeperLS8->Write();
2968 h_sumCutAmplitudeperLS8->Write();
2969 h_2D0sumAmplitudeLS8->Write();
2970 h_sum0AmplitudeperLS8->Write();
2973 h_sumErrorBLS1->Write();
2974 h_sumErrorBperLS1->Write();
2975 h_sum0ErrorBperLS1->Write();
2976 h_2D0sumErrorBLS1->Write();
2977 h_2DsumErrorBLS1->Write();
2978 h_sumErrorBLS2->Write();
2979 h_sumErrorBperLS2->Write();
2980 h_sum0ErrorBperLS2->Write();
2981 h_2D0sumErrorBLS2->Write();
2982 h_2DsumErrorBLS2->Write();
2984 h_sumErrorBLS3->Write();
2985 h_sumErrorBperLS3->Write();
2986 h_sum0ErrorBperLS3->Write();
2987 h_2D0sumErrorBLS3->Write();
2988 h_2DsumErrorBLS3->Write();
2989 h_sumErrorBLS4->Write();
2990 h_sumErrorBperLS4->Write();
2991 h_sum0ErrorBperLS4->Write();
2992 h_2D0sumErrorBLS4->Write();
2993 h_2DsumErrorBLS4->Write();
2994 h_sumErrorBLS5->Write();
2995 h_sumErrorBperLS5->Write();
2996 h_sum0ErrorBperLS5->Write();
2997 h_2D0sumErrorBLS5->Write();
2998 h_2DsumErrorBLS5->Write();
3000 h_sumErrorBLS6->Write();
3001 h_sumErrorBperLS6->Write();
3002 h_sum0ErrorBperLS6->Write();
3003 h_2D0sumErrorBLS6->Write();
3004 h_2DsumErrorBLS6->Write();
3005 h_sumErrorBLS7->Write();
3006 h_sumErrorBperLS7->Write();
3007 h_sum0ErrorBperLS7->Write();
3008 h_2D0sumErrorBLS7->Write();
3009 h_2DsumErrorBLS7->Write();
3011 h_sumErrorBLS8->Write();
3012 h_sumErrorBperLS8->Write();
3013 h_sum0ErrorBperLS8->Write();
3014 h_2D0sumErrorBLS8->Write();
3015 h_2DsumErrorBLS8->Write();
3018 h_sumAmplLS1->Write();
3019 h_2DsumAmplLS1->Write();
3020 h_sumAmplperLS1->Write();
3021 h_sumAmplperLS1_LSselected->Write();
3022 h_sumCutAmplperLS1->Write();
3023 h_2D0sumAmplLS1->Write();
3024 h_sum0AmplperLS1->Write();
3026 h_sumAmplLS2->Write();
3027 h_2DsumAmplLS2->Write();
3028 h_sumAmplperLS2->Write();
3029 h_sumCutAmplperLS2->Write();
3030 h_2D0sumAmplLS2->Write();
3031 h_sum0AmplperLS2->Write();
3033 h_sumAmplLS3->Write();
3034 h_2DsumAmplLS3->Write();
3035 h_sumAmplperLS3->Write();
3036 h_sumCutAmplperLS3->Write();
3037 h_2D0sumAmplLS3->Write();
3038 h_sum0AmplperLS3->Write();
3040 h_sumAmplLS4->Write();
3041 h_2DsumAmplLS4->Write();
3042 h_sumAmplperLS4->Write();
3043 h_sumCutAmplperLS4->Write();
3044 h_2D0sumAmplLS4->Write();
3045 h_sum0AmplperLS4->Write();
3047 h_sumAmplLS5->Write();
3048 h_2DsumAmplLS5->Write();
3049 h_sumAmplperLS5->Write();
3050 h_sumCutAmplperLS5->Write();
3051 h_2D0sumAmplLS5->Write();
3052 h_sum0AmplperLS5->Write();
3054 h_sumAmplLS6->Write();
3055 h_2DsumAmplLS6->Write();
3056 h_sumAmplperLS6->Write();
3057 h_sumCutAmplperLS6->Write();
3058 h_2D0sumAmplLS6->Write();
3059 h_sum0AmplperLS6->Write();
3061 h_RatioOccupancy_HBP->Write();
3062 h_RatioOccupancy_HBM->Write();
3063 h_RatioOccupancy_HEP->Write();
3064 h_RatioOccupancy_HEM->Write();
3065 h_RatioOccupancy_HOP->Write();
3066 h_RatioOccupancy_HOM->Write();
3067 h_RatioOccupancy_HFP->Write();
3068 h_RatioOccupancy_HFM->Write();
3070 h_sumAmplLS7->Write();
3071 h_2DsumAmplLS7->Write();
3072 h_sumAmplperLS7->Write();
3073 h_sumCutAmplperLS7->Write();
3074 h_2D0sumAmplLS7->Write();
3075 h_sum0AmplperLS7->Write();
3077 h_sumAmplLS8->Write();
3078 h_2DsumAmplLS8->Write();
3079 h_sumAmplperLS8->Write();
3080 h_sumCutAmplperLS8->Write();
3081 h_2D0sumAmplLS8->Write();
3082 h_sum0AmplperLS8->Write();
3084 h_pedestal0_HB->Write();
3085 h_pedestal1_HB->Write();
3086 h_pedestal2_HB->Write();
3087 h_pedestal3_HB->Write();
3088 h_pedestalaver4_HB->Write();
3089 h_pedestalaver9_HB->Write();
3090 h_pedestalw0_HB->Write();
3091 h_pedestalw1_HB->Write();
3092 h_pedestalw2_HB->Write();
3093 h_pedestalw3_HB->Write();
3094 h_pedestalwaver4_HB->Write();
3095 h_pedestalwaver9_HB->Write();
3097 h_pedestal0_HE->Write();
3098 h_pedestal1_HE->Write();
3099 h_pedestal2_HE->Write();
3100 h_pedestal3_HE->Write();
3101 h_pedestalaver4_HE->Write();
3102 h_pedestalaver9_HE->Write();
3103 h_pedestalw0_HE->Write();
3104 h_pedestalw1_HE->Write();
3105 h_pedestalw2_HE->Write();
3106 h_pedestalw3_HE->Write();
3107 h_pedestalwaver4_HE->Write();
3108 h_pedestalwaver9_HE->Write();
3110 h_pedestal0_HF->Write();
3111 h_pedestal1_HF->Write();
3112 h_pedestal2_HF->Write();
3113 h_pedestal3_HF->Write();
3114 h_pedestalaver4_HF->Write();
3115 h_pedestalaver9_HF->Write();
3116 h_pedestalw0_HF->Write();
3117 h_pedestalw1_HF->Write();
3118 h_pedestalw2_HF->Write();
3119 h_pedestalw3_HF->Write();
3120 h_pedestalwaver4_HF->Write();
3121 h_pedestalwaver9_HF->Write();
3123 h_pedestal0_HO->Write();
3124 h_pedestal1_HO->Write();
3125 h_pedestal2_HO->Write();
3126 h_pedestal3_HO->Write();
3127 h_pedestalaver4_HO->Write();
3128 h_pedestalaver9_HO->Write();
3129 h_pedestalw0_HO->Write();
3130 h_pedestalw1_HO->Write();
3131 h_pedestalw2_HO->Write();
3132 h_pedestalw3_HO->Write();
3133 h_pedestalwaver4_HO->Write();
3134 h_pedestalwaver9_HO->Write();
3136 h_mapDepth1pedestalw_HB->Write();
3137 h_mapDepth2pedestalw_HB->Write();
3138 h_mapDepth3pedestalw_HB->Write();
3139 h_mapDepth4pedestalw_HB->Write();
3140 h_mapDepth1pedestalw_HE->Write();
3141 h_mapDepth2pedestalw_HE->Write();
3142 h_mapDepth3pedestalw_HE->Write();
3143 h_mapDepth4pedestalw_HE->Write();
3144 h_mapDepth5pedestalw_HE->Write();
3145 h_mapDepth6pedestalw_HE->Write();
3146 h_mapDepth7pedestalw_HE->Write();
3147 h_mapDepth1pedestalw_HF->Write();
3148 h_mapDepth2pedestalw_HF->Write();
3149 h_mapDepth3pedestalw_HF->Write();
3150 h_mapDepth4pedestalw_HF->Write();
3151 h_mapDepth4pedestalw_HO->Write();
3153 h_mapDepth1pedestal_HB->Write();
3154 h_mapDepth2pedestal_HB->Write();
3155 h_mapDepth3pedestal_HB->Write();
3156 h_mapDepth4pedestal_HB->Write();
3157 h_mapDepth1pedestal_HE->Write();
3158 h_mapDepth2pedestal_HE->Write();
3159 h_mapDepth3pedestal_HE->Write();
3160 h_mapDepth4pedestal_HE->Write();
3161 h_mapDepth5pedestal_HE->Write();
3162 h_mapDepth6pedestal_HE->Write();
3163 h_mapDepth7pedestal_HE->Write();
3164 h_mapDepth1pedestal_HF->Write();
3165 h_mapDepth2pedestal_HF->Write();
3166 h_mapDepth3pedestal_HF->Write();
3167 h_mapDepth4pedestal_HF->Write();
3168 h_mapDepth4pedestal_HO->Write();
3170 h_pedestal00_HB->Write();
3172 h_respcorr_HB->Write();
3173 h_timecorr_HB->Write();
3174 h_lutcorr_HB->Write();
3175 h_difpedestal0_HB->Write();
3176 h_difpedestal1_HB->Write();
3177 h_difpedestal2_HB->Write();
3178 h_difpedestal3_HB->Write();
3180 h_pedestal00_HE->Write();
3182 h_respcorr_HE->Write();
3183 h_timecorr_HE->Write();
3184 h_lutcorr_HE->Write();
3186 h_pedestal00_HF->Write();
3188 h_respcorr_HF->Write();
3189 h_timecorr_HF->Write();
3190 h_lutcorr_HF->Write();
3192 h_pedestal00_HO->Write();
3194 h_respcorr_HO->Write();
3195 h_timecorr_HO->Write();
3196 h_lutcorr_HO->Write();
3198 h2_pedvsampl_HB->Write();
3199 h2_pedwvsampl_HB->Write();
3200 h_pedvsampl_HB->Write();
3201 h_pedwvsampl_HB->Write();
3202 h_pedvsampl0_HB->Write();
3203 h_pedwvsampl0_HB->Write();
3204 h2_amplvsped_HB->Write();
3205 h2_amplvspedw_HB->Write();
3206 h_amplvsped_HB->Write();
3207 h_amplvspedw_HB->Write();
3208 h_amplvsped0_HB->Write();
3210 h2_pedvsampl_HE->Write();
3211 h2_pedwvsampl_HE->Write();
3212 h_pedvsampl_HE->Write();
3213 h_pedwvsampl_HE->Write();
3214 h_pedvsampl0_HE->Write();
3215 h_pedwvsampl0_HE->Write();
3216 h2_pedvsampl_HF->Write();
3217 h2_pedwvsampl_HF->Write();
3218 h_pedvsampl_HF->Write();
3219 h_pedwvsampl_HF->Write();
3220 h_pedvsampl0_HF->Write();
3221 h_pedwvsampl0_HF->Write();
3222 h2_pedvsampl_HO->Write();
3223 h2_pedwvsampl_HO->Write();
3224 h_pedvsampl_HO->Write();
3225 h_pedwvsampl_HO->Write();
3226 h_pedvsampl0_HO->Write();
3227 h_pedwvsampl0_HO->Write();
3229 h_mapDepth1Ped0_HB->Write();
3230 h_mapDepth1Ped1_HB->Write();
3231 h_mapDepth1Ped2_HB->Write();
3232 h_mapDepth1Ped3_HB->Write();
3233 h_mapDepth1Pedw0_HB->Write();
3234 h_mapDepth1Pedw1_HB->Write();
3235 h_mapDepth1Pedw2_HB->Write();
3236 h_mapDepth1Pedw3_HB->Write();
3237 h_mapDepth2Ped0_HB->Write();
3238 h_mapDepth2Ped1_HB->Write();
3239 h_mapDepth2Ped2_HB->Write();
3240 h_mapDepth2Ped3_HB->Write();
3241 h_mapDepth2Pedw0_HB->Write();
3242 h_mapDepth2Pedw1_HB->Write();
3243 h_mapDepth2Pedw2_HB->Write();
3244 h_mapDepth2Pedw3_HB->Write();
3246 h_mapDepth1Ped0_HE->Write();
3247 h_mapDepth1Ped1_HE->Write();
3248 h_mapDepth1Ped2_HE->Write();
3249 h_mapDepth1Ped3_HE->Write();
3250 h_mapDepth1Pedw0_HE->Write();
3251 h_mapDepth1Pedw1_HE->Write();
3252 h_mapDepth1Pedw2_HE->Write();
3253 h_mapDepth1Pedw3_HE->Write();
3254 h_mapDepth2Ped0_HE->Write();
3255 h_mapDepth2Ped1_HE->Write();
3256 h_mapDepth2Ped2_HE->Write();
3257 h_mapDepth2Ped3_HE->Write();
3258 h_mapDepth2Pedw0_HE->Write();
3259 h_mapDepth2Pedw1_HE->Write();
3260 h_mapDepth2Pedw2_HE->Write();
3261 h_mapDepth2Pedw3_HE->Write();
3262 h_mapDepth3Ped0_HE->Write();
3263 h_mapDepth3Ped1_HE->Write();
3264 h_mapDepth3Ped2_HE->Write();
3265 h_mapDepth3Ped3_HE->Write();
3266 h_mapDepth3Pedw0_HE->Write();
3267 h_mapDepth3Pedw1_HE->Write();
3268 h_mapDepth3Pedw2_HE->Write();
3269 h_mapDepth3Pedw3_HE->Write();
3271 h_mapDepth1Ped0_HF->Write();
3272 h_mapDepth1Ped1_HF->Write();
3273 h_mapDepth1Ped2_HF->Write();
3274 h_mapDepth1Ped3_HF->Write();
3275 h_mapDepth1Pedw0_HF->Write();
3276 h_mapDepth1Pedw1_HF->Write();
3277 h_mapDepth1Pedw2_HF->Write();
3278 h_mapDepth1Pedw3_HF->Write();
3279 h_mapDepth2Ped0_HF->Write();
3280 h_mapDepth2Ped1_HF->Write();
3281 h_mapDepth2Ped2_HF->Write();
3282 h_mapDepth2Ped3_HF->Write();
3283 h_mapDepth2Pedw0_HF->Write();
3284 h_mapDepth2Pedw1_HF->Write();
3285 h_mapDepth2Pedw2_HF->Write();
3286 h_mapDepth2Pedw3_HF->Write();
3288 h_mapDepth4Ped0_HO->Write();
3289 h_mapDepth4Ped1_HO->Write();
3290 h_mapDepth4Ped2_HO->Write();
3291 h_mapDepth4Ped3_HO->Write();
3292 h_mapDepth4Pedw0_HO->Write();
3293 h_mapDepth4Pedw1_HO->Write();
3294 h_mapDepth4Pedw2_HO->Write();
3295 h_mapDepth4Pedw3_HO->Write();
3297 h_mapGetRMSOverNormalizedSignal_HB->Write();
3298 h_mapGetRMSOverNormalizedSignal0_HB->Write();
3299 h_mapGetRMSOverNormalizedSignal_HE->Write();
3300 h_mapGetRMSOverNormalizedSignal0_HE->Write();
3301 h_mapGetRMSOverNormalizedSignal_HF->Write();
3302 h_mapGetRMSOverNormalizedSignal0_HF->Write();
3303 h_mapGetRMSOverNormalizedSignal_HO->Write();
3304 h_mapGetRMSOverNormalizedSignal0_HO->Write();
3306 h_shape_Ahigh_HB0->Write();
3307 h_shape0_Ahigh_HB0->Write();
3308 h_shape_Alow_HB0->Write();
3309 h_shape0_Alow_HB0->Write();
3310 h_shape_Ahigh_HB1->Write();
3311 h_shape0_Ahigh_HB1->Write();
3312 h_shape_Alow_HB1->Write();
3313 h_shape0_Alow_HB1->Write();
3314 h_shape_Ahigh_HB2->Write();
3315 h_shape0_Ahigh_HB2->Write();
3316 h_shape_Alow_HB2->Write();
3317 h_shape0_Alow_HB2->Write();
3318 h_shape_Ahigh_HB3->Write();
3319 h_shape0_Ahigh_HB3->Write();
3320 h_shape_Alow_HB3->Write();
3321 h_shape0_Alow_HB3->Write();
3323 h_shape_bad_channels_HB->Write();
3324 h_shape0_bad_channels_HB->Write();
3325 h_shape_good_channels_HB->Write();
3326 h_shape0_good_channels_HB->Write();
3327 h_shape_bad_channels_HE->Write();
3328 h_shape0_bad_channels_HE->Write();
3329 h_shape_good_channels_HE->Write();
3330 h_shape0_good_channels_HE->Write();
3331 h_shape_bad_channels_HF->Write();
3332 h_shape0_bad_channels_HF->Write();
3333 h_shape_good_channels_HF->Write();
3334 h_shape0_good_channels_HF->Write();
3335 h_shape_bad_channels_HO->Write();
3336 h_shape0_bad_channels_HO->Write();
3337 h_shape_good_channels_HO->Write();
3338 h_shape0_good_channels_HO->Write();
3340 h_sumamplitude_depth1_HB->Write();
3341 h_sumamplitude_depth2_HB->Write();
3342 h_sumamplitude_depth1_HE->Write();
3343 h_sumamplitude_depth2_HE->Write();
3344 h_sumamplitude_depth3_HE->Write();
3345 h_sumamplitude_depth1_HF->Write();
3346 h_sumamplitude_depth2_HF->Write();
3347 h_sumamplitude_depth4_HO->Write();
3349 h_sumamplitude_depth1_HB0->Write();
3350 h_sumamplitude_depth2_HB0->Write();
3351 h_sumamplitude_depth1_HE0->Write();
3352 h_sumamplitude_depth2_HE0->Write();
3353 h_sumamplitude_depth3_HE0->Write();
3354 h_sumamplitude_depth1_HF0->Write();
3355 h_sumamplitude_depth2_HF0->Write();
3356 h_sumamplitude_depth4_HO0->Write();
3358 h_sumamplitude_depth1_HB1->Write();
3359 h_sumamplitude_depth2_HB1->Write();
3360 h_sumamplitude_depth1_HE1->Write();
3361 h_sumamplitude_depth2_HE1->Write();
3362 h_sumamplitude_depth3_HE1->Write();
3363 h_sumamplitude_depth1_HF1->Write();
3364 h_sumamplitude_depth2_HF1->Write();
3365 h_sumamplitude_depth4_HO1->Write();
3366 h_bcnnbadchannels_depth1_HB->Write();
3367 h_bcnnbadchannels_depth2_HB->Write();
3368 h_bcnnbadchannels_depth1_HE->Write();
3369 h_bcnnbadchannels_depth2_HE->Write();
3370 h_bcnnbadchannels_depth3_HE->Write();
3371 h_bcnnbadchannels_depth4_HO->Write();
3372 h_bcnnbadchannels_depth1_HF->Write();
3373 h_bcnnbadchannels_depth2_HF->Write();
3374 h_bcnbadrate0_depth1_HB->Write();
3375 h_bcnbadrate0_depth2_HB->Write();
3376 h_bcnbadrate0_depth1_HE->Write();
3377 h_bcnbadrate0_depth2_HE->Write();
3378 h_bcnbadrate0_depth3_HE->Write();
3379 h_bcnbadrate0_depth4_HO->Write();
3380 h_bcnbadrate0_depth1_HF->Write();
3381 h_bcnbadrate0_depth2_HF->Write();
3383 h_Amplitude_forCapIdErrors_HB1->Write();
3384 h_Amplitude_forCapIdErrors_HB2->Write();
3385 h_Amplitude_forCapIdErrors_HE1->Write();
3386 h_Amplitude_forCapIdErrors_HE2->Write();
3387 h_Amplitude_forCapIdErrors_HE3->Write();
3388 h_Amplitude_forCapIdErrors_HF1->Write();
3389 h_Amplitude_forCapIdErrors_HF2->Write();
3390 h_Amplitude_forCapIdErrors_HO4->Write();
3392 h_Amplitude_notCapIdErrors_HB1->Write();
3393 h_Amplitude_notCapIdErrors_HB2->Write();
3394 h_Amplitude_notCapIdErrors_HE1->Write();
3395 h_Amplitude_notCapIdErrors_HE2->Write();
3396 h_Amplitude_notCapIdErrors_HE3->Write();
3397 h_Amplitude_notCapIdErrors_HF1->Write();
3398 h_Amplitude_notCapIdErrors_HF2->Write();
3399 h_Amplitude_notCapIdErrors_HO4->Write();
3401 h_averSIGNALoccupancy_HB->Write();
3402 h_averSIGNALoccupancy_HE->Write();
3403 h_averSIGNALoccupancy_HF->Write();
3404 h_averSIGNALoccupancy_HO->Write();
3406 h_averSIGNALsumamplitude_HB->Write();
3407 h_averSIGNALsumamplitude_HE->Write();
3408 h_averSIGNALsumamplitude_HF->Write();
3409 h_averSIGNALsumamplitude_HO->Write();
3411 h_averNOSIGNALoccupancy_HB->Write();
3412 h_averNOSIGNALoccupancy_HE->Write();
3413 h_averNOSIGNALoccupancy_HF->Write();
3414 h_averNOSIGNALoccupancy_HO->Write();
3416 h_averNOSIGNALsumamplitude_HB->Write();
3417 h_averNOSIGNALsumamplitude_HE->Write();
3418 h_averNOSIGNALsumamplitude_HF->Write();
3419 h_averNOSIGNALsumamplitude_HO->Write();
3421 h_maxxSUMAmpl_HB->Write();
3422 h_maxxSUMAmpl_HE->Write();
3423 h_maxxSUMAmpl_HF->Write();
3424 h_maxxSUMAmpl_HO->Write();
3426 h_maxxOCCUP_HB->Write();
3427 h_maxxOCCUP_HE->Write();
3428 h_maxxOCCUP_HF->Write();
3429 h_maxxOCCUP_HO->Write();
3431 h_sumamplitudechannel_HB->Write();
3432 h_sumamplitudechannel_HE->Write();
3433 h_sumamplitudechannel_HF->Write();
3434 h_sumamplitudechannel_HO->Write();
3436 h_eventamplitude_HB->Write();
3437 h_eventamplitude_HE->Write();
3438 h_eventamplitude_HF->Write();
3439 h_eventamplitude_HO->Write();
3441 h_eventoccupancy_HB->Write();
3442 h_eventoccupancy_HE->Write();
3443 h_eventoccupancy_HF->Write();
3444 h_eventoccupancy_HO->Write();
3446 h_2DAtaildepth1_HB->Write();
3447 h_2D0Ataildepth1_HB->Write();
3448 h_2DAtaildepth2_HB->Write();
3449 h_2D0Ataildepth2_HB->Write();
3451 h_mapenophinorm_HE1->Write();
3452 h_mapenophinorm_HE2->Write();
3453 h_mapenophinorm_HE3->Write();
3454 h_mapenophinorm_HE4->Write();
3455 h_mapenophinorm_HE5->Write();
3456 h_mapenophinorm_HE6->Write();
3457 h_mapenophinorm_HE7->Write();
3458 h_mapenophinorm2_HE1->Write();
3459 h_mapenophinorm2_HE2->Write();
3460 h_mapenophinorm2_HE3->Write();
3461 h_mapenophinorm2_HE4->Write();
3462 h_mapenophinorm2_HE5->Write();
3463 h_mapenophinorm2_HE6->Write();
3464 h_mapenophinorm2_HE7->Write();
3466 h_maprphinorm_HE1->Write();
3467 h_maprphinorm_HE2->Write();
3468 h_maprphinorm_HE3->Write();
3469 h_maprphinorm_HE4->Write();
3470 h_maprphinorm_HE5->Write();
3471 h_maprphinorm_HE6->Write();
3472 h_maprphinorm_HE7->Write();
3473 h_maprphinorm2_HE1->Write();
3474 h_maprphinorm2_HE2->Write();
3475 h_maprphinorm2_HE3->Write();
3476 h_maprphinorm2_HE4->Write();
3477 h_maprphinorm2_HE5->Write();
3478 h_maprphinorm2_HE6->Write();
3479 h_maprphinorm2_HE7->Write();
3481 h_maprphinorm0_HE1->Write();
3482 h_maprphinorm0_HE2->Write();
3483 h_maprphinorm0_HE3->Write();
3484 h_maprphinorm0_HE4->Write();
3485 h_maprphinorm0_HE5->Write();
3486 h_maprphinorm0_HE6->Write();
3487 h_maprphinorm0_HE7->Write();
3490 h_energyhitSignal_HB->Write();
3491 h_energyhitSignal_HE->Write();
3492 h_energyhitSignal_HF->Write();
3493 h_energyhitNoise_HB->Write();
3494 h_energyhitNoise_HE->Write();
3495 h_energyhitNoise_HF->Write();
3497 h_recSignalEnergy0_HB1->Write();
3498 h_recSignalEnergy1_HB1->Write();
3499 h_recSignalEnergy2_HB1->Write();
3500 h_recSignalEnergy0_HB2->Write();
3501 h_recSignalEnergy1_HB2->Write();
3502 h_recSignalEnergy2_HB2->Write();
3503 h_recSignalEnergy0_HB3->Write();
3504 h_recSignalEnergy1_HB3->Write();
3505 h_recSignalEnergy2_HB3->Write();
3506 h_recSignalEnergy0_HB4->Write();
3507 h_recSignalEnergy1_HB4->Write();
3508 h_recSignalEnergy2_HB4->Write();
3510 h_recNoiseEnergy0_HB1->Write();
3511 h_recNoiseEnergy1_HB1->Write();
3512 h_recNoiseEnergy2_HB1->Write();
3513 h_recNoiseEnergy0_HB2->Write();
3514 h_recNoiseEnergy1_HB2->Write();
3515 h_recNoiseEnergy2_HB2->Write();
3516 h_recNoiseEnergy0_HB3->Write();
3517 h_recNoiseEnergy1_HB3->Write();
3518 h_recNoiseEnergy2_HB3->Write();
3519 h_recNoiseEnergy0_HB4->Write();
3520 h_recNoiseEnergy1_HB4->Write();
3521 h_recNoiseEnergy2_HB4->Write();
3524 h_recSignalEnergy0_HE1->Write();
3525 h_recSignalEnergy1_HE1->Write();
3526 h_recSignalEnergy2_HE1->Write();
3527 h_recSignalEnergy0_HE2->Write();
3528 h_recSignalEnergy1_HE2->Write();
3529 h_recSignalEnergy2_HE2->Write();
3530 h_recSignalEnergy0_HE3->Write();
3531 h_recSignalEnergy1_HE3->Write();
3532 h_recSignalEnergy2_HE3->Write();
3533 h_recSignalEnergy0_HE4->Write();
3534 h_recSignalEnergy1_HE4->Write();
3535 h_recSignalEnergy2_HE4->Write();
3536 h_recSignalEnergy0_HE5->Write();
3537 h_recSignalEnergy1_HE5->Write();
3538 h_recSignalEnergy2_HE5->Write();
3539 h_recSignalEnergy0_HE6->Write();
3540 h_recSignalEnergy1_HE6->Write();
3541 h_recSignalEnergy2_HE6->Write();
3542 h_recSignalEnergy0_HE7->Write();
3543 h_recSignalEnergy1_HE7->Write();
3544 h_recSignalEnergy2_HE7->Write();
3546 h_recNoiseEnergy0_HE1->Write();
3547 h_recNoiseEnergy1_HE1->Write();
3548 h_recNoiseEnergy2_HE1->Write();
3549 h_recNoiseEnergy0_HE2->Write();
3550 h_recNoiseEnergy1_HE2->Write();
3551 h_recNoiseEnergy2_HE2->Write();
3552 h_recNoiseEnergy0_HE3->Write();
3553 h_recNoiseEnergy1_HE3->Write();
3554 h_recNoiseEnergy2_HE3->Write();
3555 h_recNoiseEnergy0_HE4->Write();
3556 h_recNoiseEnergy1_HE4->Write();
3557 h_recNoiseEnergy2_HE4->Write();
3558 h_recNoiseEnergy0_HE5->Write();
3559 h_recNoiseEnergy1_HE5->Write();
3560 h_recNoiseEnergy2_HE5->Write();
3561 h_recNoiseEnergy0_HE6->Write();
3562 h_recNoiseEnergy1_HE6->Write();
3563 h_recNoiseEnergy2_HE6->Write();
3564 h_recNoiseEnergy0_HE7->Write();
3565 h_recNoiseEnergy1_HE7->Write();
3566 h_recNoiseEnergy2_HE7->Write();
3569 h_recSignalEnergy0_HF1->Write();
3570 h_recSignalEnergy1_HF1->Write();
3571 h_recSignalEnergy2_HF1->Write();
3572 h_recSignalEnergy0_HF2->Write();
3573 h_recSignalEnergy1_HF2->Write();
3574 h_recSignalEnergy2_HF2->Write();
3576 h_recNoiseEnergy0_HF1->Write();
3577 h_recNoiseEnergy1_HF1->Write();
3578 h_recNoiseEnergy2_HF1->Write();
3579 h_recNoiseEnergy0_HF2->Write();
3580 h_recNoiseEnergy1_HF2->Write();
3581 h_recNoiseEnergy2_HF2->Write();
3585 h_amplitudechannel0_HB1->Write();
3586 h_amplitudechannel1_HB1->Write();
3587 h_amplitudechannel2_HB1->Write();
3588 h_amplitudechannel0_HB2->Write();
3589 h_amplitudechannel1_HB2->Write();
3590 h_amplitudechannel2_HB2->Write();
3591 h_amplitudechannel0_HB3->Write();
3592 h_amplitudechannel1_HB3->Write();
3593 h_amplitudechannel2_HB3->Write();
3594 h_amplitudechannel0_HB4->Write();
3595 h_amplitudechannel1_HB4->Write();
3596 h_amplitudechannel2_HB4->Write();
3598 h_amplitudechannel0_HE1->Write();
3599 h_amplitudechannel1_HE1->Write();
3600 h_amplitudechannel2_HE1->Write();
3601 h_amplitudechannel0_HE2->Write();
3602 h_amplitudechannel1_HE2->Write();
3603 h_amplitudechannel2_HE2->Write();
3604 h_amplitudechannel0_HE3->Write();
3605 h_amplitudechannel1_HE3->Write();
3606 h_amplitudechannel2_HE3->Write();
3607 h_amplitudechannel0_HE4->Write();
3608 h_amplitudechannel1_HE4->Write();
3609 h_amplitudechannel2_HE4->Write();
3610 h_amplitudechannel0_HE5->Write();
3611 h_amplitudechannel1_HE5->Write();
3612 h_amplitudechannel2_HE5->Write();
3613 h_amplitudechannel0_HE6->Write();
3614 h_amplitudechannel1_HE6->Write();
3615 h_amplitudechannel2_HE6->Write();
3616 h_amplitudechannel0_HE7->Write();
3617 h_amplitudechannel1_HE7->Write();
3618 h_amplitudechannel2_HE7->Write();
3620 h_amplitudechannel0_HF1->Write();
3621 h_amplitudechannel1_HF1->Write();
3622 h_amplitudechannel2_HF1->Write();
3623 h_amplitudechannel0_HF2->Write();
3624 h_amplitudechannel1_HF2->Write();
3625 h_amplitudechannel2_HF2->Write();
3626 h_amplitudechannel0_HF3->Write();
3627 h_amplitudechannel1_HF3->Write();
3628 h_amplitudechannel2_HF3->Write();
3629 h_amplitudechannel0_HF4->Write();
3630 h_amplitudechannel1_HF4->Write();
3631 h_amplitudechannel2_HF4->Write();
3634 h_mapDepth1RADDAM_HE->Write();
3635 h_mapDepth2RADDAM_HE->Write();
3636 h_mapDepth3RADDAM_HE->Write();
3637 h_mapDepth1RADDAM0_HE->Write();
3638 h_mapDepth2RADDAM0_HE->Write();
3639 h_mapDepth3RADDAM0_HE->Write();
3640 h_AamplitudewithPedSubtr_RADDAM_HE->Write();
3641 h_AamplitudewithPedSubtr_RADDAM_HEzoom0->Write();
3642 h_AamplitudewithPedSubtr_RADDAM_HEzoom1->Write();
3643 h_A_Depth1RADDAM_HE->Write();
3644 h_A_Depth2RADDAM_HE->Write();
3645 h_A_Depth3RADDAM_HE->Write();
3646 h_sumphiEta16Depth3RADDAM_HED2->Write();
3647 h_Eta16Depth3RADDAM_HED2->Write();
3648 h_NphiForEta16Depth3RADDAM_HED2->Write();
3649 h_sumphiEta16Depth3RADDAM_HED2P->Write();
3650 h_Eta16Depth3RADDAM_HED2P->Write();
3651 h_NphiForEta16Depth3RADDAM_HED2P->Write();
3652 h_sumphiEta16Depth3RADDAM_HED2ALL->Write();
3653 h_Eta16Depth3RADDAM_HED2ALL->Write();
3654 h_NphiForEta16Depth3RADDAM_HED2ALL->Write();
3655 h_sigLayer1RADDAM_HE->Write();
3656 h_sigLayer2RADDAM_HE->Write();
3657 h_sigLayer1RADDAM0_HE->Write();
3658 h_sigLayer2RADDAM0_HE->Write();
3659 h_sigLayer1RADDAM5_HE->Write();
3660 h_sigLayer2RADDAM5_HE->Write();
3661 h_sigLayer1RADDAM6_HE->Write();
3662 h_sigLayer2RADDAM6_HE->Write();
3663 h_sigLayer1RADDAM5_HED2->Write();
3664 h_sigLayer1RADDAM6_HED2->Write();
3665 h_sigLayer2RADDAM5_HED2->Write();
3666 h_sigLayer2RADDAM6_HED2->Write();
3667 h_mapDepth3RADDAM16_HE->Write();
3669 h_amplitudeaveragedbydepthes_HE->Write();
3670 h_ndepthesperamplitudebins_HE->Write();
3674 hOutputFile->Close();
3675 std::cout <<
"===== Finish writing user histograms and ntuple =====" << std::endl;
3686 maxNeventsInNtuple_ = iConfig.
getParameter<
int>(
"maxNeventsInNtuple");
3715 flagLaserRaddam_ = iConfig.
getParameter<
int>(
"flagLaserRaddam");
3716 flagIterativeMethodCalibrationGroupDigi_ = iConfig.
getParameter<
int>(
"flagIterativeMethodCalibrationGroupDigi");
3717 flagIterativeMethodCalibrationGroupReco_ = iConfig.
getParameter<
int>(
"flagIterativeMethodCalibrationGroupReco");
3718 flagfitshunt1pedorledlowintensity_ = iConfig.
getParameter<
int>(
"flagfitshunt1pedorledlowintensity");
3719 flagabortgaprejected_ = iConfig.
getParameter<
int>(
"flagabortgaprejected");
3720 bcnrejectedlow_ = iConfig.
getParameter<
int>(
"bcnrejectedlow");
3721 bcnrejectedhigh_ = iConfig.
getParameter<
int>(
"bcnrejectedhigh");
3722 ratioHBMin_ = iConfig.
getParameter<
double>(
"ratioHBMin");
3723 ratioHBMax_ = iConfig.
getParameter<
double>(
"ratioHBMax");
3724 ratioHEMin_ = iConfig.
getParameter<
double>(
"ratioHEMin");
3725 ratioHEMax_ = iConfig.
getParameter<
double>(
"ratioHEMax");
3726 ratioHFMin_ = iConfig.
getParameter<
double>(
"ratioHFMin");
3727 ratioHFMax_ = iConfig.
getParameter<
double>(
"ratioHFMax");
3728 ratioHOMin_ = iConfig.
getParameter<
double>(
"ratioHOMin");
3729 ratioHOMax_ = iConfig.
getParameter<
double>(
"ratioHOMax");
3730 flagtodefinebadchannel_ = iConfig.
getParameter<
int>(
"flagtodefinebadchannel");
3731 howmanybinsonplots_ = iConfig.
getParameter<
int>(
"howmanybinsonplots");
3732 splashesUpperLimit_ = iConfig.
getParameter<
int>(
"splashesUpperLimit");
3733 flagtoaskrunsorls_ = iConfig.
getParameter<
int>(
"flagtoaskrunsorls");
3734 flagestimatornormalization_ = iConfig.
getParameter<
int>(
"flagestimatornormalization");
3735 flagcpuoptimization_ = iConfig.
getParameter<
int>(
"flagcpuoptimization");
3736 flagupgradeqie1011_ = iConfig.
getParameter<
int>(
"flagupgradeqie1011");
3737 flagsipmcorrection_ = iConfig.
getParameter<
int>(
"flagsipmcorrection");
3738 flaguseshunt_ = iConfig.
getParameter<
int>(
"flaguseshunt");
3739 lsdep_cut1_peak_HBdepth1_ = iConfig.
getParameter<
int>(
"lsdep_cut1_peak_HBdepth1");
3740 lsdep_cut1_peak_HBdepth2_ = iConfig.
getParameter<
int>(
"lsdep_cut1_peak_HBdepth2");
3741 lsdep_cut1_peak_HEdepth1_ = iConfig.
getParameter<
int>(
"lsdep_cut1_peak_HEdepth1");
3742 lsdep_cut1_peak_HEdepth2_ = iConfig.
getParameter<
int>(
"lsdep_cut1_peak_HEdepth2");
3743 lsdep_cut1_peak_HEdepth3_ = iConfig.
getParameter<
int>(
"lsdep_cut1_peak_HEdepth3");
3744 lsdep_cut1_peak_HFdepth1_ = iConfig.
getParameter<
int>(
"lsdep_cut1_peak_HFdepth1");
3745 lsdep_cut1_peak_HFdepth2_ = iConfig.
getParameter<
int>(
"lsdep_cut1_peak_HFdepth2");
3746 lsdep_cut1_peak_HOdepth4_ = iConfig.
getParameter<
int>(
"lsdep_cut1_peak_HOdepth4");
3747 lsdep_cut3_max_HBdepth1_ = iConfig.
getParameter<
int>(
"lsdep_cut3_max_HBdepth1");
3748 lsdep_cut3_max_HBdepth2_ = iConfig.
getParameter<
int>(
"lsdep_cut3_max_HBdepth2");
3749 lsdep_cut3_max_HEdepth1_ = iConfig.
getParameter<
int>(
"lsdep_cut3_max_HEdepth1");
3750 lsdep_cut3_max_HEdepth2_ = iConfig.
getParameter<
int>(
"lsdep_cut3_max_HEdepth2");
3751 lsdep_cut3_max_HEdepth3_ = iConfig.
getParameter<
int>(
"lsdep_cut3_max_HEdepth3");
3752 lsdep_cut3_max_HFdepth1_ = iConfig.
getParameter<
int>(
"lsdep_cut3_max_HFdepth1");
3753 lsdep_cut3_max_HFdepth2_ = iConfig.
getParameter<
int>(
"lsdep_cut3_max_HFdepth2");
3754 lsdep_cut3_max_HOdepth4_ = iConfig.
getParameter<
int>(
"lsdep_cut3_max_HOdepth4");
3755 lsdep_estimator1_HBdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HBdepth1");
3756 lsdep_estimator1_HBdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HBdepth2");
3757 lsdep_estimator1_HEdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HEdepth1");
3758 lsdep_estimator1_HEdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HEdepth2");
3759 lsdep_estimator1_HEdepth3_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HEdepth3");
3760 lsdep_estimator1_HFdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HFdepth1");
3761 lsdep_estimator1_HFdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HFdepth2");
3762 lsdep_estimator1_HOdepth4_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HOdepth4");
3763 lsdep_estimator1_HEdepth4_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HEdepth4");
3764 lsdep_estimator1_HEdepth5_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HEdepth5");
3765 lsdep_estimator1_HEdepth6_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HEdepth6");
3766 lsdep_estimator1_HEdepth7_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HEdepth7");
3767 lsdep_estimator1_HFdepth3_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HFdepth3");
3768 lsdep_estimator1_HFdepth4_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HFdepth4");
3769 lsdep_estimator1_HBdepth3_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HBdepth3");
3770 lsdep_estimator1_HBdepth4_ = iConfig.
getParameter<
double>(
"lsdep_estimator1_HBdepth4");
3771 lsdep_estimator2_HBdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator2_HBdepth1");
3772 lsdep_estimator2_HBdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator2_HBdepth2");
3773 lsdep_estimator2_HEdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator2_HEdepth1");
3774 lsdep_estimator2_HEdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator2_HEdepth2");
3775 lsdep_estimator2_HEdepth3_ = iConfig.
getParameter<
double>(
"lsdep_estimator2_HEdepth3");
3776 lsdep_estimator2_HFdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator2_HFdepth1");
3777 lsdep_estimator2_HFdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator2_HFdepth2");
3778 lsdep_estimator2_HOdepth4_ = iConfig.
getParameter<
double>(
"lsdep_estimator2_HOdepth4");
3779 lsdep_estimator3_HBdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator3_HBdepth1");
3780 lsdep_estimator3_HBdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator3_HBdepth2");
3781 lsdep_estimator3_HEdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator3_HEdepth1");
3782 lsdep_estimator3_HEdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator3_HEdepth2");
3783 lsdep_estimator3_HEdepth3_ = iConfig.
getParameter<
double>(
"lsdep_estimator3_HEdepth3");
3784 lsdep_estimator3_HFdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator3_HFdepth1");
3785 lsdep_estimator3_HFdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator3_HFdepth2");
3786 lsdep_estimator3_HOdepth4_ = iConfig.
getParameter<
double>(
"lsdep_estimator3_HOdepth4");
3787 lsdep_estimator4_HBdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator4_HBdepth1");
3788 lsdep_estimator4_HBdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator4_HBdepth2");
3789 lsdep_estimator4_HEdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator4_HEdepth1");
3790 lsdep_estimator4_HEdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator4_HEdepth2");
3791 lsdep_estimator4_HEdepth3_ = iConfig.
getParameter<
double>(
"lsdep_estimator4_HEdepth3");
3792 lsdep_estimator4_HFdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator4_HFdepth1");
3793 lsdep_estimator4_HFdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator4_HFdepth2");
3794 lsdep_estimator4_HOdepth4_ = iConfig.
getParameter<
double>(
"lsdep_estimator4_HOdepth4");
3795 lsdep_estimator5_HBdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator5_HBdepth1");
3796 lsdep_estimator5_HBdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator5_HBdepth2");
3797 lsdep_estimator5_HEdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator5_HEdepth1");
3798 lsdep_estimator5_HEdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator5_HEdepth2");
3799 lsdep_estimator5_HEdepth3_ = iConfig.
getParameter<
double>(
"lsdep_estimator5_HEdepth3");
3800 lsdep_estimator5_HFdepth1_ = iConfig.
getParameter<
double>(
"lsdep_estimator5_HFdepth1");
3801 lsdep_estimator5_HFdepth2_ = iConfig.
getParameter<
double>(
"lsdep_estimator5_HFdepth2");
3802 lsdep_estimator5_HOdepth4_ = iConfig.
getParameter<
double>(
"lsdep_estimator5_HOdepth4");
3803 forallestimators_amplitude_bigger_ = iConfig.
getParameter<
double>(
"forallestimators_amplitude_bigger");
3812 ADCAmplHBMin_ = iConfig.
getParameter<
double>(
"ADCAmplHBMin");
3813 ADCAmplHEMin_ = iConfig.
getParameter<
double>(
"ADCAmplHEMin");
3814 ADCAmplHOMin_ = iConfig.
getParameter<
double>(
"ADCAmplHOMin");
3815 ADCAmplHFMin_ = iConfig.
getParameter<
double>(
"ADCAmplHFMin");
3816 ADCAmplHBMax_ = iConfig.
getParameter<
double>(
"ADCAmplHBMax");
3817 ADCAmplHEMax_ = iConfig.
getParameter<
double>(
"ADCAmplHEMax");
3818 ADCAmplHOMax_ = iConfig.
getParameter<
double>(
"ADCAmplHOMax");
3819 ADCAmplHFMax_ = iConfig.
getParameter<
double>(
"ADCAmplHFMax");
3820 pedestalwHBMax_ = iConfig.
getParameter<
double>(
"pedestalwHBMax");
3821 pedestalwHEMax_ = iConfig.
getParameter<
double>(
"pedestalwHEMax");
3822 pedestalwHFMax_ = iConfig.
getParameter<
double>(
"pedestalwHFMax");
3823 pedestalwHOMax_ = iConfig.
getParameter<
double>(
"pedestalwHOMax");
3824 pedestalHBMax_ = iConfig.
getParameter<
double>(
"pedestalHBMax");
3825 pedestalHEMax_ = iConfig.
getParameter<
double>(
"pedestalHEMax");
3826 pedestalHFMax_ = iConfig.
getParameter<
double>(
"pedestalHFMax");
3827 pedestalHOMax_ = iConfig.
getParameter<
double>(
"pedestalHOMax");
3828 calibrADCHBMin_ = iConfig.
getParameter<
double>(
"calibrADCHBMin");
3829 calibrADCHEMin_ = iConfig.
getParameter<
double>(
"calibrADCHEMin");
3830 calibrADCHOMin_ = iConfig.
getParameter<
double>(
"calibrADCHOMin");
3831 calibrADCHFMin_ = iConfig.
getParameter<
double>(
"calibrADCHFMin");
3832 calibrADCHBMax_ = iConfig.
getParameter<
double>(
"calibrADCHBMax");
3833 calibrADCHEMax_ = iConfig.
getParameter<
double>(
"calibrADCHEMax");
3834 calibrADCHOMax_ = iConfig.
getParameter<
double>(
"calibrADCHOMax");
3835 calibrADCHFMax_ = iConfig.
getParameter<
double>(
"calibrADCHFMax");
3836 calibrRatioHBMin_ = iConfig.
getParameter<
double>(
"calibrRatioHBMin");
3837 calibrRatioHEMin_ = iConfig.
getParameter<
double>(
"calibrRatioHEMin");
3838 calibrRatioHOMin_ = iConfig.
getParameter<
double>(
"calibrRatioHOMin");
3839 calibrRatioHFMin_ = iConfig.
getParameter<
double>(
"calibrRatioHFMin");
3840 calibrRatioHBMax_ = iConfig.
getParameter<
double>(
"calibrRatioHBMax");
3841 calibrRatioHEMax_ = iConfig.
getParameter<
double>(
"calibrRatioHEMax");
3842 calibrRatioHOMax_ = iConfig.
getParameter<
double>(
"calibrRatioHOMax");
3843 calibrRatioHFMax_ = iConfig.
getParameter<
double>(
"calibrRatioHFMax");
3844 calibrTSmaxHBMin_ = iConfig.
getParameter<
double>(
"calibrTSmaxHBMin");
3845 calibrTSmaxHEMin_ = iConfig.
getParameter<
double>(
"calibrTSmaxHEMin");
3846 calibrTSmaxHOMin_ = iConfig.
getParameter<
double>(
"calibrTSmaxHOMin");
3847 calibrTSmaxHFMin_ = iConfig.
getParameter<
double>(
"calibrTSmaxHFMin");
3848 calibrTSmaxHBMax_ = iConfig.
getParameter<
double>(
"calibrTSmaxHBMax");
3849 calibrTSmaxHEMax_ = iConfig.
getParameter<
double>(
"calibrTSmaxHEMax");
3850 calibrTSmaxHOMax_ = iConfig.
getParameter<
double>(
"calibrTSmaxHOMax");
3851 calibrTSmaxHFMax_ = iConfig.
getParameter<
double>(
"calibrTSmaxHFMax");
3852 calibrTSmeanHBMin_ = iConfig.
getParameter<
double>(
"calibrTSmeanHBMin");
3853 calibrTSmeanHEMin_ = iConfig.
getParameter<
double>(
"calibrTSmeanHEMin");
3854 calibrTSmeanHOMin_ = iConfig.
getParameter<
double>(
"calibrTSmeanHOMin");
3855 calibrTSmeanHFMin_ = iConfig.
getParameter<
double>(
"calibrTSmeanHFMin");
3856 calibrTSmeanHBMax_ = iConfig.
getParameter<
double>(
"calibrTSmeanHBMax");
3857 calibrTSmeanHEMax_ = iConfig.
getParameter<
double>(
"calibrTSmeanHEMax");
3858 calibrTSmeanHOMax_ = iConfig.
getParameter<
double>(
"calibrTSmeanHOMax");
3859 calibrTSmeanHFMax_ = iConfig.
getParameter<
double>(
"calibrTSmeanHFMax");
3860 calibrWidthHBMin_ = iConfig.
getParameter<
double>(
"calibrWidthHBMin");
3861 calibrWidthHEMin_ = iConfig.
getParameter<
double>(
"calibrWidthHEMin");
3862 calibrWidthHOMin_ = iConfig.
getParameter<
double>(
"calibrWidthHOMin");
3863 calibrWidthHFMin_ = iConfig.
getParameter<
double>(
"calibrWidthHFMin");
3864 calibrWidthHBMax_ = iConfig.
getParameter<
double>(
"calibrWidthHBMax");
3865 calibrWidthHEMax_ = iConfig.
getParameter<
double>(
"calibrWidthHEMax");
3866 calibrWidthHOMax_ = iConfig.
getParameter<
double>(
"calibrWidthHOMax");
3867 calibrWidthHFMax_ = iConfig.
getParameter<
double>(
"calibrWidthHFMax");
3870 TSpeakHBMin_ = iConfig.
getParameter<
double>(
"TSpeakHBMin");
3871 TSpeakHBMax_ = iConfig.
getParameter<
double>(
"TSpeakHBMax");
3872 TSpeakHEMin_ = iConfig.
getParameter<
double>(
"TSpeakHEMin");
3873 TSpeakHEMax_ = iConfig.
getParameter<
double>(
"TSpeakHEMax");
3874 TSpeakHFMin_ = iConfig.
getParameter<
double>(
"TSpeakHFMin");
3875 TSpeakHFMax_ = iConfig.
getParameter<
double>(
"TSpeakHFMax");
3876 TSpeakHOMin_ = iConfig.
getParameter<
double>(
"TSpeakHOMin");
3877 TSpeakHOMax_ = iConfig.
getParameter<
double>(
"TSpeakHOMax");
3878 TSmeanHBMin_ = iConfig.
getParameter<
double>(
"TSmeanHBMin");
3879 TSmeanHBMax_ = iConfig.
getParameter<
double>(
"TSmeanHBMax");
3880 TSmeanHEMin_ = iConfig.
getParameter<
double>(
"TSmeanHEMin");
3881 TSmeanHEMax_ = iConfig.
getParameter<
double>(
"TSmeanHEMax");
3882 TSmeanHFMin_ = iConfig.
getParameter<
double>(
"TSmeanHFMin");
3883 TSmeanHFMax_ = iConfig.
getParameter<
double>(
"TSmeanHFMax");
3884 TSmeanHOMin_ = iConfig.
getParameter<
double>(
"TSmeanHOMin");
3885 TSmeanHOMax_ = iConfig.
getParameter<
double>(
"TSmeanHOMax");
3890 nlsminmax = lsmax_ - lsmin_ + 1;
3908 for (
int k1 = 0; k1 <
ndepth; k1++) {
3909 for (
int k2 = 0; k2 <
neta; k2++) {
3911 mapRADDAM_HED2[k1][k2] = 0.;
3912 mapRADDAM_HED20[k1][k2] = 0.;
3914 for (
int k3 = 0; k3 <
nphi; k3++) {
3915 sumEstimator0[
k0][k1][k2][k3] = 0.;
3916 sumEstimator1[
k0][k1][k2][k3] = 0.;
3917 sumEstimator2[
k0][k1][k2][k3] = 0.;
3918 sumEstimator3[
k0][k1][k2][k3] = 0.;
3919 sumEstimator4[
k0][k1][k2][k3] = 0.;
3920 sumEstimator5[
k0][k1][k2][k3] = 0.;
3921 sumEstimator6[
k0][k1][k2][k3] = 0.;
3922 sum0Estimator[
k0][k1][k2][k3] = 0.;
3924 mapRADDAM_HE[k1][k2][k3] = 0.;
3925 mapRADDAM0_HE[k1][k2][k3] = 0;
3931 averSIGNALoccupancy_HB = 0.;
3932 averSIGNALoccupancy_HE = 0.;
3933 averSIGNALoccupancy_HF = 0.;
3934 averSIGNALoccupancy_HO = 0.;
3935 averSIGNALsumamplitude_HB = 0.;
3936 averSIGNALsumamplitude_HE = 0.;
3937 averSIGNALsumamplitude_HF = 0.;
3938 averSIGNALsumamplitude_HO = 0.;
3939 averNOSIGNALoccupancy_HB = 0.;
3940 averNOSIGNALoccupancy_HE = 0.;
3941 averNOSIGNALoccupancy_HF = 0.;
3942 averNOSIGNALoccupancy_HO = 0.;
3943 averNOSIGNALsumamplitude_HB = 0.;
3944 averNOSIGNALsumamplitude_HE = 0.;
3945 averNOSIGNALsumamplitude_HF = 0.;
3946 averNOSIGNALsumamplitude_HO = 0.;
3961 if (MAPcreation > 0) {
3963 if (flagupgradeqie1011_ == 1)
3970 Nevent =
iEvent.id().event();
3972 bcn =
iEvent.bunchCrossing();
3973 orbitNum =
iEvent.orbitNumber();
3974 int outabortgap = 1;
3975 if (bcn >= bcnrejectedlow_ && bcn <= bcnrejectedhigh_)
3978 if ((flagabortgaprejected_ == 1 && outabortgap == 1) || (flagabortgaprejected_ == 0 && outabortgap == 0) ||
3979 flagabortgaprejected_ == 2) {
3982 if (runcounter != 1) {
3983 nevcounter00 = eventcounter;
3984 cout <<
" --------------------------------------- " << endl;
3985 cout <<
" for Run = " <<
run0 <<
" with runcounter = " << runcounter - 1 <<
" #ev = " << eventcounter << endl;
3986 cout <<
" #LS = " << lscounterrun <<
" #LS10 = " << lscounterrun10 <<
" Last LS = " << ls0 << endl;
3987 cout <<
" --------------------------------------------- " << endl;
3988 h_nls_per_run->Fill(
float(lscounterrun));
3989 h_nls_per_run10->Fill(
float(lscounterrun10));
3993 cout <<
" ---------***********************------------- " << endl;
3994 cout <<
" New Run = " <<
Run <<
" runcounter = " << runcounter << endl;
3995 cout <<
" ------- " << endl;
4006 h_nevents_per_eachLS->Fill(
float(lscounter),
float(nevcounter));
4007 nevcounter0 = nevcounter;
4011 if (usecontinuousnumbering_) {
4012 lscounterM1 = lscounter - 1;
4017 h_nevents_per_eachRealLS->Fill(
float(lscounterM1),
float(nevcounter));
4018 h_lsnumber_per_eachLS->Fill(
float(lscounter),
float(
lumi));
4019 if (nevcounter > 10.) {
4023 h_nevents_per_LS->Fill(
float(nevcounter));
4024 h_nevents_per_LSzoom->Fill(
float(nevcounter));
4033 if (flagtoaskrunsorls_ == 0) {
4034 lscounterM1 = runcounter;
4035 nevcounter0 = nevcounter00;
4037 if (nevcounter0 != 0 || nevcounter > 99999) {
4038 if (nevcounter > 99999)
4043 unsigned long int pcountall1 = 0;
4044 unsigned long int pcountall3 = 0;
4045 unsigned long int pcountall6 = 0;
4046 unsigned long int pcountall8 = 0;
4051 unsigned long int mcountall1 = 0;
4052 unsigned long int mcountall3 = 0;
4053 unsigned long int mcountall6 = 0;
4054 unsigned long int mcountall8 = 0;
4063 int pnnmin1 = 999999999;
4064 int pnnmin3 = 999999999;
4065 int pnnmin6 = 999999999;
4066 int pnnmin8 = 999999999;
4071 int mnnmin1 = 999999999;
4072 int mnnmin3 = 999999999;
4073 int mnnmin6 = 999999999;
4074 int mnnmin8 = 999999999;
4076 for (
int k1 = 0; k1 <
ndepth; k1++) {
4077 for (
int k3 = 0; k3 <
nphi; k3++) {
4078 for (
int k2 = 0; k2 <
neta; k2++) {
4081 if (sumEstimator0[
k0][k1][k2][k3] != 0.) {
4084 if (flagestimatornormalization_ == 0)
4085 bbbc = sumEstimator0[
k0][k1][k2][k3] / nevcounter0;
4086 if (flagestimatornormalization_ == 1)
4087 bbbc = sumEstimator0[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
4089 if (flagestimatornormalization_ == 2) {
4090 bbbc = sumEstimator0[
k0][k1][k2][k3];
4091 bbb1 = sum0Estimator[
k0][k1][k2][k3];
4098 h_sumPedestalLS1->Fill(bbbc / bbb1);
4099 h_2DsumPedestalLS1->Fill(
double(
ieta),
double(k3), bbbc);
4100 h_2D0sumPedestalLS1->Fill(
double(
ieta),
double(k3), bbb1);
4101 h_sumPedestalperLS1->Fill(
float(lscounterM1), bbbc);
4102 h_sum0PedestalperLS1->Fill(
float(lscounterM1), bbb1);
4105 h_sumPedestalLS2->Fill(bbbc / bbb1);
4106 h_2DsumPedestalLS2->Fill(
double(
ieta),
double(k3), bbbc);
4107 h_2D0sumPedestalLS2->Fill(
double(
ieta),
double(k3), bbb1);
4108 h_sumPedestalperLS2->Fill(
float(lscounterM1), bbbc);
4109 h_sum0PedestalperLS2->Fill(
float(lscounterM1), bbb1);
4116 h_sumPedestalLS3->Fill(bbbc / bbb1);
4117 h_2DsumPedestalLS3->Fill(
double(
ieta),
double(k3), bbbc);
4118 h_2D0sumPedestalLS3->Fill(
double(
ieta),
double(k3), bbb1);
4119 h_sumPedestalperLS3->Fill(
float(lscounterM1), bbbc);
4120 h_sum0PedestalperLS3->Fill(
float(lscounterM1), bbb1);
4123 h_sumPedestalLS4->Fill(bbbc / bbb1);
4124 h_2DsumPedestalLS4->Fill(
double(
ieta),
double(k3), bbbc);
4125 h_2D0sumPedestalLS4->Fill(
double(
ieta),
double(k3), bbb1);
4126 h_sumPedestalperLS4->Fill(
float(lscounterM1), bbbc);
4127 h_sum0PedestalperLS4->Fill(
float(lscounterM1), bbb1);
4130 h_sumPedestalLS5->Fill(bbbc / bbb1);
4131 h_2DsumPedestalLS5->Fill(
double(
ieta),
double(k3), bbbc);
4132 h_2D0sumPedestalLS5->Fill(
double(
ieta),
double(k3), bbb1);
4133 h_sumPedestalperLS5->Fill(
float(lscounterM1), bbbc);
4134 h_sum0PedestalperLS5->Fill(
float(lscounterM1), bbb1);
4141 h_sumPedestalLS6->Fill(bbbc / bbb1);
4142 h_2DsumPedestalLS6->Fill(
double(
ieta),
double(k3), bbbc);
4143 h_2D0sumPedestalLS6->Fill(
double(
ieta),
double(k3), bbb1);
4144 h_sumPedestalperLS6->Fill(
float(lscounterM1), bbbc);
4145 h_sum0PedestalperLS6->Fill(
float(lscounterM1), bbb1);
4148 h_sumPedestalLS7->Fill(bbbc / bbb1);
4149 h_2DsumPedestalLS7->Fill(
double(
ieta),
double(k3), bbbc);
4150 h_2D0sumPedestalLS7->Fill(
double(
ieta),
double(k3), bbb1);
4151 h_sumPedestalperLS7->Fill(
float(lscounterM1), bbbc);
4152 h_sum0PedestalperLS7->Fill(
float(lscounterM1), bbb1);
4159 h_sumPedestalLS8->Fill(bbbc / bbb1);
4160 h_2DsumPedestalLS8->Fill(
double(
ieta),
double(k3), bbbc);
4161 h_2D0sumPedestalLS8->Fill(
double(
ieta),
double(k3), bbb1);
4162 h_sumPedestalperLS8->Fill(
float(lscounterM1), bbbc);
4163 h_sum0PedestalperLS8->Fill(
float(lscounterM1), bbb1);
4169 if (sumEstimator1[
k0][k1][k2][k3] != 0.) {
4172 if (flagestimatornormalization_ == 0)
4173 bbbc = sumEstimator1[
k0][k1][k2][k3] / nevcounter0;
4174 if (flagestimatornormalization_ == 1)
4175 bbbc = sumEstimator1[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
4177 if (flagestimatornormalization_ == 2) {
4178 bbbc = sumEstimator1[
k0][k1][k2][k3];
4179 bbb1 = sum0Estimator[
k0][k1][k2][k3];
4185 if (lscounterM1 >= lsmin_ && lscounterM1 < lsmax_) {
4187 int kkkk2 = (k2 - 1) / 4;
4192 int kkkk3 = (k3) / 4 + 1;
4196 ietaphi = ((kkkk2)-1) *
znphi + (kkkk3);
4206 h_2DsumADCAmplEtaPhiLs0->Fill(
float(lscounterM1),
float(ietaphi), bbbc);
4207 h_2DsumADCAmplEtaPhiLs00->Fill(
float(lscounterM1),
float(ietaphi), bbb1);
4210 h_2DsumADCAmplEtaPhiLs1->Fill(
float(lscounterM1),
float(ietaphi), bbbc);
4211 h_2DsumADCAmplEtaPhiLs10->Fill(
float(lscounterM1),
float(ietaphi), bbb1);
4214 h_2DsumADCAmplEtaPhiLs2->Fill(
float(lscounterM1),
float(ietaphi), bbbc);
4215 h_2DsumADCAmplEtaPhiLs20->Fill(
float(lscounterM1),
float(ietaphi), bbb1);
4218 h_2DsumADCAmplEtaPhiLs3->Fill(
float(lscounterM1),
float(ietaphi), bbbc);
4219 h_2DsumADCAmplEtaPhiLs30->Fill(
float(lscounterM1),
float(ietaphi), bbb1);
4222 h_sumADCAmplEtaPhiLs->Fill(bbb3);
4223 h_sumADCAmplEtaPhiLs_bbbc->Fill(bbbc);
4224 h_sumADCAmplEtaPhiLs_bbb1->Fill(bbb1);
4225 h_sumADCAmplEtaPhiLs_lscounterM1orbitNum->Fill(
float(lscounterM1),
float(orbitNum));
4226 h_sumADCAmplEtaPhiLs_orbitNum->Fill(
float(orbitNum), 1.);
4227 h_sumADCAmplEtaPhiLs_lscounterM1->Fill(
float(lscounterM1), 1.);
4228 h_sumADCAmplEtaPhiLs_ietaphi->Fill(
float(ietaphi));
4237 h_sumADCAmplLS1copy1->Fill(bbbc / bbb1);
4238 h_sumADCAmplLS1copy2->Fill(bbbc / bbb1);
4239 h_sumADCAmplLS1copy3->Fill(bbbc / bbb1);
4240 h_sumADCAmplLS1copy4->Fill(bbbc / bbb1);
4241 h_sumADCAmplLS1copy5->Fill(bbbc / bbb1);
4242 h_sumADCAmplLS1->Fill(bbbc / bbb1);
4243 if (bbbc / bbb1 > lsdep_estimator1_HBdepth1_)
4244 h_2DsumADCAmplLS1->Fill(
double(
ieta),
double(k3), bbbc);
4245 if (bbbc / bbb1 > 2. * lsdep_estimator1_HBdepth1_)
4246 h_2DsumADCAmplLS1_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
4248 h_2D0sumADCAmplLS1->Fill(
double(
ieta),
double(k3), bbb1);
4250 h_sumADCAmplperLS1->Fill(
float(lscounterM1), bbbc);
4251 if (bbbc / bbb1 > lsdep_estimator1_HBdepth1_)
4252 h_sumCutADCAmplperLS1->Fill(
float(lscounterM1), bbbc);
4253 h_sum0ADCAmplperLS1->Fill(
float(lscounterM1), bbb1);
4257 h_sumADCAmplperLS1_P1->Fill(
float(lscounterM1), bbbc);
4258 h_sum0ADCAmplperLS1_P1->Fill(
float(lscounterM1), bbb1);
4260 h_sumADCAmplperLS1_P2->Fill(
float(lscounterM1), bbbc);
4261 h_sum0ADCAmplperLS1_P2->Fill(
float(lscounterM1), bbb1);
4264 if (bbbc / bbb1 > 25.) {
4272 h_sumADCAmplperLS1_M1->Fill(
float(lscounterM1), bbbc);
4273 h_sum0ADCAmplperLS1_M1->Fill(
float(lscounterM1), bbb1);
4275 h_sumADCAmplperLS1_M2->Fill(
float(lscounterM1), bbbc);
4276 h_sum0ADCAmplperLS1_M2->Fill(
float(lscounterM1), bbb1);
4279 if (bbbc / bbb1 > 25.) {
4288 h_sumADCAmplLS2->Fill(bbbc / bbb1);
4289 if (bbbc / bbb1 > lsdep_estimator1_HBdepth2_)
4290 h_2DsumADCAmplLS2->Fill(
double(
ieta),
double(k3), bbbc);
4291 if (bbbc / bbb1 > 2. * lsdep_estimator1_HBdepth2_)
4292 h_2DsumADCAmplLS2_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
4293 h_2D0sumADCAmplLS2->Fill(
double(
ieta),
double(k3), bbb1);
4294 h_sumADCAmplperLS2->Fill(
float(lscounterM1), bbbc);
4295 if (bbbc / bbb1 > lsdep_estimator1_HBdepth2_)
4296 h_sumCutADCAmplperLS2->Fill(
float(lscounterM1), bbbc);
4297 h_sum0ADCAmplperLS2->Fill(
float(lscounterM1), bbb1);
4300 h_sumADCAmplperLS1_P1->Fill(
float(lscounterM1), bbbc);
4301 h_sum0ADCAmplperLS1_P1->Fill(
float(lscounterM1), bbb1);
4303 h_sumADCAmplperLS1_P2->Fill(
float(lscounterM1), bbbc);
4304 h_sum0ADCAmplperLS1_P2->Fill(
float(lscounterM1), bbb1);
4308 h_sumADCAmplperLS1_M1->Fill(
float(lscounterM1), bbbc);
4309 h_sum0ADCAmplperLS1_M1->Fill(
float(lscounterM1), bbb1);
4311 h_sumADCAmplperLS1_M2->Fill(
float(lscounterM1), bbbc);
4312 h_sum0ADCAmplperLS1_M2->Fill(
float(lscounterM1), bbb1);
4318 h_sumADCAmplperLSdepth3HBu->Fill(
float(lscounterM1), bbbc);
4319 if (bbbc / bbb1 > lsdep_estimator1_HBdepth3_)
4320 h_sumCutADCAmplperLSdepth3HBu->Fill(
float(lscounterM1), bbbc);
4321 h_sum0ADCAmplperLSdepth3HBu->Fill(
float(lscounterM1), bbb1);
4323 if (bbbc / bbb1 > lsdep_estimator1_HBdepth3_)
4324 h_2DsumADCAmplLSdepth3HBu->Fill(
double(
ieta),
double(k3), bbbc);
4325 h_2D0sumADCAmplLSdepth3HBu->Fill(
double(
ieta),
double(k3), bbb1);
4330 h_sumADCAmplperLSdepth4HBu->Fill(
float(lscounterM1), bbbc);
4331 if (bbbc / bbb1 > lsdep_estimator1_HBdepth4_)
4332 h_sumCutADCAmplperLSdepth4HBu->Fill(
float(lscounterM1), bbbc);
4333 h_sum0ADCAmplperLSdepth4HBu->Fill(
float(lscounterM1), bbb1);
4335 if (bbbc / bbb1 > lsdep_estimator1_HBdepth4_)
4336 h_2DsumADCAmplLSdepth4HBu->Fill(
double(
ieta),
double(k3), bbbc);
4337 h_2D0sumADCAmplLSdepth4HBu->Fill(
double(
ieta),
double(k3), bbb1);
4345 h_sumADCAmplLS3->Fill(bbbc / bbb1);
4346 if (bbbc / bbb1 > lsdep_estimator1_HEdepth1_)
4347 h_2DsumADCAmplLS3->Fill(
double(
ieta),
double(k3), bbbc);
4348 if (bbbc / bbb1 > 2. * lsdep_estimator1_HEdepth1_)
4349 h_2DsumADCAmplLS3_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
4350 h_2D0sumADCAmplLS3->Fill(
double(
ieta),
double(k3), bbb1);
4351 h_sumADCAmplperLS3->Fill(
float(lscounterM1), bbbc);
4352 if (bbbc / bbb1 > lsdep_estimator1_HEdepth1_)
4353 h_sumCutADCAmplperLS3->Fill(
float(lscounterM1), bbbc);
4354 h_sum0ADCAmplperLS3->Fill(
float(lscounterM1), bbb1);
4357 h_sumADCAmplperLS3_P1->Fill(
float(lscounterM1), bbbc);
4358 h_sum0ADCAmplperLS3_P1->Fill(
float(lscounterM1), bbb1);
4360 h_sumADCAmplperLS3_P2->Fill(
float(lscounterM1), bbbc);
4361 h_sum0ADCAmplperLS3_P2->Fill(
float(lscounterM1), bbb1);
4364 if (bbbc / bbb1 > 15. && k3 % 2 == 0) {
4371 h_sumADCAmplperLS3_M1->Fill(
float(lscounterM1), bbbc);
4372 h_sum0ADCAmplperLS3_M1->Fill(
float(lscounterM1), bbb1);
4374 h_sumADCAmplperLS3_M2->Fill(
float(lscounterM1), bbbc);
4375 h_sum0ADCAmplperLS3_M2->Fill(
float(lscounterM1), bbb1);
4378 if (bbbc / bbb1 > 15. && k3 % 2 == 0) {
4387 h_sumADCAmplLS4->Fill(bbbc / bbb1);
4388 if (bbbc / bbb1 > lsdep_estimator1_HEdepth2_)
4389 h_2DsumADCAmplLS4->Fill(
double(
ieta),
double(k3), bbbc);
4390 if (bbbc / bbb1 > 2. * lsdep_estimator1_HEdepth2_)
4391 h_2DsumADCAmplLS4_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
4392 h_2D0sumADCAmplLS4->Fill(
double(
ieta),
double(k3), bbb1);
4393 h_sumADCAmplperLS4->Fill(
float(lscounterM1), bbbc);
4394 if (bbbc / bbb1 > lsdep_estimator1_HEdepth2_)
4395 h_sumCutADCAmplperLS4->Fill(
float(lscounterM1), bbbc);
4396 h_sum0ADCAmplperLS4->Fill(
float(lscounterM1), bbb1);
4399 h_sumADCAmplperLS3_P1->Fill(
float(lscounterM1), bbbc);
4400 h_sum0ADCAmplperLS3_P1->Fill(
float(lscounterM1), bbb1);
4402 h_sumADCAmplperLS3_P2->Fill(
float(lscounterM1), bbbc);
4403 h_sum0ADCAmplperLS3_P2->Fill(
float(lscounterM1), bbb1);
4407 h_sumADCAmplperLS3_M1->Fill(
float(lscounterM1), bbbc);
4408 h_sum0ADCAmplperLS3_M1->Fill(
float(lscounterM1), bbb1);
4410 h_sumADCAmplperLS3_M2->Fill(
float(lscounterM1), bbbc);
4411 h_sum0ADCAmplperLS3_M2->Fill(
float(lscounterM1), bbb1);
4417 h_sumADCAmplLS5->Fill(bbbc / bbb1);
4418 if (bbbc / bbb1 > lsdep_estimator1_HEdepth3_)
4419 h_2DsumADCAmplLS5->Fill(
double(
ieta),
double(k3), bbbc);
4420 if (bbbc / bbb1 > 2. * lsdep_estimator1_HEdepth3_)
4421 h_2DsumADCAmplLS5_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
4422 h_2D0sumADCAmplLS5->Fill(
double(
ieta),
double(k3), bbb1);
4423 h_sumADCAmplperLS5->Fill(
float(lscounterM1), bbbc);
4424 if (bbbc / bbb1 > lsdep_estimator1_HEdepth3_)
4425 h_sumCutADCAmplperLS5->Fill(
float(lscounterM1), bbbc);
4426 h_sum0ADCAmplperLS5->Fill(
float(lscounterM1), bbb1);
4429 h_sumADCAmplperLS3_P1->Fill(
float(lscounterM1), bbbc);
4430 h_sum0ADCAmplperLS3_P1->Fill(
float(lscounterM1), bbb1);
4432 h_sumADCAmplperLS3_P2->Fill(
float(lscounterM1), bbbc);
4433 h_sum0ADCAmplperLS3_P2->Fill(
float(lscounterM1), bbb1);
4437 h_sumADCAmplperLS3_M1->Fill(
float(lscounterM1), bbbc);
4438 h_sum0ADCAmplperLS3_M1->Fill(
float(lscounterM1), bbb1);
4440 h_sumADCAmplperLS3_M2->Fill(
float(lscounterM1), bbbc);
4441 h_sum0ADCAmplperLS3_M2->Fill(
float(lscounterM1), bbb1);
4447 h_sumADCAmplperLSdepth4HEu->Fill(
float(lscounterM1), bbbc);
4448 if (bbbc / bbb1 > lsdep_estimator1_HEdepth4_)
4449 h_sumCutADCAmplperLSdepth4HEu->Fill(
float(lscounterM1), bbbc);
4450 h_sum0ADCAmplperLSdepth4HEu->Fill(
float(lscounterM1), bbb1);
4452 if (bbbc / bbb1 > lsdep_estimator1_HEdepth4_)
4453 h_2DsumADCAmplLSdepth4HEu->Fill(
double(
ieta),
double(k3), bbbc);
4454 h_2D0sumADCAmplLSdepth4HEu->Fill(
double(
ieta),
double(k3), bbb1);
4459 h_sumADCAmplperLSdepth5HEu->Fill(
float(lscounterM1), bbbc);
4460 if (bbbc / bbb1 > lsdep_estimator1_HEdepth5_)
4461 h_sumCutADCAmplperLSdepth5HEu->Fill(
float(lscounterM1), bbbc);
4462 h_sum0ADCAmplperLSdepth5HEu->Fill(
float(lscounterM1), bbb1);
4464 if (bbbc / bbb1 > lsdep_estimator1_HEdepth5_)
4465 h_2DsumADCAmplLSdepth5HEu->Fill(
double(
ieta),
double(k3), bbbc);
4466 h_2D0sumADCAmplLSdepth5HEu->Fill(
double(
ieta),
double(k3), bbb1);
4471 h_sumADCAmplperLSdepth6HEu->Fill(
float(lscounterM1), bbbc);
4472 if (bbbc / bbb1 > lsdep_estimator1_HEdepth6_)
4473 h_sumCutADCAmplperLSdepth6HEu->Fill(
float(lscounterM1), bbbc);
4474 h_sum0ADCAmplperLSdepth6HEu->Fill(
float(lscounterM1), bbb1);
4476 if (bbbc / bbb1 > lsdep_estimator1_HEdepth6_)
4477 h_2DsumADCAmplLSdepth6HEu->Fill(
double(
ieta),
double(k3), bbbc);
4478 h_2D0sumADCAmplLSdepth6HEu->Fill(
double(
ieta),
double(k3), bbb1);
4483 h_sumADCAmplperLSdepth7HEu->Fill(
float(lscounterM1), bbbc);
4484 if (bbbc / bbb1 > lsdep_estimator1_HEdepth7_)
4485 h_sumCutADCAmplperLSdepth7HEu->Fill(
float(lscounterM1), bbbc);
4486 h_sum0ADCAmplperLSdepth7HEu->Fill(
float(lscounterM1), bbb1);
4488 if (bbbc / bbb1 > lsdep_estimator1_HEdepth7_)
4489 h_2DsumADCAmplLSdepth7HEu->Fill(
double(
ieta),
double(k3), bbbc);
4490 h_2D0sumADCAmplLSdepth7HEu->Fill(
double(
ieta),
double(k3), bbb1);
4497 h_sumADCAmplLS6->Fill(bbbc / bbb1);
4498 if (bbbc / bbb1 > lsdep_estimator1_HFdepth1_)
4499 h_2DsumADCAmplLS6->Fill(
double(
ieta),
double(k3), bbbc);
4500 if (bbbc / bbb1 > 2. * lsdep_estimator1_HFdepth1_)
4501 h_2DsumADCAmplLS6_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
4502 h_2D0sumADCAmplLS6->Fill(
double(
ieta),
double(k3), bbb1);
4503 h_sumADCAmplperLS6->Fill(
float(lscounterM1), bbbc);
4504 if (bbbc / bbb1 > lsdep_estimator1_HFdepth1_)
4505 h_sumCutADCAmplperLS6->Fill(
float(lscounterM1), bbbc);
4506 h_sum0ADCAmplperLS6->Fill(
float(lscounterM1), bbb1);
4511 h_sumADCAmplperLS6_P1->Fill(
float(lscounterM1), bbbc);
4512 h_sum0ADCAmplperLS6_P1->Fill(
float(lscounterM1), bbb1);
4514 h_sumADCAmplperLS6_P2->Fill(
float(lscounterM1), bbbc);
4515 h_sum0ADCAmplperLS6_P2->Fill(
float(lscounterM1), bbb1);
4518 if (bbbc / bbb1 > 20.) {
4526 h_sumADCAmplperLS6_M1->Fill(
float(lscounterM1), bbbc);
4527 h_sum0ADCAmplperLS6_M1->Fill(
float(lscounterM1), bbb1);
4529 h_sumADCAmplperLS6_M2->Fill(
float(lscounterM1), bbbc);
4530 h_sum0ADCAmplperLS6_M2->Fill(
float(lscounterM1), bbb1);
4533 if (bbbc / bbb1 > 20.) {
4544 h_sumADCAmplLS7->Fill(bbbc / bbb1);
4545 if (bbbc / bbb1 > lsdep_estimator1_HFdepth2_)
4546 h_2DsumADCAmplLS7->Fill(
double(
ieta),
double(k3), bbbc);
4547 if (bbbc / bbb1 > 2. * lsdep_estimator1_HFdepth2_)
4548 h_2DsumADCAmplLS7_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
4549 h_2D0sumADCAmplLS7->Fill(
double(
ieta),
double(k3), bbb1);
4550 h_sumADCAmplperLS7->Fill(
float(lscounterM1), bbbc);
4551 if (bbbc / bbb1 > lsdep_estimator1_HFdepth2_)
4552 h_sumCutADCAmplperLS7->Fill(
float(lscounterM1), bbbc);
4553 h_sum0ADCAmplperLS7->Fill(
float(lscounterM1), bbb1);
4557 h_sumADCAmplperLS6_P1->Fill(
float(lscounterM1), bbbc);
4558 h_sum0ADCAmplperLS6_P1->Fill(
float(lscounterM1), bbb1);
4560 h_sumADCAmplperLS6_P2->Fill(
float(lscounterM1), bbbc);
4561 h_sum0ADCAmplperLS6_P2->Fill(
float(lscounterM1), bbb1);
4565 h_sumADCAmplperLS6_M1->Fill(
float(lscounterM1), bbbc);
4566 h_sum0ADCAmplperLS6_M1->Fill(
float(lscounterM1), bbb1);
4568 h_sumADCAmplperLS6_M2->Fill(
float(lscounterM1), bbbc);
4569 h_sum0ADCAmplperLS6_M2->Fill(
float(lscounterM1), bbb1);
4576 h_sumADCAmplperLS6u->Fill(
float(lscounterM1), bbbc);
4577 if (bbbc / bbb1 > lsdep_estimator1_HFdepth3_)
4578 h_sumCutADCAmplperLS6u->Fill(
float(lscounterM1), bbbc);
4579 h_sum0ADCAmplperLS6u->Fill(
float(lscounterM1), bbb1);
4581 if (bbbc / bbb1 > lsdep_estimator1_HFdepth3_)
4582 h_2DsumADCAmplLSdepth3HFu->Fill(
double(
ieta),
double(k3), bbbc);
4583 h_2D0sumADCAmplLSdepth3HFu->Fill(
double(
ieta),
double(k3), bbb1);
4588 h_sumADCAmplperLS7u->Fill(
float(lscounterM1), bbbc);
4589 if (bbbc / bbb1 > lsdep_estimator1_HFdepth4_)
4590 h_sumCutADCAmplperLS7u->Fill(
float(lscounterM1), bbbc);
4591 h_sum0ADCAmplperLS7u->Fill(
float(lscounterM1), bbb1);
4593 if (bbbc / bbb1 > lsdep_estimator1_HFdepth4_)
4594 h_2DsumADCAmplLSdepth4HFu->Fill(
double(
ieta),
double(k3), bbbc);
4595 h_2D0sumADCAmplLSdepth4HFu->Fill(
double(
ieta),
double(k3), bbb1);
4604 h_sumADCAmplLS8->Fill(bbbc / bbb1);
4605 if (bbbc / bbb1 > lsdep_estimator1_HOdepth4_)
4606 h_2DsumADCAmplLS8->Fill(
double(
ieta),
double(k3), bbbc);
4607 if (bbbc / bbb1 > 2. * lsdep_estimator1_HOdepth4_)
4608 h_2DsumADCAmplLS8_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
4609 h_2D0sumADCAmplLS8->Fill(
double(
ieta),
double(k3), bbb1);
4610 h_sumADCAmplperLS8->Fill(
float(lscounterM1), bbbc);
4611 if (bbbc / bbb1 > lsdep_estimator1_HOdepth4_)
4612 h_sumCutADCAmplperLS8->Fill(
float(lscounterM1), bbbc);
4613 h_sum0ADCAmplperLS8->Fill(
float(lscounterM1), bbb1);
4618 h_sumADCAmplperLS8_P1->Fill(
float(lscounterM1), bbbc);
4619 h_sum0ADCAmplperLS8_P1->Fill(
float(lscounterM1), bbb1);
4621 h_sumADCAmplperLS8_P2->Fill(
float(lscounterM1), bbbc);
4622 h_sum0ADCAmplperLS8_P2->Fill(
float(lscounterM1), bbb1);
4625 if (bbbc / bbb1 > 80.) {
4633 h_sumADCAmplperLS8_M1->Fill(
float(lscounterM1), bbbc);
4634 h_sum0ADCAmplperLS8_M1->Fill(
float(lscounterM1), bbb1);
4636 h_sumADCAmplperLS8_M2->Fill(
float(lscounterM1), bbbc);
4637 h_sum0ADCAmplperLS8_M2->Fill(
float(lscounterM1), bbb1);
4640 if (bbbc / bbb1 > 80.) {
4651 if (sumEstimator2[
k0][k1][k2][k3] != 0.) {
4654 if (flagestimatornormalization_ == 0)
4655 bbbc = sumEstimator2[
k0][k1][k2][k3] / nevcounter0;
4656 if (flagestimatornormalization_ == 1)
4657 bbbc = sumEstimator2[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
4659 if (flagestimatornormalization_ == 2) {
4660 bbbc = sumEstimator2[
k0][k1][k2][k3];
4661 bbb1 = sum0Estimator[
k0][k1][k2][k3];
4668 h_sumTSmeanALS1->Fill(bbbc / bbb1);
4669 if (bbbc / bbb1 > lsdep_estimator2_HBdepth1_)
4670 h_2DsumTSmeanALS1->Fill(
double(
ieta),
double(k3), bbbc);
4671 h_2D0sumTSmeanALS1->Fill(
double(
ieta),
double(k3), bbb1);
4672 h_sumTSmeanAperLS1->Fill(
float(lscounterM1), bbbc);
4673 if (bbbc / bbb1 > lsdep_estimator2_HBdepth1_)
4674 h_sumCutTSmeanAperLS1->Fill(
float(lscounterM1), bbbc);
4675 h_sum0TSmeanAperLS1->Fill(
float(lscounterM1), bbb1);
4676 if (bbbc / bbb1 > 2. * lsdep_estimator2_HBdepth1_)
4677 h_sumTSmeanAperLS1_LSselected->Fill(
float(lscounterM1), bbbc);
4680 h_sumTSmeanALS2->Fill(bbbc / bbb1);
4681 if (bbbc / bbb1 > lsdep_estimator2_HBdepth2_)
4682 h_2DsumTSmeanALS2->Fill(
double(
ieta),
double(k3), bbbc);
4683 h_2D0sumTSmeanALS2->Fill(
double(
ieta),
double(k3), bbb1);
4684 h_sumTSmeanAperLS2->Fill(
float(lscounterM1), bbbc);
4685 if (bbbc / bbb1 > lsdep_estimator2_HBdepth2_)
4686 h_sumCutTSmeanAperLS2->Fill(
float(lscounterM1), bbbc);
4687 h_sum0TSmeanAperLS2->Fill(
float(lscounterM1), bbb1);
4694 h_sumTSmeanALS3->Fill(bbbc / bbb1);
4695 if (bbbc / bbb1 > lsdep_estimator2_HEdepth1_)
4696 h_2DsumTSmeanALS3->Fill(
double(
ieta),
double(k3), bbbc);
4697 h_2D0sumTSmeanALS3->Fill(
double(
ieta),
double(k3), bbb1);
4698 h_sumTSmeanAperLS3->Fill(
float(lscounterM1), bbbc);
4699 if (bbbc / bbb1 > lsdep_estimator2_HEdepth1_)
4700 h_sumCutTSmeanAperLS3->Fill(
float(lscounterM1), bbbc);
4701 h_sum0TSmeanAperLS3->Fill(
float(lscounterM1), bbb1);
4704 h_sumTSmeanALS4->Fill(bbbc / bbb1);
4705 if (bbbc / bbb1 > lsdep_estimator2_HEdepth2_)
4706 h_2DsumTSmeanALS4->Fill(
double(
ieta),
double(k3), bbbc);
4707 h_2D0sumTSmeanALS4->Fill(
double(
ieta),
double(k3), bbb1);
4708 h_sumTSmeanAperLS4->Fill(
float(lscounterM1), bbbc);
4709 if (bbbc / bbb1 > lsdep_estimator2_HEdepth2_)
4710 h_sumCutTSmeanAperLS4->Fill(
float(lscounterM1), bbbc);
4711 h_sum0TSmeanAperLS4->Fill(
float(lscounterM1), bbb1);
4714 h_sumTSmeanALS5->Fill(bbbc / bbb1);
4715 if (bbbc / bbb1 > lsdep_estimator2_HEdepth3_)
4716 h_2DsumTSmeanALS5->Fill(
double(
ieta),
double(k3), bbbc);
4717 h_2D0sumTSmeanALS5->Fill(
double(
ieta),
double(k3), bbb1);
4718 h_sumTSmeanAperLS5->Fill(
float(lscounterM1), bbbc);
4719 if (bbbc / bbb1 > lsdep_estimator2_HEdepth3_)
4720 h_sumCutTSmeanAperLS5->Fill(
float(lscounterM1), bbbc);
4721 h_sum0TSmeanAperLS5->Fill(
float(lscounterM1), bbb1);
4728 h_sumTSmeanALS6->Fill(bbbc / bbb1);
4729 if (bbbc / bbb1 > lsdep_estimator2_HFdepth1_)
4730 h_2DsumTSmeanALS6->Fill(
double(
ieta),
double(k3), bbbc);
4731 h_2D0sumTSmeanALS6->Fill(
double(
ieta),
double(k3), bbb1);
4732 h_sumTSmeanAperLS6->Fill(
float(lscounterM1), bbbc);
4733 if (bbbc / bbb1 > lsdep_estimator2_HFdepth1_)
4734 h_sumCutTSmeanAperLS6->Fill(
float(lscounterM1), bbbc);
4735 h_sum0TSmeanAperLS6->Fill(
float(lscounterM1), bbb1);
4738 h_sumTSmeanALS7->Fill(bbbc / bbb1);
4739 if (bbbc / bbb1 > lsdep_estimator2_HFdepth2_)
4740 h_2DsumTSmeanALS7->Fill(
double(
ieta),
double(k3), bbbc);
4741 h_2D0sumTSmeanALS7->Fill(
double(
ieta),
double(k3), bbb1);
4742 h_sumTSmeanAperLS7->Fill(
float(lscounterM1), bbbc);
4743 if (bbbc / bbb1 > lsdep_estimator2_HFdepth2_)
4744 h_sumCutTSmeanAperLS7->Fill(
float(lscounterM1), bbbc);
4745 h_sum0TSmeanAperLS7->Fill(
float(lscounterM1), bbb1);
4752 h_sumTSmeanALS8->Fill(bbbc / bbb1);
4753 if (bbbc / bbb1 > lsdep_estimator2_HOdepth4_)
4754 h_2DsumTSmeanALS8->Fill(
double(
ieta),
double(k3), bbbc);
4755 h_2D0sumTSmeanALS8->Fill(
double(
ieta),
double(k3), bbb1);
4756 h_sumTSmeanAperLS8->Fill(
float(lscounterM1), bbbc);
4757 if (bbbc / bbb1 > lsdep_estimator2_HOdepth4_)
4758 h_sumCutTSmeanAperLS8->Fill(
float(lscounterM1), bbbc);
4759 h_sum0TSmeanAperLS8->Fill(
float(lscounterM1), bbb1);
4765 if (sumEstimator3[
k0][k1][k2][k3] != 0.) {
4768 if (flagestimatornormalization_ == 0)
4769 bbbc = sumEstimator3[
k0][k1][k2][k3] / nevcounter0;
4770 if (flagestimatornormalization_ == 1)
4771 bbbc = sumEstimator3[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
4773 if (flagestimatornormalization_ == 2) {
4774 bbbc = sumEstimator3[
k0][k1][k2][k3];
4775 bbb1 = sum0Estimator[
k0][k1][k2][k3];
4782 h_sumTSmaxALS1->Fill(bbbc / bbb1);
4783 if (bbbc / bbb1 > lsdep_estimator3_HBdepth1_)
4784 h_2DsumTSmaxALS1->Fill(
double(
ieta),
double(k3), bbbc);
4785 h_2D0sumTSmaxALS1->Fill(
double(
ieta),
double(k3), bbb1);
4786 h_sumTSmaxAperLS1->Fill(
float(lscounterM1), bbbc);
4787 if (bbbc / bbb1 > lsdep_estimator3_HBdepth1_)
4788 h_sumCutTSmaxAperLS1->Fill(
float(lscounterM1), bbbc);
4789 h_sum0TSmaxAperLS1->Fill(
float(lscounterM1), bbb1);
4790 if (bbbc / bbb1 > 2. * lsdep_estimator3_HBdepth1_)
4791 h_sumTSmaxAperLS1_LSselected->Fill(
float(lscounterM1), bbbc);
4794 h_sumTSmaxALS2->Fill(bbbc / bbb1);
4795 if (bbbc / bbb1 > lsdep_estimator3_HBdepth2_)
4796 h_2DsumTSmaxALS2->Fill(
double(
ieta),
double(k3), bbbc);
4797 h_2D0sumTSmaxALS2->Fill(
double(
ieta),
double(k3), bbb1);
4798 h_sumTSmaxAperLS2->Fill(
float(lscounterM1), bbbc);
4799 if (bbbc / bbb1 > lsdep_estimator3_HBdepth2_)
4800 h_sumCutTSmaxAperLS2->Fill(
float(lscounterM1), bbbc);
4801 h_sum0TSmaxAperLS2->Fill(
float(lscounterM1), bbb1);
4808 h_sumTSmaxALS3->Fill(bbbc / bbb1);
4809 if (bbbc / bbb1 > lsdep_estimator3_HEdepth1_)
4810 h_2DsumTSmaxALS3->Fill(
double(
ieta),
double(k3), bbbc);
4811 h_2D0sumTSmaxALS3->Fill(
double(
ieta),
double(k3), bbb1);
4812 h_sumTSmaxAperLS3->Fill(
float(lscounterM1), bbbc);
4813 if (bbbc / bbb1 > lsdep_estimator3_HEdepth1_)
4814 h_sumCutTSmaxAperLS3->Fill(
float(lscounterM1), bbbc);
4815 h_sum0TSmaxAperLS3->Fill(
float(lscounterM1), bbb1);
4818 h_sumTSmaxALS4->Fill(bbbc / bbb1);
4819 if (bbbc / bbb1 > lsdep_estimator3_HEdepth2_)
4820 h_2DsumTSmaxALS4->Fill(
double(
ieta),
double(k3), bbbc);
4821 h_2D0sumTSmaxALS4->Fill(
double(
ieta),
double(k3), bbb1);
4822 h_sumTSmaxAperLS4->Fill(
float(lscounterM1), bbbc);
4823 if (bbbc / bbb1 > lsdep_estimator3_HEdepth2_)
4824 h_sumCutTSmaxAperLS4->Fill(
float(lscounterM1), bbbc);
4825 h_sum0TSmaxAperLS4->Fill(
float(lscounterM1), bbb1);
4828 h_sumTSmaxALS5->Fill(bbbc / bbb1);
4829 if (bbbc / bbb1 > lsdep_estimator3_HEdepth3_)
4830 h_2DsumTSmaxALS5->Fill(
double(
ieta),
double(k3), bbbc);
4831 h_2D0sumTSmaxALS5->Fill(
double(
ieta),
double(k3), bbb1);
4832 h_sumTSmaxAperLS5->Fill(
float(lscounterM1), bbbc);
4833 if (bbbc / bbb1 > lsdep_estimator3_HEdepth3_)
4834 h_sumCutTSmaxAperLS5->Fill(
float(lscounterM1), bbbc);
4835 h_sum0TSmaxAperLS5->Fill(
float(lscounterM1), bbb1);
4842 h_sumTSmaxALS6->Fill(bbbc / bbb1);
4843 if (bbbc / bbb1 > lsdep_estimator3_HFdepth1_)
4844 h_2DsumTSmaxALS6->Fill(
double(
ieta),
double(k3), bbbc);
4845 h_2D0sumTSmaxALS6->Fill(
double(
ieta),
double(k3), bbb1);
4846 h_sumTSmaxAperLS6->Fill(
float(lscounterM1), bbbc);
4847 if (bbbc / bbb1 > lsdep_estimator3_HFdepth1_)
4848 h_sumCutTSmaxAperLS6->Fill(
float(lscounterM1), bbbc);
4849 h_sum0TSmaxAperLS6->Fill(
float(lscounterM1), bbb1);
4852 h_sumTSmaxALS7->Fill(bbbc / bbb1);
4853 if (bbbc / bbb1 > lsdep_estimator3_HFdepth2_)
4854 h_2DsumTSmaxALS7->Fill(
double(
ieta),
double(k3), bbbc);
4855 h_2D0sumTSmaxALS7->Fill(
double(
ieta),
double(k3), bbb1);
4856 h_sumTSmaxAperLS7->Fill(
float(lscounterM1), bbbc);
4857 if (bbbc / bbb1 > lsdep_estimator3_HFdepth2_)
4858 h_sumCutTSmaxAperLS7->Fill(
float(lscounterM1), bbbc);
4859 h_sum0TSmaxAperLS7->Fill(
float(lscounterM1), bbb1);
4866 h_sumTSmaxALS8->Fill(bbbc / bbb1);
4867 if (bbbc / bbb1 > lsdep_estimator3_HOdepth4_)
4868 h_2DsumTSmaxALS8->Fill(
double(
ieta),
double(k3), bbbc);
4869 h_2D0sumTSmaxALS8->Fill(
double(
ieta),
double(k3), bbb1);
4870 h_sumTSmaxAperLS8->Fill(
float(lscounterM1), bbbc);
4871 if (bbbc / bbb1 > lsdep_estimator3_HOdepth4_)
4872 h_sumCutTSmaxAperLS8->Fill(
float(lscounterM1), bbbc);
4873 h_sum0TSmaxAperLS8->Fill(
float(lscounterM1), bbb1);
4879 if (sumEstimator4[
k0][k1][k2][k3] != 0.) {
4882 if (flagestimatornormalization_ == 0)
4883 bbbc = sumEstimator4[
k0][k1][k2][k3] / nevcounter0;
4884 if (flagestimatornormalization_ == 1)
4885 bbbc = sumEstimator4[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
4887 if (flagestimatornormalization_ == 2) {
4888 bbbc = sumEstimator4[
k0][k1][k2][k3];
4889 bbb1 = sum0Estimator[
k0][k1][k2][k3];
4896 h_sumAmplitudeLS1->Fill(bbbc / bbb1);
4897 if (bbbc / bbb1 > lsdep_estimator4_HBdepth1_)
4898 h_2DsumAmplitudeLS1->Fill(
double(
ieta),
double(k3), bbbc);
4899 h_2D0sumAmplitudeLS1->Fill(
double(
ieta),
double(k3), bbb1);
4900 h_sumAmplitudeperLS1->Fill(
float(lscounterM1), bbbc);
4901 if (bbbc / bbb1 > lsdep_estimator4_HBdepth1_)
4902 h_sumCutAmplitudeperLS1->Fill(
float(lscounterM1), bbbc);
4903 h_sum0AmplitudeperLS1->Fill(
float(lscounterM1), bbb1);
4904 if (bbbc / bbb1 > 2. * lsdep_estimator4_HBdepth1_)
4905 h_sumAmplitudeperLS1_LSselected->Fill(
float(lscounterM1), bbbc);
4908 h_sumAmplitudeLS2->Fill(bbbc / bbb1);
4909 if (bbbc / bbb1 > lsdep_estimator4_HBdepth2_)
4910 h_2DsumAmplitudeLS2->Fill(
double(
ieta),
double(k3), bbbc);
4911 h_2D0sumAmplitudeLS2->Fill(
double(
ieta),
double(k3), bbb1);
4912 h_sumAmplitudeperLS2->Fill(
float(lscounterM1), bbbc);
4913 if (bbbc / bbb1 > lsdep_estimator4_HBdepth2_)
4914 h_sumCutAmplitudeperLS2->Fill(
float(lscounterM1), bbbc);
4915 h_sum0AmplitudeperLS2->Fill(
float(lscounterM1), bbb1);
4922 h_sumAmplitudeLS3->Fill(bbbc / bbb1);
4923 if (bbbc / bbb1 > lsdep_estimator4_HEdepth1_)
4924 h_2DsumAmplitudeLS3->Fill(
double(
ieta),
double(k3), bbbc);
4925 h_2D0sumAmplitudeLS3->Fill(
double(
ieta),
double(k3), bbb1);
4926 h_sumAmplitudeperLS3->Fill(
float(lscounterM1), bbbc);
4927 if (bbbc / bbb1 > lsdep_estimator4_HEdepth1_)
4928 h_sumCutAmplitudeperLS3->Fill(
float(lscounterM1), bbbc);
4929 h_sum0AmplitudeperLS3->Fill(
float(lscounterM1), bbb1);
4932 h_sumAmplitudeLS4->Fill(bbbc / bbb1);
4933 if (bbbc / bbb1 > lsdep_estimator4_HEdepth2_)
4934 h_2DsumAmplitudeLS4->Fill(
double(
ieta),
double(k3), bbbc);
4935 h_2D0sumAmplitudeLS4->Fill(
double(
ieta),
double(k3), bbb1);
4936 h_sumAmplitudeperLS4->Fill(
float(lscounterM1), bbbc);
4937 if (bbbc / bbb1 > lsdep_estimator4_HEdepth2_)
4938 h_sumCutAmplitudeperLS4->Fill(
float(lscounterM1), bbbc);
4939 h_sum0AmplitudeperLS4->Fill(
float(lscounterM1), bbb1);
4942 h_sumAmplitudeLS5->Fill(bbbc / bbb1);
4943 if (bbbc / bbb1 > lsdep_estimator4_HEdepth3_)
4944 h_2DsumAmplitudeLS5->Fill(
double(
ieta),
double(k3), bbbc);
4945 h_2D0sumAmplitudeLS5->Fill(
double(
ieta),
double(k3), bbb1);
4946 h_sumAmplitudeperLS5->Fill(
float(lscounterM1), bbbc);
4947 if (bbbc / bbb1 > lsdep_estimator4_HEdepth3_)
4948 h_sumCutAmplitudeperLS5->Fill(
float(lscounterM1), bbbc);
4949 h_sum0AmplitudeperLS5->Fill(
float(lscounterM1), bbb1);
4956 h_sumAmplitudeLS6->Fill(bbbc / bbb1);
4957 if (bbbc / bbb1 > lsdep_estimator4_HFdepth1_)
4958 h_2DsumAmplitudeLS6->Fill(
double(
ieta),
double(k3), bbbc);
4959 h_2D0sumAmplitudeLS6->Fill(
double(
ieta),
double(k3), bbb1);
4960 h_sumAmplitudeperLS6->Fill(
float(lscounterM1), bbbc);
4961 if (bbbc / bbb1 > lsdep_estimator4_HFdepth1_)
4962 h_sumCutAmplitudeperLS6->Fill(
float(lscounterM1), bbbc);
4963 h_sum0AmplitudeperLS6->Fill(
float(lscounterM1), bbb1);
4966 h_sumAmplitudeLS7->Fill(bbbc / bbb1);
4967 if (bbbc / bbb1 > lsdep_estimator4_HFdepth2_)
4968 h_2DsumAmplitudeLS7->Fill(
double(
ieta),
double(k3), bbbc);
4969 h_2D0sumAmplitudeLS7->Fill(
double(
ieta),
double(k3), bbb1);
4970 h_sumAmplitudeperLS7->Fill(
float(lscounterM1), bbbc);
4971 if (bbbc / bbb1 > lsdep_estimator4_HFdepth2_)
4972 h_sumCutAmplitudeperLS7->Fill(
float(lscounterM1), bbbc);
4973 h_sum0AmplitudeperLS7->Fill(
float(lscounterM1), bbb1);
4980 h_sumAmplitudeLS8->Fill(bbbc / bbb1);
4981 if (bbbc / bbb1 > lsdep_estimator4_HOdepth4_)
4982 h_2DsumAmplitudeLS8->Fill(
double(
ieta),
double(k3), bbbc);
4983 h_2D0sumAmplitudeLS8->Fill(
double(
ieta),
double(k3), bbb1);
4984 h_sumAmplitudeperLS8->Fill(
float(lscounterM1), bbbc);
4985 if (bbbc / bbb1 > lsdep_estimator4_HOdepth4_)
4986 h_sumCutAmplitudeperLS8->Fill(
float(lscounterM1), bbbc);
4987 h_sum0AmplitudeperLS8->Fill(
float(lscounterM1), bbb1);
4992 if (sumEstimator5[
k0][k1][k2][k3] != 0.) {
4995 if (flagestimatornormalization_ == 0)
4996 bbbc = sumEstimator5[
k0][k1][k2][k3] / nevcounter0;
4997 if (flagestimatornormalization_ == 1)
4998 bbbc = sumEstimator5[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
5000 if (flagestimatornormalization_ == 2) {
5001 bbbc = sumEstimator5[
k0][k1][k2][k3];
5002 bbb1 = sum0Estimator[
k0][k1][k2][k3];
5009 h_sumAmplLS1->Fill(bbbc / bbb1);
5010 if (bbbc / bbb1 > lsdep_estimator5_HBdepth1_)
5011 h_2DsumAmplLS1->Fill(
double(
ieta),
double(k3), bbbc);
5012 h_2D0sumAmplLS1->Fill(
double(
ieta),
double(k3), bbb1);
5013 h_sumAmplperLS1->Fill(
float(lscounterM1), bbbc);
5014 if (bbbc / bbb1 > lsdep_estimator5_HBdepth1_)
5015 h_sumCutAmplperLS1->Fill(
float(lscounterM1), bbbc);
5016 h_sum0AmplperLS1->Fill(
float(lscounterM1), bbb1);
5017 if (bbbc / bbb1 > 2. * lsdep_estimator5_HBdepth1_)
5018 h_sumAmplperLS1_LSselected->Fill(
float(lscounterM1), bbbc);
5021 h_sumAmplLS2->Fill(bbbc / bbb1);
5022 if (bbbc / bbb1 > lsdep_estimator5_HBdepth2_)
5023 h_2DsumAmplLS2->Fill(
double(
ieta),
double(k3), bbbc);
5024 h_2D0sumAmplLS2->Fill(
double(
ieta),
double(k3), bbb1);
5025 h_sumAmplperLS2->Fill(
float(lscounterM1), bbbc);
5026 if (bbbc / bbb1 > lsdep_estimator5_HBdepth2_)
5027 h_sumCutAmplperLS2->Fill(
float(lscounterM1), bbbc);
5028 h_sum0AmplperLS2->Fill(
float(lscounterM1), bbb1);
5035 h_sumAmplLS3->Fill(bbbc / bbb1);
5036 if (bbbc / bbb1 > lsdep_estimator5_HEdepth1_)
5037 h_2DsumAmplLS3->Fill(
double(
ieta),
double(k3), bbbc);
5038 h_2D0sumAmplLS3->Fill(
double(
ieta),
double(k3), bbb1);
5039 h_sumAmplperLS3->Fill(
float(lscounterM1), bbbc);
5040 if (bbbc / bbb1 > lsdep_estimator5_HEdepth1_)
5041 h_sumCutAmplperLS3->Fill(
float(lscounterM1), bbbc);
5042 h_sum0AmplperLS3->Fill(
float(lscounterM1), bbb1);
5045 h_sumAmplLS4->Fill(bbbc / bbb1);
5046 if (bbbc / bbb1 > lsdep_estimator5_HEdepth2_)
5047 h_2DsumAmplLS4->Fill(
double(
ieta),
double(k3), bbbc);
5048 h_2D0sumAmplLS4->Fill(
double(
ieta),
double(k3), bbb1);
5049 h_sumAmplperLS4->Fill(
float(lscounterM1), bbbc);
5050 if (bbbc / bbb1 > lsdep_estimator5_HEdepth2_)
5051 h_sumCutAmplperLS4->Fill(
float(lscounterM1), bbbc);
5052 h_sum0AmplperLS4->Fill(
float(lscounterM1), bbb1);
5055 h_sumAmplLS5->Fill(bbbc / bbb1);
5056 if (bbbc / bbb1 > lsdep_estimator5_HEdepth3_)
5057 h_2DsumAmplLS5->Fill(
double(
ieta),
double(k3), bbbc);
5058 h_2D0sumAmplLS5->Fill(
double(
ieta),
double(k3), bbb1);
5059 h_sumAmplperLS5->Fill(
float(lscounterM1), bbbc);
5060 if (bbbc / bbb1 > lsdep_estimator5_HEdepth3_)
5061 h_sumCutAmplperLS5->Fill(
float(lscounterM1), bbbc);
5062 h_sum0AmplperLS5->Fill(
float(lscounterM1), bbb1);
5069 h_sumAmplLS6->Fill(bbbc / bbb1);
5070 if (bbbc / bbb1 > lsdep_estimator5_HFdepth1_)
5071 h_2DsumAmplLS6->Fill(
double(
ieta),
double(k3), bbbc);
5072 h_2D0sumAmplLS6->Fill(
double(
ieta),
double(k3), bbb1);
5073 h_sumAmplperLS6->Fill(
float(lscounterM1), bbbc);
5074 if (bbbc / bbb1 > lsdep_estimator5_HFdepth1_)
5075 h_sumCutAmplperLS6->Fill(
float(lscounterM1), bbbc);
5076 h_sum0AmplperLS6->Fill(
float(lscounterM1), bbb1);
5079 h_sumAmplLS7->Fill(bbbc / bbb1);
5080 if (bbbc / bbb1 > lsdep_estimator5_HFdepth2_)
5081 h_2DsumAmplLS7->Fill(
double(
ieta),
double(k3), bbbc);
5082 h_2D0sumAmplLS7->Fill(
double(
ieta),
double(k3), bbb1);
5083 h_sumAmplperLS7->Fill(
float(lscounterM1), bbbc);
5084 if (bbbc / bbb1 > lsdep_estimator5_HFdepth2_)
5085 h_sumCutAmplperLS7->Fill(
float(lscounterM1), bbbc);
5086 h_sum0AmplperLS7->Fill(
float(lscounterM1), bbb1);
5093 h_sumAmplLS8->Fill(bbbc / bbb1);
5094 if (bbbc / bbb1 > lsdep_estimator5_HOdepth4_)
5095 h_2DsumAmplLS8->Fill(
double(
ieta),
double(k3), bbbc);
5096 h_2D0sumAmplLS8->Fill(
double(
ieta),
double(k3), bbb1);
5097 h_sumAmplperLS8->Fill(
float(lscounterM1), bbbc);
5098 if (bbbc / bbb1 > lsdep_estimator5_HOdepth4_)
5099 h_sumCutAmplperLS8->Fill(
float(lscounterM1), bbbc);
5100 h_sum0AmplperLS8->Fill(
float(lscounterM1), bbb1);
5105 if (sumEstimator6[
k0][k1][k2][k3] != 0.) {
5108 if (flagestimatornormalization_ == 0)
5109 bbbc = sumEstimator6[
k0][k1][k2][k3] / nevcounter0;
5110 if (flagestimatornormalization_ == 1)
5111 bbbc = sumEstimator6[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
5113 if (flagestimatornormalization_ == 2) {
5114 bbbc = sumEstimator6[
k0][k1][k2][k3];
5115 bbb1 = sum0Estimator[
k0][k1][k2][k3];
5122 h_sumErrorBLS1->Fill(bbbc / bbb1);
5123 h_2DsumErrorBLS1->Fill(
double(
ieta),
double(k3), bbbc);
5124 h_2D0sumErrorBLS1->Fill(
double(
ieta),
double(k3), bbb1);
5125 h_sumErrorBperLS1->Fill(
float(lscounterM1), bbbc);
5126 h_sum0ErrorBperLS1->Fill(
float(lscounterM1), bbb1);
5129 h_sumErrorBLS2->Fill(bbbc / bbb1);
5130 h_2DsumErrorBLS2->Fill(
double(
ieta),
double(k3), bbbc);
5131 h_2D0sumErrorBLS2->Fill(
double(
ieta),
double(k3), bbb1);
5132 h_sumErrorBperLS2->Fill(
float(lscounterM1), bbbc);
5133 h_sum0ErrorBperLS2->Fill(
float(lscounterM1), bbb1);
5140 h_sumErrorBLS3->Fill(bbbc / bbb1);
5141 h_2DsumErrorBLS3->Fill(
double(
ieta),
double(k3), bbbc);
5142 h_2D0sumErrorBLS3->Fill(
double(
ieta),
double(k3), bbb1);
5143 h_sumErrorBperLS3->Fill(
float(lscounterM1), bbbc);
5144 h_sum0ErrorBperLS3->Fill(
float(lscounterM1), bbb1);
5147 h_sumErrorBLS4->Fill(bbbc / bbb1);
5148 h_2DsumErrorBLS4->Fill(
double(
ieta),
double(k3), bbbc);
5149 h_2D0sumErrorBLS4->Fill(
double(
ieta),
double(k3), bbb1);
5150 h_sumErrorBperLS4->Fill(
float(lscounterM1), bbbc);
5151 h_sum0ErrorBperLS4->Fill(
float(lscounterM1), bbb1);
5154 h_sumErrorBLS5->Fill(bbbc / bbb1);
5155 h_2DsumErrorBLS5->Fill(
double(
ieta),
double(k3), bbbc);
5156 h_2D0sumErrorBLS5->Fill(
double(
ieta),
double(k3), bbb1);
5157 h_sumErrorBperLS5->Fill(
float(lscounterM1), bbbc);
5158 h_sum0ErrorBperLS5->Fill(
float(lscounterM1), bbb1);
5165 h_sumErrorBLS6->Fill(bbbc / bbb1);
5166 h_2DsumErrorBLS6->Fill(
double(
ieta),
double(k3), bbbc);
5167 h_2D0sumErrorBLS6->Fill(
double(
ieta),
double(k3), bbb1);
5168 h_sumErrorBperLS6->Fill(
float(lscounterM1), bbbc);
5169 h_sum0ErrorBperLS6->Fill(
float(lscounterM1), bbb1);
5172 h_sumErrorBLS7->Fill(bbbc / bbb1);
5173 h_2DsumErrorBLS7->Fill(
double(
ieta),
double(k3), bbbc);
5174 h_2D0sumErrorBLS7->Fill(
double(
ieta),
double(k3), bbb1);
5175 h_sumErrorBperLS7->Fill(
float(lscounterM1), bbbc);
5176 h_sum0ErrorBperLS7->Fill(
float(lscounterM1), bbb1);
5183 h_sumErrorBLS8->Fill(bbbc / bbb1);
5184 h_2DsumErrorBLS8->Fill(
double(
ieta),
double(k3), bbbc);
5185 h_2D0sumErrorBLS8->Fill(
double(
ieta),
double(k3), bbb1);
5186 h_sumErrorBperLS8->Fill(
float(lscounterM1), bbbc);
5187 h_sum0ErrorBperLS8->Fill(
float(lscounterM1), bbb1);
5195 if (
k0 == 0 && k1 == 0) {
5196 if (pcountmin1 > 0) {
5197 if (pcountmin1 < pnnmin1)
5198 pnnmin1 = pcountmin1;
5202 if (mcountmin1 > 0) {
5203 if (mcountmin1 < mnnmin1)
5204 mnnmin1 = mcountmin1;
5210 if (
k0 == 1 && k1 == 0) {
5211 if (pcountmin3 > 0) {
5212 if (pcountmin3 < pnnmin3)
5213 pnnmin3 = pcountmin3;
5217 if (mcountmin3 > 0) {
5218 if (mcountmin3 < mnnmin3)
5219 mnnmin3 = mcountmin3;
5225 if (
k0 == 2 && k1 == 3) {
5226 if (pcountmin8 > 0) {
5227 if (pcountmin8 < pnnmin8)
5228 pnnmin8 = pcountmin8;
5232 if (mcountmin8 > 0) {
5233 if (mcountmin8 < mnnmin8)
5234 mnnmin8 = mcountmin8;
5240 if (
k0 == 3 && k1 == 0) {
5241 if (pcountmin6 > 0) {
5242 if (pcountmin6 < pnnmin6)
5243 pnnmin6 = pcountmin6;
5247 if (mcountmin6 > 0) {
5248 if (mcountmin6 < mnnmin6)
5249 mnnmin6 = mcountmin6;
5264 float patiooccupancy1 = 0.;
5265 if (pcountall1 != 0)
5266 patiooccupancy1 = (
float)pnnmin1 * mnnbins1 / pcountall1;
5267 h_RatioOccupancy_HBM->Fill(
float(lscounterM1), patiooccupancy1);
5268 float matiooccupancy1 = 0.;
5269 if (mcountall1 != 0)
5270 matiooccupancy1 = (
float)mnnmin1 * mnnbins1 / mcountall1;
5271 h_RatioOccupancy_HBP->Fill(
float(lscounterM1), matiooccupancy1);
5273 float patiooccupancy3 = 0.;
5274 if (pcountall3 != 0)
5275 patiooccupancy3 = (
float)pnnmin3 * mnnbins3 / pcountall3;
5276 h_RatioOccupancy_HEM->Fill(
float(lscounterM1), patiooccupancy3);
5277 float matiooccupancy3 = 0.;
5278 if (mcountall3 != 0)
5279 matiooccupancy3 = (
float)mnnmin3 * mnnbins3 / mcountall3;
5280 h_RatioOccupancy_HEP->Fill(
float(lscounterM1), matiooccupancy3);
5282 float patiooccupancy6 = 0.;
5283 if (pcountall6 != 0)
5284 patiooccupancy6 = (
float)pnnmin6 * mnnbins6 / pcountall6;
5285 h_RatioOccupancy_HFM->Fill(
float(lscounterM1), patiooccupancy6);
5286 float matiooccupancy6 = 0.;
5287 if (mcountall6 != 0)
5288 matiooccupancy6 = (
float)mnnmin6 * mnnbins6 / mcountall6;
5289 h_RatioOccupancy_HFP->Fill(
float(lscounterM1), matiooccupancy6);
5291 float patiooccupancy8 = 0.;
5292 if (pcountall8 != 0)
5293 patiooccupancy8 = (
float)pnnmin8 * mnnbins8 / pcountall8;
5294 h_RatioOccupancy_HOM->Fill(
float(lscounterM1), patiooccupancy8);
5295 float matiooccupancy8 = 0.;
5296 if (mcountall8 != 0)
5297 matiooccupancy8 = (
float)mnnmin8 * mnnbins8 / mcountall8;
5298 h_RatioOccupancy_HOP->Fill(
float(lscounterM1), matiooccupancy8);
5301 for (
int k1 = 0; k1 <
ndepth; k1++) {
5302 for (
int k2 = 0; k2 <
neta; k2++) {
5303 for (
int k3 = 0; k3 <
nphi; k3++) {
5305 sumEstimator0[
k0][k1][k2][k3] = 0.;
5306 sumEstimator1[
k0][k1][k2][k3] = 0.;
5307 sumEstimator2[
k0][k1][k2][k3] = 0.;
5308 sumEstimator3[
k0][k1][k2][k3] = 0.;
5309 sumEstimator4[
k0][k1][k2][k3] = 0.;
5310 sumEstimator5[
k0][k1][k2][k3] = 0.;
5311 sumEstimator6[
k0][k1][k2][k3] = 0.;
5312 sum0Estimator[
k0][k1][k2][k3] = 0.;
5319 averSIGNALoccupancy_HB /=
float(nevcounter0);
5320 h_averSIGNALoccupancy_HB->Fill(
float(lscounterM1), averSIGNALoccupancy_HB);
5321 averSIGNALoccupancy_HE /=
float(nevcounter0);
5322 h_averSIGNALoccupancy_HE->Fill(
float(lscounterM1), averSIGNALoccupancy_HE);
5323 averSIGNALoccupancy_HF /=
float(nevcounter0);
5324 h_averSIGNALoccupancy_HF->Fill(
float(lscounterM1), averSIGNALoccupancy_HF);
5325 averSIGNALoccupancy_HO /=
float(nevcounter0);
5326 h_averSIGNALoccupancy_HO->Fill(
float(lscounterM1), averSIGNALoccupancy_HO);
5328 averSIGNALoccupancy_HB = 0.;
5329 averSIGNALoccupancy_HE = 0.;
5330 averSIGNALoccupancy_HF = 0.;
5331 averSIGNALoccupancy_HO = 0.;
5334 averSIGNALsumamplitude_HB /=
float(nevcounter0);
5335 h_averSIGNALsumamplitude_HB->Fill(
float(lscounterM1), averSIGNALsumamplitude_HB);
5336 averSIGNALsumamplitude_HE /=
float(nevcounter0);
5337 h_averSIGNALsumamplitude_HE->Fill(
float(lscounterM1), averSIGNALsumamplitude_HE);
5338 averSIGNALsumamplitude_HF /=
float(nevcounter0);
5339 h_averSIGNALsumamplitude_HF->Fill(
float(lscounterM1), averSIGNALsumamplitude_HF);
5340 averSIGNALsumamplitude_HO /=
float(nevcounter0);
5341 h_averSIGNALsumamplitude_HO->Fill(
float(lscounterM1), averSIGNALsumamplitude_HO);
5343 averSIGNALsumamplitude_HB = 0.;
5344 averSIGNALsumamplitude_HE = 0.;
5345 averSIGNALsumamplitude_HF = 0.;
5346 averSIGNALsumamplitude_HO = 0.;
5349 averNOSIGNALoccupancy_HB /=
float(nevcounter0);
5350 h_averNOSIGNALoccupancy_HB->Fill(
float(lscounterM1), averNOSIGNALoccupancy_HB);
5351 averNOSIGNALoccupancy_HE /=
float(nevcounter0);
5352 h_averNOSIGNALoccupancy_HE->Fill(
float(lscounterM1), averNOSIGNALoccupancy_HE);
5353 averNOSIGNALoccupancy_HF /=
float(nevcounter0);
5354 h_averNOSIGNALoccupancy_HF->Fill(
float(lscounterM1), averNOSIGNALoccupancy_HF);
5355 averNOSIGNALoccupancy_HO /=
float(nevcounter0);
5356 h_averNOSIGNALoccupancy_HO->Fill(
float(lscounterM1), averNOSIGNALoccupancy_HO);
5358 averNOSIGNALoccupancy_HB = 0.;
5359 averNOSIGNALoccupancy_HE = 0.;
5360 averNOSIGNALoccupancy_HF = 0.;
5361 averNOSIGNALoccupancy_HO = 0.;
5364 averNOSIGNALsumamplitude_HB /=
float(nevcounter0);
5365 h_averNOSIGNALsumamplitude_HB->Fill(
float(lscounterM1), averNOSIGNALsumamplitude_HB);
5366 averNOSIGNALsumamplitude_HE /=
float(nevcounter0);
5367 h_averNOSIGNALsumamplitude_HE->Fill(
float(lscounterM1), averNOSIGNALsumamplitude_HE);
5368 averNOSIGNALsumamplitude_HF /=
float(nevcounter0);
5369 h_averNOSIGNALsumamplitude_HF->Fill(
float(lscounterM1), averNOSIGNALsumamplitude_HF);
5370 averNOSIGNALsumamplitude_HO /=
float(nevcounter0);
5371 h_averNOSIGNALsumamplitude_HO->Fill(
float(lscounterM1), averNOSIGNALsumamplitude_HO);
5373 averNOSIGNALsumamplitude_HB = 0.;
5374 averNOSIGNALsumamplitude_HE = 0.;
5375 averNOSIGNALsumamplitude_HF = 0.;
5376 averNOSIGNALsumamplitude_HO = 0.;
5379 h_maxxSUMAmpl_HB->Fill(
float(lscounterM1), maxxSUM1);
5380 h_maxxSUMAmpl_HE->Fill(
float(lscounterM1), maxxSUM2);
5381 h_maxxSUMAmpl_HO->Fill(
float(lscounterM1), maxxSUM3);
5382 h_maxxSUMAmpl_HF->Fill(
float(lscounterM1), maxxSUM4);
5388 h_maxxOCCUP_HB->Fill(
float(lscounterM1), maxxOCCUP1);
5389 h_maxxOCCUP_HE->Fill(
float(lscounterM1), maxxOCCUP2);
5390 h_maxxOCCUP_HO->Fill(
float(lscounterM1), maxxOCCUP3);
5391 h_maxxOCCUP_HF->Fill(
float(lscounterM1), maxxOCCUP4);
5403 for (
int k1 = 0; k1 <
ndepth; k1++) {
5404 for (
int k2 = 0; k2 <
neta; k2++) {
5405 for (
int k3 = 0; k3 <
nphi; k3++) {
5406 if (studyCalibCellsHist_) {
5407 signal[k1][k2][k3] = 0.;
5408 calibt[k1][k2][k3] = 0.;
5409 calibcapiderror[k1][k2][k3] = 0;
5410 caliba[k1][k2][k3] = 0.;
5411 calibw[k1][k2][k3] = 0.;
5412 calib0[k1][k2][k3] = 0.;
5413 signal3[k1][k2][k3] = 0.;
5414 calib3[k1][k2][k3] = 0.;
5415 calib2[k1][k2][k3] = 0.;
5417 if (studyRunDependenceHist_) {
5419 badchannels[
k0][k1][k2][k3] = 0;
5427 for (
int k1 = 0; k1 <
ndepth; k1++) {
5428 for (
int k2 = 0; k2 <
neta; k2++) {
5429 for (
int k3 = 0; k3 <
nphi; k3++) {
5430 amplitudechannel0[
k0][k1][k2][k3] = 0.;
5431 amplitudechannel[
k0][k1][k2][k3] = 0.;
5432 amplitudechannel2[
k0][k1][k2][k3] = 0.;
5434 tocamplchannel[
k0][k1][k2][k3] = 0.;
5435 maprphinorm[
k0][k1][k2][k3] = 0.;
5438 recSignalEnergy0[
k0][k1][k2][k3] = 0.;
5439 recSignalEnergy1[
k0][k1][k2][k3] = 0.;
5440 recSignalEnergy2[
k0][k1][k2][k3] = 0.;
5441 recNoiseEnergy0[
k0][k1][k2][k3] = 0.;
5442 recNoiseEnergy1[
k0][k1][k2][k3] = 0.;
5443 recNoiseEnergy2[
k0][k1][k2][k3] = 0.;
5454 if (flagupgradeqie1011_ != 2 && flagupgradeqie1011_ != 3 && flagupgradeqie1011_ != 6 && flagupgradeqie1011_ != 7 &&
5455 flagupgradeqie1011_ != 8) {
5458 bool gotHFDigis =
true;
5459 if (!(
iEvent.getByToken(tok_hf_,
hf))) {
5462 if (!(
hf.isValid())) {
5466 cout <<
" ****************************** =========================== No HFDigiCollection found " << endl;
5470 eta = digi->id().ieta();
5471 phi = digi->id().iphi();
5472 depth = digi->id().depth();
5477 if (recordHistoes_ && studyCapIDErrorsHist_)
5478 fillDigiErrorsHF(digi);
5481 fillDigiAmplitudeHF(digi);
5483 if (recordHistoes_ && studyCalibCellsHist_) {
5489 for (
int i = 0;
i < nTS;
i++) {
5490 TS_data[
i] =
adc2fC[digi->sample(
i).adc()];
5491 signal[3][
ieta + 41][
iphi] += TS_data[
i];
5493 signal3[3][
ieta + 41][
iphi] += TS_data[
i];
5503 if (flagupgradeqie1011_ != 1) {
5505 iEvent.getByToken(tok_qie10_, hfqie10);
5508 bool gotQIE10Digis =
true;
5509 if (!(
iEvent.getByToken(tok_qie10_, hfqie10))) {
5510 gotQIE10Digis =
false;
5513 gotQIE10Digis =
false;
5515 if (!gotQIE10Digis) {
5516 cout <<
" No QIE10DigiCollection collection is found " << endl;
5519 double totalAmplitudeHF = 0.;
5520 for (
unsigned int j = 0;
j < qie10dc.
size();
j++) {
5525 int phi = hcaldetid.
iphi();
5532 if (recordHistoes_ && studyCapIDErrorsHist_)
5533 fillDigiErrorsHFQIE10(qie10df);
5536 fillDigiAmplitudeHFQIE10(qie10df);
5539 if (recordHistoes_ && studyCalibCellsHist_) {
5544 double amplitudefullTSs = 0.;
5545 double nnnnnnTS = 0.;
5546 for (
int i = 0;
i < nTS; ++
i) {
5549 int adc = qie10df[
i].adc();
5553 signal[3][
ieta + 41][
iphi] += TS_data[
i];
5554 totalAmplitudeHF += TS_data[
i];
5555 amplitudefullTSs += TS_data[
i];
5558 signal3[3][
ieta + 41][
iphi] += TS_data[
i];
5561 h_numberofhitsHFtest->Fill(nnnnnnTS);
5562 h_AmplitudeHFtest->Fill(amplitudefullTSs);
5565 h_totalAmplitudeHF->Fill(totalAmplitudeHF);
5566 h_totalAmplitudeHFperEvent->Fill(
float(eventcounter), totalAmplitudeHF);
5578 if (flagupgradeqie1011_ != 2 && flagupgradeqie1011_ != 3) {
5581 bool gotHBHEDigis =
true;
5583 gotHBHEDigis =
false;
5584 if (!(
hbhe.isValid()))
5585 gotHBHEDigis =
false;
5586 if (!gotHBHEDigis) {
5587 cout <<
" No HBHEDigiCollection collection is found " << endl;
5590 double totalAmplitudeHB = 0.;
5591 double totalAmplitudeHE = 0.;
5592 double nnnnnnTSHB = 0.;
5593 double nnnnnnTSHE = 0.;
5596 eta = digi->id().ieta();
5597 phi = digi->id().iphi();
5598 depth = digi->id().depth();
5625 if (recordHistoes_ && studyCapIDErrorsHist_)
5626 fillDigiErrors(digi);
5629 fillDigiAmplitude(digi);
5631 if (recordHistoes_ && studyCalibCellsHist_) {
5638 double amplitudefullTSs = 0.;
5641 for (
int i = 0;
i < nTS;
i++) {
5642 TS_data[
i] =
adc2fC[digi->sample(
i).adc()];
5643 signal[0][
ieta + 41][
iphi] += TS_data[
i];
5644 amplitudefullTSs += TS_data[
i];
5645 totalAmplitudeHB += TS_data[
i];
5647 signal3[0][
ieta + 41][
iphi] += TS_data[
i];
5649 h_AmplitudeHBtest->Fill(amplitudefullTSs);
5653 double amplitudefullTSs = 0.;
5656 for (
int i = 0;
i < nTS;
i++) {
5657 TS_data[
i] =
adc2fC[digi->sample(
i).adc()];
5658 signal[1][
ieta + 41][
iphi] += TS_data[
i];
5659 totalAmplitudeHE += TS_data[
i];
5660 amplitudefullTSs += TS_data[
i];
5662 signal3[1][
ieta + 41][
iphi] += TS_data[
i];
5664 h_AmplitudeHEtest->Fill(amplitudefullTSs);
5668 if (recordNtuples_ && nevent50 < maxNeventsInNtuple_) {
5671 if (totalAmplitudeHB != 0.) {
5672 h_numberofhitsHBtest->Fill(nnnnnnTSHB);
5673 h_totalAmplitudeHB->Fill(totalAmplitudeHB);
5674 h_totalAmplitudeHBperEvent->Fill(
float(eventcounter), totalAmplitudeHB);
5676 if (totalAmplitudeHE != 0.) {
5677 h_numberofhitsHEtest->Fill(nnnnnnTSHE);
5678 h_totalAmplitudeHE->Fill(totalAmplitudeHE);
5679 h_totalAmplitudeHEperEvent->Fill(
float(eventcounter), totalAmplitudeHE);
5686 if (flagupgradeqie1011_ != 1 && flagupgradeqie1011_ != 4 && flagupgradeqie1011_ != 5 && flagupgradeqie1011_ != 10) {
5688 iEvent.getByToken(tok_qie11_, heqie11);
5691 bool gotQIE11Digis =
true;
5692 if (!(
iEvent.getByToken(tok_qie11_, heqie11)))
5693 gotQIE11Digis =
false;
5695 gotQIE11Digis =
false;
5696 if (!gotQIE11Digis) {
5697 cout <<
" No QIE11DigiCollection collection is found " << endl;
5700 double totalAmplitudeHBQIE11 = 0.;
5701 double totalAmplitudeHEQIE11 = 0.;
5702 double nnnnnnTSHBQIE11 = 0.;
5703 double nnnnnnTSHEQIE11 = 0.;
5704 for (
unsigned int j = 0;
j < qie11dc.
size();
j++) {
5709 int phi = hcaldetid.
iphi();
5713 int sub = hcaldetid.
subdet();
5719 if (recordHistoes_ && studyCapIDErrorsHist_)
5720 fillDigiErrorsQIE11(qie11df);
5723 fillDigiAmplitudeQIE11(qie11df);
5726 if (sub == 1 &&
depth == 1 && qwert1 == 0) {
5730 if (sub == 1 &&
depth == 2 && qwert2 == 0) {
5734 if (sub == 2 &&
depth == 1 && qwert3 == 0) {
5738 if (sub == 2 &&
depth == 2 && qwert4 == 0) {
5742 if (sub == 2 &&
depth == 3 && qwert5 == 0) {
5747 if (recordHistoes_ && studyCalibCellsHist_) {
5754 double amplitudefullTSs1 = 0.;
5755 double amplitudefullTSs6 = 0.;
5757 for (
int i = 0;
i < nTS; ++
i) {
5758 int adc = qie11df[
i].adc();
5761 amplitudefullTSs1 += charge1;
5762 amplitudefullTSs6 += charge6;
5768 totalAmplitudeHBQIE11 +=
charge;
5770 h_AmplitudeHBtest1->Fill(amplitudefullTSs1, 1.);
5771 h_AmplitudeHBtest6->Fill(amplitudefullTSs6, 1.);
5775 double amplitudefullTSs1 = 0.;
5776 double amplitudefullTSs6 = 0.;
5778 for (
int i = 0;
i < nTS;
i++) {
5779 int adc = qie11df[
i].adc();
5782 amplitudefullTSs1 += charge1;
5783 amplitudefullTSs6 += charge6;
5789 totalAmplitudeHEQIE11 +=
charge;
5791 h_AmplitudeHEtest1->Fill(amplitudefullTSs1, 1.);
5792 h_AmplitudeHEtest6->Fill(amplitudefullTSs6, 1.);
5798 if (totalAmplitudeHBQIE11 != 0.) {
5799 h_numberofhitsHBtest->Fill(nnnnnnTSHBQIE11);
5800 h_totalAmplitudeHB->Fill(totalAmplitudeHBQIE11);
5801 h_totalAmplitudeHBperEvent->Fill(
float(eventcounter), totalAmplitudeHBQIE11);
5803 if (totalAmplitudeHEQIE11 != 0.) {
5804 h_numberofhitsHEtest->Fill(nnnnnnTSHEQIE11);
5805 h_totalAmplitudeHE->Fill(totalAmplitudeHEQIE11);
5806 h_totalAmplitudeHEperEvent->Fill(
float(eventcounter), totalAmplitudeHEQIE11);
5814 bool gotHODigis =
true;
5815 if (!(
iEvent.getByToken(tok_ho_,
ho)))
5817 if (!(
ho.isValid()))
5821 cout <<
" No HO collection is found " << endl;
5824 double totalAmplitudeHO = 0.;
5826 eta = digi->id().ieta();
5827 phi = digi->id().iphi();
5828 depth = digi->id().depth();
5838 if (recordHistoes_ && studyCapIDErrorsHist_)
5839 fillDigiErrorsHO(digi);
5842 fillDigiAmplitudeHO(digi);
5844 if (recordHistoes_ && studyCalibCellsHist_) {
5849 double nnnnnnTS = 0.;
5850 double amplitudefullTSs = 0.;
5852 for (
int i = 0;
i < nTS;
i++) {
5853 TS_data[
i] =
adc2fC[digi->sample(
i).adc()];
5854 amplitudefullTSs += TS_data[
i];
5855 signal[2][
ieta + 41][
iphi] += TS_data[
i];
5856 totalAmplitudeHO += TS_data[
i];
5858 signal3[2][
ieta + 41][
iphi] += TS_data[
i];
5861 h_AmplitudeHOtest->Fill(amplitudefullTSs);
5862 h_numberofhitsHOtest->Fill(nnnnnnTS);
5866 h_totalAmplitudeHO->Fill(totalAmplitudeHO);
5867 h_totalAmplitudeHOperEvent->Fill(
float(eventcounter), totalAmplitudeHO);
5873 if (flagIterativeMethodCalibrationGroupReco_ > 0) {
5879 iEvent.getByToken(tok_hbheNoise_, hbheNoise);
5886 bool gotHBHERecHitsNoise =
true;
5887 if (!(
iEvent.getByToken(tok_hbheNoise_, hbheNoise)))
5888 gotHBHERecHitsNoise =
5891 gotHBHERecHitsNoise =
false;
5892 if (!gotHBHERecHitsNoise) {
5894 std::cout <<
" No RecHits HBHENoise collection is found " << endl;
5899 float icalconst = 1.;
5902 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
5903 double energyhit = aHit.
energy();
5904 DetId id = (*hbheItr).detid();
5906 int sub = ((hid).rawId() >> 25) & 0x7;
5909 h_energyhitNoise_HB->Fill(energyhit, 1.);
5911 h_energyhitNoise_HE->Fill(energyhit, 1.);
5915 if (hid.
depth() == 1 && sub == 1 && hid.
iphi() == 25) {
5917 std::cout <<
" Noise,sub = " << sub <<
" mdepth = " << hid.
depth() <<
" ieta= " << hid.
ieta()
5918 <<
" iphi= " << hid.
iphi() <<
" energyhit= " << energyhit << std::endl;
5920 if (hid.
depth() == 1 && sub == 2 && hid.
iphi() == 25) {
5922 std::cout <<
" Noise,sub = " << sub <<
" mdepth = " << hid.
depth() <<
" ieta= " << hid.
ieta()
5923 <<
" iphi= " << hid.
iphi() <<
" energyhit= " << energyhit << std::endl;
5929 int mdepth = hid.
depth();
5930 recNoiseEnergy0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
5931 recNoiseEnergy1[sub - 1][mdepth - 1][
ieta + 41][
iphi] += energyhit;
5932 recNoiseEnergy2[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
pow(energyhit, 2);
5939 iEvent.getByToken(tok_hfNoise_, hfNoise);
5946 bool gotHFRecHitsNoise =
true;
5947 if (!(
iEvent.getByToken(tok_hfNoise_, hfNoise)))
5948 gotHFRecHitsNoise =
false;
5950 gotHFRecHitsNoise =
false;
5951 if (!gotHFRecHitsNoise) {
5953 std::cout <<
" No RecHits HFNoise collection is found " << endl;
5957 float icalconst = 1.;
5960 HFRecHit aHit(hfItr->id(), hfItr->energy() * icalconst, hfItr->time());
5961 double energyhit = aHit.
energy();
5962 DetId id = (*hfItr).detid();
5964 int sub = ((hid).rawId() >> 25) & 0x7;
5966 h_energyhitNoise_HF->Fill(energyhit, 1.);
5970 if (hid.
iphi() == 25) {
5972 std::cout <<
"HF Noise,sub = " << sub <<
" mdepth = " << hid.
depth() <<
" ieta= " << hid.
ieta()
5973 <<
" iphi= " << hid.
iphi() <<
" energyhit= " << energyhit << std::endl;
5979 int mdepth = hid.
depth();
5980 recNoiseEnergy0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
5981 recNoiseEnergy1[sub - 1][mdepth - 1][
ieta + 41][
iphi] += energyhit;
5982 recNoiseEnergy2[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
pow(energyhit, 2);
5992 iEvent.getByToken(tok_hbheSignal_, hbheSignal);
5999 bool gotHBHERecHitsSignal =
true;
6000 if (!(
iEvent.getByToken(tok_hbheSignal_, hbheSignal)))
6001 gotHBHERecHitsSignal =
6004 gotHBHERecHitsSignal =
false;
6005 if (!gotHBHERecHitsSignal) {
6007 std::cout <<
" No RecHits HBHESignal collection is found " << endl;
6012 float icalconst = 1.;
6015 HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
6016 double energyhit = aHit.
energy();
6017 DetId id = (*hbheItr).detid();
6019 int sub = ((hid).rawId() >> 25) & 0x7;
6022 h_energyhitSignal_HB->Fill(energyhit, 1.);
6024 h_energyhitSignal_HE->Fill(energyhit, 1.);
6027 if (hid.
depth() == 1 && sub == 1 && hid.
iphi() == 25) {
6029 std::cout <<
"HBHE Signal,sub = " << sub <<
" mdepth = " << hid.
depth() <<
" ieta= " << hid.
ieta()
6030 <<
" iphi= " << hid.
iphi() <<
" energyhit= " << energyhit << std::endl;
6032 if (hid.
depth() == 1 && sub == 2 && hid.
iphi() == 25) {
6034 std::cout <<
"HBHE Signal,sub = " << sub <<
" mdepth = " << hid.
depth() <<
" ieta= " << hid.
ieta()
6035 <<
" iphi= " << hid.
iphi() <<
" energyhit= " << energyhit << std::endl;
6041 int mdepth = hid.
depth();
6042 recSignalEnergy0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
6043 recSignalEnergy1[sub - 1][mdepth - 1][
ieta + 41][
iphi] += energyhit;
6044 recSignalEnergy2[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
pow(energyhit, 2);
6051 iEvent.getByToken(tok_hfSignal_, hfSignal);
6058 bool gotHFRecHitsSignal =
true;
6059 if (!(
iEvent.getByToken(tok_hfSignal_, hfSignal)))
6060 gotHFRecHitsSignal =
false;
6062 gotHFRecHitsSignal =
false;
6063 if (!gotHFRecHitsSignal) {
6065 std::cout <<
" No RecHits HFSignal collection is found " << endl;
6069 float icalconst = 1.;
6072 HFRecHit aHit(hfItr->id(), hfItr->energy() * icalconst, hfItr->time());
6073 double energyhit = aHit.
energy();
6074 DetId id = (*hfItr).detid();
6076 int sub = ((hid).rawId() >> 25) & 0x7;
6078 h_energyhitSignal_HF->Fill(energyhit, 1.);
6082 if (hid.
iphi() == 25) {
6084 std::cout <<
"HF Signal,sub = " << sub <<
" mdepth = " << hid.
depth() <<
" ieta= " << hid.
ieta()
6085 <<
" iphi= " << hid.
iphi() <<
" energyhit= " << energyhit << std::endl;
6091 int mdepth = hid.
depth();
6092 recSignalEnergy0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
6093 recSignalEnergy1[sub - 1][mdepth - 1][
ieta + 41][
iphi] += energyhit;
6094 recSignalEnergy2[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
pow(energyhit, 2);
6114 if (flagIterativeMethodCalibrationGroupDigi_ > 0) {
6122 for (
int k1 = 0; k1 <
ndepth; k1++) {
6124 for (
int k2 = 0; k2 <
neta; k2++) {
6126 int k2plot = k2 - 41;
6129 double sumoverphi = 0;
6130 int nsumoverphi = 0;
6131 for (
int k3 = 0; k3 <
nphi; k3++) {
6132 if (tocamplchannel[
k0][k1][k2][k3] != 0) {
6133 sumoverphi += tocamplchannel[
k0][k1][k2][k3];
6136 std::cout <<
"==== nsumoverphi = " << nsumoverphi <<
" sumoverphi = " << sumoverphi
6137 <<
" k1 = " << k1 <<
" k2 = " << k2 <<
" kkk = " << kkk <<
" k3 = " << k3 << std::endl;
6141 for (
int k3 = 0; k3 <
nphi; k3++) {
6142 if (nsumoverphi != 0) {
6143 maprphinorm[
k0][k1][k2][k3] = tocamplchannel[
k0][k1][k2][k3] / (sumoverphi / nsumoverphi);
6145 std::cout <<
"nsumoverphi= " << nsumoverphi <<
" sumoverphi= " << sumoverphi <<
" k1= " << k1
6146 <<
" k2= " << k2 <<
" kkk= " << kkk <<
" k3= " << k3
6147 <<
" maprphinorm= " << maprphinorm[
k0][k1][k2][k3] << endl;
6149 h_mapenophinorm_HE1->Fill(
double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3]);
6150 h_mapenophinorm2_HE1->Fill(
6151 double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3] * tocamplchannel[
k0][k1][k2][k3]);
6152 h_maprphinorm_HE1->Fill(
double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3]);
6153 h_maprphinorm2_HE1->Fill(
6154 double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3] * maprphinorm[
k0][k1][k2][k3]);
6155 h_maprphinorm0_HE1->Fill(
double(kkk),
double(k3), 1.);
6158 h_mapenophinorm_HE2->Fill(
double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3]);
6159 h_mapenophinorm2_HE2->Fill(
6160 double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3] * tocamplchannel[
k0][k1][k2][k3]);
6161 h_maprphinorm_HE2->Fill(
double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3]);
6162 h_maprphinorm2_HE2->Fill(
6163 double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3] * maprphinorm[
k0][k1][k2][k3]);
6164 h_maprphinorm0_HE2->Fill(
double(kkk),
double(k3), 1.);
6167 h_mapenophinorm_HE3->Fill(
double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3]);
6168 h_mapenophinorm2_HE3->Fill(
6169 double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3] * tocamplchannel[
k0][k1][k2][k3]);
6170 h_maprphinorm_HE3->Fill(
double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3]);
6171 h_maprphinorm2_HE3->Fill(
6172 double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3] * maprphinorm[
k0][k1][k2][k3]);
6173 h_maprphinorm0_HE3->Fill(
double(kkk),
double(k3), 1.);
6176 h_mapenophinorm_HE4->Fill(
double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3]);
6177 h_mapenophinorm2_HE4->Fill(
6178 double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3] * tocamplchannel[
k0][k1][k2][k3]);
6179 h_maprphinorm_HE4->Fill(
double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3]);
6180 h_maprphinorm2_HE4->Fill(
6181 double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3] * maprphinorm[
k0][k1][k2][k3]);
6182 h_maprphinorm0_HE4->Fill(
double(kkk),
double(k3), 1.);
6185 h_mapenophinorm_HE5->Fill(
double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3]);
6186 h_mapenophinorm2_HE5->Fill(
6187 double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3] * tocamplchannel[
k0][k1][k2][k3]);
6188 h_maprphinorm_HE5->Fill(
double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3]);
6189 h_maprphinorm2_HE5->Fill(
6190 double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3] * maprphinorm[
k0][k1][k2][k3]);
6191 h_maprphinorm0_HE5->Fill(
double(kkk),
double(k3), 1.);
6194 h_mapenophinorm_HE6->Fill(
double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3]);
6195 h_mapenophinorm2_HE6->Fill(
6196 double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3] * tocamplchannel[
k0][k1][k2][k3]);
6197 h_maprphinorm_HE6->Fill(
double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3]);
6198 h_maprphinorm2_HE6->Fill(
6199 double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3] * maprphinorm[
k0][k1][k2][k3]);
6200 h_maprphinorm0_HE6->Fill(
double(kkk),
double(k3), 1.);
6203 h_mapenophinorm_HE7->Fill(
double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3]);
6204 h_mapenophinorm2_HE7->Fill(
6205 double(kkk),
double(k3), tocamplchannel[
k0][k1][k2][k3] * tocamplchannel[
k0][k1][k2][k3]);
6206 h_maprphinorm_HE7->Fill(
double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3]);
6207 h_maprphinorm2_HE7->Fill(
6208 double(kkk),
double(k3), maprphinorm[
k0][k1][k2][k3] * maprphinorm[
k0][k1][k2][k3]);
6209 h_maprphinorm0_HE7->Fill(
double(kkk),
double(k3), 1.);
6224 for (
int k1 = 0; k1 <
ndepth; k1++) {
6226 for (
int k2 = 0; k2 <
neta; k2++) {
6228 int k2plot = k2 - 41;
6230 for (
int k3 = 0; k3 <
nphi; k3++) {
6232 h_amplitudechannel0_HB1->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6233 h_amplitudechannel1_HB1->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6234 h_amplitudechannel2_HB1->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6237 h_amplitudechannel0_HB2->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6238 h_amplitudechannel1_HB2->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6239 h_amplitudechannel2_HB2->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6242 h_amplitudechannel0_HB3->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6243 h_amplitudechannel1_HB3->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6244 h_amplitudechannel2_HB3->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6247 h_amplitudechannel0_HB4->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6248 h_amplitudechannel1_HB4->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6249 h_amplitudechannel2_HB4->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6258 for (
int k1 = 0; k1 <
ndepth; k1++) {
6260 for (
int k2 = 0; k2 <
neta; k2++) {
6262 int k2plot = k2 - 41;
6264 for (
int k3 = 0; k3 <
nphi; k3++) {
6266 h_amplitudechannel0_HE1->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6267 h_amplitudechannel1_HE1->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6268 h_amplitudechannel2_HE1->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6271 h_amplitudechannel0_HE2->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6272 h_amplitudechannel1_HE2->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6273 h_amplitudechannel2_HE2->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6276 h_amplitudechannel0_HE3->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6277 h_amplitudechannel1_HE3->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6278 h_amplitudechannel2_HE3->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6281 h_amplitudechannel0_HE4->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6282 h_amplitudechannel1_HE4->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6283 h_amplitudechannel2_HE4->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6286 h_amplitudechannel0_HE5->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6287 h_amplitudechannel1_HE5->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6288 h_amplitudechannel2_HE5->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6291 h_amplitudechannel0_HE6->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6292 h_amplitudechannel1_HE6->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6293 h_amplitudechannel2_HE6->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6296 h_amplitudechannel0_HE7->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6297 h_amplitudechannel1_HE7->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6298 h_amplitudechannel2_HE7->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6307 for (
int k1 = 0; k1 <
ndepth; k1++) {
6309 for (
int k2 = 0; k2 <
neta; k2++) {
6311 int k2plot = k2 - 41;
6313 for (
int k3 = 0; k3 <
nphi; k3++) {
6315 h_amplitudechannel0_HF1->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6316 h_amplitudechannel1_HF1->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6317 h_amplitudechannel2_HF1->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6320 h_amplitudechannel0_HF2->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6321 h_amplitudechannel1_HF2->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6322 h_amplitudechannel2_HF2->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6325 h_amplitudechannel0_HF3->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6326 h_amplitudechannel1_HF3->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6327 h_amplitudechannel2_HF3->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6330 h_amplitudechannel0_HF4->Fill(
double(kkk),
double(k3), amplitudechannel0[
k0][k1][k2][k3]);
6331 h_amplitudechannel1_HF4->Fill(
double(kkk),
double(k3), amplitudechannel[
k0][k1][k2][k3]);
6332 h_amplitudechannel2_HF4->Fill(
double(kkk),
double(k3), amplitudechannel2[
k0][k1][k2][k3]);
6348 if (flagIterativeMethodCalibrationGroupReco_ > 0) {
6359 for (
int k1 = 0; k1 <
ndepth; k1++) {
6361 for (
int k2 = 0; k2 <
neta; k2++) {
6363 int k2plot = k2 - 41;
6365 for (
int k3 = 0; k3 <
nphi; k3++) {
6367 h_recSignalEnergy0_HB1->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6368 h_recSignalEnergy1_HB1->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6369 h_recSignalEnergy2_HB1->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6370 h_recNoiseEnergy0_HB1->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6371 h_recNoiseEnergy1_HB1->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6372 h_recNoiseEnergy2_HB1->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6375 h_recSignalEnergy0_HB2->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6376 h_recSignalEnergy1_HB2->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6377 h_recSignalEnergy2_HB2->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6378 h_recNoiseEnergy0_HB2->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6379 h_recNoiseEnergy1_HB2->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6380 h_recNoiseEnergy2_HB2->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6383 h_recSignalEnergy0_HB3->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6384 h_recSignalEnergy1_HB3->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6385 h_recSignalEnergy2_HB3->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6386 h_recNoiseEnergy0_HB3->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6387 h_recNoiseEnergy1_HB3->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6388 h_recNoiseEnergy2_HB3->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6391 h_recSignalEnergy0_HB4->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6392 h_recSignalEnergy1_HB4->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6393 h_recSignalEnergy2_HB4->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6394 h_recNoiseEnergy0_HB4->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6395 h_recNoiseEnergy1_HB4->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6396 h_recNoiseEnergy2_HB4->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6405 for (
int k1 = 0; k1 <
ndepth; k1++) {
6407 for (
int k2 = 0; k2 <
neta; k2++) {
6409 int k2plot = k2 - 41;
6411 for (
int k3 = 0; k3 <
nphi; k3++) {
6413 h_recSignalEnergy0_HE1->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6414 h_recSignalEnergy1_HE1->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6415 h_recSignalEnergy2_HE1->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6416 h_recNoiseEnergy0_HE1->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6417 h_recNoiseEnergy1_HE1->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6418 h_recNoiseEnergy2_HE1->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6421 h_recSignalEnergy0_HE2->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6422 h_recSignalEnergy1_HE2->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6423 h_recSignalEnergy2_HE2->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6424 h_recNoiseEnergy0_HE2->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6425 h_recNoiseEnergy1_HE2->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6426 h_recNoiseEnergy2_HE2->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6429 h_recSignalEnergy0_HE3->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6430 h_recSignalEnergy1_HE3->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6431 h_recSignalEnergy2_HE3->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6432 h_recNoiseEnergy0_HE3->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6433 h_recNoiseEnergy1_HE3->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6434 h_recNoiseEnergy2_HE3->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6437 h_recSignalEnergy0_HE4->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6438 h_recSignalEnergy1_HE4->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6439 h_recSignalEnergy2_HE4->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6440 h_recNoiseEnergy0_HE4->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6441 h_recNoiseEnergy1_HE4->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6442 h_recNoiseEnergy2_HE4->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6445 h_recSignalEnergy0_HE5->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6446 h_recSignalEnergy1_HE5->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6447 h_recSignalEnergy2_HE5->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6448 h_recNoiseEnergy0_HE5->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6449 h_recNoiseEnergy1_HE5->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6450 h_recNoiseEnergy2_HE5->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6453 h_recSignalEnergy0_HE6->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6454 h_recSignalEnergy1_HE6->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6455 h_recSignalEnergy2_HE6->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6456 h_recNoiseEnergy0_HE6->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6457 h_recNoiseEnergy1_HE6->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6458 h_recNoiseEnergy2_HE6->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6461 h_recSignalEnergy0_HE7->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6462 h_recSignalEnergy1_HE7->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6463 h_recSignalEnergy2_HE7->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6464 h_recNoiseEnergy0_HE7->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6465 h_recNoiseEnergy1_HE7->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6466 h_recNoiseEnergy2_HE7->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6475 for (
int k1 = 0; k1 <
ndepth; k1++) {
6477 for (
int k2 = 0; k2 <
neta; k2++) {
6479 int k2plot = k2 - 41;
6481 for (
int k3 = 0; k3 <
nphi; k3++) {
6483 h_recSignalEnergy0_HF1->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6484 h_recSignalEnergy1_HF1->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6485 h_recSignalEnergy2_HF1->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6486 h_recNoiseEnergy0_HF1->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6487 h_recNoiseEnergy1_HF1->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6488 h_recNoiseEnergy2_HF1->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6491 h_recSignalEnergy0_HF2->Fill(
double(kkk),
double(k3), recSignalEnergy0[
k0][k1][k2][k3]);
6492 h_recSignalEnergy1_HF2->Fill(
double(kkk),
double(k3), recSignalEnergy1[
k0][k1][k2][k3]);
6493 h_recSignalEnergy2_HF2->Fill(
double(kkk),
double(k3), recSignalEnergy2[
k0][k1][k2][k3]);
6494 h_recNoiseEnergy0_HF2->Fill(
double(kkk),
double(k3), recNoiseEnergy0[
k0][k1][k2][k3]);
6495 h_recNoiseEnergy1_HF2->Fill(
double(kkk),
double(k3), recNoiseEnergy1[
k0][k1][k2][k3]);
6496 h_recNoiseEnergy2_HF2->Fill(
double(kkk),
double(k3), recNoiseEnergy2[
k0][k1][k2][k3]);
6510 if (flagLaserRaddam_ > 1) {
6512 for (
int k1 = 0; k1 <
ndepth; k1++) {
6513 for (
int k2 = 0; k2 <
neta; k2++) {
6514 for (
int k3 = 0; k3 <
nphi; k3++) {
6515 if (mapRADDAM0_HE[k1][k2][k3] != 0) {
6517 mapRADDAM_HED2[k1][k2] += mapRADDAM_HE[k1][k2][k3];
6519 ++mapRADDAM_HED20[k1][k2];
6526 for (
int k1 = 0; k1 <
ndepth; k1++) {
6527 for (
int k2 = 0; k2 <
neta; k2++) {
6528 if (mapRADDAM_HED20[k1][k2] != 0) {
6530 if (k1 == 2 && k2 == 25) {
6531 h_sumphiEta16Depth3RADDAM_HED2->Fill(mapRADDAM_HED2[k1][k2]);
6532 h_Eta16Depth3RADDAM_HED2->Fill(mapRADDAM_HED2[k1][k2] / mapRADDAM_HED20[k1][k2]);
6533 h_NphiForEta16Depth3RADDAM_HED2->Fill(mapRADDAM_HED20[k1][k2]);
6534 }
else if (k1 == 2 && k2 == 56) {
6535 h_sumphiEta16Depth3RADDAM_HED2P->Fill(mapRADDAM_HED2[k1][k2]);
6536 h_Eta16Depth3RADDAM_HED2P->Fill(mapRADDAM_HED2[k1][k2] / mapRADDAM_HED20[k1][k2]);
6537 h_NphiForEta16Depth3RADDAM_HED2P->Fill(mapRADDAM_HED20[k1][k2]);
6539 h_sumphiEta16Depth3RADDAM_HED2ALL->Fill(mapRADDAM_HED2[k1][k2]);
6540 h_Eta16Depth3RADDAM_HED2ALL->Fill(mapRADDAM_HED2[k1][k2] / mapRADDAM_HED20[k1][k2]);
6541 h_NphiForEta16Depth3RADDAM_HED2ALL->Fill(mapRADDAM_HED20[k1][k2]);
6544 mapRADDAM_HED2[k1][k2] /= mapRADDAM_HED20[k1][k2];
6549 for (
int k1 = 0; k1 <
ndepth; k1++) {
6550 for (
int k2 = 0; k2 <
neta; k2++) {
6551 if (k1 == 2 && (k2 == 25 || k2 == 56)) {
6554 int k2plot = k2 - 41;
6561 if (mapRADDAM_HED2[k1][k2] != 0. && mapRADDAM_HED2[2][kk2] != 0) {
6562 mapRADDAM_HED2[k1][k2] /= mapRADDAM_HED2[2][kk2];
6564 int LLLLLL111111 = 0;
6565 if ((k1 == 0 && fabs(kkk - 41) > 16 && fabs(kkk - 41) < 30))
6568 int LLLLLL222222 = 0;
6569 if ((k1 == 1 && fabs(kkk - 41) > 16 && fabs(kkk - 41) < 27) ||
6570 (k1 == 2 && fabs(kkk - 41) > 26 && fabs(kkk - 41) < 29))
6573 if (LLLLLL111111 == 1) {
6574 h_sigLayer1RADDAM5_HED2->Fill(
double(kkk - 41), mapRADDAM_HED2[k1][k2]);
6575 h_sigLayer1RADDAM6_HED2->Fill(
double(kkk - 41), 1.);
6577 if (LLLLLL222222 == 1) {
6578 h_sigLayer2RADDAM5_HED2->Fill(
double(kkk - 41), mapRADDAM_HED2[k1][k2]);
6579 h_sigLayer2RADDAM6_HED2->Fill(
double(kkk - 41), 1.);
6590 for (
int k1 = 0; k1 <
ndepth; k1++) {
6591 for (
int k2 = 0; k2 <
neta; k2++) {
6592 if (k1 == 2 && (k2 == 25 || k2 == 56)) {
6594 int k2plot = k2 - 41;
6601 for (
int k3 = 0; k3 <
nphi; k3++) {
6602 if (mapRADDAM_HE[k1][k2][k3] != 0. && mapRADDAM_HE[2][kk2][k3] != 0) {
6603 mapRADDAM_HE[k1][k2][k3] /= mapRADDAM_HE[2][kk2][k3];
6604 int LLLLLL111111 = 0;
6605 if ((k1 == 0 && fabs(kkk - 41) > 16 && fabs(kkk - 41) < 30))
6607 int LLLLLL222222 = 0;
6608 if ((k1 == 1 && fabs(kkk - 41) > 16 && fabs(kkk - 41) < 27) ||
6609 (k1 == 2 && fabs(kkk - 41) > 26 && fabs(kkk - 41) < 29))
6611 if (LLLLLL111111 == 1) {
6612 h_sigLayer1RADDAM5_HE->Fill(
double(kkk - 41), mapRADDAM_HE[k1][k2][k3]);
6613 h_sigLayer1RADDAM6_HE->Fill(
double(kkk - 41), 1.);
6615 if (LLLLLL222222 == 1) {
6616 h_sigLayer2RADDAM5_HE->Fill(
double(kkk - 41), mapRADDAM_HE[k1][k2][k3]);
6617 h_sigLayer2RADDAM6_HE->Fill(
double(kkk - 41), 1.);
6626 for (
int k1 = 0; k1 <
ndepth; k1++) {
6627 for (
int k2 = 0; k2 <
neta; k2++) {
6628 mapRADDAM_HED2[k1][k2] = 0.;
6629 mapRADDAM_HED20[k1][k2] = 0.;
6630 for (
int k3 = 0; k3 <
nphi; k3++) {
6631 mapRADDAM_HE[k1][k2][k3] = 0.;
6632 mapRADDAM0_HE[k1][k2][k3] = 0;
6648 int sumofchannels = 0;
6649 double sumamplitudesubdet = 0.;
6650 int sumofchannels0 = 0;
6651 double sumamplitudesubdet0 = 0.;
6652 for (
int k2 = 0; k2 <
neta; k2++) {
6653 for (
int k3 = 0; k3 <
nphi; k3++) {
6654 if (amplitudechannel[
k0][0][k2][k3] != 0. && amplitudechannel[
k0][1][k2][k3] != 0.)
6656 if (amplitudechannel[
k0][0][k2][k3] != 0. && amplitudechannel[
k0][1][k2][k3] == 0.)
6658 if (amplitudechannel[
k0][0][k2][k3] == 0. && amplitudechannel[
k0][1][k2][k3] != 0.)
6663 double sumamplitudechannel_HB = amplitudechannel[
k0][0][k2][k3] + amplitudechannel[
k0][1][k2][k3];
6664 h_sumamplitudechannel_HB->Fill(sumamplitudechannel_HB);
6665 if (sumamplitudechannel_HB > 80.) {
6666 sumamplitudesubdet += sumamplitudechannel_HB;
6669 if (sumamplitudechannel_HB > 0.) {
6670 sumamplitudesubdet0 += sumamplitudechannel_HB;
6678 double sumamplitudechannel_HE =
6679 amplitudechannel[
k0][0][k2][k3] + amplitudechannel[
k0][1][k2][k3] + amplitudechannel[
k0][2][k2][k3];
6680 h_sumamplitudechannel_HE->Fill(sumamplitudechannel_HE);
6681 if (sumamplitudechannel_HE > 200.) {
6682 sumamplitudesubdet += sumamplitudechannel_HE;
6685 if (sumamplitudechannel_HE > 0.) {
6686 sumamplitudesubdet0 += sumamplitudechannel_HE;
6694 double sumamplitudechannel_HO = amplitudechannel[
k0][3][k2][k3];
6695 h_sumamplitudechannel_HO->Fill(sumamplitudechannel_HO);
6696 if (sumamplitudechannel_HO > 1200.) {
6697 sumamplitudesubdet += sumamplitudechannel_HO;
6700 if (sumamplitudechannel_HO > 0.) {
6701 sumamplitudesubdet0 += sumamplitudechannel_HO;
6708 double sumamplitudechannel_HF = amplitudechannel[
k0][0][k2][k3] + amplitudechannel[
k0][1][k2][k3];
6709 h_sumamplitudechannel_HF->Fill(sumamplitudechannel_HF);
6710 if (sumamplitudechannel_HF > 600.) {
6711 sumamplitudesubdet += sumamplitudechannel_HF;
6714 if (sumamplitudechannel_HF > 0.) {
6715 sumamplitudesubdet0 += sumamplitudechannel_HF;
6726 h_eventamplitude_HB->Fill((sumamplitudesubdet + sumamplitudesubdet0));
6727 h_eventoccupancy_HB->Fill((sumofchannels + sumofchannels0));
6728 if ((sumamplitudesubdet + sumamplitudesubdet0) > maxxSUM1)
6729 maxxSUM1 = sumamplitudesubdet + sumamplitudesubdet0;
6730 if ((sumofchannels + sumofchannels0) > maxxOCCUP1)
6731 maxxOCCUP1 = sumofchannels + sumofchannels0;
6732 averSIGNALoccupancy_HB += sumofchannels;
6733 averSIGNALsumamplitude_HB += sumamplitudesubdet;
6734 averNOSIGNALoccupancy_HB += sumofchannels0;
6735 averNOSIGNALsumamplitude_HB += sumamplitudesubdet0;
6736 if ((sumamplitudesubdet + sumamplitudesubdet0) > 60000) {
6737 for (
int k2 = 0; k2 <
neta; k2++) {
6738 for (
int k3 = 0; k3 <
nphi; k3++) {
6741 if (amplitudechannel[
k0][0][k2][k3] != 0.) {
6742 h_2DAtaildepth1_HB->Fill(
double(
ieta),
double(k3), amplitudechannel[
k0][0][k2][k3]);
6743 h_2D0Ataildepth1_HB->Fill(
double(
ieta),
double(k3), 1.);
6746 if (amplitudechannel[
k0][1][k2][k3] != 0.) {
6747 h_2DAtaildepth2_HB->Fill(
double(
ieta),
double(k3), amplitudechannel[
k0][1][k2][k3]);
6748 h_2D0Ataildepth2_HB->Fill(
double(
ieta),
double(k3), 1.);
6755 h_eventamplitude_HE->Fill((sumamplitudesubdet + sumamplitudesubdet0));
6756 h_eventoccupancy_HE->Fill((sumofchannels + sumofchannels0));
6757 if ((sumamplitudesubdet + sumamplitudesubdet0) > maxxSUM2)
6758 maxxSUM2 = sumamplitudesubdet + sumamplitudesubdet0;
6759 if ((sumofchannels + sumofchannels0) > maxxOCCUP2)
6760 maxxOCCUP2 = sumofchannels + sumofchannels0;
6761 averSIGNALoccupancy_HE += sumofchannels;
6762 averSIGNALsumamplitude_HE += sumamplitudesubdet;
6763 averNOSIGNALoccupancy_HE += sumofchannels0;
6764 averNOSIGNALsumamplitude_HE += sumamplitudesubdet0;
6767 h_eventamplitude_HO->Fill((sumamplitudesubdet + sumamplitudesubdet0));
6768 h_eventoccupancy_HO->Fill((sumofchannels + sumofchannels0));
6769 if ((sumamplitudesubdet + sumamplitudesubdet0) > maxxSUM3)
6770 maxxSUM3 = sumamplitudesubdet + sumamplitudesubdet0;
6771 if ((sumofchannels + sumofchannels0) > maxxOCCUP3)
6772 maxxOCCUP3 = sumofchannels + sumofchannels0;
6773 averSIGNALoccupancy_HO += sumofchannels;
6774 averSIGNALsumamplitude_HO += sumamplitudesubdet;
6775 averNOSIGNALoccupancy_HO += sumofchannels0;
6776 averNOSIGNALsumamplitude_HO += sumamplitudesubdet0;
6779 h_eventamplitude_HF->Fill((sumamplitudesubdet + sumamplitudesubdet0));
6780 h_eventoccupancy_HF->Fill((sumofchannels + sumofchannels0));
6781 if ((sumamplitudesubdet + sumamplitudesubdet0) > maxxSUM4)
6782 maxxSUM4 = sumamplitudesubdet + sumamplitudesubdet0;
6783 if ((sumofchannels + sumofchannels0) > maxxOCCUP4)
6784 maxxOCCUP4 = sumofchannels + sumofchannels0;
6785 averSIGNALoccupancy_HF += sumofchannels;
6786 averSIGNALsumamplitude_HF += sumamplitudesubdet;
6787 averNOSIGNALoccupancy_HF += sumofchannels0;
6788 averNOSIGNALsumamplitude_HF += sumamplitudesubdet0;
6794 if (recordHistoes_ && studyRunDependenceHist_) {
6796 eeeeee = lscounterM1;
6797 if (flagtoaskrunsorls_ == 0)
6798 eeeeee = runcounter;
6804 for (
int k1 = 0; k1 <
ndepth; k1++) {
6806 int nbadchannels = 0;
6807 for (
int k2 = 0; k2 <
neta; k2++) {
6808 for (
int k3 = 0; k3 <
nphi; k3++) {
6809 if (badchannels[
k0][k1][k2][k3] != 0)
6817 h_nbadchannels_depth1_HB->Fill(
float(nbadchannels));
6818 h_runnbadchannels_depth1_HB->Fill(
float(eeeeee),
float(nbadchannels));
6819 if (nbadchannels > lsdep_cut1_peak_HBdepth1_)
6820 h_runnbadchannelsC_depth1_HB->Fill(
float(eeeeee),
float(nbadchannels));
6821 if (nbadchannels != 0)
6822 h_runbadrate_depth1_HB->Fill(
float(eeeeee), 1.);
6823 if (nbadchannels > lsdep_cut3_max_HBdepth1_)
6824 h_runbadrateC_depth1_HB->Fill(
float(eeeeee), 1.);
6825 h_bcnnbadchannels_depth1_HB->Fill(
float(bcn),
float(nbadchannels));
6826 h_runbadrate0_depth1_HB->Fill(
float(eeeeee), 1.);
6827 h_bcnbadrate0_depth1_HB->Fill(
float(bcn), 1.);
6830 h_nbadchannels_depth2_HB->Fill(
float(nbadchannels));
6831 h_runnbadchannels_depth2_HB->Fill(
float(eeeeee),
float(nbadchannels));
6832 if (nbadchannels > lsdep_cut1_peak_HBdepth2_)
6833 h_runnbadchannelsC_depth2_HB->Fill(
float(eeeeee),
float(nbadchannels));
6834 if (nbadchannels != 0)
6835 h_runbadrate_depth2_HB->Fill(
float(eeeeee), 1.);
6836 if (nbadchannels > lsdep_cut3_max_HBdepth2_)
6837 h_runbadrateC_depth2_HB->Fill(
float(eeeeee), 1.);
6838 h_bcnnbadchannels_depth2_HB->Fill(
float(bcn),
float(nbadchannels));
6839 h_runbadrate0_depth2_HB->Fill(
float(eeeeee), 1.);
6840 h_bcnbadrate0_depth2_HB->Fill(
float(bcn), 1.);
6846 h_nbadchannels_depth1_HE->Fill(
float(nbadchannels));
6847 h_runnbadchannels_depth1_HE->Fill(
float(eeeeee),
float(nbadchannels));
6848 if (nbadchannels > lsdep_cut1_peak_HEdepth1_)
6849 h_runnbadchannelsC_depth1_HE->Fill(
float(eeeeee),
float(nbadchannels));
6850 if (nbadchannels != 0)
6851 h_runbadrate_depth1_HE->Fill(
float(eeeeee), 1.);
6852 if (nbadchannels > lsdep_cut3_max_HEdepth1_)
6853 h_runbadrateC_depth1_HE->Fill(
float(eeeeee), 1.);
6854 h_bcnnbadchannels_depth1_HE->Fill(
float(bcn),
float(nbadchannels));
6855 h_runbadrate0_depth1_HE->Fill(
float(eeeeee), 1.);
6856 h_bcnbadrate0_depth1_HE->Fill(
float(bcn), 1.);
6859 h_nbadchannels_depth2_HE->Fill(
float(nbadchannels));
6860 h_runnbadchannels_depth2_HE->Fill(
float(eeeeee),
float(nbadchannels));
6861 if (nbadchannels > lsdep_cut1_peak_HEdepth2_)
6862 h_runnbadchannelsC_depth2_HE->Fill(
float(eeeeee),
float(nbadchannels));
6863 if (nbadchannels != 0)
6864 h_runbadrate_depth2_HE->Fill(
float(eeeeee), 1.);
6865 if (nbadchannels > lsdep_cut3_max_HEdepth2_)
6866 h_runbadrateC_depth2_HE->Fill(
float(eeeeee), 1.);
6867 h_bcnnbadchannels_depth2_HE->Fill(
float(bcn),
float(nbadchannels));
6868 h_runbadrate0_depth2_HE->Fill(
float(eeeeee), 1.);
6869 h_bcnbadrate0_depth2_HE->Fill(
float(bcn), 1.);
6872 h_nbadchannels_depth3_HE->Fill(
float(nbadchannels));
6873 h_runnbadchannels_depth3_HE->Fill(
float(eeeeee),
float(nbadchannels));
6874 if (nbadchannels > lsdep_cut1_peak_HEdepth3_)
6875 h_runnbadchannelsC_depth3_HE->Fill(
float(eeeeee),
float(nbadchannels));
6876 if (nbadchannels != 0)
6877 h_runbadrate_depth3_HE->Fill(
float(eeeeee), 1.);
6878 if (nbadchannels > lsdep_cut3_max_HEdepth3_)
6879 h_runbadrateC_depth3_HE->Fill(
float(eeeeee), 1.);
6880 h_bcnnbadchannels_depth3_HE->Fill(
float(bcn),
float(nbadchannels));
6881 h_runbadrate0_depth3_HE->Fill(
float(eeeeee), 1.);
6882 h_bcnbadrate0_depth3_HE->Fill(
float(bcn), 1.);
6888 h_nbadchannels_depth4_HO->Fill(
float(nbadchannels));
6889 h_runnbadchannels_depth4_HO->Fill(
float(eeeeee),
float(nbadchannels));
6890 if (nbadchannels > lsdep_cut1_peak_HOdepth4_)
6891 h_runnbadchannelsC_depth4_HO->Fill(
float(eeeeee),
float(nbadchannels));
6892 if (nbadchannels != 0)
6893 h_runbadrate_depth4_HO->Fill(
float(eeeeee), 1.);
6894 if (nbadchannels > lsdep_cut3_max_HOdepth4_)
6895 h_runbadrateC_depth4_HO->Fill(
float(eeeeee), 1.);
6896 h_bcnnbadchannels_depth4_HO->Fill(
float(bcn),
float(nbadchannels));
6897 h_runbadrate0_depth4_HO->Fill(
float(eeeeee), 1.);
6898 h_bcnbadrate0_depth4_HO->Fill(
float(bcn), 1.);
6904 h_nbadchannels_depth1_HF->Fill(
float(nbadchannels));
6905 h_runnbadchannels_depth1_HF->Fill(
float(eeeeee),
float(nbadchannels));
6906 if (nbadchannels > lsdep_cut1_peak_HFdepth1_)
6907 h_runnbadchannelsC_depth1_HF->Fill(
float(eeeeee),
float(nbadchannels));
6908 if (nbadchannels != 0)
6909 h_runbadrate_depth1_HF->Fill(
float(eeeeee), 1.);
6910 if (nbadchannels > lsdep_cut3_max_HFdepth1_)
6911 h_runbadrateC_depth1_HF->Fill(
float(eeeeee), 1.);
6912 h_bcnnbadchannels_depth1_HF->Fill(
float(bcn),
float(nbadchannels));
6913 h_runbadrate0_depth1_HF->Fill(
float(eeeeee), 1.);
6914 h_bcnbadrate0_depth1_HF->Fill(
float(bcn), 1.);
6917 h_nbadchannels_depth2_HF->Fill(
float(nbadchannels));
6918 h_runnbadchannels_depth2_HF->Fill(
float(eeeeee),
float(nbadchannels));
6919 if (nbadchannels > lsdep_cut1_peak_HFdepth2_)
6920 h_runnbadchannelsC_depth2_HF->Fill(
float(eeeeee),
float(nbadchannels));
6921 if (nbadchannels != 0)
6922 h_runbadrate_depth2_HF->Fill(
float(eeeeee), 1.);
6923 if (nbadchannels > lsdep_cut3_max_HFdepth2_)
6924 h_runbadrateC_depth2_HF->Fill(
float(eeeeee), 1.);
6925 h_bcnnbadchannels_depth2_HF->Fill(
float(bcn),
float(nbadchannels));
6926 h_runbadrate0_depth2_HF->Fill(
float(eeeeee), 1.);
6927 h_bcnbadrate0_depth2_HF->Fill(
float(bcn), 1.);
6941 bool gotCALIBDigis =
true;
6943 gotCALIBDigis =
false;
6945 if (!(
calib.isValid())) {
6946 gotCALIBDigis =
false;
6948 if (!gotCALIBDigis) {
6951 int cal_det = digi->id().hcalSubdet();
6952 int cal_phi = digi->id().iphi();
6953 int cal_eta = digi->id().ieta();
6954 int cal_cbox = digi->id().cboxChannel();
6957 if (recordHistoes_ && studyCalibCellsHist_) {
6958 if (cal_det > 0 && cal_det < 5 && cal_cbox == 0) {
6959 int iphi = cal_phi - 1;
6964 double max_signal = -100.;
6965 int ts_with_max_signal = -100;
6970 for (
int i = 0;
i < nTS;
i++) {
6971 double ampldefault =
adc2fC[digi->sample(
i).adc() & 0xff];
6972 if (max_signal < ampldefault) {
6973 max_signal = ampldefault;
6974 ts_with_max_signal =
i;
6977 calib3[cal_det - 1][
ieta + 41][
iphi] += ampldefault;
6978 calib0[cal_det - 1][
ieta + 41][
iphi] += ampldefault;
6979 timew += (
i + 1) * ampldefault;
6984 double aveamplitude = -100.;
6987 double aveamplitude1 = aveamplitude - 1;
6988 caliba[cal_det - 1][
ieta + 41][
iphi] = aveamplitude1;
6991 for (
int ii = 0;
ii < nTS;
ii++) {
6992 double ampldefault =
adc2fC[digi->sample(
ii).adc() & 0xff];
6993 double aaaaaa = (
ii + 1) - aveamplitude;
6994 double aaaaaa2 = aaaaaa * aaaaaa;
6995 rmsamp += (aaaaaa2 * ampldefault);
6997 double rmsamplitude = -100.;
7000 calibw[cal_det - 1][
ieta + 41][
iphi] = rmsamplitude;
7002 calibt[cal_det - 1][
ieta + 41][
iphi] = ts_with_max_signal;
7005 if (ts_with_max_signal > -1 && ts_with_max_signal < nTS)
7006 calib2[cal_det - 1][
ieta + 41][
iphi] =
adc2fC[digi->sample(ts_with_max_signal).adc() & 0xff];
7007 if (ts_with_max_signal + 1 > -1 && ts_with_max_signal + 1 < nTS)
7008 calib2[cal_det - 1][
ieta + 41][
iphi] +=
adc2fC[digi->sample(ts_with_max_signal + 1).adc() & 0xff];
7009 if (ts_with_max_signal + 2 > -1 && ts_with_max_signal + 2 < nTS)
7010 calib2[cal_det - 1][
ieta + 41][
iphi] +=
adc2fC[digi->sample(ts_with_max_signal + 2).adc() & 0xff];
7011 if (ts_with_max_signal - 1 > -1 && ts_with_max_signal - 1 < nTS)
7012 calib2[cal_det - 1][
ieta + 41][
iphi] +=
adc2fC[digi->sample(ts_with_max_signal - 1).adc() & 0xff];
7013 if (ts_with_max_signal - 2 > -1 && ts_with_max_signal - 2 < nTS)
7014 calib2[cal_det - 1][
ieta + 41][
iphi] +=
adc2fC[digi->sample(ts_with_max_signal - 2).adc() & 0xff];
7016 bool anycapid =
true;
7019 int error1 = 0, error2 = 0, error3 = 0;
7020 int lastcapid = 0, capid = 0;
7021 for (
int ii = 0;
ii < (*digi).size();
ii++) {
7022 capid = (*digi)[
ii].capid();
7023 bool er = (*digi)[
ii].er();
7024 bool dv = (*digi)[
ii].dv();
7025 if (
ii != 0 && ((lastcapid + 1) % 4) != capid)
7039 if (error1 != 0 || error2 != 0 || error3 != 0)
7040 calibcapiderror[cal_det - 1][
ieta + 41][
iphi] = 100;
7046 if (recordNtuples_ && nevent50 < maxNeventsInNtuple_) {
7052 if (recordHistoes_ && studyCalibCellsHist_) {
7054 for (
int k1 = 0; k1 <
nsub; k1++) {
7055 for (
int k2 = 0; k2 <
neta; k2++) {
7056 for (
int k3 = 0; k3 <
nphi; k3++) {
7057 int k2plot = k2 - 41;
7058 if (flagcpuoptimization_ == 0) {
7061 if (signal[k1][k2][k3] > 0.) {
7063 h_FullSignal3D_HB->Fill(
double(k2plot),
double(k3), signal[k1][k2][k3]);
7064 h_FullSignal3D0_HB->Fill(
double(k2plot),
double(k3), 1.);
7067 h_FullSignal3D_HE->Fill(
double(k2plot),
double(k3), signal[k1][k2][k3]);
7068 h_FullSignal3D0_HE->Fill(
double(k2plot),
double(k3), 1.);
7071 h_FullSignal3D_HO->Fill(
double(k2plot),
double(k3), signal[k1][k2][k3]);
7072 h_FullSignal3D0_HO->Fill(
double(k2plot),
double(k3), 1.);
7075 h_FullSignal3D_HF->Fill(
double(k2plot),
double(k3), signal[k1][k2][k3]);
7076 h_FullSignal3D0_HF->Fill(
double(k2plot),
double(k3), 1.);
7087 if (k20 > 0 || k20 == 0)
7092 int kk2 = 0, kk3 = 0;
7093 if (k1 == 0 || k1 == 1) {
7098 if (k30 == 71 || k30 ==
nphi || k30 == 1 || k30 == 2)
7101 kk3 = ((k30 - 3) / 4) * 4 + 3;
7102 }
else if (k1 == 2) {
7103 if (
abs(k20) <= 4) {
7105 if (k30 == 71 || k30 ==
nphi || k30 == 1 || k30 == 2 || k30 == 3 || k30 == 4)
7108 kk3 = ((k30 - 5) / 6) * 6 + 5;
7110 if (
abs(k20) > 4 &&
abs(k20) <= 10)
7112 if (
abs(k20) > 10 &&
abs(k20) <= 15)
7116 if (k30 == 71 || k30 ==
nphi || (k30 >= 1 && k30 <= 10))
7119 kk3 = ((k30 - 11) / 12) * 12 + 11;
7121 }
else if (k1 == 3) {
7126 if (k30 >= 1 && k30 <= 18)
7128 if (k30 >= 19 && k30 <= 36)
7130 if (k30 >= 37 && k30 <= 54)
7132 if (k30 >= 55 && k30 <=
nphi)
7136 int kkk2 = kk2 + 41;
7142 if (flagcpuoptimization_ == 0) {
7143 double GetRMSOverNormalizedSignal = -1.;
7144 if (signal[k1][k2][k3] > 0. && calib0[k1][kkk2][kkk3] > 0.) {
7145 GetRMSOverNormalizedSignal = signal[k1][k2][k3] / calib0[k1][kkk2][kkk3];
7147 h_mapGetRMSOverNormalizedSignal_HB->Fill(
double(k2plot),
double(k3), GetRMSOverNormalizedSignal);
7148 h_mapGetRMSOverNormalizedSignal0_HB->Fill(
double(k2plot),
double(k3), 1.);
7151 h_mapGetRMSOverNormalizedSignal_HE->Fill(
double(k2plot),
double(k3), GetRMSOverNormalizedSignal);
7152 h_mapGetRMSOverNormalizedSignal0_HE->Fill(
double(k2plot),
double(k3), 1.);
7155 h_mapGetRMSOverNormalizedSignal_HO->Fill(
double(k2plot),
double(k3), GetRMSOverNormalizedSignal);
7156 h_mapGetRMSOverNormalizedSignal0_HO->Fill(
double(k2plot),
double(k3), 1.);
7159 h_mapGetRMSOverNormalizedSignal_HF->Fill(
double(k2plot),
double(k3), GetRMSOverNormalizedSignal);
7160 h_mapGetRMSOverNormalizedSignal0_HF->Fill(
double(k2plot),
double(k3), 1.);
7165 if (signal[k1][k2][k3] > 0.) {
7168 if (calib0[k1][kkk2][kkk3] > 0.)
7169 adc = calib0[k1][kkk2][kkk3];
7172 if (calib0[k1][kkk2][kkk3] > 0.)
7173 ratio = calib2[k1][kkk2][kkk3] / calib0[k1][kkk2][kkk3];
7175 float calibtsmax = calibt[k1][kkk2][kkk3];
7177 float calibtsmean = caliba[k1][kkk2][kkk3];
7179 float calibwidth = calibw[k1][kkk2][kkk3];
7181 float calibcap = -100.;
7182 calibcap = calibcapiderror[k1][kkk2][kkk3];
7187 h_ADCCalib_HB->Fill(
adc, 1.);
7188 h_ADCCalib1_HB->Fill(
adc, 1.);
7189 if (adc < calibrADCHBMin_ || adc > calibrADCHBMax_)
7190 h_mapADCCalib047_HB->Fill(
double(k2plot),
double(k3), 1.);
7191 h_mapADCCalib_HB->Fill(
double(k2plot),
double(k3),
adc);
7193 h_RatioCalib_HB->Fill(
ratio, 1.);
7194 if (ratio < calibrRatioHBMin_ || ratio > calibrRatioHBMax_)
7195 h_mapRatioCalib047_HB->Fill(
double(k2plot),
double(k3), 1.);
7196 h_mapRatioCalib_HB->Fill(
double(k2plot),
double(k3),
ratio);
7198 if (calibtsmax > -0.5) {
7199 h_TSmaxCalib_HB->Fill(calibtsmax, 1.);
7200 if (calibtsmax < calibrTSmaxHBMin_ || calibtsmax > calibrTSmaxHBMax_)
7201 h_mapTSmaxCalib047_HB->Fill(
double(k2plot),
double(k3), 1.);
7202 h_mapTSmaxCalib_HB->Fill(
double(k2plot),
double(k3), calibtsmax);
7205 if (calibtsmean > -0.5) {
7206 h_TSmeanCalib_HB->Fill(calibtsmean, 1.);
7207 if (calibtsmean < calibrTSmeanHBMin_ || calibtsmean > calibrTSmeanHBMax_)
7208 h_mapTSmeanCalib047_HB->Fill(
double(k2plot),
double(k3), 1.);
7209 h_mapTSmeanCalib_HB->Fill(
double(k2plot),
double(k3), calibtsmean);
7212 if (calibwidth > -0.5) {
7213 h_WidthCalib_HB->Fill(calibwidth, 1.);
7214 if (calibwidth < calibrWidthHBMin_ || calibwidth > calibrWidthHBMax_)
7215 h_mapWidthCalib047_HB->Fill(
double(k2plot),
double(k3), 1.);
7216 h_mapWidthCalib_HB->Fill(
double(k2plot),
double(k3), calibwidth);
7220 h_mapCapCalib047_HB->Fill(
double(k2plot),
double(k3), 1.);
7222 h_map_HB->Fill(
double(k2plot),
double(k3), 1.);
7227 h_ADCCalib_HE->Fill(
adc, 1.);
7228 h_ADCCalib1_HE->Fill(
adc, 1.);
7229 if (adc < calibrADCHEMin_ || adc > calibrADCHEMax_)
7230 h_mapADCCalib047_HE->Fill(
double(k2plot),
double(k3), 1.);
7231 h_mapADCCalib_HE->Fill(
double(k2plot),
double(k3),
adc);
7233 h_RatioCalib_HE->Fill(
ratio, 1.);
7234 if (ratio < calibrRatioHEMin_ || ratio > calibrRatioHEMax_)
7235 h_mapRatioCalib047_HE->Fill(
double(k2plot),
double(k3), 1.);
7236 h_mapRatioCalib_HE->Fill(
double(k2plot),
double(k3),
ratio);
7238 if (calibtsmax > -0.5) {
7239 h_TSmaxCalib_HE->Fill(calibtsmax, 1.);
7240 if (calibtsmax < calibrTSmaxHEMin_ || calibtsmax > calibrTSmaxHEMax_)
7241 h_mapTSmaxCalib047_HE->Fill(
double(k2plot),
double(k3), 1.);
7242 h_mapTSmaxCalib_HE->Fill(
double(k2plot),
double(k3), calibtsmax);
7245 if (calibtsmean > -0.5) {
7246 h_TSmeanCalib_HE->Fill(calibtsmean, 1.);
7247 if (calibtsmean < calibrTSmeanHEMin_ || calibtsmean > calibrTSmeanHEMax_)
7248 h_mapTSmeanCalib047_HE->Fill(
double(k2plot),
double(k3), 1.);
7249 h_mapTSmeanCalib_HE->Fill(
double(k2plot),
double(k3), calibtsmean);
7252 if (calibwidth > -0.5) {
7253 h_WidthCalib_HE->Fill(calibwidth, 1.);
7254 if (calibwidth < calibrWidthHEMin_ || calibwidth > calibrWidthHEMax_)
7255 h_mapWidthCalib047_HE->Fill(
double(k2plot),
double(k3), 1.);
7256 h_mapWidthCalib_HE->Fill(
double(k2plot),
double(k3), calibwidth);
7260 h_mapCapCalib047_HE->Fill(
double(k2plot),
double(k3), 1.);
7262 h_map_HE->Fill(
double(k2plot),
double(k3), 1.);
7267 h_ADCCalib_HO->Fill(
adc, 1.);
7268 h_ADCCalib1_HO->Fill(
adc, 1.);
7269 if (adc < calibrADCHOMin_ || adc > calibrADCHOMax_)
7270 h_mapADCCalib047_HO->Fill(
double(k2plot),
double(k3), 1.);
7271 h_mapADCCalib_HO->Fill(
double(k2plot),
double(k3),
adc);
7273 h_RatioCalib_HO->Fill(
ratio, 1.);
7274 if (ratio < calibrRatioHOMin_ || ratio > calibrRatioHOMax_)
7275 h_mapRatioCalib047_HO->Fill(
double(k2plot),
double(k3), 1.);
7276 h_mapRatioCalib_HO->Fill(
double(k2plot),
double(k3),
ratio);
7278 if (calibtsmax > -0.5) {
7279 h_TSmaxCalib_HO->Fill(calibtsmax, 1.);
7280 if (calibtsmax < calibrTSmaxHOMin_ || calibtsmax > calibrTSmaxHOMax_)
7281 h_mapTSmaxCalib047_HO->Fill(
double(k2plot),
double(k3), 1.);
7282 h_mapTSmaxCalib_HO->Fill(
double(k2plot),
double(k3), calibtsmax);
7285 if (calibtsmean > -0.5) {
7286 h_TSmeanCalib_HO->Fill(calibtsmean, 1.);
7287 if (calibtsmean < calibrTSmeanHOMin_ || calibtsmean > calibrTSmeanHOMax_)
7288 h_mapTSmeanCalib047_HO->Fill(
double(k2plot),
double(k3), 1.);
7289 h_mapTSmeanCalib_HO->Fill(
double(k2plot),
double(k3), calibtsmean);
7292 if (calibwidth > -0.5) {
7293 h_WidthCalib_HO->Fill(calibwidth, 1.);
7294 if (calibwidth < calibrWidthHOMin_ || calibwidth > calibrWidthHOMax_)
7295 h_mapWidthCalib047_HO->Fill(
double(k2plot),
double(k3), 1.);
7296 h_mapWidthCalib_HO->Fill(
double(k2plot),
double(k3), calibwidth);
7300 h_mapCapCalib047_HO->Fill(
double(k2plot),
double(k3), 1.);
7302 h_map_HO->Fill(
double(k2plot),
double(k3), 1.);
7307 h_ADCCalib_HF->Fill(
adc, 1.);
7308 h_ADCCalib1_HF->Fill(
adc, 1.);
7309 if (adc < calibrADCHFMin_ || adc > calibrADCHFMax_)
7310 h_mapADCCalib047_HF->Fill(
double(k2plot),
double(k3), 1.);
7311 h_mapADCCalib_HF->Fill(
double(k2plot),
double(k3),
adc);
7313 h_RatioCalib_HF->Fill(
ratio, 1.);
7314 if (ratio < calibrRatioHFMin_ || ratio > calibrRatioHFMax_)
7315 h_mapRatioCalib047_HF->Fill(
double(k2plot),
double(k3), 1.);
7316 h_mapRatioCalib_HF->Fill(
double(k2plot),
double(k3),
ratio);
7318 if (calibtsmax > -0.5) {
7319 h_TSmaxCalib_HF->Fill(calibtsmax, 1.);
7320 if (calibtsmax < calibrTSmaxHFMin_ || calibtsmax > calibrTSmaxHFMax_)
7321 h_mapTSmaxCalib047_HF->Fill(
double(k2plot),
double(k3), 1.);
7322 h_mapTSmaxCalib_HF->Fill(
double(k2plot),
double(k3), calibtsmax);
7325 if (calibtsmean > -0.5) {
7326 h_TSmeanCalib_HF->Fill(calibtsmean, 1.);
7327 if (calibtsmean < calibrTSmeanHFMin_ || calibtsmean > calibrTSmeanHFMax_)
7328 h_mapTSmeanCalib047_HF->Fill(
double(k2plot),
double(k3), 1.);
7329 h_mapTSmeanCalib_HF->Fill(
double(k2plot),
double(k3), calibtsmean);
7332 if (calibwidth > -0.5) {
7333 h_WidthCalib_HF->Fill(calibwidth, 1.);
7334 if (calibwidth < calibrWidthHFMin_ || calibwidth > calibrWidthHFMax_)
7335 h_mapWidthCalib047_HF->Fill(
double(k2plot),
double(k3), 1.);
7336 h_mapWidthCalib_HF->Fill(
double(k2plot),
double(k3), calibwidth);
7340 h_mapCapCalib047_HF->Fill(
double(k2plot),
double(k3), 1.);
7342 h_map_HF->Fill(
double(k2plot),
double(k3), 1.);
7356 if (recordNtuples_ && nevent50 < maxNeventsInNtuple_)
7361 if (++local_event % 100 == 0) {
7363 cout <<
"run " <<
Run <<
" processing events " << local_event <<
" ok, "
7364 <<
", lumi " <<
lumi <<
", numOfLaserEv " << numOfLaserEv << endl;
7374 cout <<
"======================== beignJob START +++++++++++++++++++++++++++" << endl;
7375 hOutputFile =
new TFile(fOutputFileName.c_str(),
"RECREATE");
7379 nnnnnnhbheqie11 = 0;
7396 if (recordHistoes_) {
7399 h_errorGeneral =
new TH1F(
"h_errorGeneral",
" ", 5, 0., 5.);
7400 h_error1 =
new TH1F(
"h_error1",
" ", 5, 0., 5.);
7401 h_error2 =
new TH1F(
"h_error2",
" ", 5, 0., 5.);
7402 h_error3 =
new TH1F(
"h_error3",
" ", 5, 0., 5.);
7403 h_amplError =
new TH1F(
"h_amplError",
" ", 100, -2., 98.);
7404 h_amplFine =
new TH1F(
"h_amplFine",
" ", 100, -2., 98.);
7406 h_errorGeneral_HB =
new TH1F(
"h_errorGeneral_HB",
" ", 5, 0., 5.);
7407 h_error1_HB =
new TH1F(
"h_error1_HB",
" ", 5, 0., 5.);
7408 h_error2_HB =
new TH1F(
"h_error2_HB",
" ", 5, 0., 5.);
7409 h_error3_HB =
new TH1F(
"h_error3_HB",
" ", 5, 0., 5.);
7410 h_error4_HB =
new TH1F(
"h_error4_HB",
" ", 5, 0., 5.);
7411 h_error5_HB =
new TH1F(
"h_error5_HB",
" ", 5, 0., 5.);
7412 h_error6_HB =
new TH1F(
"h_error6_HB",
" ", 5, 0., 5.);
7413 h_error7_HB =
new TH1F(
"h_error7_HB",
" ", 5, 0., 5.);
7414 h_amplError_HB =
new TH1F(
"h_amplError_HB",
" ", 100, -2., 98.);
7415 h_amplFine_HB =
new TH1F(
"h_amplFine_HB",
" ", 100, -2., 98.);
7416 h_mapDepth1Error_HB =
new TH2F(
"h_mapDepth1Error_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7417 h_mapDepth2Error_HB =
new TH2F(
"h_mapDepth2Error_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7418 h_mapDepth3Error_HB =
new TH2F(
"h_mapDepth3Error_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7419 h_mapDepth4Error_HB =
new TH2F(
"h_mapDepth4Error_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7420 h_fiber0_HB =
new TH1F(
"h_fiber0_HB",
" ", 10, 0., 10.);
7421 h_fiber1_HB =
new TH1F(
"h_fiber1_HB",
" ", 10, 0., 10.);
7422 h_fiber2_HB =
new TH1F(
"h_fiber2_HB",
" ", 40, 0., 40.);
7423 h_repetedcapid_HB =
new TH1F(
"h_repetedcapid_HB",
" ", 5, 0., 5.);
7425 h_errorGeneral_HE =
new TH1F(
"h_errorGeneral_HE",
" ", 5, 0., 5.);
7426 h_error1_HE =
new TH1F(
"h_error1_HE",
" ", 5, 0., 5.);
7427 h_error2_HE =
new TH1F(
"h_error2_HE",
" ", 5, 0., 5.);
7428 h_error3_HE =
new TH1F(
"h_error3_HE",
" ", 5, 0., 5.);
7429 h_error4_HE =
new TH1F(
"h_error4_HE",
" ", 5, 0., 5.);
7430 h_error5_HE =
new TH1F(
"h_error5_HE",
" ", 5, 0., 5.);
7431 h_error6_HE =
new TH1F(
"h_error6_HE",
" ", 5, 0., 5.);
7432 h_error7_HE =
new TH1F(
"h_error7_HE",
" ", 5, 0., 5.);
7433 h_amplError_HE =
new TH1F(
"h_amplError_HE",
" ", 100, -2., 98.);
7434 h_amplFine_HE =
new TH1F(
"h_amplFine_HE",
" ", 100, -2., 98.);
7435 h_mapDepth1Error_HE =
new TH2F(
"h_mapDepth1Error_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7436 h_mapDepth2Error_HE =
new TH2F(
"h_mapDepth2Error_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7437 h_mapDepth3Error_HE =
new TH2F(
"h_mapDepth3Error_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7438 h_mapDepth4Error_HE =
new TH2F(
"h_mapDepth4Error_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7439 h_mapDepth5Error_HE =
new TH2F(
"h_mapDepth5Error_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7440 h_mapDepth6Error_HE =
new TH2F(
"h_mapDepth6Error_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7441 h_mapDepth7Error_HE =
new TH2F(
"h_mapDepth7Error_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7442 h_fiber0_HE =
new TH1F(
"h_fiber0_HE",
" ", 10, 0., 10.);
7443 h_fiber1_HE =
new TH1F(
"h_fiber1_HE",
" ", 10, 0., 10.);
7444 h_fiber2_HE =
new TH1F(
"h_fiber2_HE",
" ", 40, 0., 40.);
7445 h_repetedcapid_HE =
new TH1F(
"h_repetedcapid_HE",
" ", 5, 0., 5.);
7447 h_errorGeneral_HF =
new TH1F(
"h_errorGeneral_HF",
" ", 5, 0., 5.);
7448 h_error1_HF =
new TH1F(
"h_error1_HF",
" ", 5, 0., 5.);
7449 h_error2_HF =
new TH1F(
"h_error2_HF",
" ", 5, 0., 5.);
7450 h_error3_HF =
new TH1F(
"h_error3_HF",
" ", 5, 0., 5.);
7451 h_error4_HF =
new TH1F(
"h_error4_HF",
" ", 5, 0., 5.);
7452 h_error5_HF =
new TH1F(
"h_error5_HF",
" ", 5, 0., 5.);
7453 h_error6_HF =
new TH1F(
"h_error6_HF",
" ", 5, 0., 5.);
7454 h_error7_HF =
new TH1F(
"h_error7_HF",
" ", 5, 0., 5.);
7455 h_amplError_HF =
new TH1F(
"h_amplError_HF",
" ", 100, -2., 98.);
7456 h_amplFine_HF =
new TH1F(
"h_amplFine_HF",
" ", 100, -2., 98.);
7457 h_mapDepth1Error_HF =
new TH2F(
"h_mapDepth1Error_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7458 h_mapDepth2Error_HF =
new TH2F(
"h_mapDepth2Error_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7459 h_mapDepth3Error_HF =
new TH2F(
"h_mapDepth3Error_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7460 h_mapDepth4Error_HF =
new TH2F(
"h_mapDepth4Error_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7461 h_fiber0_HF =
new TH1F(
"h_fiber0_HF",
" ", 10, 0., 10.);
7462 h_fiber1_HF =
new TH1F(
"h_fiber1_HF",
" ", 10, 0., 10.);
7463 h_fiber2_HF =
new TH1F(
"h_fiber2_HF",
" ", 40, 0., 40.);
7464 h_repetedcapid_HF =
new TH1F(
"h_repetedcapid_HF",
" ", 5, 0., 5.);
7466 h_errorGeneral_HO =
new TH1F(
"h_errorGeneral_HO",
" ", 5, 0., 5.);
7467 h_error1_HO =
new TH1F(
"h_error1_HO",
" ", 5, 0., 5.);
7468 h_error2_HO =
new TH1F(
"h_error2_HO",
" ", 5, 0., 5.);
7469 h_error3_HO =
new TH1F(
"h_error3_HO",
" ", 5, 0., 5.);
7470 h_error4_HO =
new TH1F(
"h_error4_HO",
" ", 5, 0., 5.);
7471 h_error5_HO =
new TH1F(
"h_error5_HO",
" ", 5, 0., 5.);
7472 h_error6_HO =
new TH1F(
"h_error6_HO",
" ", 5, 0., 5.);
7473 h_error7_HO =
new TH1F(
"h_error7_HO",
" ", 5, 0., 5.);
7474 h_amplError_HO =
new TH1F(
"h_amplError_HO",
" ", 100, -2., 98.);
7475 h_amplFine_HO =
new TH1F(
"h_amplFine_HO",
" ", 100, -2., 98.);
7476 h_mapDepth4Error_HO =
new TH2F(
"h_mapDepth4Error_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7477 h_fiber0_HO =
new TH1F(
"h_fiber0_HO",
" ", 10, 0., 10.);
7478 h_fiber1_HO =
new TH1F(
"h_fiber1_HO",
" ", 10, 0., 10.);
7479 h_fiber2_HO =
new TH1F(
"h_fiber2_HO",
" ", 40, 0., 40.);
7480 h_repetedcapid_HO =
new TH1F(
"h_repetedcapid_HO",
" ", 5, 0., 5.);
7484 h_numberofhitsHBtest =
new TH1F(
"h_numberofhitsHBtest",
" ", 100, 0., 100.);
7485 h_AmplitudeHBtest =
new TH1F(
"h_AmplitudeHBtest",
" ", 100, 0., 10000.);
7486 h_AmplitudeHBtest1 =
new TH1F(
"h_AmplitudeHBtest1",
" ", 100, 0., 1000000.);
7487 h_AmplitudeHBtest6 =
new TH1F(
"h_AmplitudeHBtest6",
" ", 100, 0., 2000000.);
7488 h_totalAmplitudeHB =
new TH1F(
"h_totalAmplitudeHB",
" ", 100, 0., 3000000.);
7489 h_totalAmplitudeHBperEvent =
new TH1F(
"h_totalAmplitudeHBperEvent",
" ", 1000, 1., 1001.);
7491 h_ADCAmpl345Zoom_HB =
new TH1F(
"h_ADCAmpl345Zoom_HB",
" ", 100, 0., 400.);
7492 h_ADCAmpl345Zoom1_HB =
new TH1F(
"h_ADCAmpl345Zoom1_HB",
" ", 100, 0., 100.);
7493 h_ADCAmpl345_HB =
new TH1F(
"h_ADCAmpl345_HB",
" ", 100, 10., 3000.);
7495 h_AmplitudeHBrest =
new TH1F(
"h_AmplitudeHBrest",
" ", 100, 0., 10000.);
7496 h_AmplitudeHBrest1 =
new TH1F(
"h_AmplitudeHBrest1",
" ", 100, 0., 1000000.);
7497 h_AmplitudeHBrest6 =
new TH1F(
"h_AmplitudeHBrest6",
" ", 100, 0., 2000000.);
7499 h_ADCAmpl345_HBCapIdError =
new TH1F(
"h_ADCAmpl345_HBCapIdError",
" ", 100, 10., 3000.);
7500 h_ADCAmpl345_HBCapIdNoError =
new TH1F(
"h_ADCAmpl345_HBCapIdNoError",
" ", 100, 10., 3000.);
7501 h_ADCAmpl_HBCapIdError =
new TH1F(
"h_ADCAmpl_HBCapIdError",
" ", 100, 10., 3000.);
7502 h_ADCAmpl_HBCapIdNoError =
new TH1F(
"h_ADCAmpl_HBCapIdNoError",
" ", 100, 10., 3000.);
7504 h_ADCAmplZoom_HB =
new TH1F(
"h_ADCAmplZoom_HB",
" ", 100, 0., 400.);
7505 h_ADCAmplZoom1_HB =
new TH1F(
"h_ADCAmplZoom1_HB",
" ", 100, -20., 80.);
7506 h_ADCAmpl_HB =
new TH1F(
"h_ADCAmpl_HB",
" ", 100, 10., 5000.);
7507 h_mapDepth1ADCAmpl225_HB =
new TH2F(
"h_mapDepth1ADCAmpl225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7508 h_mapDepth2ADCAmpl225_HB =
new TH2F(
"h_mapDepth2ADCAmpl225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7509 h_mapDepth3ADCAmpl225_HB =
new TH2F(
"h_mapDepth3ADCAmpl225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7510 h_mapDepth4ADCAmpl225_HB =
new TH2F(
"h_mapDepth4ADCAmpl225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7511 h_mapDepth1ADCAmpl225Copy_HB =
new TH2F(
"h_mapDepth1ADCAmpl225Copy_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7512 h_mapDepth2ADCAmpl225Copy_HB =
new TH2F(
"h_mapDepth2ADCAmpl225Copy_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7513 h_mapDepth3ADCAmpl225Copy_HB =
new TH2F(
"h_mapDepth3ADCAmpl225Copy_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7514 h_mapDepth4ADCAmpl225Copy_HB =
new TH2F(
"h_mapDepth4ADCAmpl225Copy_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7515 h_mapDepth1ADCAmpl_HB =
new TH2F(
"h_mapDepth1ADCAmpl_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7516 h_mapDepth2ADCAmpl_HB =
new TH2F(
"h_mapDepth2ADCAmpl_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7517 h_mapDepth3ADCAmpl_HB =
new TH2F(
"h_mapDepth3ADCAmpl_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7518 h_mapDepth4ADCAmpl_HB =
new TH2F(
"h_mapDepth4ADCAmpl_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7519 h_TSmeanA_HB =
new TH1F(
"h_TSmeanA_HB",
" ", 100, -1., 11.);
7520 h_mapDepth1TSmeanA225_HB =
new TH2F(
"h_mapDepth1TSmeanA225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7521 h_mapDepth2TSmeanA225_HB =
new TH2F(
"h_mapDepth2TSmeanA225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7522 h_mapDepth3TSmeanA225_HB =
new TH2F(
"h_mapDepth3TSmeanA225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7523 h_mapDepth4TSmeanA225_HB =
new TH2F(
"h_mapDepth4TSmeanA225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7524 h_mapDepth1TSmeanA_HB =
new TH2F(
"h_mapDepth1TSmeanA_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7525 h_mapDepth2TSmeanA_HB =
new TH2F(
"h_mapDepth2TSmeanA_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7526 h_mapDepth3TSmeanA_HB =
new TH2F(
"h_mapDepth3TSmeanA_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7527 h_mapDepth4TSmeanA_HB =
new TH2F(
"h_mapDepth4TSmeanA_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7528 h_TSmaxA_HB =
new TH1F(
"h_TSmaxA_HB",
" ", 100, -1., 11.);
7529 h_mapDepth1TSmaxA225_HB =
new TH2F(
"h_mapDepth1TSmaxA225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7530 h_mapDepth2TSmaxA225_HB =
new TH2F(
"h_mapDepth2TSmaxA225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7531 h_mapDepth3TSmaxA225_HB =
new TH2F(
"h_mapDepth3TSmaxA225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7532 h_mapDepth4TSmaxA225_HB =
new TH2F(
"h_mapDepth4TSmaxA225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7533 h_mapDepth1TSmaxA_HB =
new TH2F(
"h_mapDepth1TSmaxA_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7534 h_mapDepth2TSmaxA_HB =
new TH2F(
"h_mapDepth2TSmaxA_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7535 h_mapDepth3TSmaxA_HB =
new TH2F(
"h_mapDepth3TSmaxA_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7536 h_mapDepth4TSmaxA_HB =
new TH2F(
"h_mapDepth4TSmaxA_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7538 h_Amplitude_HB =
new TH1F(
"h_Amplitude_HB",
" ", 100, 0., 5.);
7539 h_mapDepth1Amplitude225_HB =
new TH2F(
"h_mapDepth1Amplitude225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7540 h_mapDepth2Amplitude225_HB =
new TH2F(
"h_mapDepth2Amplitude225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7541 h_mapDepth3Amplitude225_HB =
new TH2F(
"h_mapDepth3Amplitude225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7542 h_mapDepth4Amplitude225_HB =
new TH2F(
"h_mapDepth4Amplitude225_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7543 h_mapDepth1Amplitude_HB =
new TH2F(
"h_mapDepth1Amplitude_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7544 h_mapDepth2Amplitude_HB =
new TH2F(
"h_mapDepth2Amplitude_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7545 h_mapDepth3Amplitude_HB =
new TH2F(
"h_mapDepth3Amplitude_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7546 h_mapDepth4Amplitude_HB =
new TH2F(
"h_mapDepth4Amplitude_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7548 h_Ampl_HB =
new TH1F(
"h_Ampl_HB",
" ", 100, 0., 1.1);
7549 h_mapDepth1Ampl047_HB =
new TH2F(
"h_mapDepth1Ampl047_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7550 h_mapDepth2Ampl047_HB =
new TH2F(
"h_mapDepth2Ampl047_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7551 h_mapDepth3Ampl047_HB =
new TH2F(
"h_mapDepth3Ampl047_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7552 h_mapDepth4Ampl047_HB =
new TH2F(
"h_mapDepth4Ampl047_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7553 h_mapDepth1Ampl_HB =
new TH2F(
"h_mapDepth1Ampl_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7554 h_mapDepth2Ampl_HB =
new TH2F(
"h_mapDepth2Ampl_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7555 h_mapDepth3Ampl_HB =
new TH2F(
"h_mapDepth3Ampl_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7556 h_mapDepth4Ampl_HB =
new TH2F(
"h_mapDepth4Ampl_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7557 h_mapDepth1AmplE34_HB =
new TH2F(
"h_mapDepth1AmplE34_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7558 h_mapDepth2AmplE34_HB =
new TH2F(
"h_mapDepth2AmplE34_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7559 h_mapDepth3AmplE34_HB =
new TH2F(
"h_mapDepth3AmplE34_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7560 h_mapDepth4AmplE34_HB =
new TH2F(
"h_mapDepth4AmplE34_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7561 h_mapDepth1_HB =
new TH2F(
"h_mapDepth1_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7562 h_mapDepth2_HB =
new TH2F(
"h_mapDepth2_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7563 h_mapDepth3_HB =
new TH2F(
"h_mapDepth3_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7564 h_mapDepth4_HB =
new TH2F(
"h_mapDepth4_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7570 h_numberofhitsHEtest =
new TH1F(
"h_numberofhitsHEtest",
" ", 100, 0., 10000.);
7571 h_AmplitudeHEtest =
new TH1F(
"h_AmplitudeHEtest",
" ", 100, 0., 1000000.);
7572 h_AmplitudeHEtest1 =
new TH1F(
"h_AmplitudeHEtest1",
" ", 100, 0., 1000000.);
7573 h_AmplitudeHEtest6 =
new TH1F(
"h_AmplitudeHEtest6",
" ", 100, 0., 2000000.);
7574 h_totalAmplitudeHE =
new TH1F(
"h_totalAmplitudeHE",
" ", 100, 0., 10000000000.);
7575 h_totalAmplitudeHEperEvent =
new TH1F(
"h_totalAmplitudeHEperEvent",
" ", 1000, 1., 1001.);
7578 h_ADCAmplZoom1_HE =
new TH1F(
"h_ADCAmplZoom1_HE",
" ",
npfit, 0.,
anpfit);
7579 h_ADCAmpl345Zoom1_HE =
new TH1F(
"h_ADCAmpl345Zoom1_HE",
" ",
npfit, 0.,
anpfit);
7580 h_ADCAmpl345Zoom_HE =
new TH1F(
"h_ADCAmpl345Zoom_HE",
" ",
npfit, 0.,
anpfit);
7581 h_amplitudeaveragedbydepthes_HE =
7582 new TH1F(
"h_amplitudeaveragedbydepthes_HE",
" ",
npfit, 0.,
anpfit);
7583 h_ndepthesperamplitudebins_HE =
7584 new TH1F(
"h_ndepthesperamplitudebins_HE",
" ", 10, 0., 10.);
7587 h_mapADCAmplfirstpeak_HE =
7588 new TH2F(
"h_mapADCAmplfirstpeak_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7589 h_mapADCAmplfirstpeak0_HE =
7590 new TH2F(
"h_mapADCAmplfirstpeak0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7591 h_mapADCAmplsecondpeak_HE =
7592 new TH2F(
"h_mapADCAmplsecondpeak_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7593 h_mapADCAmplsecondpeak0_HE =
7594 new TH2F(
"h_mapADCAmplsecondpeak0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7596 h_mapADCAmpl11firstpeak_HE =
7597 new TH2F(
"h_mapADCAmpl11firstpeak_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7598 h_mapADCAmpl11firstpeak0_HE =
7599 new TH2F(
"h_mapADCAmpl11firstpeak0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7600 h_mapADCAmpl11secondpeak_HE =
7601 new TH2F(
"h_mapADCAmpl11secondpeak_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7602 h_mapADCAmpl11secondpeak0_HE =
7603 new TH2F(
"h_mapADCAmpl11secondpeak0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7605 h_mapADCAmpl12firstpeak_HE =
7606 new TH2F(
"h_mapADCAmpl12firstpeak_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7607 h_mapADCAmpl12firstpeak0_HE =
7608 new TH2F(
"h_mapADCAmpl12firstpeak0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7609 h_mapADCAmpl12secondpeak_HE =
7610 new TH2F(
"h_mapADCAmpl12secondpeak_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7611 h_mapADCAmpl12secondpeak0_HE =
7612 new TH2F(
"h_mapADCAmpl12secondpeak0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7615 h_gsmdifferencefit1_HE =
new TH1F(
"h_gsmdifferencefit1_HE",
" ", 80, 20., 60.);
7616 h_gsmdifferencefit2_HE =
new TH1F(
"h_gsmdifferencefit2_HE",
" ", 80, 20., 60.);
7617 h_gsmdifferencefit3_HE =
new TH1F(
"h_gsmdifferencefit3_HE",
" ", 80, 20., 60.);
7618 h_gsmdifferencefit4_HE =
new TH1F(
"h_gsmdifferencefit4_HE",
" ", 80, 20., 60.);
7619 h_gsmdifferencefit5_HE =
new TH1F(
"h_gsmdifferencefit5_HE",
" ", 80, 20., 60.);
7620 h_gsmdifferencefit6_HE =
new TH1F(
"h_gsmdifferencefit6_HE",
" ", 80, 20., 60.);
7623 h_ADCAmpl_HE =
new TH1F(
"h_ADCAmpl_HE",
" ", 200, 0., 2000000.);
7624 h_ADCAmplrest_HE =
new TH1F(
"h_ADCAmplrest_HE",
" ", 100, 0., 500.);
7625 h_ADCAmplrest1_HE =
new TH1F(
"h_ADCAmplrest1_HE",
" ", 100, 0., 100.);
7626 h_ADCAmplrest6_HE =
new TH1F(
"h_ADCAmplrest6_HE",
" ", 100, 0., 10000.);
7628 h_ADCAmpl345_HE =
new TH1F(
"h_ADCAmpl345_HE",
" ", 70, 0., 700000.);
7631 h_corrforxaMAIN_HE =
new TH1F(
"h_corrforxaMAIN_HE",
" ", 70, 0., 700000.);
7632 h_corrforxaMAIN0_HE =
new TH1F(
"h_corrforxaMAIN0_HE",
" ", 70, 0., 700000.);
7633 h_corrforxaADDI_HE =
new TH1F(
"h_corrforxaADDI_HE",
" ", 70, 0., 700000.);
7634 h_corrforxaADDI0_HE =
new TH1F(
"h_corrforxaADDI0_HE",
" ", 70, 0., 700000.);
7636 h_mapDepth1ADCAmpl225_HE =
new TH2F(
"h_mapDepth1ADCAmpl225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7637 h_mapDepth2ADCAmpl225_HE =
new TH2F(
"h_mapDepth2ADCAmpl225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7638 h_mapDepth3ADCAmpl225_HE =
new TH2F(
"h_mapDepth3ADCAmpl225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7639 h_mapDepth4ADCAmpl225_HE =
new TH2F(
"h_mapDepth4ADCAmpl225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7640 h_mapDepth5ADCAmpl225_HE =
new TH2F(
"h_mapDepth5ADCAmpl225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7641 h_mapDepth6ADCAmpl225_HE =
new TH2F(
"h_mapDepth6ADCAmpl225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7642 h_mapDepth7ADCAmpl225_HE =
new TH2F(
"h_mapDepth7ADCAmpl225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7643 h_mapDepth1ADCAmpl225Copy_HE =
new TH2F(
"h_mapDepth1ADCAmpl225Copy_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7644 h_mapDepth2ADCAmpl225Copy_HE =
new TH2F(
"h_mapDepth2ADCAmpl225Copy_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7645 h_mapDepth3ADCAmpl225Copy_HE =
new TH2F(
"h_mapDepth3ADCAmpl225Copy_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7646 h_mapDepth4ADCAmpl225Copy_HE =
new TH2F(
"h_mapDepth4ADCAmpl225Copy_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7647 h_mapDepth5ADCAmpl225Copy_HE =
new TH2F(
"h_mapDepth5ADCAmpl225Copy_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7648 h_mapDepth6ADCAmpl225Copy_HE =
new TH2F(
"h_mapDepth6ADCAmpl225Copy_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7649 h_mapDepth7ADCAmpl225Copy_HE =
new TH2F(
"h_mapDepth7ADCAmpl225Copy_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7651 h_mapDepth1ADCAmpl_HE =
new TH2F(
"h_mapDepth1ADCAmpl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7652 h_mapDepth2ADCAmpl_HE =
new TH2F(
"h_mapDepth2ADCAmpl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7653 h_mapDepth3ADCAmpl_HE =
new TH2F(
"h_mapDepth3ADCAmpl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7654 h_mapDepth4ADCAmpl_HE =
new TH2F(
"h_mapDepth4ADCAmpl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7655 h_mapDepth5ADCAmpl_HE =
new TH2F(
"h_mapDepth5ADCAmpl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7656 h_mapDepth6ADCAmpl_HE =
new TH2F(
"h_mapDepth6ADCAmpl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7657 h_mapDepth7ADCAmpl_HE =
new TH2F(
"h_mapDepth7ADCAmpl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7658 h_mapDepth1ADCAmplSiPM_HE =
new TH2F(
"h_mapDepth1ADCAmplSiPM_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7659 h_mapDepth2ADCAmplSiPM_HE =
new TH2F(
"h_mapDepth2ADCAmplSiPM_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7660 h_mapDepth3ADCAmplSiPM_HE =
new TH2F(
"h_mapDepth3ADCAmplSiPM_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7662 h_TSmeanA_HE =
new TH1F(
"h_TSmeanA_HE",
" ", 100, -2., 8.);
7663 h_mapDepth1TSmeanA225_HE =
new TH2F(
"h_mapDepth1TSmeanA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7664 h_mapDepth2TSmeanA225_HE =
new TH2F(
"h_mapDepth2TSmeanA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7665 h_mapDepth3TSmeanA225_HE =
new TH2F(
"h_mapDepth3TSmeanA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7666 h_mapDepth4TSmeanA225_HE =
new TH2F(
"h_mapDepth4TSmeanA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7667 h_mapDepth5TSmeanA225_HE =
new TH2F(
"h_mapDepth5TSmeanA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7668 h_mapDepth6TSmeanA225_HE =
new TH2F(
"h_mapDepth6TSmeanA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7669 h_mapDepth7TSmeanA225_HE =
new TH2F(
"h_mapDepth7TSmeanA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7670 h_mapDepth1TSmeanA_HE =
new TH2F(
"h_mapDepth1TSmeanA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7671 h_mapDepth2TSmeanA_HE =
new TH2F(
"h_mapDepth2TSmeanA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7672 h_mapDepth3TSmeanA_HE =
new TH2F(
"h_mapDepth3TSmeanA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7673 h_mapDepth4TSmeanA_HE =
new TH2F(
"h_mapDepth4TSmeanA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7674 h_mapDepth5TSmeanA_HE =
new TH2F(
"h_mapDepth5TSmeanA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7675 h_mapDepth6TSmeanA_HE =
new TH2F(
"h_mapDepth6TSmeanA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7676 h_mapDepth7TSmeanA_HE =
new TH2F(
"h_mapDepth7TSmeanA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7677 h_TSmaxA_HE =
new TH1F(
"h_TSmaxA_HE",
" ", 100, -1., 11.);
7678 h_mapDepth1TSmaxA225_HE =
new TH2F(
"h_mapDepth1TSmaxA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7679 h_mapDepth2TSmaxA225_HE =
new TH2F(
"h_mapDepth2TSmaxA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7680 h_mapDepth3TSmaxA225_HE =
new TH2F(
"h_mapDepth3TSmaxA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7681 h_mapDepth4TSmaxA225_HE =
new TH2F(
"h_mapDepth4TSmaxA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7682 h_mapDepth5TSmaxA225_HE =
new TH2F(
"h_mapDepth5TSmaxA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7683 h_mapDepth6TSmaxA225_HE =
new TH2F(
"h_mapDepth6TSmaxA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7684 h_mapDepth7TSmaxA225_HE =
new TH2F(
"h_mapDepth7TSmaxA225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7685 h_mapDepth1TSmaxA_HE =
new TH2F(
"h_mapDepth1TSmaxA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7686 h_mapDepth2TSmaxA_HE =
new TH2F(
"h_mapDepth2TSmaxA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7687 h_mapDepth3TSmaxA_HE =
new TH2F(
"h_mapDepth3TSmaxA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7688 h_mapDepth4TSmaxA_HE =
new TH2F(
"h_mapDepth4TSmaxA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7689 h_mapDepth5TSmaxA_HE =
new TH2F(
"h_mapDepth5TSmaxA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7690 h_mapDepth6TSmaxA_HE =
new TH2F(
"h_mapDepth6TSmaxA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7691 h_mapDepth7TSmaxA_HE =
new TH2F(
"h_mapDepth7TSmaxA_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7693 h_Amplitude_HE =
new TH1F(
"h_Amplitude_HE",
" ", 100, 0., 5.5);
7694 h_mapDepth1Amplitude225_HE =
new TH2F(
"h_mapDepth1Amplitude225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7695 h_mapDepth2Amplitude225_HE =
new TH2F(
"h_mapDepth2Amplitude225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7696 h_mapDepth3Amplitude225_HE =
new TH2F(
"h_mapDepth3Amplitude225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7697 h_mapDepth4Amplitude225_HE =
new TH2F(
"h_mapDepth4Amplitude225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7698 h_mapDepth5Amplitude225_HE =
new TH2F(
"h_mapDepth5Amplitude225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7699 h_mapDepth6Amplitude225_HE =
new TH2F(
"h_mapDepth6Amplitude225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7700 h_mapDepth7Amplitude225_HE =
new TH2F(
"h_mapDepth7Amplitude225_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7701 h_mapDepth1Amplitude_HE =
new TH2F(
"h_mapDepth1Amplitude_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7702 h_mapDepth2Amplitude_HE =
new TH2F(
"h_mapDepth2Amplitude_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7703 h_mapDepth3Amplitude_HE =
new TH2F(
"h_mapDepth3Amplitude_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7704 h_mapDepth4Amplitude_HE =
new TH2F(
"h_mapDepth4Amplitude_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7705 h_mapDepth5Amplitude_HE =
new TH2F(
"h_mapDepth5Amplitude_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7706 h_mapDepth6Amplitude_HE =
new TH2F(
"h_mapDepth6Amplitude_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7707 h_mapDepth7Amplitude_HE =
new TH2F(
"h_mapDepth7Amplitude_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7710 h_Ampl_HE =
new TH1F(
"h_Ampl_HE",
" ", 100, 0., 1.1);
7711 h_mapDepth1Ampl047_HE =
new TH2F(
"h_mapDepth1Ampl047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7712 h_mapDepth2Ampl047_HE =
new TH2F(
"h_mapDepth2Ampl047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7713 h_mapDepth3Ampl047_HE =
new TH2F(
"h_mapDepth3Ampl047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7714 h_mapDepth4Ampl047_HE =
new TH2F(
"h_mapDepth4Ampl047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7715 h_mapDepth5Ampl047_HE =
new TH2F(
"h_mapDepth5Ampl047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7716 h_mapDepth6Ampl047_HE =
new TH2F(
"h_mapDepth6Ampl047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7717 h_mapDepth7Ampl047_HE =
new TH2F(
"h_mapDepth7Ampl047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7718 h_mapDepth1Ampl_HE =
new TH2F(
"h_mapDepth1Ampl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7719 h_mapDepth2Ampl_HE =
new TH2F(
"h_mapDepth2Ampl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7720 h_mapDepth3Ampl_HE =
new TH2F(
"h_mapDepth3Ampl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7721 h_mapDepth4Ampl_HE =
new TH2F(
"h_mapDepth4Ampl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7722 h_mapDepth5Ampl_HE =
new TH2F(
"h_mapDepth5Ampl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7723 h_mapDepth6Ampl_HE =
new TH2F(
"h_mapDepth6Ampl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7724 h_mapDepth7Ampl_HE =
new TH2F(
"h_mapDepth7Ampl_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7725 h_mapDepth1AmplE34_HE =
new TH2F(
"h_mapDepth1AmplE34_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7726 h_mapDepth2AmplE34_HE =
new TH2F(
"h_mapDepth2AmplE34_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7727 h_mapDepth3AmplE34_HE =
new TH2F(
"h_mapDepth3AmplE34_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7728 h_mapDepth4AmplE34_HE =
new TH2F(
"h_mapDepth4AmplE34_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7729 h_mapDepth5AmplE34_HE =
new TH2F(
"h_mapDepth5AmplE34_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7730 h_mapDepth6AmplE34_HE =
new TH2F(
"h_mapDepth6AmplE34_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7731 h_mapDepth7AmplE34_HE =
new TH2F(
"h_mapDepth7AmplE34_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7732 h_mapDepth1_HE =
new TH2F(
"h_mapDepth1_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7733 h_mapDepth2_HE =
new TH2F(
"h_mapDepth2_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7734 h_mapDepth3_HE =
new TH2F(
"h_mapDepth3_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7735 h_mapDepth4_HE =
new TH2F(
"h_mapDepth4_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7736 h_mapDepth5_HE =
new TH2F(
"h_mapDepth5_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7737 h_mapDepth6_HE =
new TH2F(
"h_mapDepth6_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7738 h_mapDepth7_HE =
new TH2F(
"h_mapDepth7_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7740 h_mapenophinorm_HE1 =
new TH2F(
"h_mapenophinorm_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7741 h_mapenophinorm_HE2 =
new TH2F(
"h_mapenophinorm_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7742 h_mapenophinorm_HE3 =
new TH2F(
"h_mapenophinorm_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7743 h_mapenophinorm_HE4 =
new TH2F(
"h_mapenophinorm_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7744 h_mapenophinorm_HE5 =
new TH2F(
"h_mapenophinorm_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7745 h_mapenophinorm_HE6 =
new TH2F(
"h_mapenophinorm_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7746 h_mapenophinorm_HE7 =
new TH2F(
"h_mapenophinorm_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7747 h_mapenophinorm2_HE1 =
new TH2F(
"h_mapenophinorm2_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7748 h_mapenophinorm2_HE2 =
new TH2F(
"h_mapenophinorm2_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7749 h_mapenophinorm2_HE3 =
new TH2F(
"h_mapenophinorm2_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7750 h_mapenophinorm2_HE4 =
new TH2F(
"h_mapenophinorm2_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7751 h_mapenophinorm2_HE5 =
new TH2F(
"h_mapenophinorm2_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7752 h_mapenophinorm2_HE6 =
new TH2F(
"h_mapenophinorm2_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7753 h_mapenophinorm2_HE7 =
new TH2F(
"h_mapenophinorm2_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7755 h_maprphinorm_HE1 =
new TH2F(
"h_maprphinorm_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7756 h_maprphinorm_HE2 =
new TH2F(
"h_maprphinorm_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7757 h_maprphinorm_HE3 =
new TH2F(
"h_maprphinorm_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7758 h_maprphinorm_HE4 =
new TH2F(
"h_maprphinorm_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7759 h_maprphinorm_HE5 =
new TH2F(
"h_maprphinorm_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7760 h_maprphinorm_HE6 =
new TH2F(
"h_maprphinorm_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7761 h_maprphinorm_HE7 =
new TH2F(
"h_maprphinorm_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7762 h_maprphinorm2_HE1 =
new TH2F(
"h_maprphinorm2_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7763 h_maprphinorm2_HE2 =
new TH2F(
"h_maprphinorm2_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7764 h_maprphinorm2_HE3 =
new TH2F(
"h_maprphinorm2_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7765 h_maprphinorm2_HE4 =
new TH2F(
"h_maprphinorm2_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7766 h_maprphinorm2_HE5 =
new TH2F(
"h_maprphinorm2_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7767 h_maprphinorm2_HE6 =
new TH2F(
"h_maprphinorm2_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7768 h_maprphinorm2_HE7 =
new TH2F(
"h_maprphinorm2_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7770 h_maprphinorm0_HE1 =
new TH2F(
"h_maprphinorm0_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7771 h_maprphinorm0_HE2 =
new TH2F(
"h_maprphinorm0_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7772 h_maprphinorm0_HE3 =
new TH2F(
"h_maprphinorm0_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7773 h_maprphinorm0_HE4 =
new TH2F(
"h_maprphinorm0_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7774 h_maprphinorm0_HE5 =
new TH2F(
"h_maprphinorm0_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7775 h_maprphinorm0_HE6 =
new TH2F(
"h_maprphinorm0_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7776 h_maprphinorm0_HE7 =
new TH2F(
"h_maprphinorm0_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7781 h_amplitudechannel0_HB1 =
new TH2F(
"h_amplitudechannel0_HB1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7782 h_amplitudechannel1_HB1 =
new TH2F(
"h_amplitudechannel1_HB1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7783 h_amplitudechannel2_HB1 =
new TH2F(
"h_amplitudechannel2_HB1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7784 h_amplitudechannel0_HB2 =
new TH2F(
"h_amplitudechannel0_HB2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7785 h_amplitudechannel1_HB2 =
new TH2F(
"h_amplitudechannel1_HB2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7786 h_amplitudechannel2_HB2 =
new TH2F(
"h_amplitudechannel2_HB2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7787 h_amplitudechannel0_HB3 =
new TH2F(
"h_amplitudechannel0_HB3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7788 h_amplitudechannel1_HB3 =
new TH2F(
"h_amplitudechannel1_HB3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7789 h_amplitudechannel2_HB3 =
new TH2F(
"h_amplitudechannel2_HB3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7790 h_amplitudechannel0_HB4 =
new TH2F(
"h_amplitudechannel0_HB4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7791 h_amplitudechannel1_HB4 =
new TH2F(
"h_amplitudechannel1_HB4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7792 h_amplitudechannel2_HB4 =
new TH2F(
"h_amplitudechannel2_HB4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7794 h_amplitudechannel0_HE1 =
new TH2F(
"h_amplitudechannel0_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7795 h_amplitudechannel1_HE1 =
new TH2F(
"h_amplitudechannel1_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7796 h_amplitudechannel2_HE1 =
new TH2F(
"h_amplitudechannel2_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7797 h_amplitudechannel0_HE2 =
new TH2F(
"h_amplitudechannel0_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7798 h_amplitudechannel1_HE2 =
new TH2F(
"h_amplitudechannel1_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7799 h_amplitudechannel2_HE2 =
new TH2F(
"h_amplitudechannel2_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7800 h_amplitudechannel0_HE3 =
new TH2F(
"h_amplitudechannel0_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7801 h_amplitudechannel1_HE3 =
new TH2F(
"h_amplitudechannel1_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7802 h_amplitudechannel2_HE3 =
new TH2F(
"h_amplitudechannel2_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7803 h_amplitudechannel0_HE4 =
new TH2F(
"h_amplitudechannel0_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7804 h_amplitudechannel1_HE4 =
new TH2F(
"h_amplitudechannel1_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7805 h_amplitudechannel2_HE4 =
new TH2F(
"h_amplitudechannel2_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7806 h_amplitudechannel0_HE5 =
new TH2F(
"h_amplitudechannel0_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7807 h_amplitudechannel1_HE5 =
new TH2F(
"h_amplitudechannel1_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7808 h_amplitudechannel2_HE5 =
new TH2F(
"h_amplitudechannel2_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7809 h_amplitudechannel0_HE6 =
new TH2F(
"h_amplitudechannel0_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7810 h_amplitudechannel1_HE6 =
new TH2F(
"h_amplitudechannel1_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7811 h_amplitudechannel2_HE6 =
new TH2F(
"h_amplitudechannel2_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7812 h_amplitudechannel0_HE7 =
new TH2F(
"h_amplitudechannel0_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7813 h_amplitudechannel1_HE7 =
new TH2F(
"h_amplitudechannel1_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7814 h_amplitudechannel2_HE7 =
new TH2F(
"h_amplitudechannel2_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7816 h_amplitudechannel0_HF1 =
new TH2F(
"h_amplitudechannel0_HF1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7817 h_amplitudechannel1_HF1 =
new TH2F(
"h_amplitudechannel1_HF1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7818 h_amplitudechannel2_HF1 =
new TH2F(
"h_amplitudechannel2_HF1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7819 h_amplitudechannel0_HF2 =
new TH2F(
"h_amplitudechannel0_HF2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7820 h_amplitudechannel1_HF2 =
new TH2F(
"h_amplitudechannel1_HF2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7821 h_amplitudechannel2_HF2 =
new TH2F(
"h_amplitudechannel2_HF2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7822 h_amplitudechannel0_HF3 =
new TH2F(
"h_amplitudechannel0_HF3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7823 h_amplitudechannel1_HF3 =
new TH2F(
"h_amplitudechannel1_HF3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7824 h_amplitudechannel2_HF3 =
new TH2F(
"h_amplitudechannel2_HF3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7825 h_amplitudechannel0_HF4 =
new TH2F(
"h_amplitudechannel0_HF4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7826 h_amplitudechannel1_HF4 =
new TH2F(
"h_amplitudechannel1_HF4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7827 h_amplitudechannel2_HF4 =
new TH2F(
"h_amplitudechannel2_HF4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7830 h_energyhitSignal_HB =
new TH1F(
"h_energyhitSignal_HB",
" ",
npfit, 0., 0.);
7831 h_energyhitSignal_HE =
new TH1F(
"h_energyhitSignal_HE",
" ",
npfit, 0., 0.);
7832 h_energyhitSignal_HF =
new TH1F(
"h_energyhitSignal_HF",
" ",
npfit, 0., 0.);
7833 h_energyhitNoise_HB =
new TH1F(
"h_energyhitNoise_HB",
" ",
npfit, 0., 0.);
7834 h_energyhitNoise_HE =
new TH1F(
"h_energyhitNoise_HE",
" ",
npfit, 0., 0.);
7835 h_energyhitNoise_HF =
new TH1F(
"h_energyhitNoise_HF",
" ",
npfit, 0., 0.);
7838 h_recSignalEnergy0_HB1 =
new TH2F(
"h_recSignalEnergy0_HB1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7839 h_recSignalEnergy1_HB1 =
new TH2F(
"h_recSignalEnergy1_HB1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7840 h_recSignalEnergy2_HB1 =
new TH2F(
"h_recSignalEnergy2_HB1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7841 h_recSignalEnergy0_HB2 =
new TH2F(
"h_recSignalEnergy0_HB2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7842 h_recSignalEnergy1_HB2 =
new TH2F(
"h_recSignalEnergy1_HB2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7843 h_recSignalEnergy2_HB2 =
new TH2F(
"h_recSignalEnergy2_HB2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7844 h_recSignalEnergy0_HB3 =
new TH2F(
"h_recSignalEnergy0_HB3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7845 h_recSignalEnergy1_HB3 =
new TH2F(
"h_recSignalEnergy1_HB3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7846 h_recSignalEnergy2_HB3 =
new TH2F(
"h_recSignalEnergy2_HB3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7847 h_recSignalEnergy0_HB4 =
new TH2F(
"h_recSignalEnergy0_HB4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7848 h_recSignalEnergy1_HB4 =
new TH2F(
"h_recSignalEnergy1_HB4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7849 h_recSignalEnergy2_HB4 =
new TH2F(
"h_recSignalEnergy2_HB4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7851 h_recNoiseEnergy0_HB1 =
new TH2F(
"h_recNoiseEnergy0_HB1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7852 h_recNoiseEnergy1_HB1 =
new TH2F(
"h_recNoiseEnergy1_HB1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7853 h_recNoiseEnergy2_HB1 =
new TH2F(
"h_recNoiseEnergy2_HB1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7854 h_recNoiseEnergy0_HB2 =
new TH2F(
"h_recNoiseEnergy0_HB2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7855 h_recNoiseEnergy1_HB2 =
new TH2F(
"h_recNoiseEnergy1_HB2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7856 h_recNoiseEnergy2_HB2 =
new TH2F(
"h_recNoiseEnergy2_HB2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7857 h_recNoiseEnergy0_HB3 =
new TH2F(
"h_recNoiseEnergy0_HB3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7858 h_recNoiseEnergy1_HB3 =
new TH2F(
"h_recNoiseEnergy1_HB3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7859 h_recNoiseEnergy2_HB3 =
new TH2F(
"h_recNoiseEnergy2_HB3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7860 h_recNoiseEnergy0_HB4 =
new TH2F(
"h_recNoiseEnergy0_HB4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7861 h_recNoiseEnergy1_HB4 =
new TH2F(
"h_recNoiseEnergy1_HB4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7862 h_recNoiseEnergy2_HB4 =
new TH2F(
"h_recNoiseEnergy2_HB4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7865 h_recSignalEnergy0_HE1 =
new TH2F(
"h_recSignalEnergy0_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7866 h_recSignalEnergy1_HE1 =
new TH2F(
"h_recSignalEnergy1_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7867 h_recSignalEnergy2_HE1 =
new TH2F(
"h_recSignalEnergy2_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7868 h_recSignalEnergy0_HE2 =
new TH2F(
"h_recSignalEnergy0_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7869 h_recSignalEnergy1_HE2 =
new TH2F(
"h_recSignalEnergy1_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7870 h_recSignalEnergy2_HE2 =
new TH2F(
"h_recSignalEnergy2_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7871 h_recSignalEnergy0_HE3 =
new TH2F(
"h_recSignalEnergy0_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7872 h_recSignalEnergy1_HE3 =
new TH2F(
"h_recSignalEnergy1_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7873 h_recSignalEnergy2_HE3 =
new TH2F(
"h_recSignalEnergy2_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7874 h_recSignalEnergy0_HE4 =
new TH2F(
"h_recSignalEnergy0_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7875 h_recSignalEnergy1_HE4 =
new TH2F(
"h_recSignalEnergy1_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7876 h_recSignalEnergy2_HE4 =
new TH2F(
"h_recSignalEnergy2_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7877 h_recSignalEnergy0_HE5 =
new TH2F(
"h_recSignalEnergy0_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7878 h_recSignalEnergy1_HE5 =
new TH2F(
"h_recSignalEnergy1_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7879 h_recSignalEnergy2_HE5 =
new TH2F(
"h_recSignalEnergy2_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7880 h_recSignalEnergy0_HE6 =
new TH2F(
"h_recSignalEnergy0_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7881 h_recSignalEnergy1_HE6 =
new TH2F(
"h_recSignalEnergy1_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7882 h_recSignalEnergy2_HE6 =
new TH2F(
"h_recSignalEnergy2_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7883 h_recSignalEnergy0_HE7 =
new TH2F(
"h_recSignalEnergy0_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7884 h_recSignalEnergy1_HE7 =
new TH2F(
"h_recSignalEnergy1_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7885 h_recSignalEnergy2_HE7 =
new TH2F(
"h_recSignalEnergy2_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7887 h_recNoiseEnergy0_HE1 =
new TH2F(
"h_recNoiseEnergy0_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7888 h_recNoiseEnergy1_HE1 =
new TH2F(
"h_recNoiseEnergy1_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7889 h_recNoiseEnergy2_HE1 =
new TH2F(
"h_recNoiseEnergy2_HE1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7890 h_recNoiseEnergy0_HE2 =
new TH2F(
"h_recNoiseEnergy0_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7891 h_recNoiseEnergy1_HE2 =
new TH2F(
"h_recNoiseEnergy1_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7892 h_recNoiseEnergy2_HE2 =
new TH2F(
"h_recNoiseEnergy2_HE2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7893 h_recNoiseEnergy0_HE3 =
new TH2F(
"h_recNoiseEnergy0_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7894 h_recNoiseEnergy1_HE3 =
new TH2F(
"h_recNoiseEnergy1_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7895 h_recNoiseEnergy2_HE3 =
new TH2F(
"h_recNoiseEnergy2_HE3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7896 h_recNoiseEnergy0_HE4 =
new TH2F(
"h_recNoiseEnergy0_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7897 h_recNoiseEnergy1_HE4 =
new TH2F(
"h_recNoiseEnergy1_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7898 h_recNoiseEnergy2_HE4 =
new TH2F(
"h_recNoiseEnergy2_HE4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7899 h_recNoiseEnergy0_HE5 =
new TH2F(
"h_recNoiseEnergy0_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7900 h_recNoiseEnergy1_HE5 =
new TH2F(
"h_recNoiseEnergy1_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7901 h_recNoiseEnergy2_HE5 =
new TH2F(
"h_recNoiseEnergy2_HE5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7902 h_recNoiseEnergy0_HE6 =
new TH2F(
"h_recNoiseEnergy0_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7903 h_recNoiseEnergy1_HE6 =
new TH2F(
"h_recNoiseEnergy1_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7904 h_recNoiseEnergy2_HE6 =
new TH2F(
"h_recNoiseEnergy2_HE6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7905 h_recNoiseEnergy0_HE7 =
new TH2F(
"h_recNoiseEnergy0_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7906 h_recNoiseEnergy1_HE7 =
new TH2F(
"h_recNoiseEnergy1_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7907 h_recNoiseEnergy2_HE7 =
new TH2F(
"h_recNoiseEnergy2_HE7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7910 h_recSignalEnergy0_HF1 =
new TH2F(
"h_recSignalEnergy0_HF1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7911 h_recSignalEnergy1_HF1 =
new TH2F(
"h_recSignalEnergy1_HF1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7912 h_recSignalEnergy2_HF1 =
new TH2F(
"h_recSignalEnergy2_HF1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7913 h_recSignalEnergy0_HF2 =
new TH2F(
"h_recSignalEnergy0_HF2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7914 h_recSignalEnergy1_HF2 =
new TH2F(
"h_recSignalEnergy1_HF2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7915 h_recSignalEnergy2_HF2 =
new TH2F(
"h_recSignalEnergy2_HF2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7917 h_recNoiseEnergy0_HF1 =
new TH2F(
"h_recNoiseEnergy0_HF1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7918 h_recNoiseEnergy1_HF1 =
new TH2F(
"h_recNoiseEnergy1_HF1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7919 h_recNoiseEnergy2_HF1 =
new TH2F(
"h_recNoiseEnergy2_HF1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7920 h_recNoiseEnergy0_HF2 =
new TH2F(
"h_recNoiseEnergy0_HF2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7921 h_recNoiseEnergy1_HF2 =
new TH2F(
"h_recNoiseEnergy1_HF2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7922 h_recNoiseEnergy2_HF2 =
new TH2F(
"h_recNoiseEnergy2_HF2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7931 h_mapDepth1RADDAM_HE =
new TH2F(
"h_mapDepth1RADDAM_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7932 h_mapDepth2RADDAM_HE =
new TH2F(
"h_mapDepth2RADDAM_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7933 h_mapDepth3RADDAM_HE =
new TH2F(
"h_mapDepth3RADDAM_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7934 h_mapDepth1RADDAM0_HE =
new TH2F(
"h_mapDepth1RADDAM0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7935 h_mapDepth2RADDAM0_HE =
new TH2F(
"h_mapDepth2RADDAM0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7936 h_mapDepth3RADDAM0_HE =
new TH2F(
"h_mapDepth3RADDAM0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7938 h_sigLayer1RADDAM_HE =
new TH1F(
"h_sigLayer1RADDAM_HE",
" ",
neta, -41., 41.);
7939 h_sigLayer2RADDAM_HE =
new TH1F(
"h_sigLayer2RADDAM_HE",
" ",
neta, -41., 41.);
7940 h_sigLayer1RADDAM0_HE =
new TH1F(
"h_sigLayer1RADDAM0_HE",
" ",
neta, -41., 41.);
7941 h_sigLayer2RADDAM0_HE =
new TH1F(
"h_sigLayer2RADDAM0_HE",
" ",
neta, -41., 41.);
7942 h_AamplitudewithPedSubtr_RADDAM_HE =
new TH1F(
"h_AamplitudewithPedSubtr_RADDAM_HE",
" ", 100, min80, max80);
7943 h_AamplitudewithPedSubtr_RADDAM_HEzoom0 =
7944 new TH1F(
"h_AamplitudewithPedSubtr_RADDAM_HEzoom0",
" ", 100, min80, 4000.);
7945 h_AamplitudewithPedSubtr_RADDAM_HEzoom1 =
7946 new TH1F(
"h_AamplitudewithPedSubtr_RADDAM_HEzoom1",
" ", 100, min80, 1000.);
7947 h_mapDepth3RADDAM16_HE =
new TH1F(
"h_mapDepth3RADDAM16_HE",
" ", 100, min80, max80);
7948 h_A_Depth1RADDAM_HE =
new TH1F(
"h_A_Depth1RADDAM_HE",
" ", 100, min80, max80);
7949 h_A_Depth2RADDAM_HE =
new TH1F(
"h_A_Depth2RADDAM_HE",
" ", 100, min80, max80);
7950 h_A_Depth3RADDAM_HE =
new TH1F(
"h_A_Depth3RADDAM_HE",
" ", 100, min80, max80);
7953 h_sumphiEta16Depth3RADDAM_HED2 =
new TH1F(
"h_sumphiEta16Depth3RADDAM_HED2",
" ", 100, min90, 70. * max90);
7954 h_Eta16Depth3RADDAM_HED2 =
new TH1F(
"h_Eta16Depth3RADDAM_HED2",
" ", 100, min90, max90);
7955 h_NphiForEta16Depth3RADDAM_HED2 =
new TH1F(
"h_NphiForEta16Depth3RADDAM_HED2",
" ", 100, 0, 100.);
7956 h_sumphiEta16Depth3RADDAM_HED2P =
new TH1F(
"h_sumphiEta16Depth3RADDAM_HED2P",
" ", 100, min90, 70. * max90);
7957 h_Eta16Depth3RADDAM_HED2P =
new TH1F(
"h_Eta16Depth3RADDAM_HED2P",
" ", 100, min90, max90);
7958 h_NphiForEta16Depth3RADDAM_HED2P =
new TH1F(
"h_NphiForEta16Depth3RADDAM_HED2P",
" ", 100, 0, 100.);
7959 h_sumphiEta16Depth3RADDAM_HED2ALL =
new TH1F(
"h_sumphiEta16Depth3RADDAM_HED2ALL",
" ", 100, min90, 70. * max90);
7960 h_Eta16Depth3RADDAM_HED2ALL =
new TH1F(
"h_Eta16Depth3RADDAM_HED2ALL",
" ", 100, min90, max90);
7961 h_NphiForEta16Depth3RADDAM_HED2ALL =
new TH1F(
"h_NphiForEta16Depth3RADDAM_HED2ALL",
" ", 100, 0, 100.);
7962 h_sigLayer1RADDAM5_HE =
new TH1F(
"h_sigLayer1RADDAM5_HE",
" ",
neta, -41., 41.);
7963 h_sigLayer2RADDAM5_HE =
new TH1F(
"h_sigLayer2RADDAM5_HE",
" ",
neta, -41., 41.);
7964 h_sigLayer1RADDAM6_HE =
new TH1F(
"h_sigLayer1RADDAM6_HE",
" ",
neta, -41., 41.);
7965 h_sigLayer2RADDAM6_HE =
new TH1F(
"h_sigLayer2RADDAM6_HE",
" ",
neta, -41., 41.);
7966 h_sigLayer1RADDAM5_HED2 =
new TH1F(
"h_sigLayer1RADDAM5_HED2",
" ",
neta, -41., 41.);
7967 h_sigLayer2RADDAM5_HED2 =
new TH1F(
"h_sigLayer2RADDAM5_HED2",
" ",
neta, -41., 41.);
7968 h_sigLayer1RADDAM6_HED2 =
new TH1F(
"h_sigLayer1RADDAM6_HED2",
" ",
neta, -41., 41.);
7969 h_sigLayer2RADDAM6_HED2 =
new TH1F(
"h_sigLayer2RADDAM6_HED2",
" ",
neta, -41., 41.);
7971 h_numberofhitsHFtest =
new TH1F(
"h_numberofhitsHFtest",
" ", 100, 0., 30000.);
7972 h_AmplitudeHFtest =
new TH1F(
"h_AmplitudeHFtest",
" ", 100, 0., 300000.);
7973 h_totalAmplitudeHF =
new TH1F(
"h_totalAmplitudeHF",
" ", 100, 0., 100000000000.);
7974 h_totalAmplitudeHFperEvent =
new TH1F(
"h_totalAmplitudeHFperEvent",
" ", 1000, 1., 1001.);
7976 h_ADCAmplZoom1_HF =
new TH1F(
"h_ADCAmplZoom1_HF",
" ", 100, 0., 1000000.);
7977 h_ADCAmpl_HF =
new TH1F(
"h_ADCAmpl_HF",
" ", 250, 0., 500000.);
7978 h_ADCAmplrest1_HF =
new TH1F(
"h_ADCAmplrest1_HF",
" ", 100, 0., 1000.);
7979 h_ADCAmplrest6_HF =
new TH1F(
"h_ADCAmplrest6_HF",
" ", 100, 0., 10000.);
7981 h_mapDepth1ADCAmpl225_HF =
new TH2F(
"h_mapDepth1ADCAmpl225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7982 h_mapDepth2ADCAmpl225_HF =
new TH2F(
"h_mapDepth2ADCAmpl225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7983 h_mapDepth1ADCAmpl225Copy_HF =
new TH2F(
"h_mapDepth1ADCAmpl225Copy_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7984 h_mapDepth2ADCAmpl225Copy_HF =
new TH2F(
"h_mapDepth2ADCAmpl225Copy_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7985 h_mapDepth1ADCAmpl_HF =
new TH2F(
"h_mapDepth1ADCAmpl_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7986 h_mapDepth2ADCAmpl_HF =
new TH2F(
"h_mapDepth2ADCAmpl_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7987 h_mapDepth3ADCAmpl225_HF =
new TH2F(
"h_mapDepth3ADCAmpl225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7988 h_mapDepth4ADCAmpl225_HF =
new TH2F(
"h_mapDepth4ADCAmpl225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7989 h_mapDepth3ADCAmpl225Copy_HF =
new TH2F(
"h_mapDepth3ADCAmpl225Copy_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7990 h_mapDepth4ADCAmpl225Copy_HF =
new TH2F(
"h_mapDepth4ADCAmpl225Copy_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7991 h_mapDepth3ADCAmpl_HF =
new TH2F(
"h_mapDepth3ADCAmpl_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7992 h_mapDepth4ADCAmpl_HF =
new TH2F(
"h_mapDepth4ADCAmpl_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7993 h_TSmeanA_HF =
new TH1F(
"h_TSmeanA_HF",
" ", 100, -1., 11.);
7994 h_mapDepth1TSmeanA225_HF =
new TH2F(
"h_mapDepth1TSmeanA225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7995 h_mapDepth2TSmeanA225_HF =
new TH2F(
"h_mapDepth2TSmeanA225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7996 h_mapDepth1TSmeanA_HF =
new TH2F(
"h_mapDepth1TSmeanA_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7997 h_mapDepth2TSmeanA_HF =
new TH2F(
"h_mapDepth2TSmeanA_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7998 h_mapDepth3TSmeanA225_HF =
new TH2F(
"h_mapDepth3TSmeanA225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
7999 h_mapDepth4TSmeanA225_HF =
new TH2F(
"h_mapDepth4TSmeanA225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8000 h_mapDepth3TSmeanA_HF =
new TH2F(
"h_mapDepth3TSmeanA_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8001 h_mapDepth4TSmeanA_HF =
new TH2F(
"h_mapDepth4TSmeanA_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8002 h_Amplitude_HF =
new TH1F(
"h_Amplitude_HF",
" ", 100, 0., 5.);
8003 h_TSmaxA_HF =
new TH1F(
"h_TSmaxA_HF",
" ", 100, -1., 11.);
8004 h_mapDepth1TSmaxA225_HF =
new TH2F(
"h_mapDepth1TSmaxA225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8005 h_mapDepth2TSmaxA225_HF =
new TH2F(
"h_mapDepth2TSmaxA225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8006 h_mapDepth1TSmaxA_HF =
new TH2F(
"h_mapDepth1TSmaxA_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8007 h_mapDepth2TSmaxA_HF =
new TH2F(
"h_mapDepth2TSmaxA_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8008 h_mapDepth3TSmaxA225_HF =
new TH2F(
"h_mapDepth3TSmaxA225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8009 h_mapDepth4TSmaxA225_HF =
new TH2F(
"h_mapDepth4TSmaxA225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8010 h_mapDepth3TSmaxA_HF =
new TH2F(
"h_mapDepth3TSmaxA_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8011 h_mapDepth4TSmaxA_HF =
new TH2F(
"h_mapDepth4TSmaxA_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8012 h_Amplitude_HF =
new TH1F(
"h_Amplitude_HF",
" ", 100, 0., 5.);
8013 h_mapDepth1Amplitude225_HF =
new TH2F(
"h_mapDepth1Amplitude225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8014 h_mapDepth2Amplitude225_HF =
new TH2F(
"h_mapDepth2Amplitude225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8015 h_mapDepth1Amplitude_HF =
new TH2F(
"h_mapDepth1Amplitude_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8016 h_mapDepth2Amplitude_HF =
new TH2F(
"h_mapDepth2Amplitude_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8017 h_mapDepth3Amplitude225_HF =
new TH2F(
"h_mapDepth3Amplitude225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8018 h_mapDepth4Amplitude225_HF =
new TH2F(
"h_mapDepth4Amplitude225_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8019 h_mapDepth3Amplitude_HF =
new TH2F(
"h_mapDepth3Amplitude_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8020 h_mapDepth4Amplitude_HF =
new TH2F(
"h_mapDepth4Amplitude_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8022 h_Ampl_HF =
new TH1F(
"h_Ampl_HF",
" ", 100, 0., 1.1);
8023 h_mapDepth1Ampl047_HF =
new TH2F(
"h_mapDepth1Ampl047_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8024 h_mapDepth2Ampl047_HF =
new TH2F(
"h_mapDepth2Ampl047_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8025 h_mapDepth1Ampl_HF =
new TH2F(
"h_mapDepth1Ampl_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8026 h_mapDepth2Ampl_HF =
new TH2F(
"h_mapDepth2Ampl_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8027 h_mapDepth1AmplE34_HF =
new TH2F(
"h_mapDepth1AmplE34_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8028 h_mapDepth2AmplE34_HF =
new TH2F(
"h_mapDepth2AmplE34_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8029 h_mapDepth1_HF =
new TH2F(
"h_mapDepth1_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8030 h_mapDepth2_HF =
new TH2F(
"h_mapDepth2_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8031 h_mapDepth3Ampl047_HF =
new TH2F(
"h_mapDepth3Ampl047_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8032 h_mapDepth4Ampl047_HF =
new TH2F(
"h_mapDepth4Ampl047_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8033 h_mapDepth3Ampl_HF =
new TH2F(
"h_mapDepth3Ampl_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8034 h_mapDepth4Ampl_HF =
new TH2F(
"h_mapDepth4Ampl_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8035 h_mapDepth3AmplE34_HF =
new TH2F(
"h_mapDepth3AmplE34_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8036 h_mapDepth4AmplE34_HF =
new TH2F(
"h_mapDepth4AmplE34_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8037 h_mapDepth3_HF =
new TH2F(
"h_mapDepth3_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8038 h_mapDepth4_HF =
new TH2F(
"h_mapDepth4_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8041 h_numberofhitsHOtest =
new TH1F(
"h_numberofhitsHOtest",
" ", 100, 0., 30000.);
8042 h_AmplitudeHOtest =
new TH1F(
"h_AmplitudeHOtest",
" ", 100, 0., 300000.);
8043 h_totalAmplitudeHO =
new TH1F(
"h_totalAmplitudeHO",
" ", 100, 0., 100000000.);
8044 h_totalAmplitudeHOperEvent =
new TH1F(
"h_totalAmplitudeHOperEvent",
" ", 1000, 1., 1001.);
8046 h_ADCAmpl_HO =
new TH1F(
"h_ADCAmpl_HO",
" ", 100, 0., 7000.);
8047 h_ADCAmplrest1_HO =
new TH1F(
"h_ADCAmplrest1_HO",
" ", 100, 0., 150.);
8048 h_ADCAmplrest6_HO =
new TH1F(
"h_ADCAmplrest6_HO",
" ", 100, 0., 500.);
8050 h_ADCAmplZoom1_HO =
new TH1F(
"h_ADCAmplZoom1_HO",
" ", 100, -20., 280.);
8051 h_ADCAmpl_HO_copy =
new TH1F(
"h_ADCAmpl_HO_copy",
" ", 100, 0., 30000.);
8052 h_mapDepth4ADCAmpl225_HO =
new TH2F(
"h_mapDepth4ADCAmpl225_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8053 h_mapDepth4ADCAmpl225Copy_HO =
new TH2F(
"h_mapDepth4ADCAmpl225Copy_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8054 h_mapDepth4ADCAmpl_HO =
new TH2F(
"h_mapDepth4ADCAmpl_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8055 h_TSmeanA_HO =
new TH1F(
"h_TSmeanA_HO",
" ", 100, 0., 10.);
8056 h_mapDepth4TSmeanA225_HO =
new TH2F(
"h_mapDepth4TSmeanA225_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8057 h_mapDepth4TSmeanA_HO =
new TH2F(
"h_mapDepth4TSmeanA_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8058 h_TSmaxA_HO =
new TH1F(
"h_TSmaxA_HO",
" ", 100, 0., 10.);
8059 h_mapDepth4TSmaxA225_HO =
new TH2F(
"h_mapDepth4TSmaxA225_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8060 h_mapDepth4TSmaxA_HO =
new TH2F(
"h_mapDepth4TSmaxA_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8061 h_Amplitude_HO =
new TH1F(
"h_Amplitude_HO",
" ", 100, 0., 5.);
8062 h_mapDepth4Amplitude225_HO =
new TH2F(
"h_mapDepth4Amplitude225_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8063 h_mapDepth4Amplitude_HO =
new TH2F(
"h_mapDepth4Amplitude_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8065 h_Ampl_HO =
new TH1F(
"h_Ampl_HO",
" ", 100, 0., 1.1);
8066 h_mapDepth4Ampl047_HO =
new TH2F(
"h_mapDepth4Ampl047_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8067 h_mapDepth4Ampl_HO =
new TH2F(
"h_mapDepth4Ampl_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8068 h_mapDepth4AmplE34_HO =
new TH2F(
"h_mapDepth4AmplE34_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8069 h_mapDepth4_HO =
new TH2F(
"h_mapDepth4_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8075 h_bcnnbadchannels_depth1_HB =
new TH1F(
"h_bcnnbadchannels_depth1_HB",
" ", baP, baR, baR2);
8076 h_bcnnbadchannels_depth2_HB =
new TH1F(
"h_bcnnbadchannels_depth2_HB",
" ", baP, baR, baR2);
8077 h_bcnnbadchannels_depth1_HE =
new TH1F(
"h_bcnnbadchannels_depth1_HE",
" ", baP, baR, baR2);
8078 h_bcnnbadchannels_depth2_HE =
new TH1F(
"h_bcnnbadchannels_depth2_HE",
" ", baP, baR, baR2);
8079 h_bcnnbadchannels_depth3_HE =
new TH1F(
"h_bcnnbadchannels_depth3_HE",
" ", baP, baR, baR2);
8080 h_bcnnbadchannels_depth4_HO =
new TH1F(
"h_bcnnbadchannels_depth4_HO",
" ", baP, baR, baR2);
8081 h_bcnnbadchannels_depth1_HF =
new TH1F(
"h_bcnnbadchannels_depth1_HF",
" ", baP, baR, baR2);
8082 h_bcnnbadchannels_depth2_HF =
new TH1F(
"h_bcnnbadchannels_depth2_HF",
" ", baP, baR, baR2);
8083 h_bcnbadrate0_depth1_HB =
new TH1F(
"h_bcnbadrate0_depth1_HB",
" ", baP, baR, baR2);
8084 h_bcnbadrate0_depth2_HB =
new TH1F(
"h_bcnbadrate0_depth2_HB",
" ", baP, baR, baR2);
8085 h_bcnbadrate0_depth1_HE =
new TH1F(
"h_bcnbadrate0_depth1_HE",
" ", baP, baR, baR2);
8086 h_bcnbadrate0_depth2_HE =
new TH1F(
"h_bcnbadrate0_depth2_HE",
" ", baP, baR, baR2);
8087 h_bcnbadrate0_depth3_HE =
new TH1F(
"h_bcnbadrate0_depth3_HE",
" ", baP, baR, baR2);
8088 h_bcnbadrate0_depth4_HO =
new TH1F(
"h_bcnbadrate0_depth4_HO",
" ", baP, baR, baR2);
8089 h_bcnbadrate0_depth1_HF =
new TH1F(
"h_bcnbadrate0_depth1_HF",
" ", baP, baR, baR2);
8090 h_bcnbadrate0_depth2_HF =
new TH1F(
"h_bcnbadrate0_depth2_HF",
" ", baP, baR, baR2);
8092 h_bcnvsamplitude_HB =
new TH1F(
"h_bcnvsamplitude_HB",
" ", baP, baR, baR2);
8093 h_bcnvsamplitude_HE =
new TH1F(
"h_bcnvsamplitude_HE",
" ", baP, baR, baR2);
8094 h_bcnvsamplitude_HF =
new TH1F(
"h_bcnvsamplitude_HF",
" ", baP, baR, baR2);
8095 h_bcnvsamplitude_HO =
new TH1F(
"h_bcnvsamplitude_HO",
" ", baP, baR, baR2);
8096 h_bcnvsamplitude0_HB =
new TH1F(
"h_bcnvsamplitude0_HB",
" ", baP, baR, baR2);
8097 h_bcnvsamplitude0_HE =
new TH1F(
"h_bcnvsamplitude0_HE",
" ", baP, baR, baR2);
8098 h_bcnvsamplitude0_HF =
new TH1F(
"h_bcnvsamplitude0_HF",
" ", baP, baR, baR2);
8099 h_bcnvsamplitude0_HO =
new TH1F(
"h_bcnvsamplitude0_HO",
" ", baP, baR, baR2);
8102 float zaR = 10000000.;
8103 float zaR2 = 50000000.;
8104 h_orbitNumvsamplitude_HB =
new TH1F(
"h_orbitNumvsamplitude_HB",
" ", zaP, zaR, zaR2);
8105 h_orbitNumvsamplitude_HE =
new TH1F(
"h_orbitNumvsamplitude_HE",
" ", zaP, zaR, zaR2);
8106 h_orbitNumvsamplitude_HF =
new TH1F(
"h_orbitNumvsamplitude_HF",
" ", zaP, zaR, zaR2);
8107 h_orbitNumvsamplitude_HO =
new TH1F(
"h_orbitNumvsamplitude_HO",
" ", zaP, zaR, zaR2);
8108 h_orbitNumvsamplitude0_HB =
new TH1F(
"h_orbitNumvsamplitude0_HB",
" ", zaP, zaR, zaR2);
8109 h_orbitNumvsamplitude0_HE =
new TH1F(
"h_orbitNumvsamplitude0_HE",
" ", zaP, zaR, zaR2);
8110 h_orbitNumvsamplitude0_HF =
new TH1F(
"h_orbitNumvsamplitude0_HF",
" ", zaP, zaR, zaR2);
8111 h_orbitNumvsamplitude0_HO =
new TH1F(
"h_orbitNumvsamplitude0_HO",
" ", zaP, zaR, zaR2);
8113 h_2DsumADCAmplEtaPhiLs0 =
8114 new TH2F(
"h_2DsumADCAmplEtaPhiLs0",
" ", nlsminmax, alsmin, blsmax,
znphi *
zneta, 1.,
znphi *
zneta + 1.);
8115 h_2DsumADCAmplEtaPhiLs1 =
8116 new TH2F(
"h_2DsumADCAmplEtaPhiLs1",
" ", nlsminmax, alsmin, blsmax,
znphi *
zneta, 1.,
znphi *
zneta + 1.);
8117 h_2DsumADCAmplEtaPhiLs2 =
8118 new TH2F(
"h_2DsumADCAmplEtaPhiLs2",
" ", nlsminmax, alsmin, blsmax,
znphi *
zneta, 1.,
znphi *
zneta + 1.);
8119 h_2DsumADCAmplEtaPhiLs3 =
8120 new TH2F(
"h_2DsumADCAmplEtaPhiLs3",
" ", nlsminmax, alsmin, blsmax,
znphi *
zneta, 1.,
znphi *
zneta + 1.);
8122 h_2DsumADCAmplEtaPhiLs00 =
8123 new TH2F(
"h_2DsumADCAmplEtaPhiLs00",
" ", nlsminmax, alsmin, blsmax,
znphi *
zneta, 1.,
znphi *
zneta + 1.);
8124 h_2DsumADCAmplEtaPhiLs10 =
8125 new TH2F(
"h_2DsumADCAmplEtaPhiLs10",
" ", nlsminmax, alsmin, blsmax,
znphi *
zneta, 1.,
znphi *
zneta + 1.);
8126 h_2DsumADCAmplEtaPhiLs20 =
8127 new TH2F(
"h_2DsumADCAmplEtaPhiLs20",
" ", nlsminmax, alsmin, blsmax,
znphi *
zneta, 1.,
znphi *
zneta + 1.);
8128 h_2DsumADCAmplEtaPhiLs30 =
8129 new TH2F(
"h_2DsumADCAmplEtaPhiLs30",
" ", nlsminmax, alsmin, blsmax,
znphi *
zneta, 1.,
znphi *
zneta + 1.);
8131 h_sumADCAmplEtaPhiLs =
new TH1F(
"h_sumADCAmplEtaPhiLs",
" ", 1000, 0., 14000.);
8132 h_sumADCAmplEtaPhiLs_bbbc =
new TH1F(
"h_sumADCAmplEtaPhiLs_bbbc",
" ", 1000, 0., 300000.);
8133 h_sumADCAmplEtaPhiLs_bbb1 =
new TH1F(
"h_sumADCAmplEtaPhiLs_bbb1",
" ", 100, 0., 3000.);
8134 h_sumADCAmplEtaPhiLs_lscounterM1 =
new TH1F(
"h_sumADCAmplEtaPhiLs_lscounterM1",
" ", 600, 1., 601.);
8135 h_sumADCAmplEtaPhiLs_ietaphi =
new TH1F(
"h_sumADCAmplEtaPhiLs_ietaphi",
" ", 400, 0., 400.);
8136 h_sumADCAmplEtaPhiLs_lscounterM1orbitNum =
new TH1F(
"h_sumADCAmplEtaPhiLs_lscounterM1orbitNum",
" ", 600, 1., 601.);
8137 h_sumADCAmplEtaPhiLs_orbitNum =
new TH1F(
"h_sumADCAmplEtaPhiLs_orbitNum",
" ", 1000, 25000000., 40000000.);
8142 int bac = howmanybinsonplots_;
8144 float bac2 = bac + 1.;
8147 h_nbadchannels_depth1_HB =
new TH1F(
"h_nbadchannels_depth1_HB",
" ", 100, 1., 3001.);
8148 h_runnbadchannels_depth1_HB =
new TH1F(
"h_runnbadchannels_depth1_HB",
" ", bac, 1., bac2);
8149 h_runnbadchannelsC_depth1_HB =
new TH1F(
"h_runnbadchannelsC_depth1_HB",
" ", bac, 1., bac2);
8150 h_runbadrate_depth1_HB =
new TH1F(
"h_runbadrate_depth1_HB",
" ", bac, 1., bac2);
8151 h_runbadrateC_depth1_HB =
new TH1F(
"h_runbadrateC_depth1_HB",
" ", bac, 1., bac2);
8152 h_runbadrate0_depth1_HB =
new TH1F(
"h_runbadrate0_depth1_HB",
" ", bac, 1., bac2);
8154 h_nbadchannels_depth2_HB =
new TH1F(
"h_nbadchannels_depth2_HB",
" ", 100, 1., 501.);
8155 h_runnbadchannels_depth2_HB =
new TH1F(
"h_runnbadchannels_depth2_HB",
" ", bac, 1., bac2);
8156 h_runnbadchannelsC_depth2_HB =
new TH1F(
"h_runnbadchannelsC_depth2_HB",
" ", bac, 1., bac2);
8157 h_runbadrate_depth2_HB =
new TH1F(
"h_runbadrate_depth2_HB",
" ", bac, 1., bac2);
8158 h_runbadrateC_depth2_HB =
new TH1F(
"h_runbadrateC_depth2_HB",
" ", bac, 1., bac2);
8159 h_runbadrate0_depth2_HB =
new TH1F(
"h_runbadrate0_depth2_HB",
" ", bac, 1., bac2);
8161 h_nbadchannels_depth1_HE =
new TH1F(
"h_nbadchannels_depth1_HE",
" ", 100, 1., 3001.);
8162 h_runnbadchannels_depth1_HE =
new TH1F(
"h_runnbadchannels_depth1_HE",
" ", bac, 1., bac2);
8163 h_runnbadchannelsC_depth1_HE =
new TH1F(
"h_runnbadchannelsC_depth1_HE",
" ", bac, 1., bac2);
8164 h_runbadrate_depth1_HE =
new TH1F(
"h_runbadrate_depth1_HE",
" ", bac, 1., bac2);
8165 h_runbadrateC_depth1_HE =
new TH1F(
"h_runbadrateC_depth1_HE",
" ", bac, 1., bac2);
8166 h_runbadrate0_depth1_HE =
new TH1F(
"h_runbadrate0_depth1_HE",
" ", bac, 1., bac2);
8168 h_nbadchannels_depth2_HE =
new TH1F(
"h_nbadchannels_depth2_HE",
" ", 100, 1., 3001.);
8169 h_runnbadchannels_depth2_HE =
new TH1F(
"h_runnbadchannels_depth2_HE",
" ", bac, 1., bac2);
8170 h_runnbadchannelsC_depth2_HE =
new TH1F(
"h_runnbadchannelsC_depth2_HE",
" ", bac, 1., bac2);
8171 h_runbadrate_depth2_HE =
new TH1F(
"h_runbadrate_depth2_HE",
" ", bac, 1., bac2);
8172 h_runbadrateC_depth2_HE =
new TH1F(
"h_runbadrateC_depth2_HE",
" ", bac, 1., bac2);
8173 h_runbadrate0_depth2_HE =
new TH1F(
"h_runbadrate0_depth2_HE",
" ", bac, 1., bac2);
8175 h_nbadchannels_depth3_HE =
new TH1F(
"h_nbadchannels_depth3_HE",
" ", 100, 1., 501.);
8176 h_runnbadchannels_depth3_HE =
new TH1F(
"h_runnbadchannels_depth3_HE",
" ", bac, 1., bac2);
8177 h_runnbadchannelsC_depth3_HE =
new TH1F(
"h_runnbadchannelsC_depth3_HE",
" ", bac, 1., bac2);
8178 h_runbadrate_depth3_HE =
new TH1F(
"h_runbadrate_depth3_HE",
" ", bac, 1., bac2);
8179 h_runbadrateC_depth3_HE =
new TH1F(
"h_runbadrateC_depth3_HE",
" ", bac, 1., bac2);
8180 h_runbadrate0_depth3_HE =
new TH1F(
"h_runbadrate0_depth3_HE",
" ", bac, 1., bac2);
8182 h_nbadchannels_depth1_HF =
new TH1F(
"h_nbadchannels_depth1_HF",
" ", 100, 1., 3001.);
8183 h_runnbadchannels_depth1_HF =
new TH1F(
"h_runnbadchannels_depth1_HF",
" ", bac, 1., bac2);
8184 h_runnbadchannelsC_depth1_HF =
new TH1F(
"h_runnbadchannelsC_depth1_HF",
" ", bac, 1., bac2);
8185 h_runbadrate_depth1_HF =
new TH1F(
"h_runbadrate_depth1_HF",
" ", bac, 1., bac2);
8186 h_runbadrateC_depth1_HF =
new TH1F(
"h_runbadrateC_depth1_HF",
" ", bac, 1., bac2);
8187 h_runbadrate0_depth1_HF =
new TH1F(
"h_runbadrate0_depth1_HF",
" ", bac, 1., bac2);
8189 h_nbadchannels_depth2_HF =
new TH1F(
"h_nbadchannels_depth2_HF",
" ", 100, 1., 501.);
8190 h_runnbadchannels_depth2_HF =
new TH1F(
"h_runnbadchannels_depth2_HF",
" ", bac, 1., bac2);
8191 h_runnbadchannelsC_depth2_HF =
new TH1F(
"h_runnbadchannelsC_depth2_HF",
" ", bac, 1., bac2);
8192 h_runbadrate_depth2_HF =
new TH1F(
"h_runbadrate_depth2_HF",
" ", bac, 1., bac2);
8193 h_runbadrateC_depth2_HF =
new TH1F(
"h_runbadrateC_depth2_HF",
" ", bac, 1., bac2);
8194 h_runbadrate0_depth2_HF =
new TH1F(
"h_runbadrate0_depth2_HF",
" ", bac, 1., bac2);
8196 h_nbadchannels_depth4_HO =
new TH1F(
"h_nbadchannels_depth4_HO",
" ", 100, 1., 3001.);
8197 h_runnbadchannels_depth4_HO =
new TH1F(
"h_runnbadchannels_depth4_HO",
" ", bac, 1., bac2);
8198 h_runnbadchannelsC_depth4_HO =
new TH1F(
"h_runnbadchannelsC_depth4_HO",
" ", bac, 1., bac2);
8199 h_runbadrate_depth4_HO =
new TH1F(
"h_runbadrate_depth4_HO",
" ", bac, 1., bac2);
8200 h_runbadrateC_depth4_HO =
new TH1F(
"h_runbadrateC_depth4_HO",
" ", bac, 1., bac2);
8201 h_runbadrate0_depth4_HO =
new TH1F(
"h_runbadrate0_depth4_HO",
" ", bac, 1., bac2);
8204 h_FullSignal3D_HB =
new TH2F(
"h_FullSignal3D_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8205 h_FullSignal3D0_HB =
new TH2F(
"h_FullSignal3D0_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8206 h_FullSignal3D_HE =
new TH2F(
"h_FullSignal3D_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8207 h_FullSignal3D0_HE =
new TH2F(
"h_FullSignal3D0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8208 h_FullSignal3D_HO =
new TH2F(
"h_FullSignal3D_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8209 h_FullSignal3D0_HO =
new TH2F(
"h_FullSignal3D0_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8210 h_FullSignal3D_HF =
new TH2F(
"h_FullSignal3D_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8211 h_FullSignal3D0_HF =
new TH2F(
"h_FullSignal3D0_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8214 h_ADCCalib_HB =
new TH1F(
"h_ADCCalib_HB",
" ", 100, 10., 10000.);
8215 h_ADCCalib1_HB =
new TH1F(
"h_ADCCalib1_HB",
" ", 100, 0.1, 100.1);
8216 h_mapADCCalib047_HB =
new TH2F(
"h_mapADCCalib047_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8217 h_mapADCCalib_HB =
new TH2F(
"h_mapADCCalib_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8218 h_RatioCalib_HB =
new TH1F(
"h_RatioCalib_HB",
" ", 100, 0., 1.);
8219 h_mapRatioCalib047_HB =
new TH2F(
"h_mapRatioCalib047_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8220 h_mapRatioCalib_HB =
new TH2F(
"h_mapRatioCalib_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8221 h_TSmaxCalib_HB =
new TH1F(
"h_TSmaxCalib_HB",
" ", 100, 0., 10.);
8222 h_mapTSmaxCalib047_HB =
new TH2F(
"h_mapTSmaxCalib047_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8223 h_mapTSmaxCalib_HB =
new TH2F(
"h_mapTSmaxCalib_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8224 h_TSmeanCalib_HB =
new TH1F(
"h_TSmeanCalib_HB",
" ", 100, 0., 10.);
8225 h_mapTSmeanCalib047_HB =
new TH2F(
"h_mapTSmeanCalib047_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8226 h_mapTSmeanCalib_HB =
new TH2F(
"h_mapTSmeanCalib_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8227 h_WidthCalib_HB =
new TH1F(
"h_WidthCalib_HB",
" ", 100, 0., 5.);
8228 h_mapWidthCalib047_HB =
new TH2F(
"h_mapWidthCalib047_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8229 h_mapCapCalib047_HB =
new TH2F(
"h_mapCapCalib047_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8230 h_mapWidthCalib_HB =
new TH2F(
"h_mapWidthCalib_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8231 h_map_HB =
new TH2F(
"h_map_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8232 h_ADCCalib_HE =
new TH1F(
"h_ADCCalib_HE",
" ", 100, 10., 10000.);
8233 h_ADCCalib1_HE =
new TH1F(
"h_ADCCalib1_HE",
" ", 100, 0.1, 100.1);
8234 h_mapADCCalib047_HE =
new TH2F(
"h_mapADCCalib047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8235 h_mapADCCalib_HE =
new TH2F(
"h_mapADCCalib_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8236 h_RatioCalib_HE =
new TH1F(
"h_RatioCalib_HE",
" ", 100, 0., 1.);
8237 h_mapRatioCalib047_HE =
new TH2F(
"h_mapRatioCalib047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8238 h_mapRatioCalib_HE =
new TH2F(
"h_mapRatioCalib_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8239 h_TSmaxCalib_HE =
new TH1F(
"h_TSmaxCalib_HE",
" ", 100, 0., 10.);
8240 h_mapTSmaxCalib047_HE =
new TH2F(
"h_mapTSmaxCalib047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8241 h_mapTSmaxCalib_HE =
new TH2F(
"h_mapTSmaxCalib_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8242 h_TSmeanCalib_HE =
new TH1F(
"h_TSmeanCalib_HE",
" ", 100, 0., 10.);
8243 h_mapTSmeanCalib047_HE =
new TH2F(
"h_mapTSmeanCalib047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8244 h_mapTSmeanCalib_HE =
new TH2F(
"h_mapTSmeanCalib_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8245 h_WidthCalib_HE =
new TH1F(
"h_WidthCalib_HE",
" ", 100, 0., 5.);
8246 h_mapWidthCalib047_HE =
new TH2F(
"h_mapWidthCalib047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8247 h_mapCapCalib047_HE =
new TH2F(
"h_mapCapCalib047_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8248 h_mapWidthCalib_HE =
new TH2F(
"h_mapWidthCalib_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8249 h_map_HE =
new TH2F(
"h_map_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8250 h_ADCCalib_HO =
new TH1F(
"h_ADCCalib_HO",
" ", 100, 10., 10000.);
8251 h_ADCCalib1_HO =
new TH1F(
"h_ADCCalib1_HO",
" ", 100, 0.1, 100.1);
8252 h_mapADCCalib047_HO =
new TH2F(
"h_mapADCCalib047_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8253 h_mapADCCalib_HO =
new TH2F(
"h_mapADCCalib_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8254 h_RatioCalib_HO =
new TH1F(
"h_RatioCalib_HO",
" ", 100, 0., 1.);
8255 h_mapRatioCalib047_HO =
new TH2F(
"h_mapRatioCalib047_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8256 h_mapRatioCalib_HO =
new TH2F(
"h_mapRatioCalib_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8257 h_TSmaxCalib_HO =
new TH1F(
"h_TSmaxCalib_HO",
" ", 100, 0., 10.);
8258 h_mapTSmaxCalib047_HO =
new TH2F(
"h_mapTSmaxCalib047_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8259 h_mapTSmaxCalib_HO =
new TH2F(
"h_mapTSmaxCalib_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8260 h_TSmeanCalib_HO =
new TH1F(
"h_TSmeanCalib_HO",
" ", 100, 0., 10.);
8261 h_mapTSmeanCalib047_HO =
new TH2F(
"h_mapTSmeanCalib047_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8262 h_mapTSmeanCalib_HO =
new TH2F(
"h_mapTSmeanCalib_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8263 h_WidthCalib_HO =
new TH1F(
"h_WidthCalib_HO",
" ", 100, 0., 5.);
8264 h_mapWidthCalib047_HO =
new TH2F(
"h_mapWidthCalib047_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8265 h_mapCapCalib047_HO =
new TH2F(
"h_mapCapCalib047_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8266 h_mapWidthCalib_HO =
new TH2F(
"h_mapWidthCalib_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8267 h_map_HO =
new TH2F(
"h_map_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8268 h_ADCCalib_HF =
new TH1F(
"h_ADCCalib_HF",
" ", 100, 10., 2000.);
8269 h_ADCCalib1_HF =
new TH1F(
"h_ADCCalib1_HF",
" ", 100, 0.1, 100.1);
8270 h_mapADCCalib047_HF =
new TH2F(
"h_mapADCCalib047_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8271 h_mapADCCalib_HF =
new TH2F(
"h_mapADCCalib_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8272 h_RatioCalib_HF =
new TH1F(
"h_RatioCalib_HF",
" ", 100, 0., 1.);
8273 h_mapRatioCalib047_HF =
new TH2F(
"h_mapRatioCalib047_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8274 h_mapRatioCalib_HF =
new TH2F(
"h_mapRatioCalib_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8275 h_TSmaxCalib_HF =
new TH1F(
"h_TSmaxCalib_HF",
" ", 100, 0., 10.);
8276 h_mapTSmaxCalib047_HF =
new TH2F(
"h_mapTSmaxCalib047_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8277 h_mapTSmaxCalib_HF =
new TH2F(
"h_mapTSmaxCalib_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8278 h_TSmeanCalib_HF =
new TH1F(
"h_TSmeanCalib_HF",
" ", 100, 0., 10.);
8279 h_mapTSmeanCalib047_HF =
new TH2F(
"h_mapTSmeanCalib047_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8280 h_mapTSmeanCalib_HF =
new TH2F(
"h_mapTSmeanCalib_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8281 h_WidthCalib_HF =
new TH1F(
"h_WidthCalib_HF",
" ", 100, 0., 5.);
8282 h_mapWidthCalib047_HF =
new TH2F(
"h_mapWidthCalib047_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8283 h_mapCapCalib047_HF =
new TH2F(
"h_mapCapCalib047_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8284 h_mapWidthCalib_HF =
new TH2F(
"h_mapWidthCalib_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8285 h_map_HF =
new TH2F(
"h_map_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8287 h_nls_per_run =
new TH1F(
"h_nls_per_run",
" ", 100, 0., 800.);
8288 h_nls_per_run10 =
new TH1F(
"h_nls_per_run10",
" ", 100, 0., 60.);
8289 h_nevents_per_LS =
new TH1F(
"h_nevents_per_LS",
" ", 100, 0., 600.);
8290 h_nevents_per_LSzoom =
new TH1F(
"h_nevents_per_LSzoom",
" ", 50, 0., 50.);
8291 h_nevents_per_eachLS =
new TH1F(
"h_nevents_per_eachLS",
" ", bac, 1., bac2);
8292 h_nevents_per_eachRealLS =
new TH1F(
"h_nevents_per_eachRealLS",
" ", bac, 1., bac2);
8293 h_lsnumber_per_eachLS =
new TH1F(
"h_lsnumber_per_eachLS",
" ", bac, 1., bac2);
8297 h_sumPedestalLS1 =
new TH1F(
"h_sumPedestalLS1",
" ", 100, 0., pst1);
8298 h_2DsumPedestalLS1 =
new TH2F(
"h_2DsumPedestalLS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8299 h_sumPedestalperLS1 =
new TH1F(
"h_sumPedestalperLS1",
" ", bac, 1., bac2);
8300 h_2D0sumPedestalLS1 =
new TH2F(
"h_2D0sumPedestalLS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8301 h_sum0PedestalperLS1 =
new TH1F(
"h_sum0PedestalperLS1",
" ", bac, 1., bac2);
8303 h_sumPedestalLS2 =
new TH1F(
"h_sumPedestalLS2",
" ", 100, 0., pst1);
8304 h_2DsumPedestalLS2 =
new TH2F(
"h_2DsumPedestalLS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8305 h_sumPedestalperLS2 =
new TH1F(
"h_sumPedestalperLS2",
" ", bac, 1., bac2);
8306 h_2D0sumPedestalLS2 =
new TH2F(
"h_2D0sumPedestalLS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8307 h_sum0PedestalperLS2 =
new TH1F(
"h_sum0PedestalperLS2",
" ", bac, 1., bac2);
8309 h_sumPedestalLS3 =
new TH1F(
"h_sumPedestalLS3",
" ", 100, 0., pst1);
8310 h_2DsumPedestalLS3 =
new TH2F(
"h_2DsumPedestalLS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8311 h_sumPedestalperLS3 =
new TH1F(
"h_sumPedestalperLS3",
" ", bac, 1., bac2);
8312 h_2D0sumPedestalLS3 =
new TH2F(
"h_2D0sumPedestalLS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8313 h_sum0PedestalperLS3 =
new TH1F(
"h_sum0PedestalperLS3",
" ", bac, 1., bac2);
8315 h_sumPedestalLS4 =
new TH1F(
"h_sumPedestalLS4",
" ", 100, 0., pst1);
8316 h_2DsumPedestalLS4 =
new TH2F(
"h_2DsumPedestalLS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8317 h_sumPedestalperLS4 =
new TH1F(
"h_sumPedestalperLS4",
" ", bac, 1., bac2);
8318 h_2D0sumPedestalLS4 =
new TH2F(
"h_2D0sumPedestalLS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8319 h_sum0PedestalperLS4 =
new TH1F(
"h_sum0PedestalperLS4",
" ", bac, 1., bac2);
8321 h_sumPedestalLS5 =
new TH1F(
"h_sumPedestalLS5",
" ", 100, 0., pst1);
8322 h_2DsumPedestalLS5 =
new TH2F(
"h_2DsumPedestalLS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8323 h_sumPedestalperLS5 =
new TH1F(
"h_sumPedestalperLS5",
" ", bac, 1., bac2);
8324 h_2D0sumPedestalLS5 =
new TH2F(
"h_2D0sumPedestalLS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8325 h_sum0PedestalperLS5 =
new TH1F(
"h_sum0PedestalperLS5",
" ", bac, 1., bac2);
8327 h_sumPedestalLS6 =
new TH1F(
"h_sumPedestalLS6",
" ", 100, 0., pst1);
8328 h_2DsumPedestalLS6 =
new TH2F(
"h_2DsumPedestalLS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8329 h_sumPedestalperLS6 =
new TH1F(
"h_sumPedestalperLS6",
" ", bac, 1., bac2);
8330 h_2D0sumPedestalLS6 =
new TH2F(
"h_2D0sumPedestalLS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8331 h_sum0PedestalperLS6 =
new TH1F(
"h_sum0PedestalperLS6",
" ", bac, 1., bac2);
8333 h_sumPedestalLS7 =
new TH1F(
"h_sumPedestalLS7",
" ", 100, 0., pst1);
8334 h_2DsumPedestalLS7 =
new TH2F(
"h_2DsumPedestalLS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8335 h_sumPedestalperLS7 =
new TH1F(
"h_sumPedestalperLS7",
" ", bac, 1., bac2);
8336 h_2D0sumPedestalLS7 =
new TH2F(
"h_2D0sumPedestalLS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8337 h_sum0PedestalperLS7 =
new TH1F(
"h_sum0PedestalperLS7",
" ", bac, 1., bac2);
8339 h_sumPedestalLS8 =
new TH1F(
"h_sumPedestalLS8",
" ", 100, 0., pst1);
8340 h_2DsumPedestalLS8 =
new TH2F(
"h_2DsumPedestalLS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8341 h_sumPedestalperLS8 =
new TH1F(
"h_sumPedestalperLS8",
" ", bac, 1., bac2);
8342 h_2D0sumPedestalLS8 =
new TH2F(
"h_2D0sumPedestalLS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8343 h_sum0PedestalperLS8 =
new TH1F(
"h_sum0PedestalperLS8",
" ", bac, 1., bac2);
8347 h_sumADCAmplLS1copy1 =
new TH1F(
"h_sumADCAmplLS1copy1",
" ", 100, 0., 10000);
8348 h_sumADCAmplLS1copy2 =
new TH1F(
"h_sumADCAmplLS1copy2",
" ", 100, 0., 20000);
8349 h_sumADCAmplLS1copy3 =
new TH1F(
"h_sumADCAmplLS1copy3",
" ", 100, 0., 50000);
8350 h_sumADCAmplLS1copy4 =
new TH1F(
"h_sumADCAmplLS1copy4",
" ", 100, 0., 100000);
8351 h_sumADCAmplLS1copy5 =
new TH1F(
"h_sumADCAmplLS1copy5",
" ", 100, 0., 150000);
8352 h_sumADCAmplLS1 =
new TH1F(
"h_sumADCAmplLS1",
" ", 100, 0., lsdep_estimator1_HBdepth1_);
8353 h_2DsumADCAmplLS1 =
new TH2F(
"h_2DsumADCAmplLS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8354 h_2DsumADCAmplLS1_LSselected =
new TH2F(
"h_2DsumADCAmplLS1_LSselected",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8355 h_sumADCAmplperLS1 =
new TH1F(
"h_sumADCAmplperLS1",
" ", bac, 1., bac2);
8356 h_sumCutADCAmplperLS1 =
new TH1F(
"h_sumCutADCAmplperLS1",
" ", bac, 1., bac2);
8357 h_2D0sumADCAmplLS1 =
new TH2F(
"h_2D0sumADCAmplLS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8358 h_sum0ADCAmplperLS1 =
new TH1F(
"h_sum0ADCAmplperLS1",
" ", bac, 1., bac2);
8360 h_sumADCAmplLS2 =
new TH1F(
"h_sumADCAmplLS2",
" ", 100, 0., lsdep_estimator1_HBdepth2_);
8361 h_2DsumADCAmplLS2 =
new TH2F(
"h_2DsumADCAmplLS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8362 h_2DsumADCAmplLS2_LSselected =
new TH2F(
"h_2DsumADCAmplLS2_LSselected",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8363 h_sumADCAmplperLS2 =
new TH1F(
"h_sumADCAmplperLS2",
" ", bac, 1., bac2);
8364 h_sumCutADCAmplperLS2 =
new TH1F(
"h_sumCutADCAmplperLS2",
" ", bac, 1., bac2);
8365 h_2D0sumADCAmplLS2 =
new TH2F(
"h_2D0sumADCAmplLS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8366 h_sum0ADCAmplperLS2 =
new TH1F(
"h_sum0ADCAmplperLS2",
" ", bac, 1., bac2);
8368 h_sumADCAmplLS3 =
new TH1F(
"h_sumADCAmplLS3",
" ", 100, 0., lsdep_estimator1_HEdepth1_);
8369 h_2DsumADCAmplLS3 =
new TH2F(
"h_2DsumADCAmplLS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8370 h_2DsumADCAmplLS3_LSselected =
new TH2F(
"h_2DsumADCAmplLS3_LSselected",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8371 h_sumADCAmplperLS3 =
new TH1F(
"h_sumADCAmplperLS3",
" ", bac, 1., bac2);
8372 h_sumCutADCAmplperLS3 =
new TH1F(
"h_sumCutADCAmplperLS3",
" ", bac, 1., bac2);
8373 h_2D0sumADCAmplLS3 =
new TH2F(
"h_2D0sumADCAmplLS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8374 h_sum0ADCAmplperLS3 =
new TH1F(
"h_sum0ADCAmplperLS3",
" ", bac, 1., bac2);
8376 h_sumADCAmplLS4 =
new TH1F(
"h_sumADCAmplLS4",
" ", 100, 0., lsdep_estimator1_HEdepth2_);
8377 h_2DsumADCAmplLS4 =
new TH2F(
"h_2DsumADCAmplLS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8378 h_2DsumADCAmplLS4_LSselected =
new TH2F(
"h_2DsumADCAmplLS4_LSselected",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8379 h_sumADCAmplperLS4 =
new TH1F(
"h_sumADCAmplperLS4",
" ", bac, 1., bac2);
8380 h_sumCutADCAmplperLS4 =
new TH1F(
"h_sumCutADCAmplperLS4",
" ", bac, 1., bac2);
8381 h_2D0sumADCAmplLS4 =
new TH2F(
"h_2D0sumADCAmplLS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8382 h_sum0ADCAmplperLS4 =
new TH1F(
"h_sum0ADCAmplperLS4",
" ", bac, 1., bac2);
8384 h_sumADCAmplLS5 =
new TH1F(
"h_sumADCAmplLS5",
" ", 100, 0., lsdep_estimator1_HEdepth3_);
8385 h_2DsumADCAmplLS5 =
new TH2F(
"h_2DsumADCAmplLS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8386 h_2DsumADCAmplLS5_LSselected =
new TH2F(
"h_2DsumADCAmplLS5_LSselected",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8387 h_sumADCAmplperLS5 =
new TH1F(
"h_sumADCAmplperLS5",
" ", bac, 1., bac2);
8388 h_sumCutADCAmplperLS5 =
new TH1F(
"h_sumCutADCAmplperLS5",
" ", bac, 1., bac2);
8389 h_2D0sumADCAmplLS5 =
new TH2F(
"h_2D0sumADCAmplLS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8390 h_sum0ADCAmplperLS5 =
new TH1F(
"h_sum0ADCAmplperLS5",
" ", bac, 1., bac2);
8392 h_sumADCAmplperLSdepth4HEu =
new TH1F(
"h_sumADCAmplperLSdepth4HEu",
" ", bac, 1., bac2);
8393 h_sumCutADCAmplperLSdepth4HEu =
new TH1F(
"h_sumCutADCAmplperLSdepth4HEu",
" ", bac, 1., bac2);
8394 h_sum0ADCAmplperLSdepth4HEu =
new TH1F(
"h_sum0ADCAmplperLSdepth4HEu",
" ", bac, 1., bac2);
8397 h_sumADCAmplperLSdepth5HEu =
new TH1F(
"h_sumADCAmplperLSdepth5HEu",
" ", bac, 1., bac2);
8398 h_sumCutADCAmplperLSdepth5HEu =
new TH1F(
"h_sumCutADCAmplperLSdepth5HEu",
" ", bac, 1., bac2);
8399 h_sum0ADCAmplperLSdepth5HEu =
new TH1F(
"h_sum0ADCAmplperLSdepth5HEu",
" ", bac, 1., bac2);
8401 h_sumADCAmplperLSdepth6HEu =
new TH1F(
"h_sumADCAmplperLSdepth6HEu",
" ", bac, 1., bac2);
8402 h_sumCutADCAmplperLSdepth6HEu =
new TH1F(
"h_sumCutADCAmplperLSdepth6HEu",
" ", bac, 1., bac2);
8403 h_sum0ADCAmplperLSdepth6HEu =
new TH1F(
"h_sum0ADCAmplperLSdepth6HEu",
" ", bac, 1., bac2);
8405 h_sumADCAmplperLSdepth7HEu =
new TH1F(
"h_sumADCAmplperLSdepth7HEu",
" ", bac, 1., bac2);
8406 h_sumCutADCAmplperLSdepth7HEu =
new TH1F(
"h_sumCutADCAmplperLSdepth7HEu",
" ", bac, 1., bac2);
8407 h_sum0ADCAmplperLSdepth7HEu =
new TH1F(
"h_sum0ADCAmplperLSdepth7HEu",
" ", bac, 1., bac2);
8409 h_2DsumADCAmplLSdepth4HEu =
new TH2F(
"h_2DsumADCAmplLSdepth4HEu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8410 h_2D0sumADCAmplLSdepth4HEu =
new TH2F(
"h_2D0sumADCAmplLSdepth4HEu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8411 h_2DsumADCAmplLSdepth5HEu =
new TH2F(
"h_2DsumADCAmplLSdepth5HEu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8412 h_2D0sumADCAmplLSdepth5HEu =
new TH2F(
"h_2D0sumADCAmplLSdepth5HEu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8413 h_2DsumADCAmplLSdepth6HEu =
new TH2F(
"h_2DsumADCAmplLSdepth6HEu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8414 h_2D0sumADCAmplLSdepth6HEu =
new TH2F(
"h_2D0sumADCAmplLSdepth6HEu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8415 h_2DsumADCAmplLSdepth7HEu =
new TH2F(
"h_2DsumADCAmplLSdepth7HEu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8416 h_2D0sumADCAmplLSdepth7HEu =
new TH2F(
"h_2D0sumADCAmplLSdepth7HEu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8417 h_2DsumADCAmplLSdepth3HFu =
new TH2F(
"h_2DsumADCAmplLSdepth3HFu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8418 h_2D0sumADCAmplLSdepth3HFu =
new TH2F(
"h_2D0sumADCAmplLSdepth3HFu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8419 h_2DsumADCAmplLSdepth4HFu =
new TH2F(
"h_2DsumADCAmplLSdepth4HFu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8420 h_2D0sumADCAmplLSdepth4HFu =
new TH2F(
"h_2D0sumADCAmplLSdepth4HFu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8422 h_sumADCAmplLS6 =
new TH1F(
"h_sumADCAmplLS6",
" ", 100, 0., lsdep_estimator1_HFdepth1_);
8423 h_2DsumADCAmplLS6 =
new TH2F(
"h_2DsumADCAmplLS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8424 h_2DsumADCAmplLS6_LSselected =
new TH2F(
"h_2DsumADCAmplLS6_LSselected",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8425 h_2D0sumADCAmplLS6 =
new TH2F(
"h_2D0sumADCAmplLS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8426 h_sumADCAmplperLS6 =
new TH1F(
"h_sumADCAmplperLS6",
" ", bac, 1., bac2);
8427 h_sumCutADCAmplperLS6 =
new TH1F(
"h_sumCutADCAmplperLS6",
" ", bac, 1., bac2);
8428 h_sum0ADCAmplperLS6 =
new TH1F(
"h_sum0ADCAmplperLS6",
" ", bac, 1., bac2);
8430 h_sumADCAmplperLS6u =
new TH1F(
"h_sumADCAmplperLS6u",
" ", bac, 1., bac2);
8431 h_sumCutADCAmplperLS6u =
new TH1F(
"h_sumCutADCAmplperLS6u",
" ", bac, 1., bac2);
8432 h_sum0ADCAmplperLS6u =
new TH1F(
"h_sum0ADCAmplperLS6u",
" ", bac, 1., bac2);
8434 h_sumADCAmplLS7 =
new TH1F(
"h_sumADCAmplLS7",
" ", 100, 0., lsdep_estimator1_HFdepth2_);
8435 h_2DsumADCAmplLS7 =
new TH2F(
"h_2DsumADCAmplLS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8436 h_2DsumADCAmplLS7_LSselected =
new TH2F(
"h_2DsumADCAmplLS7_LSselected",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8437 h_2D0sumADCAmplLS7 =
new TH2F(
"h_2D0sumADCAmplLS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8438 h_sumADCAmplperLS7 =
new TH1F(
"h_sumADCAmplperLS7",
" ", bac, 1., bac2);
8439 h_sumCutADCAmplperLS7 =
new TH1F(
"h_sumCutADCAmplperLS7",
" ", bac, 1., bac2);
8440 h_sum0ADCAmplperLS7 =
new TH1F(
"h_sum0ADCAmplperLS7",
" ", bac, 1., bac2);
8442 h_sumADCAmplperLS7u =
new TH1F(
"h_sumADCAmplperLS7u",
" ", bac, 1., bac2);
8443 h_sumCutADCAmplperLS7u =
new TH1F(
"h_sumCutADCAmplperLS7u",
" ", bac, 1., bac2);
8444 h_sum0ADCAmplperLS7u =
new TH1F(
"h_sum0ADCAmplperLS7u",
" ", bac, 1., bac2);
8446 h_sumADCAmplLS8 =
new TH1F(
"h_sumADCAmplLS8",
" ", 100, 0., lsdep_estimator1_HOdepth4_);
8447 h_2DsumADCAmplLS8 =
new TH2F(
"h_2DsumADCAmplLS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8448 h_2DsumADCAmplLS8_LSselected =
new TH2F(
"h_2DsumADCAmplLS8_LSselected",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8449 h_sumADCAmplperLS8 =
new TH1F(
"h_sumADCAmplperLS8",
" ", bac, 1., bac2);
8450 h_sumCutADCAmplperLS8 =
new TH1F(
"h_sumCutADCAmplperLS8",
" ", bac, 1., bac2);
8451 h_2D0sumADCAmplLS8 =
new TH2F(
"h_2D0sumADCAmplLS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8452 h_sum0ADCAmplperLS8 =
new TH1F(
"h_sum0ADCAmplperLS8",
" ", bac, 1., bac2);
8455 h_sumADCAmplperLSdepth3HBu =
new TH1F(
"h_sumADCAmplperLSdepth3HBu",
" ", bac, 1., bac2);
8456 h_sumCutADCAmplperLSdepth3HBu =
new TH1F(
"h_sumCutADCAmplperLSdepth3HBu",
" ", bac, 1., bac2);
8457 h_sum0ADCAmplperLSdepth3HBu =
new TH1F(
"h_sum0ADCAmplperLSdepth3HBu",
" ", bac, 1., bac2);
8459 h_sumADCAmplperLSdepth4HBu =
new TH1F(
"h_sumADCAmplperLSdepth4HBu",
" ", bac, 1., bac2);
8460 h_sumCutADCAmplperLSdepth4HBu =
new TH1F(
"h_sumCutADCAmplperLSdepth4HBu",
" ", bac, 1., bac2);
8461 h_sum0ADCAmplperLSdepth4HBu =
new TH1F(
"h_sum0ADCAmplperLSdepth4HBu",
" ", bac, 1., bac2);
8464 h_2DsumADCAmplLSdepth3HBu =
new TH2F(
"h_2DsumADCAmplLSdepth3HBu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8465 h_2D0sumADCAmplLSdepth3HBu =
new TH2F(
"h_2D0sumADCAmplLSdepth3HBu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8466 h_2DsumADCAmplLSdepth4HBu =
new TH2F(
"h_2DsumADCAmplLSdepth4HBu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8467 h_2D0sumADCAmplLSdepth4HBu =
new TH2F(
"h_2D0sumADCAmplLSdepth4HBu",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8470 h_sumADCAmplperLS1_P1 =
new TH1F(
"h_sumADCAmplperLS1_P1",
" ", bac, 1., bac2);
8471 h_sum0ADCAmplperLS1_P1 =
new TH1F(
"h_sum0ADCAmplperLS1_P1",
" ", bac, 1., bac2);
8472 h_sumADCAmplperLS1_P2 =
new TH1F(
"h_sumADCAmplperLS1_P2",
" ", bac, 1., bac2);
8473 h_sum0ADCAmplperLS1_P2 =
new TH1F(
"h_sum0ADCAmplperLS1_P2",
" ", bac, 1., bac2);
8474 h_sumADCAmplperLS1_M1 =
new TH1F(
"h_sumADCAmplperLS1_M1",
" ", bac, 1., bac2);
8475 h_sum0ADCAmplperLS1_M1 =
new TH1F(
"h_sum0ADCAmplperLS1_M1",
" ", bac, 1., bac2);
8476 h_sumADCAmplperLS1_M2 =
new TH1F(
"h_sumADCAmplperLS1_M2",
" ", bac, 1., bac2);
8477 h_sum0ADCAmplperLS1_M2 =
new TH1F(
"h_sum0ADCAmplperLS1_M2",
" ", bac, 1., bac2);
8480 h_sumADCAmplperLS3_P1 =
new TH1F(
"h_sumADCAmplperLS3_P1",
" ", bac, 1., bac2);
8481 h_sum0ADCAmplperLS3_P1 =
new TH1F(
"h_sum0ADCAmplperLS3_P1",
" ", bac, 1., bac2);
8482 h_sumADCAmplperLS3_P2 =
new TH1F(
"h_sumADCAmplperLS3_P2",
" ", bac, 1., bac2);
8483 h_sum0ADCAmplperLS3_P2 =
new TH1F(
"h_sum0ADCAmplperLS3_P2",
" ", bac, 1., bac2);
8484 h_sumADCAmplperLS3_M1 =
new TH1F(
"h_sumADCAmplperLS3_M1",
" ", bac, 1., bac2);
8485 h_sum0ADCAmplperLS3_M1 =
new TH1F(
"h_sum0ADCAmplperLS3_M1",
" ", bac, 1., bac2);
8486 h_sumADCAmplperLS3_M2 =
new TH1F(
"h_sumADCAmplperLS3_M2",
" ", bac, 1., bac2);
8487 h_sum0ADCAmplperLS3_M2 =
new TH1F(
"h_sum0ADCAmplperLS3_M2",
" ", bac, 1., bac2);
8490 h_sumADCAmplperLS6_P1 =
new TH1F(
"h_sumADCAmplperLS6_P1",
" ", bac, 1., bac2);
8491 h_sum0ADCAmplperLS6_P1 =
new TH1F(
"h_sum0ADCAmplperLS6_P1",
" ", bac, 1., bac2);
8492 h_sumADCAmplperLS6_P2 =
new TH1F(
"h_sumADCAmplperLS6_P2",
" ", bac, 1., bac2);
8493 h_sum0ADCAmplperLS6_P2 =
new TH1F(
"h_sum0ADCAmplperLS6_P2",
" ", bac, 1., bac2);
8494 h_sumADCAmplperLS6_M1 =
new TH1F(
"h_sumADCAmplperLS6_M1",
" ", bac, 1., bac2);
8495 h_sum0ADCAmplperLS6_M1 =
new TH1F(
"h_sum0ADCAmplperLS6_M1",
" ", bac, 1., bac2);
8496 h_sumADCAmplperLS6_M2 =
new TH1F(
"h_sumADCAmplperLS6_M2",
" ", bac, 1., bac2);
8497 h_sum0ADCAmplperLS6_M2 =
new TH1F(
"h_sum0ADCAmplperLS6_M2",
" ", bac, 1., bac2);
8500 h_sumADCAmplperLS8_P1 =
new TH1F(
"h_sumADCAmplperLS8_P1",
" ", bac, 1., bac2);
8501 h_sum0ADCAmplperLS8_P1 =
new TH1F(
"h_sum0ADCAmplperLS8_P1",
" ", bac, 1., bac2);
8502 h_sumADCAmplperLS8_P2 =
new TH1F(
"h_sumADCAmplperLS8_P2",
" ", bac, 1., bac2);
8503 h_sum0ADCAmplperLS8_P2 =
new TH1F(
"h_sum0ADCAmplperLS8_P2",
" ", bac, 1., bac2);
8504 h_sumADCAmplperLS8_M1 =
new TH1F(
"h_sumADCAmplperLS8_M1",
" ", bac, 1., bac2);
8505 h_sum0ADCAmplperLS8_M1 =
new TH1F(
"h_sum0ADCAmplperLS8_M1",
" ", bac, 1., bac2);
8506 h_sumADCAmplperLS8_M2 =
new TH1F(
"h_sumADCAmplperLS8_M2",
" ", bac, 1., bac2);
8507 h_sum0ADCAmplperLS8_M2 =
new TH1F(
"h_sum0ADCAmplperLS8_M2",
" ", bac, 1., bac2);
8510 h_sumTSmeanALS1 =
new TH1F(
"h_sumTSmeanALS1",
" ", 100, 0., lsdep_estimator2_HBdepth1_);
8511 h_2DsumTSmeanALS1 =
new TH2F(
"h_2DsumTSmeanALS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8512 h_sumTSmeanAperLS1 =
new TH1F(
"h_sumTSmeanAperLS1",
" ", bac, 1., bac2);
8513 h_sumTSmeanAperLS1_LSselected =
new TH1F(
"h_sumTSmeanAperLS1_LSselected",
" ", bac, 1., bac2);
8514 h_sumCutTSmeanAperLS1 =
new TH1F(
"h_sumCutTSmeanAperLS1",
" ", bac, 1., bac2);
8515 h_2D0sumTSmeanALS1 =
new TH2F(
"h_2D0sumTSmeanALS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8516 h_sum0TSmeanAperLS1 =
new TH1F(
"h_sum0TSmeanAperLS1",
" ", bac, 1., bac2);
8518 h_sumTSmeanALS2 =
new TH1F(
"h_sumTSmeanALS2",
" ", 100, 0., lsdep_estimator2_HBdepth2_);
8519 h_2DsumTSmeanALS2 =
new TH2F(
"h_2DsumTSmeanALS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8520 h_sumTSmeanAperLS2 =
new TH1F(
"h_sumTSmeanAperLS2",
" ", bac, 1., bac2);
8521 h_sumCutTSmeanAperLS2 =
new TH1F(
"h_sumCutTSmeanAperLS2",
" ", bac, 1., bac2);
8522 h_2D0sumTSmeanALS2 =
new TH2F(
"h_2D0sumTSmeanALS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8523 h_sum0TSmeanAperLS2 =
new TH1F(
"h_sum0TSmeanAperLS2",
" ", bac, 1., bac2);
8525 h_sumTSmeanALS3 =
new TH1F(
"h_sumTSmeanALS3",
" ", 100, 0., lsdep_estimator2_HEdepth1_);
8526 h_2DsumTSmeanALS3 =
new TH2F(
"h_2DsumTSmeanALS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8527 h_sumTSmeanAperLS3 =
new TH1F(
"h_sumTSmeanAperLS3",
" ", bac, 1., bac2);
8528 h_sumCutTSmeanAperLS3 =
new TH1F(
"h_sumCutTSmeanAperLS3",
" ", bac, 1., bac2);
8529 h_2D0sumTSmeanALS3 =
new TH2F(
"h_2D0sumTSmeanALS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8530 h_sum0TSmeanAperLS3 =
new TH1F(
"h_sum0TSmeanAperLS3",
" ", bac, 1., bac2);
8532 h_sumTSmeanALS4 =
new TH1F(
"h_sumTSmeanALS4",
" ", 100, 0., lsdep_estimator2_HEdepth2_);
8533 h_2DsumTSmeanALS4 =
new TH2F(
"h_2DsumTSmeanALS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8534 h_sumTSmeanAperLS4 =
new TH1F(
"h_sumTSmeanAperLS4",
" ", bac, 1., bac2);
8535 h_sumCutTSmeanAperLS4 =
new TH1F(
"h_sumCutTSmeanAperLS4",
" ", bac, 1., bac2);
8536 h_2D0sumTSmeanALS4 =
new TH2F(
"h_2D0sumTSmeanALS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8537 h_sum0TSmeanAperLS4 =
new TH1F(
"h_sum0TSmeanAperLS4",
" ", bac, 1., bac2);
8539 h_sumTSmeanALS5 =
new TH1F(
"h_sumTSmeanALS5",
" ", 100, 0., lsdep_estimator2_HEdepth3_);
8540 h_2DsumTSmeanALS5 =
new TH2F(
"h_2DsumTSmeanALS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8541 h_sumTSmeanAperLS5 =
new TH1F(
"h_sumTSmeanAperLS5",
" ", bac, 1., bac2);
8542 h_sumCutTSmeanAperLS5 =
new TH1F(
"h_sumCutTSmeanAperLS5",
" ", bac, 1., bac2);
8543 h_2D0sumTSmeanALS5 =
new TH2F(
"h_2D0sumTSmeanALS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8544 h_sum0TSmeanAperLS5 =
new TH1F(
"h_sum0TSmeanAperLS5",
" ", bac, 1., bac2);
8546 h_sumTSmeanALS6 =
new TH1F(
"h_sumTSmeanALS6",
" ", 100, 0., lsdep_estimator2_HFdepth1_);
8547 h_2DsumTSmeanALS6 =
new TH2F(
"h_2DsumTSmeanALS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8548 h_sumTSmeanAperLS6 =
new TH1F(
"h_sumTSmeanAperLS6",
" ", bac, 1., bac2);
8549 h_sumCutTSmeanAperLS6 =
new TH1F(
"h_sumCutTSmeanAperLS6",
" ", bac, 1., bac2);
8550 h_2D0sumTSmeanALS6 =
new TH2F(
"h_2D0sumTSmeanALS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8551 h_sum0TSmeanAperLS6 =
new TH1F(
"h_sum0TSmeanAperLS6",
" ", bac, 1., bac2);
8553 h_sumTSmeanALS7 =
new TH1F(
"h_sumTSmeanALS7",
" ", 100, 0., lsdep_estimator2_HFdepth2_);
8554 h_2DsumTSmeanALS7 =
new TH2F(
"h_2DsumTSmeanALS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8555 h_sumTSmeanAperLS7 =
new TH1F(
"h_sumTSmeanAperLS7",
" ", bac, 1., bac2);
8556 h_sumCutTSmeanAperLS7 =
new TH1F(
"h_sumCutTSmeanAperLS7",
" ", bac, 1., bac2);
8557 h_2D0sumTSmeanALS7 =
new TH2F(
"h_2D0sumTSmeanALS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8558 h_sum0TSmeanAperLS7 =
new TH1F(
"h_sum0TSmeanAperLS7",
" ", bac, 1., bac2);
8560 h_sumTSmeanALS8 =
new TH1F(
"h_sumTSmeanALS8",
" ", 100, 0., lsdep_estimator2_HOdepth4_);
8561 h_2DsumTSmeanALS8 =
new TH2F(
"h_2DsumTSmeanALS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8562 h_sumTSmeanAperLS8 =
new TH1F(
"h_sumTSmeanAperLS8",
" ", bac, 1., bac2);
8563 h_sumCutTSmeanAperLS8 =
new TH1F(
"h_sumCutTSmeanAperLS8",
" ", bac, 1., bac2);
8564 h_2D0sumTSmeanALS8 =
new TH2F(
"h_2D0sumTSmeanALS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8565 h_sum0TSmeanAperLS8 =
new TH1F(
"h_sum0TSmeanAperLS8",
" ", bac, 1., bac2);
8569 h_sumTSmaxALS1 =
new TH1F(
"h_sumTSmaxALS1",
" ", 100, 0., lsdep_estimator3_HBdepth1_);
8570 h_2DsumTSmaxALS1 =
new TH2F(
"h_2DsumTSmaxALS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8571 h_sumTSmaxAperLS1 =
new TH1F(
"h_sumTSmaxAperLS1",
" ", bac, 1., bac2);
8572 h_sumTSmaxAperLS1_LSselected =
new TH1F(
"h_sumTSmaxAperLS1_LSselected",
" ", bac, 1., bac2);
8573 h_sumCutTSmaxAperLS1 =
new TH1F(
"h_sumCutTSmaxAperLS1",
" ", bac, 1., bac2);
8574 h_2D0sumTSmaxALS1 =
new TH2F(
"h_2D0sumTSmaxALS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8575 h_sum0TSmaxAperLS1 =
new TH1F(
"h_sum0TSmaxAperLS1",
" ", bac, 1., bac2);
8577 h_sumTSmaxALS2 =
new TH1F(
"h_sumTSmaxALS2",
" ", 100, 0., lsdep_estimator3_HBdepth2_);
8578 h_2DsumTSmaxALS2 =
new TH2F(
"h_2DsumTSmaxALS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8579 h_sumTSmaxAperLS2 =
new TH1F(
"h_sumTSmaxAperLS2",
" ", bac, 1., bac2);
8580 h_sumCutTSmaxAperLS2 =
new TH1F(
"h_sumCutTSmaxAperLS2",
" ", bac, 1., bac2);
8581 h_2D0sumTSmaxALS2 =
new TH2F(
"h_2D0sumTSmaxALS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8582 h_sum0TSmaxAperLS2 =
new TH1F(
"h_sum0TSmaxAperLS2",
" ", bac, 1., bac2);
8584 h_sumTSmaxALS3 =
new TH1F(
"h_sumTSmaxALS3",
" ", 100, 0., lsdep_estimator3_HEdepth1_);
8585 h_2DsumTSmaxALS3 =
new TH2F(
"h_2DsumTSmaxALS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8586 h_sumTSmaxAperLS3 =
new TH1F(
"h_sumTSmaxAperLS3",
" ", bac, 1., bac2);
8587 h_sumCutTSmaxAperLS3 =
new TH1F(
"h_sumCutTSmaxAperLS3",
" ", bac, 1., bac2);
8588 h_2D0sumTSmaxALS3 =
new TH2F(
"h_2D0sumTSmaxALS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8589 h_sum0TSmaxAperLS3 =
new TH1F(
"h_sum0TSmaxAperLS3",
" ", bac, 1., bac2);
8591 h_sumTSmaxALS4 =
new TH1F(
"h_sumTSmaxALS4",
" ", 100, 0., lsdep_estimator3_HEdepth2_);
8592 h_2DsumTSmaxALS4 =
new TH2F(
"h_2DsumTSmaxALS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8593 h_sumTSmaxAperLS4 =
new TH1F(
"h_sumTSmaxAperLS4",
" ", bac, 1., bac2);
8594 h_sumCutTSmaxAperLS4 =
new TH1F(
"h_sumCutTSmaxAperLS4",
" ", bac, 1., bac2);
8595 h_2D0sumTSmaxALS4 =
new TH2F(
"h_2D0sumTSmaxALS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8596 h_sum0TSmaxAperLS4 =
new TH1F(
"h_sum0TSmaxAperLS4",
" ", bac, 1., bac2);
8598 h_sumTSmaxALS5 =
new TH1F(
"h_sumTSmaxALS5",
" ", 100, 0., lsdep_estimator3_HEdepth3_);
8599 h_2DsumTSmaxALS5 =
new TH2F(
"h_2DsumTSmaxALS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8600 h_sumTSmaxAperLS5 =
new TH1F(
"h_sumTSmaxAperLS5",
" ", bac, 1., bac2);
8601 h_sumCutTSmaxAperLS5 =
new TH1F(
"h_sumCutTSmaxAperLS5",
" ", bac, 1., bac2);
8602 h_2D0sumTSmaxALS5 =
new TH2F(
"h_2D0sumTSmaxALS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8603 h_sum0TSmaxAperLS5 =
new TH1F(
"h_sum0TSmaxAperLS5",
" ", bac, 1., bac2);
8605 h_sumTSmaxALS6 =
new TH1F(
"h_sumTSmaxALS6",
" ", 100, 0., lsdep_estimator3_HFdepth1_);
8606 h_2DsumTSmaxALS6 =
new TH2F(
"h_2DsumTSmaxALS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8607 h_sumTSmaxAperLS6 =
new TH1F(
"h_sumTSmaxAperLS6",
" ", bac, 1., bac2);
8608 h_sumCutTSmaxAperLS6 =
new TH1F(
"h_sumCutTSmaxAperLS6",
" ", bac, 1., bac2);
8609 h_2D0sumTSmaxALS6 =
new TH2F(
"h_2D0sumTSmaxALS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8610 h_sum0TSmaxAperLS6 =
new TH1F(
"h_sum0TSmaxAperLS6",
" ", bac, 1., bac2);
8612 h_sumTSmaxALS7 =
new TH1F(
"h_sumTSmaxALS7",
" ", 100, 0., lsdep_estimator3_HFdepth2_);
8613 h_2DsumTSmaxALS7 =
new TH2F(
"h_2DsumTSmaxALS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8614 h_sumTSmaxAperLS7 =
new TH1F(
"h_sumTSmaxAperLS7",
" ", bac, 1., bac2);
8615 h_sumCutTSmaxAperLS7 =
new TH1F(
"h_sumCutTSmaxAperLS7",
" ", bac, 1., bac2);
8616 h_2D0sumTSmaxALS7 =
new TH2F(
"h_2D0sumTSmaxALS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8617 h_sum0TSmaxAperLS7 =
new TH1F(
"h_sum0TSmaxAperLS7",
" ", bac, 1., bac2);
8619 h_sumTSmaxALS8 =
new TH1F(
"h_sumTSmaxALS8",
" ", 100, 0., lsdep_estimator3_HOdepth4_);
8620 h_2DsumTSmaxALS8 =
new TH2F(
"h_2DsumTSmaxALS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8621 h_sumTSmaxAperLS8 =
new TH1F(
"h_sumTSmaxAperLS8",
" ", bac, 1., bac2);
8622 h_sumCutTSmaxAperLS8 =
new TH1F(
"h_sumCutTSmaxAperLS8",
" ", bac, 1., bac2);
8623 h_2D0sumTSmaxALS8 =
new TH2F(
"h_2D0sumTSmaxALS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8624 h_sum0TSmaxAperLS8 =
new TH1F(
"h_sum0TSmaxAperLS8",
" ", bac, 1., bac2);
8629 h_sumAmplitudeLS1 =
new TH1F(
"h_sumAmplitudeLS1",
" ", 100, 0.0, lsdep_estimator4_HBdepth1_);
8630 h_2DsumAmplitudeLS1 =
new TH2F(
"h_2DsumAmplitudeLS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8631 h_sumAmplitudeperLS1 =
new TH1F(
"h_sumAmplitudeperLS1",
" ", bac, 1., bac2);
8632 h_sumAmplitudeperLS1_LSselected =
new TH1F(
"h_sumAmplitudeperLS1_LSselected",
" ", bac, 1., bac2);
8633 h_sumCutAmplitudeperLS1 =
new TH1F(
"h_sumCutAmplitudeperLS1",
" ", bac, 1., bac2);
8634 h_2D0sumAmplitudeLS1 =
new TH2F(
"h_2D0sumAmplitudeLS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8635 h_sum0AmplitudeperLS1 =
new TH1F(
"h_sum0AmplitudeperLS1",
" ", bac, 1., bac2);
8637 h_sumAmplitudeLS2 =
new TH1F(
"h_sumAmplitudeLS2",
" ", 100, 0.0, lsdep_estimator4_HBdepth2_);
8638 h_2DsumAmplitudeLS2 =
new TH2F(
"h_2DsumAmplitudeLS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8639 h_sumAmplitudeperLS2 =
new TH1F(
"h_sumAmplitudeperLS2",
" ", bac, 1., bac2);
8640 h_sumCutAmplitudeperLS2 =
new TH1F(
"h_sumCutAmplitudeperLS2",
" ", bac, 1., bac2);
8641 h_2D0sumAmplitudeLS2 =
new TH2F(
"h_2D0sumAmplitudeLS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8642 h_sum0AmplitudeperLS2 =
new TH1F(
"h_sum0AmplitudeperLS2",
" ", bac, 1., bac2);
8644 h_sumAmplitudeLS3 =
new TH1F(
"h_sumAmplitudeLS3",
" ", 100, 0.0, lsdep_estimator4_HEdepth1_);
8645 h_2DsumAmplitudeLS3 =
new TH2F(
"h_2DsumAmplitudeLS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8646 h_sumAmplitudeperLS3 =
new TH1F(
"h_sumAmplitudeperLS3",
" ", bac, 1., bac2);
8647 h_sumCutAmplitudeperLS3 =
new TH1F(
"h_sumCutAmplitudeperLS3",
" ", bac, 1., bac2);
8648 h_2D0sumAmplitudeLS3 =
new TH2F(
"h_2D0sumAmplitudeLS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8649 h_sum0AmplitudeperLS3 =
new TH1F(
"h_sum0AmplitudeperLS3",
" ", bac, 1., bac2);
8651 h_sumAmplitudeLS4 =
new TH1F(
"h_sumAmplitudeLS4",
" ", 100, 0.0, lsdep_estimator4_HEdepth2_);
8652 h_2DsumAmplitudeLS4 =
new TH2F(
"h_2DsumAmplitudeLS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8653 h_sumAmplitudeperLS4 =
new TH1F(
"h_sumAmplitudeperLS4",
" ", bac, 1., bac2);
8654 h_sumCutAmplitudeperLS4 =
new TH1F(
"h_sumCutAmplitudeperLS4",
" ", bac, 1., bac2);
8655 h_2D0sumAmplitudeLS4 =
new TH2F(
"h_2D0sumAmplitudeLS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8656 h_sum0AmplitudeperLS4 =
new TH1F(
"h_sum0AmplitudeperLS4",
" ", bac, 1., bac2);
8658 h_sumAmplitudeLS5 =
new TH1F(
"h_sumAmplitudeLS5",
" ", 100, 0.0, lsdep_estimator4_HEdepth3_);
8659 h_2DsumAmplitudeLS5 =
new TH2F(
"h_2DsumAmplitudeLS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8660 h_sumAmplitudeperLS5 =
new TH1F(
"h_sumAmplitudeperLS5",
" ", bac, 1., bac2);
8661 h_sumCutAmplitudeperLS5 =
new TH1F(
"h_sumCutAmplitudeperLS5",
" ", bac, 1., bac2);
8662 h_2D0sumAmplitudeLS5 =
new TH2F(
"h_2D0sumAmplitudeLS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8663 h_sum0AmplitudeperLS5 =
new TH1F(
"h_sum0AmplitudeperLS5",
" ", bac, 1., bac2);
8665 h_sumAmplitudeLS6 =
new TH1F(
"h_sumAmplitudeLS6",
" ", 100, 0., lsdep_estimator4_HFdepth1_);
8666 h_2DsumAmplitudeLS6 =
new TH2F(
"h_2DsumAmplitudeLS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8667 h_sumAmplitudeperLS6 =
new TH1F(
"h_sumAmplitudeperLS6",
" ", bac, 1., bac2);
8668 h_sumCutAmplitudeperLS6 =
new TH1F(
"h_sumCutAmplitudeperLS6",
" ", bac, 1., bac2);
8669 h_2D0sumAmplitudeLS6 =
new TH2F(
"h_2D0sumAmplitudeLS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8670 h_sum0AmplitudeperLS6 =
new TH1F(
"h_sum0AmplitudeperLS6",
" ", bac, 1., bac2);
8672 h_sumAmplitudeLS7 =
new TH1F(
"h_sumAmplitudeLS7",
" ", 100, 0., lsdep_estimator4_HFdepth2_);
8673 h_2DsumAmplitudeLS7 =
new TH2F(
"h_2DsumAmplitudeLS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8674 h_sumAmplitudeperLS7 =
new TH1F(
"h_sumAmplitudeperLS7",
" ", bac, 1., bac2);
8675 h_sumCutAmplitudeperLS7 =
new TH1F(
"h_sumCutAmplitudeperLS7",
" ", bac, 1., bac2);
8676 h_2D0sumAmplitudeLS7 =
new TH2F(
"h_2D0sumAmplitudeLS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8677 h_sum0AmplitudeperLS7 =
new TH1F(
"h_sum0AmplitudeperLS7",
" ", bac, 1., bac2);
8679 h_sumAmplitudeLS8 =
new TH1F(
"h_sumAmplitudeLS8",
" ", 100, 0., lsdep_estimator4_HOdepth4_);
8680 h_2DsumAmplitudeLS8 =
new TH2F(
"h_2DsumAmplitudeLS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8681 h_sumAmplitudeperLS8 =
new TH1F(
"h_sumAmplitudeperLS8",
" ", bac, 1., bac2);
8682 h_sumCutAmplitudeperLS8 =
new TH1F(
"h_sumCutAmplitudeperLS8",
" ", bac, 1., bac2);
8683 h_2D0sumAmplitudeLS8 =
new TH2F(
"h_2D0sumAmplitudeLS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8684 h_sum0AmplitudeperLS8 =
new TH1F(
"h_sum0AmplitudeperLS8",
" ", bac, 1., bac2);
8690 h_sumAmplLS1 =
new TH1F(
"h_sumAmplLS1",
" ", 100, 0.0, lsdep_estimator5_HBdepth1_);
8691 h_2DsumAmplLS1 =
new TH2F(
"h_2DsumAmplLS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8692 h_sumAmplperLS1 =
new TH1F(
"h_sumAmplperLS1",
" ", bac, 1., bac2);
8693 h_sumAmplperLS1_LSselected =
new TH1F(
"h_sumAmplperLS1_LSselected",
" ", bac, 1., bac2);
8694 h_sumCutAmplperLS1 =
new TH1F(
"h_sumCutAmplperLS1",
" ", bac, 1., bac2);
8695 h_2D0sumAmplLS1 =
new TH2F(
"h_2D0sumAmplLS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8696 h_sum0AmplperLS1 =
new TH1F(
"h_sum0AmplperLS1",
" ", bac, 1., bac2);
8698 h_sumAmplLS2 =
new TH1F(
"h_sumAmplLS2",
" ", 100, 0.0, lsdep_estimator5_HBdepth2_);
8699 h_2DsumAmplLS2 =
new TH2F(
"h_2DsumAmplLS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8700 h_sumAmplperLS2 =
new TH1F(
"h_sumAmplperLS2",
" ", bac, 1., bac2);
8701 h_sumCutAmplperLS2 =
new TH1F(
"h_sumCutAmplperLS2",
" ", bac, 1., bac2);
8702 h_2D0sumAmplLS2 =
new TH2F(
"h_2D0sumAmplLS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8703 h_sum0AmplperLS2 =
new TH1F(
"h_sum0AmplperLS2",
" ", bac, 1., bac2);
8705 h_sumAmplLS3 =
new TH1F(
"h_sumAmplLS3",
" ", 100, 0.0, lsdep_estimator5_HEdepth1_);
8706 h_2DsumAmplLS3 =
new TH2F(
"h_2DsumAmplLS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8707 h_sumAmplperLS3 =
new TH1F(
"h_sumAmplperLS3",
" ", bac, 1., bac2);
8708 h_sumCutAmplperLS3 =
new TH1F(
"h_sumCutAmplperLS3",
" ", bac, 1., bac2);
8709 h_2D0sumAmplLS3 =
new TH2F(
"h_2D0sumAmplLS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8710 h_sum0AmplperLS3 =
new TH1F(
"h_sum0AmplperLS3",
" ", bac, 1., bac2);
8712 h_sumAmplLS4 =
new TH1F(
"h_sumAmplLS4",
" ", 100, 0.0, lsdep_estimator5_HEdepth2_);
8713 h_2DsumAmplLS4 =
new TH2F(
"h_2DsumAmplLS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8714 h_sumAmplperLS4 =
new TH1F(
"h_sumAmplperLS4",
" ", bac, 1., bac2);
8715 h_sumCutAmplperLS4 =
new TH1F(
"h_sumCutAmplperLS4",
" ", bac, 1., bac2);
8716 h_2D0sumAmplLS4 =
new TH2F(
"h_2D0sumAmplLS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8717 h_sum0AmplperLS4 =
new TH1F(
"h_sum0AmplperLS4",
" ", bac, 1., bac2);
8719 h_sumAmplLS5 =
new TH1F(
"h_sumAmplLS5",
" ", 100, 0.0, lsdep_estimator5_HEdepth3_);
8720 h_2DsumAmplLS5 =
new TH2F(
"h_2DsumAmplLS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8721 h_sumAmplperLS5 =
new TH1F(
"h_sumAmplperLS5",
" ", bac, 1., bac2);
8722 h_sumCutAmplperLS5 =
new TH1F(
"h_sumCutAmplperLS5",
" ", bac, 1., bac2);
8723 h_2D0sumAmplLS5 =
new TH2F(
"h_2D0sumAmplLS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8724 h_sum0AmplperLS5 =
new TH1F(
"h_sum0AmplperLS5",
" ", bac, 1., bac2);
8726 h_sumAmplLS6 =
new TH1F(
"h_sumAmplLS6",
" ", 100, 0.0, lsdep_estimator5_HFdepth1_);
8727 h_2DsumAmplLS6 =
new TH2F(
"h_2DsumAmplLS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8728 h_sumAmplperLS6 =
new TH1F(
"h_sumAmplperLS6",
" ", bac, 1., bac2);
8729 h_sumCutAmplperLS6 =
new TH1F(
"h_sumCutAmplperLS6",
" ", bac, 1., bac2);
8730 h_2D0sumAmplLS6 =
new TH2F(
"h_2D0sumAmplLS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8731 h_sum0AmplperLS6 =
new TH1F(
"h_sum0AmplperLS6",
" ", bac, 1., bac2);
8733 h_RatioOccupancy_HBP =
new TH1F(
"h_RatioOccupancy_HBP",
" ", bac, 1., bac2);
8734 h_RatioOccupancy_HBM =
new TH1F(
"h_RatioOccupancy_HBM",
" ", bac, 1., bac2);
8735 h_RatioOccupancy_HEP =
new TH1F(
"h_RatioOccupancy_HEP",
" ", bac, 1., bac2);
8736 h_RatioOccupancy_HEM =
new TH1F(
"h_RatioOccupancy_HEM",
" ", bac, 1., bac2);
8737 h_RatioOccupancy_HOP =
new TH1F(
"h_RatioOccupancy_HOP",
" ", bac, 1., bac2);
8738 h_RatioOccupancy_HOM =
new TH1F(
"h_RatioOccupancy_HOM",
" ", bac, 1., bac2);
8739 h_RatioOccupancy_HFP =
new TH1F(
"h_RatioOccupancy_HFP",
" ", bac, 1., bac2);
8740 h_RatioOccupancy_HFM =
new TH1F(
"h_RatioOccupancy_HFM",
" ", bac, 1., bac2);
8742 h_sumAmplLS7 =
new TH1F(
"h_sumAmplLS7",
" ", 100, 0.0, lsdep_estimator5_HFdepth2_);
8743 h_2DsumAmplLS7 =
new TH2F(
"h_2DsumAmplLS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8744 h_sumAmplperLS7 =
new TH1F(
"h_sumAmplperLS7",
" ", bac, 1., bac2);
8745 h_sumCutAmplperLS7 =
new TH1F(
"h_sumCutAmplperLS7",
" ", bac, 1., bac2);
8746 h_2D0sumAmplLS7 =
new TH2F(
"h_2D0sumAmplLS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8747 h_sum0AmplperLS7 =
new TH1F(
"h_sum0AmplperLS7",
" ", bac, 1., bac2);
8749 h_sumAmplLS8 =
new TH1F(
"h_sumAmplLS8",
" ", 100, 0.0, lsdep_estimator5_HOdepth4_);
8750 h_2DsumAmplLS8 =
new TH2F(
"h_2DsumAmplLS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8751 h_sumAmplperLS8 =
new TH1F(
"h_sumAmplperLS8",
" ", bac, 1., bac2);
8752 h_sumCutAmplperLS8 =
new TH1F(
"h_sumCutAmplperLS8",
" ", bac, 1., bac2);
8753 h_2D0sumAmplLS8 =
new TH2F(
"h_2D0sumAmplLS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8754 h_sum0AmplperLS8 =
new TH1F(
"h_sum0AmplperLS8",
" ", bac, 1., bac2);
8757 h_sumErrorBLS1 =
new TH1F(
"h_sumErrorBLS1",
" ", 10, 0., 10.);
8758 h_sumErrorBperLS1 =
new TH1F(
"h_sumErrorBperLS1",
" ", bac, 1., bac2);
8759 h_sum0ErrorBperLS1 =
new TH1F(
"h_sum0ErrorBperLS1",
" ", bac, 1., bac2);
8760 h_2D0sumErrorBLS1 =
new TH2F(
"h_2D0sumErrorBLS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8761 h_2DsumErrorBLS1 =
new TH2F(
"h_2DsumErrorBLS1",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8762 h_sumErrorBLS2 =
new TH1F(
"h_sumErrorBLS2",
" ", 10, 0., 10.);
8763 h_sumErrorBperLS2 =
new TH1F(
"h_sumErrorBperLS2",
" ", bac, 1., bac2);
8764 h_sum0ErrorBperLS2 =
new TH1F(
"h_sum0ErrorBperLS2",
" ", bac, 1., bac2);
8765 h_2D0sumErrorBLS2 =
new TH2F(
"h_2D0sumErrorBLS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8766 h_2DsumErrorBLS2 =
new TH2F(
"h_2DsumErrorBLS2",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8768 h_sumErrorBLS3 =
new TH1F(
"h_sumErrorBLS3",
" ", 10, 0., 10.);
8769 h_sumErrorBperLS3 =
new TH1F(
"h_sumErrorBperLS3",
" ", bac, 1., bac2);
8770 h_sum0ErrorBperLS3 =
new TH1F(
"h_sum0ErrorBperLS3",
" ", bac, 1., bac2);
8771 h_2D0sumErrorBLS3 =
new TH2F(
"h_2D0sumErrorBLS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8772 h_2DsumErrorBLS3 =
new TH2F(
"h_2DsumErrorBLS3",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8773 h_sumErrorBLS4 =
new TH1F(
"h_sumErrorBLS4",
" ", 10, 0., 10.);
8774 h_sumErrorBperLS4 =
new TH1F(
"h_sumErrorBperLS4",
" ", bac, 1., bac2);
8775 h_sum0ErrorBperLS4 =
new TH1F(
"h_sum0ErrorBperLS4",
" ", bac, 1., bac2);
8776 h_2D0sumErrorBLS4 =
new TH2F(
"h_2D0sumErrorBLS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8777 h_2DsumErrorBLS4 =
new TH2F(
"h_2DsumErrorBLS4",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8778 h_sumErrorBLS5 =
new TH1F(
"h_sumErrorBLS5",
" ", 10, 0., 10.);
8779 h_sumErrorBperLS5 =
new TH1F(
"h_sumErrorBperLS5",
" ", bac, 1., bac2);
8780 h_sum0ErrorBperLS5 =
new TH1F(
"h_sum0ErrorBperLS5",
" ", bac, 1., bac2);
8781 h_2D0sumErrorBLS5 =
new TH2F(
"h_2D0sumErrorBLS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8782 h_2DsumErrorBLS5 =
new TH2F(
"h_2DsumErrorBLS5",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8784 h_sumErrorBLS6 =
new TH1F(
"h_sumErrorBLS6",
" ", 10, 0., 10.);
8785 h_sumErrorBperLS6 =
new TH1F(
"h_sumErrorBperLS6",
" ", bac, 1., bac2);
8786 h_sum0ErrorBperLS6 =
new TH1F(
"h_sum0ErrorBperLS6",
" ", bac, 1., bac2);
8787 h_2D0sumErrorBLS6 =
new TH2F(
"h_2D0sumErrorBLS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8788 h_2DsumErrorBLS6 =
new TH2F(
"h_2DsumErrorBLS6",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8789 h_sumErrorBLS7 =
new TH1F(
"h_sumErrorBLS7",
" ", 10, 0., 10.);
8790 h_sumErrorBperLS7 =
new TH1F(
"h_sumErrorBperLS7",
" ", bac, 1., bac2);
8791 h_sum0ErrorBperLS7 =
new TH1F(
"h_sum0ErrorBperLS7",
" ", bac, 1., bac2);
8792 h_2D0sumErrorBLS7 =
new TH2F(
"h_2D0sumErrorBLS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8793 h_2DsumErrorBLS7 =
new TH2F(
"h_2DsumErrorBLS7",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8795 h_sumErrorBLS8 =
new TH1F(
"h_sumErrorBLS8",
" ", 10, 0., 10.);
8796 h_sumErrorBperLS8 =
new TH1F(
"h_sumErrorBperLS8",
" ", bac, 1., bac2);
8797 h_sum0ErrorBperLS8 =
new TH1F(
"h_sum0ErrorBperLS8",
" ", bac, 1., bac2);
8798 h_2D0sumErrorBLS8 =
new TH2F(
"h_2D0sumErrorBLS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8799 h_2DsumErrorBLS8 =
new TH2F(
"h_2DsumErrorBLS8",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8803 h_averSIGNALoccupancy_HB =
new TH1F(
"h_averSIGNALoccupancy_HB",
" ", bac, 1., bac2);
8804 h_averSIGNALoccupancy_HE =
new TH1F(
"h_averSIGNALoccupancy_HE",
" ", bac, 1., bac2);
8805 h_averSIGNALoccupancy_HF =
new TH1F(
"h_averSIGNALoccupancy_HF",
" ", bac, 1., bac2);
8806 h_averSIGNALoccupancy_HO =
new TH1F(
"h_averSIGNALoccupancy_HO",
" ", bac, 1., bac2);
8809 h_averSIGNALsumamplitude_HB =
new TH1F(
"h_averSIGNALsumamplitude_HB",
" ", bac, 1., bac2);
8810 h_averSIGNALsumamplitude_HE =
new TH1F(
"h_averSIGNALsumamplitude_HE",
" ", bac, 1., bac2);
8811 h_averSIGNALsumamplitude_HF =
new TH1F(
"h_averSIGNALsumamplitude_HF",
" ", bac, 1., bac2);
8812 h_averSIGNALsumamplitude_HO =
new TH1F(
"h_averSIGNALsumamplitude_HO",
" ", bac, 1., bac2);
8815 h_averNOSIGNALoccupancy_HB =
new TH1F(
"h_averNOSIGNALoccupancy_HB",
" ", bac, 1., bac2);
8816 h_averNOSIGNALoccupancy_HE =
new TH1F(
"h_averNOSIGNALoccupancy_HE",
" ", bac, 1., bac2);
8817 h_averNOSIGNALoccupancy_HF =
new TH1F(
"h_averNOSIGNALoccupancy_HF",
" ", bac, 1., bac2);
8818 h_averNOSIGNALoccupancy_HO =
new TH1F(
"h_averNOSIGNALoccupancy_HO",
" ", bac, 1., bac2);
8821 h_averNOSIGNALsumamplitude_HB =
new TH1F(
"h_averNOSIGNALsumamplitude_HB",
" ", bac, 1., bac2);
8822 h_averNOSIGNALsumamplitude_HE =
new TH1F(
"h_averNOSIGNALsumamplitude_HE",
" ", bac, 1., bac2);
8823 h_averNOSIGNALsumamplitude_HF =
new TH1F(
"h_averNOSIGNALsumamplitude_HF",
" ", bac, 1., bac2);
8824 h_averNOSIGNALsumamplitude_HO =
new TH1F(
"h_averNOSIGNALsumamplitude_HO",
" ", bac, 1., bac2);
8827 h_sumamplitudechannel_HB =
new TH1F(
"h_sumamplitudechannel_HB",
" ", 100, 0., 2000.);
8828 h_sumamplitudechannel_HE =
new TH1F(
"h_sumamplitudechannel_HE",
" ", 100, 0., 3000.);
8829 h_sumamplitudechannel_HF =
new TH1F(
"h_sumamplitudechannel_HF",
" ", 100, 0., 7000.);
8830 h_sumamplitudechannel_HO =
new TH1F(
"h_sumamplitudechannel_HO",
" ", 100, 0., 10000.);
8833 h_eventamplitude_HB =
new TH1F(
"h_eventamplitude_HB",
" ", 100, 0., 80000.);
8834 h_eventamplitude_HE =
new TH1F(
"h_eventamplitude_HE",
" ", 100, 0., 100000.);
8835 h_eventamplitude_HF =
new TH1F(
"h_eventamplitude_HF",
" ", 100, 0., 150000.);
8836 h_eventamplitude_HO =
new TH1F(
"h_eventamplitude_HO",
" ", 100, 0., 250000.);
8839 h_eventoccupancy_HB =
new TH1F(
"h_eventoccupancy_HB",
" ", 100, 0., 3000.);
8840 h_eventoccupancy_HE =
new TH1F(
"h_eventoccupancy_HE",
" ", 100, 0., 2000.);
8841 h_eventoccupancy_HF =
new TH1F(
"h_eventoccupancy_HF",
" ", 100, 0., 1000.);
8842 h_eventoccupancy_HO =
new TH1F(
"h_eventoccupancy_HO",
" ", 100, 0., 2500.);
8845 h_maxxSUMAmpl_HB =
new TH1F(
"h_maxxSUMAmpl_HB",
" ", bac, 1., bac2);
8846 h_maxxSUMAmpl_HE =
new TH1F(
"h_maxxSUMAmpl_HE",
" ", bac, 1., bac2);
8847 h_maxxSUMAmpl_HF =
new TH1F(
"h_maxxSUMAmpl_HF",
" ", bac, 1., bac2);
8848 h_maxxSUMAmpl_HO =
new TH1F(
"h_maxxSUMAmpl_HO",
" ", bac, 1., bac2);
8851 h_maxxOCCUP_HB =
new TH1F(
"h_maxxOCCUP_HB",
" ", bac, 1., bac2);
8852 h_maxxOCCUP_HE =
new TH1F(
"h_maxxOCCUP_HE",
" ", bac, 1., bac2);
8853 h_maxxOCCUP_HF =
new TH1F(
"h_maxxOCCUP_HF",
" ", bac, 1., bac2);
8854 h_maxxOCCUP_HO =
new TH1F(
"h_maxxOCCUP_HO",
" ", bac, 1., bac2);
8857 h_pedestal0_HB =
new TH1F(
"h_pedestal0_HB",
" ", 100, 0., 10.);
8858 h_pedestal1_HB =
new TH1F(
"h_pedestal1_HB",
" ", 100, 0., 10.);
8859 h_pedestal2_HB =
new TH1F(
"h_pedestal2_HB",
" ", 100, 0., 10.);
8860 h_pedestal3_HB =
new TH1F(
"h_pedestal3_HB",
" ", 100, 0., 10.);
8861 h_pedestalaver4_HB =
new TH1F(
"h_pedestalaver4_HB",
" ", 100, 0., 10.);
8862 h_pedestalaver9_HB =
new TH1F(
"h_pedestalaver9_HB",
" ", 100, 0., 10.);
8863 h_pedestalw0_HB =
new TH1F(
"h_pedestalw0_HB",
" ", 100, 0., 2.5);
8864 h_pedestalw1_HB =
new TH1F(
"h_pedestalw1_HB",
" ", 100, 0., 2.5);
8865 h_pedestalw2_HB =
new TH1F(
"h_pedestalw2_HB",
" ", 100, 0., 2.5);
8866 h_pedestalw3_HB =
new TH1F(
"h_pedestalw3_HB",
" ", 100, 0., 2.5);
8867 h_pedestalwaver4_HB =
new TH1F(
"h_pedestalwaver4_HB",
" ", 100, 0., 2.5);
8868 h_pedestalwaver9_HB =
new TH1F(
"h_pedestalwaver9_HB",
" ", 100, 0., 2.5);
8870 h_pedestal0_HE =
new TH1F(
"h_pedestal0_HE",
" ", 100, 0., 10.);
8871 h_pedestal1_HE =
new TH1F(
"h_pedestal1_HE",
" ", 100, 0., 10.);
8872 h_pedestal2_HE =
new TH1F(
"h_pedestal2_HE",
" ", 100, 0., 10.);
8873 h_pedestal3_HE =
new TH1F(
"h_pedestal3_HE",
" ", 100, 0., 10.);
8874 h_pedestalaver4_HE =
new TH1F(
"h_pedestalaver4_HE",
" ", 100, 0., 10.);
8875 h_pedestalaver9_HE =
new TH1F(
"h_pedestalaver9_HE",
" ", 100, 0., 10.);
8876 h_pedestalw0_HE =
new TH1F(
"h_pedestalw0_HE",
" ", 100, 0., 2.5);
8877 h_pedestalw1_HE =
new TH1F(
"h_pedestalw1_HE",
" ", 100, 0., 2.5);
8878 h_pedestalw2_HE =
new TH1F(
"h_pedestalw2_HE",
" ", 100, 0., 2.5);
8879 h_pedestalw3_HE =
new TH1F(
"h_pedestalw3_HE",
" ", 100, 0., 2.5);
8880 h_pedestalwaver4_HE =
new TH1F(
"h_pedestalwaver4_HE",
" ", 100, 0., 2.5);
8881 h_pedestalwaver9_HE =
new TH1F(
"h_pedestalwaver9_HE",
" ", 100, 0., 2.5);
8883 h_pedestal0_HF =
new TH1F(
"h_pedestal0_HF",
" ", 100, 0., 20.);
8884 h_pedestal1_HF =
new TH1F(
"h_pedestal1_HF",
" ", 100, 0., 20.);
8885 h_pedestal2_HF =
new TH1F(
"h_pedestal2_HF",
" ", 100, 0., 20.);
8886 h_pedestal3_HF =
new TH1F(
"h_pedestal3_HF",
" ", 100, 0., 20.);
8887 h_pedestalaver4_HF =
new TH1F(
"h_pedestalaver4_HF",
" ", 100, 0., 20.);
8888 h_pedestalaver9_HF =
new TH1F(
"h_pedestalaver9_HF",
" ", 100, 0., 20.);
8889 h_pedestalw0_HF =
new TH1F(
"h_pedestalw0_HF",
" ", 100, 0., 2.5);
8890 h_pedestalw1_HF =
new TH1F(
"h_pedestalw1_HF",
" ", 100, 0., 2.5);
8891 h_pedestalw2_HF =
new TH1F(
"h_pedestalw2_HF",
" ", 100, 0., 2.5);
8892 h_pedestalw3_HF =
new TH1F(
"h_pedestalw3_HF",
" ", 100, 0., 2.5);
8893 h_pedestalwaver4_HF =
new TH1F(
"h_pedestalwaver4_HF",
" ", 100, 0., 2.5);
8894 h_pedestalwaver9_HF =
new TH1F(
"h_pedestalwaver9_HF",
" ", 100, 0., 2.5);
8896 h_pedestal0_HO =
new TH1F(
"h_pedestal0_HO",
" ", 100, 0., 20.);
8897 h_pedestal1_HO =
new TH1F(
"h_pedestal1_HO",
" ", 100, 0., 20.);
8898 h_pedestal2_HO =
new TH1F(
"h_pedestal2_HO",
" ", 100, 0., 20.);
8899 h_pedestal3_HO =
new TH1F(
"h_pedestal3_HO",
" ", 100, 0., 20.);
8900 h_pedestalaver4_HO =
new TH1F(
"h_pedestalaver4_HO",
" ", 100, 0., 20.);
8901 h_pedestalaver9_HO =
new TH1F(
"h_pedestalaver9_HO",
" ", 100, 0., 20.);
8902 h_pedestalw0_HO =
new TH1F(
"h_pedestalw0_HO",
" ", 100, 0., 2.5);
8903 h_pedestalw1_HO =
new TH1F(
"h_pedestalw1_HO",
" ", 100, 0., 2.5);
8904 h_pedestalw2_HO =
new TH1F(
"h_pedestalw2_HO",
" ", 100, 0., 2.5);
8905 h_pedestalw3_HO =
new TH1F(
"h_pedestalw3_HO",
" ", 100, 0., 2.5);
8906 h_pedestalwaver4_HO =
new TH1F(
"h_pedestalwaver4_HO",
" ", 100, 0., 2.5);
8907 h_pedestalwaver9_HO =
new TH1F(
"h_pedestalwaver9_HO",
" ", 100, 0., 2.5);
8909 h_mapDepth1pedestalw_HB =
new TH2F(
"h_mapDepth1pedestalw_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8910 h_mapDepth2pedestalw_HB =
new TH2F(
"h_mapDepth2pedestalw_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8911 h_mapDepth3pedestalw_HB =
new TH2F(
"h_mapDepth3pedestalw_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8912 h_mapDepth4pedestalw_HB =
new TH2F(
"h_mapDepth4pedestalw_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8913 h_mapDepth1pedestalw_HE =
new TH2F(
"h_mapDepth1pedestalw_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8914 h_mapDepth2pedestalw_HE =
new TH2F(
"h_mapDepth2pedestalw_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8915 h_mapDepth3pedestalw_HE =
new TH2F(
"h_mapDepth3pedestalw_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8916 h_mapDepth4pedestalw_HE =
new TH2F(
"h_mapDepth4pedestalw_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8917 h_mapDepth5pedestalw_HE =
new TH2F(
"h_mapDepth5pedestalw_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8918 h_mapDepth6pedestalw_HE =
new TH2F(
"h_mapDepth6pedestalw_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8919 h_mapDepth7pedestalw_HE =
new TH2F(
"h_mapDepth7pedestalw_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8920 h_mapDepth1pedestalw_HF =
new TH2F(
"h_mapDepth1pedestalw_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8921 h_mapDepth2pedestalw_HF =
new TH2F(
"h_mapDepth2pedestalw_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8922 h_mapDepth3pedestalw_HF =
new TH2F(
"h_mapDepth3pedestalw_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8923 h_mapDepth4pedestalw_HF =
new TH2F(
"h_mapDepth4pedestalw_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8924 h_mapDepth4pedestalw_HO =
new TH2F(
"h_mapDepth4pedestalw_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8926 h_mapDepth1pedestal_HB =
new TH2F(
"h_mapDepth1pedestal_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8927 h_mapDepth2pedestal_HB =
new TH2F(
"h_mapDepth2pedestal_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8928 h_mapDepth3pedestal_HB =
new TH2F(
"h_mapDepth3pedestal_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8929 h_mapDepth4pedestal_HB =
new TH2F(
"h_mapDepth4pedestal_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8930 h_mapDepth1pedestal_HE =
new TH2F(
"h_mapDepth1pedestal_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8931 h_mapDepth2pedestal_HE =
new TH2F(
"h_mapDepth2pedestal_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8932 h_mapDepth3pedestal_HE =
new TH2F(
"h_mapDepth3pedestal_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8933 h_mapDepth4pedestal_HE =
new TH2F(
"h_mapDepth4pedestal_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8934 h_mapDepth5pedestal_HE =
new TH2F(
"h_mapDepth5pedestal_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8935 h_mapDepth6pedestal_HE =
new TH2F(
"h_mapDepth6pedestal_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8936 h_mapDepth7pedestal_HE =
new TH2F(
"h_mapDepth7pedestal_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8937 h_mapDepth1pedestal_HF =
new TH2F(
"h_mapDepth1pedestal_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8938 h_mapDepth2pedestal_HF =
new TH2F(
"h_mapDepth2pedestal_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8939 h_mapDepth3pedestal_HF =
new TH2F(
"h_mapDepth3pedestal_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8940 h_mapDepth4pedestal_HF =
new TH2F(
"h_mapDepth4pedestal_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8941 h_mapDepth4pedestal_HO =
new TH2F(
"h_mapDepth4pedestal_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
8943 h_pedestal00_HB =
new TH1F(
"h_pedestal00_HB",
" ", 100, 0., 10.);
8944 h_gain_HB =
new TH1F(
"h_gain_HB",
" ", 100, 0., 1.);
8945 h_respcorr_HB =
new TH1F(
"h_respcorr_HB",
" ", 100, 0., 2.5);
8946 h_timecorr_HB =
new TH1F(
"h_timecorr_HB",
" ", 100, 0., 30.);
8947 h_lutcorr_HB =
new TH1F(
"h_lutcorr_HB",
" ", 100, 0., 10.);
8948 h_difpedestal0_HB =
new TH1F(
"h_difpedestal0_HB",
" ", 100, -3., 3.);
8949 h_difpedestal1_HB =
new TH1F(
"h_difpedestal1_HB",
" ", 100, -3., 3.);
8950 h_difpedestal2_HB =
new TH1F(
"h_difpedestal2_HB",
" ", 100, -3., 3.);
8951 h_difpedestal3_HB =
new TH1F(
"h_difpedestal3_HB",
" ", 100, -3., 3.);
8953 h_pedestal00_HE =
new TH1F(
"h_pedestal00_HE",
" ", 100, 0., 10.);
8954 h_gain_HE =
new TH1F(
"h_gain_HE",
" ", 100, 0., 1.);
8955 h_respcorr_HE =
new TH1F(
"h_respcorr_HE",
" ", 100, 0., 2.5);
8956 h_timecorr_HE =
new TH1F(
"h_timecorr_HE",
" ", 100, 0., 30.);
8957 h_lutcorr_HE =
new TH1F(
"h_lutcorr_HE",
" ", 100, 0., 10.);
8959 h_pedestal00_HF =
new TH1F(
"h_pedestal00_HF",
" ", 100, 0., 10.);
8960 h_gain_HF =
new TH1F(
"h_gain_HF",
" ", 100, 0., 1.);
8961 h_respcorr_HF =
new TH1F(
"h_respcorr_HF",
" ", 100, 0., 2.5);
8962 h_timecorr_HF =
new TH1F(
"h_timecorr_HF",
" ", 100, 0., 30.);
8963 h_lutcorr_HF =
new TH1F(
"h_lutcorr_HF",
" ", 100, 0., 10.);
8965 h_pedestal00_HO =
new TH1F(
"h_pedestal00_HO",
" ", 100, 0., 10.);
8966 h_gain_HO =
new TH1F(
"h_gain_HO",
" ", 100, 0., 1.);
8967 h_respcorr_HO =
new TH1F(
"h_respcorr_HO",
" ", 100, 0., 2.5);
8968 h_timecorr_HO =
new TH1F(
"h_timecorr_HO",
" ", 100, 0., 30.);
8969 h_lutcorr_HO =
new TH1F(
"h_lutcorr_HO",
" ", 100, 0., 10.);
8974 h2_pedvsampl_HB =
new TH2F(
"h2_pedvsampl_HB",
" ", ist2, 0., 7.0, ist2, 0., est6);
8975 h2_pedwvsampl_HB =
new TH2F(
"h2_pedwvsampl_HB",
" ", ist2, 0., 2.5, ist2, 0., est6);
8976 h_pedvsampl_HB =
new TH1F(
"h_pedvsampl_HB",
" ", ist6, 0., 7.0);
8977 h_pedwvsampl_HB =
new TH1F(
"h_pedwvsampl_HB",
" ", ist6, 0., 2.5);
8978 h_pedvsampl0_HB =
new TH1F(
"h_pedvsampl0_HB",
" ", ist6, 0., 7.);
8979 h_pedwvsampl0_HB =
new TH1F(
"h_pedwvsampl0_HB",
" ", ist6, 0., 2.5);
8980 h2_amplvsped_HB =
new TH2F(
"h2_amplvsped_HB",
" ", ist2, 0., est6, ist2, 0., 7.0);
8981 h2_amplvspedw_HB =
new TH2F(
"h2_amplvspedw_HB",
" ", ist2, 0., est6, ist2, 0., 2.5);
8982 h_amplvsped_HB =
new TH1F(
"h_amplvsped_HB",
" ", ist6, 0., est6);
8983 h_amplvspedw_HB =
new TH1F(
"h_amplvspedw_HB",
" ", ist6, 0., est6);
8984 h_amplvsped0_HB =
new TH1F(
"h_amplvsped0_HB",
" ", ist6, 0., est6);
8986 h2_pedvsampl_HE =
new TH2F(
"h2_pedvsampl_HE",
" ", ist2, 0., 7.0, ist2, 0., est6);
8987 h2_pedwvsampl_HE =
new TH2F(
"h2_pedwvsampl_HE",
" ", ist2, 0., 2.5, ist2, 0., est6);
8988 h_pedvsampl_HE =
new TH1F(
"h_pedvsampl_HE",
" ", ist6, 0., 7.0);
8989 h_pedwvsampl_HE =
new TH1F(
"h_pedwvsampl_HE",
" ", ist6, 0., 2.5);
8990 h_pedvsampl0_HE =
new TH1F(
"h_pedvsampl0_HE",
" ", ist6, 0., 7.);
8991 h_pedwvsampl0_HE =
new TH1F(
"h_pedwvsampl0_HE",
" ", ist6, 0., 2.5);
8993 h2_pedvsampl_HF =
new TH2F(
"h2_pedvsampl_HF",
" ", ist2, 0., 20.0, ist2, 0., est6);
8994 h2_pedwvsampl_HF =
new TH2F(
"h2_pedwvsampl_HF",
" ", ist2, 0., 2.0, ist2, 0., est6);
8995 h_pedvsampl_HF =
new TH1F(
"h_pedvsampl_HF",
" ", ist6, 0., 20.0);
8996 h_pedwvsampl_HF =
new TH1F(
"h_pedwvsampl_HF",
" ", ist6, 0., 2.0);
8997 h_pedvsampl0_HF =
new TH1F(
"h_pedvsampl0_HF",
" ", ist6, 0., 20.);
8998 h_pedwvsampl0_HF =
new TH1F(
"h_pedwvsampl0_HF",
" ", ist6, 0., 2.0);
9000 h2_pedvsampl_HO =
new TH2F(
"h2_pedvsampl_HO",
" ", ist2, 0., 20.0, ist2, 0., est6);
9001 h2_pedwvsampl_HO =
new TH2F(
"h2_pedwvsampl_HO",
" ", ist2, 0., 2.5, ist2, 0., est6);
9002 h_pedvsampl_HO =
new TH1F(
"h_pedvsampl_HO",
" ", ist6, 0., 20.0);
9003 h_pedwvsampl_HO =
new TH1F(
"h_pedwvsampl_HO",
" ", ist6, 0., 2.5);
9004 h_pedvsampl0_HO =
new TH1F(
"h_pedvsampl0_HO",
" ", ist6, 0., 20.);
9005 h_pedwvsampl0_HO =
new TH1F(
"h_pedwvsampl0_HO",
" ", ist6, 0., 2.5);
9007 h_mapDepth1Ped0_HB =
new TH2F(
"h_mapDepth1Ped0_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9008 h_mapDepth1Ped1_HB =
new TH2F(
"h_mapDepth1Ped1_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9009 h_mapDepth1Ped2_HB =
new TH2F(
"h_mapDepth1Ped2_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9010 h_mapDepth1Ped3_HB =
new TH2F(
"h_mapDepth1Ped3_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9011 h_mapDepth1Pedw0_HB =
new TH2F(
"h_mapDepth1Pedw0_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9012 h_mapDepth1Pedw1_HB =
new TH2F(
"h_mapDepth1Pedw1_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9013 h_mapDepth1Pedw2_HB =
new TH2F(
"h_mapDepth1Pedw2_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9014 h_mapDepth1Pedw3_HB =
new TH2F(
"h_mapDepth1Pedw3_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9015 h_mapDepth2Ped0_HB =
new TH2F(
"h_mapDepth2Ped0_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9016 h_mapDepth2Ped1_HB =
new TH2F(
"h_mapDepth2Ped1_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9017 h_mapDepth2Ped2_HB =
new TH2F(
"h_mapDepth2Ped2_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9018 h_mapDepth2Ped3_HB =
new TH2F(
"h_mapDepth2Ped3_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9019 h_mapDepth2Pedw0_HB =
new TH2F(
"h_mapDepth2Pedw0_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9020 h_mapDepth2Pedw1_HB =
new TH2F(
"h_mapDepth2Pedw1_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9021 h_mapDepth2Pedw2_HB =
new TH2F(
"h_mapDepth2Pedw2_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9022 h_mapDepth2Pedw3_HB =
new TH2F(
"h_mapDepth2Pedw3_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9024 h_mapDepth1Ped0_HE =
new TH2F(
"h_mapDepth1Ped0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9025 h_mapDepth1Ped1_HE =
new TH2F(
"h_mapDepth1Ped1_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9026 h_mapDepth1Ped2_HE =
new TH2F(
"h_mapDepth1Ped2_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9027 h_mapDepth1Ped3_HE =
new TH2F(
"h_mapDepth1Ped3_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9028 h_mapDepth1Pedw0_HE =
new TH2F(
"h_mapDepth1Pedw0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9029 h_mapDepth1Pedw1_HE =
new TH2F(
"h_mapDepth1Pedw1_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9030 h_mapDepth1Pedw2_HE =
new TH2F(
"h_mapDepth1Pedw2_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9031 h_mapDepth1Pedw3_HE =
new TH2F(
"h_mapDepth1Pedw3_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9032 h_mapDepth2Ped0_HE =
new TH2F(
"h_mapDepth2Ped0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9033 h_mapDepth2Ped1_HE =
new TH2F(
"h_mapDepth2Ped1_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9034 h_mapDepth2Ped2_HE =
new TH2F(
"h_mapDepth2Ped2_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9035 h_mapDepth2Ped3_HE =
new TH2F(
"h_mapDepth2Ped3_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9036 h_mapDepth2Pedw0_HE =
new TH2F(
"h_mapDepth2Pedw0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9037 h_mapDepth2Pedw1_HE =
new TH2F(
"h_mapDepth2Pedw1_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9038 h_mapDepth2Pedw2_HE =
new TH2F(
"h_mapDepth2Pedw2_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9039 h_mapDepth2Pedw3_HE =
new TH2F(
"h_mapDepth2Pedw3_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9040 h_mapDepth3Ped0_HE =
new TH2F(
"h_mapDepth3Ped0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9041 h_mapDepth3Ped1_HE =
new TH2F(
"h_mapDepth3Ped1_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9042 h_mapDepth3Ped2_HE =
new TH2F(
"h_mapDepth3Ped2_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9043 h_mapDepth3Ped3_HE =
new TH2F(
"h_mapDepth3Ped3_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9044 h_mapDepth3Pedw0_HE =
new TH2F(
"h_mapDepth3Pedw0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9045 h_mapDepth3Pedw1_HE =
new TH2F(
"h_mapDepth3Pedw1_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9046 h_mapDepth3Pedw2_HE =
new TH2F(
"h_mapDepth3Pedw2_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9047 h_mapDepth3Pedw3_HE =
new TH2F(
"h_mapDepth3Pedw3_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9049 h_mapDepth1Ped0_HF =
new TH2F(
"h_mapDepth1Ped0_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9050 h_mapDepth1Ped1_HF =
new TH2F(
"h_mapDepth1Ped1_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9051 h_mapDepth1Ped2_HF =
new TH2F(
"h_mapDepth1Ped2_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9052 h_mapDepth1Ped3_HF =
new TH2F(
"h_mapDepth1Ped3_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9053 h_mapDepth1Pedw0_HF =
new TH2F(
"h_mapDepth1Pedw0_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9054 h_mapDepth1Pedw1_HF =
new TH2F(
"h_mapDepth1Pedw1_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9055 h_mapDepth1Pedw2_HF =
new TH2F(
"h_mapDepth1Pedw2_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9056 h_mapDepth1Pedw3_HF =
new TH2F(
"h_mapDepth1Pedw3_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9057 h_mapDepth2Ped0_HF =
new TH2F(
"h_mapDepth2Ped0_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9058 h_mapDepth2Ped1_HF =
new TH2F(
"h_mapDepth2Ped1_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9059 h_mapDepth2Ped2_HF =
new TH2F(
"h_mapDepth2Ped2_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9060 h_mapDepth2Ped3_HF =
new TH2F(
"h_mapDepth2Ped3_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9061 h_mapDepth2Pedw0_HF =
new TH2F(
"h_mapDepth2Pedw0_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9062 h_mapDepth2Pedw1_HF =
new TH2F(
"h_mapDepth2Pedw1_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9063 h_mapDepth2Pedw2_HF =
new TH2F(
"h_mapDepth2Pedw2_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9064 h_mapDepth2Pedw3_HF =
new TH2F(
"h_mapDepth2Pedw3_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9066 h_mapDepth4Ped0_HO =
new TH2F(
"h_mapDepth4Ped0_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9067 h_mapDepth4Ped1_HO =
new TH2F(
"h_mapDepth4Ped1_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9068 h_mapDepth4Ped2_HO =
new TH2F(
"h_mapDepth4Ped2_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9069 h_mapDepth4Ped3_HO =
new TH2F(
"h_mapDepth4Ped3_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9070 h_mapDepth4Pedw0_HO =
new TH2F(
"h_mapDepth4Pedw0_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9071 h_mapDepth4Pedw1_HO =
new TH2F(
"h_mapDepth4Pedw1_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9072 h_mapDepth4Pedw2_HO =
new TH2F(
"h_mapDepth4Pedw2_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9073 h_mapDepth4Pedw3_HO =
new TH2F(
"h_mapDepth4Pedw3_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9075 h_mapDepth1ADCAmpl12_HB =
new TH2F(
"h_mapDepth1ADCAmpl12_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9076 h_mapDepth2ADCAmpl12_HB =
new TH2F(
"h_mapDepth2ADCAmpl12_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9077 h_mapDepth3ADCAmpl12_HB =
new TH2F(
"h_mapDepth3ADCAmpl12_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9078 h_mapDepth4ADCAmpl12_HB =
new TH2F(
"h_mapDepth4ADCAmpl12_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9079 h_mapDepth1ADCAmpl12_HE =
new TH2F(
"h_mapDepth1ADCAmpl12_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9080 h_mapDepth2ADCAmpl12_HE =
new TH2F(
"h_mapDepth2ADCAmpl12_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9081 h_mapDepth3ADCAmpl12_HE =
new TH2F(
"h_mapDepth3ADCAmpl12_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9082 h_mapDepth4ADCAmpl12_HE =
new TH2F(
"h_mapDepth4ADCAmpl12_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9083 h_mapDepth5ADCAmpl12_HE =
new TH2F(
"h_mapDepth5ADCAmpl12_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9084 h_mapDepth6ADCAmpl12_HE =
new TH2F(
"h_mapDepth6ADCAmpl12_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9085 h_mapDepth7ADCAmpl12_HE =
new TH2F(
"h_mapDepth7ADCAmpl12_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9086 h_mapDepth1ADCAmpl12SiPM_HE =
new TH2F(
"h_mapDepth1ADCAmpl12SiPM_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9087 h_mapDepth2ADCAmpl12SiPM_HE =
new TH2F(
"h_mapDepth2ADCAmpl12SiPM_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9088 h_mapDepth3ADCAmpl12SiPM_HE =
new TH2F(
"h_mapDepth3ADCAmpl12SiPM_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9090 h_mapDepth1ADCAmpl12_HF =
new TH2F(
"h_mapDepth1ADCAmpl12_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9091 h_mapDepth2ADCAmpl12_HF =
new TH2F(
"h_mapDepth2ADCAmpl12_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9092 h_mapDepth3ADCAmpl12_HF =
new TH2F(
"h_mapDepth3ADCAmpl12_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9093 h_mapDepth4ADCAmpl12_HF =
new TH2F(
"h_mapDepth4ADCAmpl12_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9095 h_mapDepth4ADCAmpl12_HO =
new TH2F(
"h_mapDepth4ADCAmpl12_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9097 h_mapDepth1linADCAmpl12_HE =
new TH2F(
"h_mapDepth1linADCAmpl12_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9098 h_mapDepth2linADCAmpl12_HE =
new TH2F(
"h_mapDepth2linADCAmpl12_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9099 h_mapDepth3linADCAmpl12_HE =
new TH2F(
"h_mapDepth3linADCAmpl12_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9101 h_mapGetRMSOverNormalizedSignal_HB =
9102 new TH2F(
"h_mapGetRMSOverNormalizedSignal_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9103 h_mapGetRMSOverNormalizedSignal0_HB =
9104 new TH2F(
"h_mapGetRMSOverNormalizedSignal0_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9105 h_mapGetRMSOverNormalizedSignal_HE =
9106 new TH2F(
"h_mapGetRMSOverNormalizedSignal_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9107 h_mapGetRMSOverNormalizedSignal0_HE =
9108 new TH2F(
"h_mapGetRMSOverNormalizedSignal0_HE",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9109 h_mapGetRMSOverNormalizedSignal_HF =
9110 new TH2F(
"h_mapGetRMSOverNormalizedSignal_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9111 h_mapGetRMSOverNormalizedSignal0_HF =
9112 new TH2F(
"h_mapGetRMSOverNormalizedSignal0_HF",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9113 h_mapGetRMSOverNormalizedSignal_HO =
9114 new TH2F(
"h_mapGetRMSOverNormalizedSignal_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9115 h_mapGetRMSOverNormalizedSignal0_HO =
9116 new TH2F(
"h_mapGetRMSOverNormalizedSignal0_HO",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9118 h_shape_Ahigh_HB0 =
new TH1F(
"h_shape_Ahigh_HB0",
" ", 10, 0., 10.);
9119 h_shape0_Ahigh_HB0 =
new TH1F(
"h_shape0_Ahigh_HB0",
" ", 10, 0., 10.);
9120 h_shape_Alow_HB0 =
new TH1F(
"h_shape_Alow_HB0",
" ", 10, 0., 10.);
9121 h_shape0_Alow_HB0 =
new TH1F(
"h_shape0_Alow_HB0",
" ", 10, 0., 10.);
9122 h_shape_Ahigh_HB1 =
new TH1F(
"h_shape_Ahigh_HB1",
" ", 10, 0., 10.);
9123 h_shape0_Ahigh_HB1 =
new TH1F(
"h_shape0_Ahigh_HB1",
" ", 10, 0., 10.);
9124 h_shape_Alow_HB1 =
new TH1F(
"h_shape_Alow_HB1",
" ", 10, 0., 10.);
9125 h_shape0_Alow_HB1 =
new TH1F(
"h_shape0_Alow_HB1",
" ", 10, 0., 10.);
9126 h_shape_Ahigh_HB2 =
new TH1F(
"h_shape_Ahigh_HB2",
" ", 10, 0., 10.);
9127 h_shape0_Ahigh_HB2 =
new TH1F(
"h_shape0_Ahigh_HB2",
" ", 10, 0., 10.);
9128 h_shape_Alow_HB2 =
new TH1F(
"h_shape_Alow_HB2",
" ", 10, 0., 10.);
9129 h_shape0_Alow_HB2 =
new TH1F(
"h_shape0_Alow_HB2",
" ", 10, 0., 10.);
9130 h_shape_Ahigh_HB3 =
new TH1F(
"h_shape_Ahigh_HB3",
" ", 10, 0., 10.);
9131 h_shape0_Ahigh_HB3 =
new TH1F(
"h_shape0_Ahigh_HB3",
" ", 10, 0., 10.);
9132 h_shape_Alow_HB3 =
new TH1F(
"h_shape_Alow_HB3",
" ", 10, 0., 10.);
9133 h_shape0_Alow_HB3 =
new TH1F(
"h_shape0_Alow_HB3",
" ", 10, 0., 10.);
9135 h_shape_bad_channels_HB =
new TH1F(
"h_shape_bad_channels_HB",
" ", 10, 0., 10.);
9136 h_shape0_bad_channels_HB =
new TH1F(
"h_shape0_bad_channels_HB",
" ", 10, 0., 10.);
9137 h_shape_good_channels_HB =
new TH1F(
"h_shape_good_channels_HB",
" ", 10, 0., 10.);
9138 h_shape0_good_channels_HB =
new TH1F(
"h_shape0_good_channels_HB",
" ", 10, 0., 10.);
9139 h_shape_bad_channels_HE =
new TH1F(
"h_shape_bad_channels_HE",
" ", 10, 0., 10.);
9140 h_shape0_bad_channels_HE =
new TH1F(
"h_shape0_bad_channels_HE",
" ", 10, 0., 10.);
9141 h_shape_good_channels_HE =
new TH1F(
"h_shape_good_channels_HE",
" ", 10, 0., 10.);
9142 h_shape0_good_channels_HE =
new TH1F(
"h_shape0_good_channels_HE",
" ", 10, 0., 10.);
9143 h_shape_bad_channels_HF =
new TH1F(
"h_shape_bad_channels_HF",
" ", 10, 0., 10.);
9144 h_shape0_bad_channels_HF =
new TH1F(
"h_shape0_bad_channels_HF",
" ", 10, 0., 10.);
9145 h_shape_good_channels_HF =
new TH1F(
"h_shape_good_channels_HF",
" ", 10, 0., 10.);
9146 h_shape0_good_channels_HF =
new TH1F(
"h_shape0_good_channels_HF",
" ", 10, 0., 10.);
9147 h_shape_bad_channels_HO =
new TH1F(
"h_shape_bad_channels_HO",
" ", 10, 0., 10.);
9148 h_shape0_bad_channels_HO =
new TH1F(
"h_shape0_bad_channels_HO",
" ", 10, 0., 10.);
9149 h_shape_good_channels_HO =
new TH1F(
"h_shape_good_channels_HO",
" ", 10, 0., 10.);
9150 h_shape0_good_channels_HO =
new TH1F(
"h_shape0_good_channels_HO",
" ", 10, 0., 10.);
9156 h_sumamplitude_depth1_HB =
new TH1F(
"h_sumamplitude_depth1_HB",
" ", spl, 0., spls);
9157 h_sumamplitude_depth2_HB =
new TH1F(
"h_sumamplitude_depth2_HB",
" ", spl, 0., spls);
9158 h_sumamplitude_depth1_HE =
new TH1F(
"h_sumamplitude_depth1_HE",
" ", spl, 0., spls);
9159 h_sumamplitude_depth2_HE =
new TH1F(
"h_sumamplitude_depth2_HE",
" ", spl, 0., spls);
9160 h_sumamplitude_depth3_HE =
new TH1F(
"h_sumamplitude_depth3_HE",
" ", spl, 0., spls);
9161 h_sumamplitude_depth1_HF =
new TH1F(
"h_sumamplitude_depth1_HF",
" ", spl, 0., spls);
9162 h_sumamplitude_depth2_HF =
new TH1F(
"h_sumamplitude_depth2_HF",
" ", spl, 0., spls);
9163 h_sumamplitude_depth4_HO =
new TH1F(
"h_sumamplitude_depth4_HO",
" ", spl, 0., spls);
9165 float spls0 = 10000;
9166 h_sumamplitude_depth1_HB0 =
new TH1F(
"h_sumamplitude_depth1_HB0",
" ", spl0, 0., spls0);
9167 h_sumamplitude_depth2_HB0 =
new TH1F(
"h_sumamplitude_depth2_HB0",
" ", spl0, 0., spls0);
9168 h_sumamplitude_depth1_HE0 =
new TH1F(
"h_sumamplitude_depth1_HE0",
" ", spl0, 0., spls0);
9169 h_sumamplitude_depth2_HE0 =
new TH1F(
"h_sumamplitude_depth2_HE0",
" ", spl0, 0., spls0);
9170 h_sumamplitude_depth3_HE0 =
new TH1F(
"h_sumamplitude_depth3_HE0",
" ", spl0, 0., spls0);
9171 h_sumamplitude_depth1_HF0 =
new TH1F(
"h_sumamplitude_depth1_HF0",
" ", spl0, 0., spls0);
9172 h_sumamplitude_depth2_HF0 =
new TH1F(
"h_sumamplitude_depth2_HF0",
" ", spl0, 0., spls0);
9173 h_sumamplitude_depth4_HO0 =
new TH1F(
"h_sumamplitude_depth4_HO0",
" ", spl0, 0., spls0);
9175 float spls1 = 100000;
9176 h_sumamplitude_depth1_HB1 =
new TH1F(
"h_sumamplitude_depth1_HB1",
" ", spl1, 0., spls1);
9177 h_sumamplitude_depth2_HB1 =
new TH1F(
"h_sumamplitude_depth2_HB1",
" ", spl1, 0., spls1);
9178 h_sumamplitude_depth1_HE1 =
new TH1F(
"h_sumamplitude_depth1_HE1",
" ", spl1, 0., spls1);
9179 h_sumamplitude_depth2_HE1 =
new TH1F(
"h_sumamplitude_depth2_HE1",
" ", spl1, 0., spls1);
9180 h_sumamplitude_depth3_HE1 =
new TH1F(
"h_sumamplitude_depth3_HE1",
" ", spl1, 0., spls1);
9181 h_sumamplitude_depth1_HF1 =
new TH1F(
"h_sumamplitude_depth1_HF1",
" ", spl1, 0., spls1);
9182 h_sumamplitude_depth2_HF1 =
new TH1F(
"h_sumamplitude_depth2_HF1",
" ", spl1, 0., spls1);
9183 h_sumamplitude_depth4_HO1 =
new TH1F(
"h_sumamplitude_depth4_HO1",
" ", spl1, 0., spls1);
9185 h_Amplitude_forCapIdErrors_HB1 =
new TH1F(
"h_Amplitude_forCapIdErrors_HB1",
" ", 100, 0., 30000.);
9186 h_Amplitude_forCapIdErrors_HB2 =
new TH1F(
"h_Amplitude_forCapIdErrors_HB2",
" ", 100, 0., 30000.);
9187 h_Amplitude_forCapIdErrors_HE1 =
new TH1F(
"h_Amplitude_forCapIdErrors_HE1",
" ", 100, 0., 30000.);
9188 h_Amplitude_forCapIdErrors_HE2 =
new TH1F(
"h_Amplitude_forCapIdErrors_HE2",
" ", 100, 0., 30000.);
9189 h_Amplitude_forCapIdErrors_HE3 =
new TH1F(
"h_Amplitude_forCapIdErrors_HE3",
" ", 100, 0., 30000.);
9190 h_Amplitude_forCapIdErrors_HF1 =
new TH1F(
"h_Amplitude_forCapIdErrors_HF1",
" ", 100, 0., 30000.);
9191 h_Amplitude_forCapIdErrors_HF2 =
new TH1F(
"h_Amplitude_forCapIdErrors_HF2",
" ", 100, 0., 30000.);
9192 h_Amplitude_forCapIdErrors_HO4 =
new TH1F(
"h_Amplitude_forCapIdErrors_HO4",
" ", 100, 0., 30000.);
9194 h_Amplitude_notCapIdErrors_HB1 =
new TH1F(
"h_Amplitude_notCapIdErrors_HB1",
" ", 100, 0., 30000.);
9195 h_Amplitude_notCapIdErrors_HB2 =
new TH1F(
"h_Amplitude_notCapIdErrors_HB2",
" ", 100, 0., 30000.);
9196 h_Amplitude_notCapIdErrors_HE1 =
new TH1F(
"h_Amplitude_notCapIdErrors_HE1",
" ", 100, 0., 30000.);
9197 h_Amplitude_notCapIdErrors_HE2 =
new TH1F(
"h_Amplitude_notCapIdErrors_HE2",
" ", 100, 0., 30000.);
9198 h_Amplitude_notCapIdErrors_HE3 =
new TH1F(
"h_Amplitude_notCapIdErrors_HE3",
" ", 100, 0., 30000.);
9199 h_Amplitude_notCapIdErrors_HF1 =
new TH1F(
"h_Amplitude_notCapIdErrors_HF1",
" ", 100, 0., 30000.);
9200 h_Amplitude_notCapIdErrors_HF2 =
new TH1F(
"h_Amplitude_notCapIdErrors_HF2",
" ", 100, 0., 30000.);
9201 h_Amplitude_notCapIdErrors_HO4 =
new TH1F(
"h_Amplitude_notCapIdErrors_HO4",
" ", 100, 0., 30000.);
9203 h_2DAtaildepth1_HB =
new TH2F(
"h_2DAtaildepth1_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9204 h_2D0Ataildepth1_HB =
new TH2F(
"h_2D0Ataildepth1_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9205 h_2DAtaildepth2_HB =
new TH2F(
"h_2DAtaildepth2_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9206 h_2D0Ataildepth2_HB =
new TH2F(
"h_2D0Ataildepth2_HB",
" ",
neta, -41., 41.,
nphi, 0.,
bphi);
9211 cout <<
"======================== booking DONE +++++++++++++++++++++++++++" << endl;
9213 if (recordNtuples_) {
9214 myTree =
new TTree(
"Hcal",
"Hcal Tree");
9215 myTree->Branch(
"Nevent", &Nevent,
"Nevent/I");
9216 myTree->Branch(
"Run", &
Run,
"Run/I");
9220 cout <<
"======================== beignJob finish +++++++++++++++++++++++++++" << endl;
9231 std::cout <<
"************** in loop over Digis counter = " << nnnnnnhbhe << std::endl;
9233 int mdepth = cell.
depth();
9234 int iphi = cell.iphi() - 1;
9235 int ieta = cell.ieta();
9238 int sub = cell.subdet();
9240 int errorGeneral = 0;
9249 bool anycapid =
true;
9255 int lastcapid = 0, capid = 0;
9256 int ERRORfiber = -10;
9257 int ERRORfiberChan = -10;
9258 int ERRORfiberAndChan = -10;
9259 int repetedcapid = 0;
9261 TSsize = digiItr->size();
9264 for (
int ii = 0;
ii < TSsize;
ii++) {
9265 capid = (*digiItr)[
ii].capid();
9266 bool er = (*digiItr)[
ii].er();
9267 bool dv = (*digiItr)[
ii].dv();
9268 int fiber = (*digiItr)[
ii].fiber();
9269 int fiberChan = (*digiItr)[
ii].fiberChan();
9270 int fiberAndChan = (*digiItr)[
ii].fiberAndChan();
9271 if (
ii != 0 && ((lastcapid + 1) % 4) != capid) {
9274 ERRORfiberChan = fiberChan;
9275 ERRORfiberAndChan = fiberAndChan;
9276 if (capid != lastcapid) {
9290 ERRORfiberChan = fiberChan;
9291 ERRORfiberAndChan = fiberAndChan;
9296 ERRORfiberChan = fiberChan;
9297 ERRORfiberAndChan = fiberAndChan;
9303 if (firstcapid == 0 && !anycapid)
9305 if (firstcapid == 1 && !anycapid)
9307 if (firstcapid == 2 && !anycapid)
9309 if (firstcapid == 3 && !anycapid)
9318 if (!anycapid && anyer)
9320 if (!anycapid && !anydv)
9322 if (!anycapid && anyer && !anydv)
9324 if (anyer && !anydv)
9330 for (
int ii = 0;
ii < TSsize;
ii++) {
9331 double ampldefault =
adc2fC[digiItr->sample(
ii).adc()];
9332 ampl += ampldefault;
9339 h_errorGeneral_HB->Fill(
double(errorGeneral), 1.);
9340 h_error1_HB->Fill(
double(error1), 1.);
9341 h_error2_HB->Fill(
double(error2), 1.);
9342 h_error3_HB->Fill(
double(error3), 1.);
9343 h_error4_HB->Fill(
double(error4), 1.);
9344 h_error5_HB->Fill(
double(error5), 1.);
9345 h_error6_HB->Fill(
double(error6), 1.);
9346 h_error7_HB->Fill(
double(error7), 1.);
9347 h_repetedcapid_HB->Fill(
double(repetedcapid), 1.);
9349 if (error1 != 0 || error2 != 0 || error3 != 0) {
9350 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9351 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
9352 h_amplError_HB->Fill(ampl, 1.);
9354 h_mapDepth1Error_HB->Fill(
double(
ieta),
double(
iphi));
9356 h_mapDepth2Error_HB->Fill(
double(
ieta),
double(
iphi));
9357 h_fiber0_HB->Fill(
double(ERRORfiber), 1.);
9358 h_fiber1_HB->Fill(
double(ERRORfiberChan), 1.);
9359 h_fiber2_HB->Fill(
double(ERRORfiberAndChan), 1.);
9361 h_amplFine_HB->Fill(ampl, 1.);
9366 h_errorGeneral_HE->Fill(
double(errorGeneral), 1.);
9367 h_error1_HE->Fill(
double(error1), 1.);
9368 h_error2_HE->Fill(
double(error2), 1.);
9369 h_error3_HE->Fill(
double(error3), 1.);
9370 h_error4_HE->Fill(
double(error4), 1.);
9371 h_error5_HE->Fill(
double(error5), 1.);
9372 h_error6_HE->Fill(
double(error6), 1.);
9373 h_error7_HE->Fill(
double(error7), 1.);
9374 h_repetedcapid_HE->Fill(
double(repetedcapid), 1.);
9376 if (error1 != 0 || error2 != 0 || error3 != 0) {
9377 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9378 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
9379 h_amplError_HE->Fill(ampl, 1.);
9381 h_mapDepth1Error_HE->Fill(
double(
ieta),
double(
iphi));
9383 h_mapDepth2Error_HE->Fill(
double(
ieta),
double(
iphi));
9385 h_mapDepth3Error_HE->Fill(
double(
ieta),
double(
iphi));
9386 h_fiber0_HE->Fill(
double(ERRORfiber), 1.);
9387 h_fiber1_HE->Fill(
double(ERRORfiberChan), 1.);
9388 h_fiber2_HE->Fill(
double(ERRORfiberAndChan), 1.);
9390 h_amplFine_HE->Fill(ampl, 1.);
9409 int mdepth = hcaldetid.
depth();
9410 int sub = hcaldetid.
subdet();
9414 bool anycapid =
true;
9420 int lastcapid = 0, capid = 0;
9421 int repetedcapid = 0;
9425 for (
int ii = 0;
ii < nTS;
ii++) {
9426 capid = qie11df[
ii].capid();
9427 if (
ii != 0 && ((lastcapid + 1) % 4) != capid) {
9429 if (capid != lastcapid) {
9444 for (
int ii = 0;
ii < nTS;
ii++) {
9445 int adc = qie11df[
ii].adc();
9448 if (flaguseshunt_ == 1)
9451 ampl += ampldefault;
9456 h_error1_HB->Fill(
double(error1), 1.);
9457 h_repetedcapid_HB->Fill(
double(repetedcapid), 1.);
9460 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9461 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
9462 h_amplError_HB->Fill(ampl, 1.);
9464 h_mapDepth1Error_HB->Fill(
double(
ieta),
double(
iphi));
9466 h_mapDepth2Error_HB->Fill(
double(
ieta),
double(
iphi));
9468 h_mapDepth3Error_HB->Fill(
double(
ieta),
double(
iphi));
9470 h_mapDepth4Error_HB->Fill(
double(
ieta),
double(
iphi));
9471 h_errorGeneral_HB->Fill(
double(firstcapid), 1.);
9473 h_amplFine_HB->Fill(ampl, 1.);
9477 h_error1_HE->Fill(
double(error1), 1.);
9478 h_repetedcapid_HE->Fill(
double(repetedcapid), 1.);
9481 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9482 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
9483 h_amplError_HE->Fill(ampl, 1.);
9485 h_mapDepth1Error_HE->Fill(
double(
ieta),
double(
iphi));
9487 h_mapDepth2Error_HE->Fill(
double(
ieta),
double(
iphi));
9489 h_mapDepth3Error_HE->Fill(
double(
ieta),
double(
iphi));
9491 h_mapDepth4Error_HE->Fill(
double(
ieta),
double(
iphi));
9493 h_mapDepth5Error_HE->Fill(
double(
ieta),
double(
iphi));
9495 h_mapDepth6Error_HE->Fill(
double(
ieta),
double(
iphi));
9497 h_mapDepth7Error_HE->Fill(
double(
ieta),
double(
iphi));
9498 h_errorGeneral_HE->Fill(
double(firstcapid), 1.);
9500 h_amplFine_HE->Fill(ampl, 1.);
9510 int mdepth = cell.
depth();
9511 int iphi = cell.iphi() - 1;
9512 int ieta = cell.ieta();
9515 int sub = cell.subdet();
9517 std::cout <<
" HF DIGI ?????????????? ERROR mdepth = " << mdepth << std::endl;
9519 int errorGeneral = 0;
9528 bool anycapid =
true;
9534 int lastcapid = 0, capid = 0;
9535 int ERRORfiber = -10;
9536 int ERRORfiberChan = -10;
9537 int ERRORfiberAndChan = -10;
9538 int repetedcapid = 0;
9541 TSsize = digiItr->size();
9543 for (
int ii = 0;
ii < TSsize;
ii++) {
9544 capid = (*digiItr)[
ii].capid();
9545 bool er = (*digiItr)[
ii].er();
9546 bool dv = (*digiItr)[
ii].dv();
9547 int fiber = (*digiItr)[
ii].fiber();
9548 int fiberChan = (*digiItr)[
ii].fiberChan();
9549 int fiberAndChan = (*digiItr)[
ii].fiberAndChan();
9550 if (
ii != 0 && ((lastcapid + 1) % 4) != capid) {
9553 ERRORfiberChan = fiberChan;
9554 ERRORfiberAndChan = fiberAndChan;
9555 if (capid != lastcapid) {
9567 ERRORfiberChan = fiberChan;
9568 ERRORfiberAndChan = fiberAndChan;
9573 ERRORfiberChan = fiberChan;
9574 ERRORfiberAndChan = fiberAndChan;
9578 if (firstcapid == 0 && !anycapid)
9580 if (firstcapid == 1 && !anycapid)
9582 if (firstcapid == 2 && !anycapid)
9584 if (firstcapid == 3 && !anycapid)
9592 if (!anycapid && anyer)
9594 if (!anycapid && !anydv)
9596 if (!anycapid && anyer && !anydv)
9598 if (anyer && !anydv)
9602 for (
int ii = 0;
ii < TSsize;
ii++) {
9603 double ampldefault =
adc2fC[digiItr->sample(
ii).adc()];
9604 ampl += ampldefault;
9609 h_errorGeneral_HF->Fill(
double(errorGeneral), 1.);
9610 h_error1_HF->Fill(
double(error1), 1.);
9611 h_error2_HF->Fill(
double(error2), 1.);
9612 h_error3_HF->Fill(
double(error3), 1.);
9613 h_error4_HF->Fill(
double(error4), 1.);
9614 h_error5_HF->Fill(
double(error5), 1.);
9615 h_error6_HF->Fill(
double(error6), 1.);
9616 h_error7_HF->Fill(
double(error7), 1.);
9617 h_repetedcapid_HF->Fill(
double(repetedcapid), 1.);
9618 if (error1 != 0 || error2 != 0 || error3 != 0) {
9619 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9620 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
9621 h_amplError_HF->Fill(ampl, 1.);
9623 h_mapDepth1Error_HF->Fill(
double(
ieta),
double(
iphi));
9625 h_mapDepth2Error_HF->Fill(
double(
ieta),
double(
iphi));
9626 h_fiber0_HF->Fill(
double(ERRORfiber), 1.);
9627 h_fiber1_HF->Fill(
double(ERRORfiberChan), 1.);
9628 h_fiber2_HF->Fill(
double(ERRORfiberAndChan), 1.);
9630 h_amplFine_HF->Fill(ampl, 1.);
9648 int mdepth = hcaldetid.
depth();
9649 int sub = hcaldetid.
subdet();
9653 bool anycapid =
true;
9659 int lastcapid = 0, capid = 0;
9660 int repetedcapid = 0;
9664 for (
int ii = 0;
ii < nTS;
ii++) {
9665 capid = qie10df[
ii].capid();
9666 if (
ii != 0 && ((lastcapid + 1) % 4) != capid) {
9668 if (capid != lastcapid) {
9697 for (
int ii = 0;
ii < nTS;
ii++) {
9698 int adc = qie10df[
ii].adc();
9700 ampl += ampldefault;
9705 h_error1_HF->Fill(
double(error1), 1.);
9706 h_repetedcapid_HF->Fill(
double(repetedcapid), 1.);
9709 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9710 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
9711 h_amplError_HF->Fill(ampl, 1.);
9713 h_mapDepth1Error_HF->Fill(
double(
ieta),
double(
iphi));
9715 h_mapDepth2Error_HF->Fill(
double(
ieta),
double(
iphi));
9717 h_mapDepth3Error_HF->Fill(
double(
ieta),
double(
iphi));
9719 h_mapDepth4Error_HF->Fill(
double(
ieta),
double(
iphi));
9720 h_errorGeneral_HF->Fill(
double(firstcapid), 1.);
9722 h_amplFine_HF->Fill(ampl, 1.);
9732 int mdepth = cell.
depth();
9733 int iphi = cell.iphi() - 1;
9734 int ieta = cell.ieta();
9737 int sub = cell.subdet();
9738 int errorGeneral = 0;
9747 bool anycapid =
true;
9753 int lastcapid = 0, capid = 0;
9754 int ERRORfiber = -10;
9755 int ERRORfiberChan = -10;
9756 int ERRORfiberAndChan = -10;
9757 int repetedcapid = 0;
9758 for (
int ii = 0;
ii < (*digiItr).size();
ii++) {
9759 capid = (*digiItr)[
ii].capid();
9760 bool er = (*digiItr)[
ii].er();
9761 bool dv = (*digiItr)[
ii].dv();
9762 int fiber = (*digiItr)[
ii].fiber();
9763 int fiberChan = (*digiItr)[
ii].fiberChan();
9764 int fiberAndChan = (*digiItr)[
ii].fiberAndChan();
9765 if (
ii != 0 && ((lastcapid + 1) % 4) != capid) {
9768 ERRORfiberChan = fiberChan;
9769 ERRORfiberAndChan = fiberAndChan;
9770 if (capid != lastcapid) {
9784 ERRORfiberChan = fiberChan;
9785 ERRORfiberAndChan = fiberAndChan;
9790 ERRORfiberChan = fiberChan;
9791 ERRORfiberAndChan = fiberAndChan;
9797 if (firstcapid == 0 && !anycapid)
9799 if (firstcapid == 1 && !anycapid)
9801 if (firstcapid == 2 && !anycapid)
9803 if (firstcapid == 3 && !anycapid)
9812 if (!anycapid && anyer)
9814 if (!anycapid && !anydv)
9816 if (!anycapid && anyer && !anydv)
9818 if (anyer && !anydv)
9823 for (
int ii = 0;
ii < (*digiItr).size();
ii++) {
9824 double ampldefault =
adc2fC[digiItr->sample(
ii).adc()];
9825 ampl += ampldefault;
9831 h_errorGeneral_HO->Fill(
double(errorGeneral), 1.);
9832 h_error1_HO->Fill(
double(error1), 1.);
9833 h_error2_HO->Fill(
double(error2), 1.);
9834 h_error3_HO->Fill(
double(error3), 1.);
9835 h_error4_HO->Fill(
double(error4), 1.);
9836 h_error5_HO->Fill(
double(error5), 1.);
9837 h_error6_HO->Fill(
double(error6), 1.);
9838 h_error7_HO->Fill(
double(error7), 1.);
9839 h_repetedcapid_HO->Fill(
double(repetedcapid), 1.);
9841 if (error1 != 0 || error2 != 0 || error3 != 0) {
9842 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9843 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
9844 h_amplError_HO->Fill(ampl, 1.);
9846 h_mapDepth4Error_HO->Fill(
double(
ieta),
double(
iphi));
9850 std::cout <<
" mdepth HO = " << mdepth << std::endl;
9851 h_fiber0_HO->Fill(
double(ERRORfiber), 1.);
9852 h_fiber1_HO->Fill(
double(ERRORfiberChan), 1.);
9853 h_fiber2_HO->Fill(
double(ERRORfiberAndChan), 1.);
9855 h_amplFine_HO->Fill(ampl, 1.);
9864 double toolwithPedSubtr[100];
9865 double lintoolwithoutPedSubtr[100];
9867 int mdepth = cell.
depth();
9868 int iphi = cell.iphi() - 1;
9869 int ieta0 = cell.ieta();
9873 int sub = cell.subdet();
9874 const HcalPedestal* pedestal00 = conditions->getPedestal(cell);
9877 const HcalRespCorr* respcorr = conditions->getHcalRespCorr(cell);
9878 const HcalTimeCorr* timecorr = conditions->getHcalTimeCorr(cell);
9879 const HcalLUTCorr* lutcorr = conditions->getHcalLUTCorr(cell);
9881 const HcalQIECoder* channelCoder = conditions->getHcalCoder(cell);
9885 coder.
adc2fC(*digiItr, toolOriginal);
9886 double pedestalaver9 = 0.;
9887 double pedestalaver4 = 0.;
9888 double pedestal0 = 0.;
9889 double pedestal1 = 0.;
9890 double pedestal2 = 0.;
9891 double pedestal3 = 0.;
9892 double pedestalwaver9 = 0.;
9893 double pedestalwaver4 = 0.;
9894 double pedestalw0 = 0.;
9895 double pedestalw1 = 0.;
9896 double pedestalw2 = 0.;
9897 double pedestalw3 = 0.;
9898 double difpedestal0 = 0.;
9899 double difpedestal1 = 0.;
9900 double difpedestal2 = 0.;
9901 double difpedestal3 = 0.;
9903 double amplitudewithPedSubtr1 = 0.;
9904 double amplitudewithPedSubtr2 = 0.;
9905 double amplitudewithPedSubtr3 = 0.;
9906 double amplitudewithPedSubtr4 = 0.;
9908 double absamplitude = 0.;
9909 double amplitude345 = 0.;
9911 double linamplitudewithoutPedSubtr = 0.;
9914 double max_signal = -100.;
9915 int ts_with_max_signal = -100;
9921 double errorBtype = 0.;
9926 if ((*digiItr).size() != TSsize)
9928 TSsize = digiItr->size();
9930 for (
int ii = 0;
ii < TSsize;
ii++) {
9932 double ampldefaultwithPedSubtr = 0.;
9933 double linampldefaultwithoutPedSubtr = 0.;
9934 double ampldefault = 0.;
9935 double ampldefault0 = 0.;
9936 double ampldefault1 = 0.;
9937 double ampldefault2 = 0.;
9938 ampldefault0 =
adc2fC[digiItr->sample(
ii).adc()];
9940 ampldefault1 = toolOriginal[
ii];
9941 ampldefault2 = (*digiItr)[
ii].adc();
9942 if (useADCmassive_) {
9943 ampldefault = ampldefault0;
9946 ampldefault = ampldefault1;
9948 if (useADCcounts_) {
9949 ampldefault = ampldefault2;
9951 ampldefaultwithPedSubtr = ampldefault0;
9952 linampldefaultwithoutPedSubtr = ampldefault2;
9954 int capid = ((*digiItr)[
ii]).capid();
9956 double pedestalINI = pedestal00->
getValue(capid);
9958 double pedestalw = pedw->
getSigma(capid, capid);
9959 ampldefaultwithPedSubtr -=
pedestal;
9960 if (usePedestalSubtraction_)
9963 tool[
ii] = ampldefault;
9964 toolwithPedSubtr[
ii] = ampldefaultwithPedSubtr;
9965 lintoolwithoutPedSubtr[
ii] = linampldefaultwithoutPedSubtr;
9968 pedestalwaver9 += pedestalw * pedestalw;
9970 if (capid == 0 &&
c0 == 0) {
9975 pedestalw0 = pedestalw;
9976 pedestalwaver4 += pedestalw * pedestalw;
9977 difpedestal0 =
pedestal - pedestalINI;
9980 if (capid == 1 &&
c1 == 0) {
9985 pedestalw1 = pedestalw;
9986 pedestalwaver4 += pedestalw * pedestalw;
9987 difpedestal1 =
pedestal - pedestalINI;
9989 if (capid == 2 && c2 == 0) {
9994 pedestalw2 = pedestalw;
9995 pedestalwaver4 += pedestalw * pedestalw;
9996 difpedestal2 =
pedestal - pedestalINI;
9998 if (capid == 3 && c3 == 0) {
10003 pedestalw3 = pedestalw;
10004 pedestalwaver4 += pedestalw * pedestalw;
10005 difpedestal3 =
pedestal - pedestalINI;
10008 if (max_signal < ampldefault) {
10009 max_signal = ampldefault;
10010 ts_with_max_signal =
ii;
10021 if (
ii > 0 &&
ii < 9)
10022 amplitudewithPedSubtr1 += ampldefaultwithPedSubtr;
10024 if (
ii > 1 &&
ii < 8)
10025 amplitudewithPedSubtr2 += ampldefaultwithPedSubtr;
10027 if (
ii > 2 &&
ii < 7)
10028 amplitudewithPedSubtr3 += ampldefaultwithPedSubtr;
10030 if (
ii > 2 &&
ii < 6)
10031 amplitudewithPedSubtr4 += ampldefaultwithPedSubtr;
10034 absamplitude +=
abs(ampldefault);
10036 if (
ii == 3 ||
ii == 4 ||
ii == 5)
10037 amplitude345 += ampldefault;
10038 if (flagcpuoptimization_ == 0) {
10041 timew += (
ii + 1) *
abs(ampldefault);
10042 timeww += (
ii + 1) * ampldefault;
10044 amplitudechannel0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
10048 pedestalaver9 /= TSsize;
10049 pedestalaver4 /= c4;
10050 pedestalwaver9 =
sqrt(pedestalwaver9 / TSsize);
10051 pedestalwaver4 =
sqrt(pedestalwaver4 / c4);
10052 if (ts_with_max_signal > -1 && ts_with_max_signal < 10)
10053 ampl = tool[ts_with_max_signal];
10054 if (ts_with_max_signal + 2 > -1 && ts_with_max_signal + 2 < 10)
10055 ampl += tool[ts_with_max_signal + 2];
10056 if (ts_with_max_signal + 1 > -1 && ts_with_max_signal + 1 < 10)
10057 ampl += tool[ts_with_max_signal + 1];
10058 if (ts_with_max_signal - 1 > -1 && ts_with_max_signal - 1 < 10)
10059 ampl += tool[ts_with_max_signal - 1];
10062 if (ts_with_max_signal > -1 && ts_with_max_signal < 10)
10063 linamplitudewithoutPedSubtr = lintoolwithoutPedSubtr[ts_with_max_signal];
10064 if (ts_with_max_signal + 2 > -1 && ts_with_max_signal + 2 < 10)
10065 linamplitudewithoutPedSubtr += lintoolwithoutPedSubtr[ts_with_max_signal + 2];
10066 if (ts_with_max_signal + 1 > -1 && ts_with_max_signal + 1 < 10)
10067 linamplitudewithoutPedSubtr += lintoolwithoutPedSubtr[ts_with_max_signal + 1];
10068 if (ts_with_max_signal - 1 > -1 && ts_with_max_signal - 1 < 10)
10069 linamplitudewithoutPedSubtr += lintoolwithoutPedSubtr[ts_with_max_signal - 1];
10074 if (ratio < 0. || ratio > 1.02)
10076 double aveamplitude = 0.;
10077 double aveamplitudew = 0.;
10078 if (absamplitude > 0 && timew > 0)
10079 aveamplitude = timew / absamplitude;
10082 double rmsamp = 0.;
10085 bool anycapid =
true;
10086 bool anyer =
false;
10090 for (
int ii = 0;
ii < TSsize;
ii++) {
10091 double aaaaaa = (
ii + 1) - aveamplitudew;
10092 double aaaaaa2 = aaaaaa * aaaaaa;
10093 double ampldefault = tool[
ii];
10094 rmsamp += (aaaaaa2 * ampldefault);
10095 capid = ((*digiItr)[
ii]).capid();
10096 bool er = (*digiItr)[
ii].er();
10097 bool dv = (*digiItr)[
ii].dv();
10098 if (
ii != 0 && ((lastcapid + 1) % 4) != capid) {
10110 if (!anycapid || anyer || !anydv)
10113 double rmsamplitude = 0.;
10116 double aveamplitude1 = aveamplitude - 1;
10122 if (sub == 1 && mdepth == 1)
10123 h_Amplitude_forCapIdErrors_HB1->Fill(
amplitude, 1.);
10124 if (sub == 1 && mdepth == 2)
10125 h_Amplitude_forCapIdErrors_HB2->Fill(
amplitude, 1.);
10126 if (sub == 2 && mdepth == 1)
10127 h_Amplitude_forCapIdErrors_HE1->Fill(
amplitude, 1.);
10128 if (sub == 2 && mdepth == 2)
10129 h_Amplitude_forCapIdErrors_HE2->Fill(
amplitude, 1.);
10130 if (sub == 2 && mdepth == 3)
10131 h_Amplitude_forCapIdErrors_HE3->Fill(
amplitude, 1.);
10134 if (sub == 1 && mdepth == 1)
10135 h_Amplitude_notCapIdErrors_HB1->Fill(
amplitude, 1.);
10136 if (sub == 1 && mdepth == 2)
10137 h_Amplitude_notCapIdErrors_HB2->Fill(
amplitude, 1.);
10138 if (sub == 2 && mdepth == 1)
10139 h_Amplitude_notCapIdErrors_HE1->Fill(
amplitude, 1.);
10140 if (sub == 2 && mdepth == 2)
10141 h_Amplitude_notCapIdErrors_HE2->Fill(
amplitude, 1.);
10142 if (sub == 2 && mdepth == 3)
10143 h_Amplitude_notCapIdErrors_HE3->Fill(
amplitude, 1.);
10146 for (
int ii = 0;
ii < TSsize;
ii++) {
10148 double ampldefault = tool[
ii];
10152 h_shape_Ahigh_HB0->Fill(
float(
ii), ampldefault);
10153 h_shape0_Ahigh_HB0->Fill(
float(
ii), 1.);
10155 h_shape_Alow_HB0->Fill(
float(
ii), ampldefault);
10156 h_shape0_Alow_HB0->Fill(
float(
ii), 1.);
10159 if (pedestal2 < pedestalHBMax_ || pedestal3 < pedestalHBMax_ || pedestal2 < pedestalHBMax_ ||
10160 pedestal3 < pedestalHBMax_) {
10161 h_shape_Ahigh_HB1->Fill(
float(
ii), ampldefault);
10162 h_shape0_Ahigh_HB1->Fill(
float(
ii), 1.);
10164 h_shape_Alow_HB1->Fill(
float(
ii), ampldefault);
10165 h_shape0_Alow_HB1->Fill(
float(
ii), 1.);
10168 h_shape_Ahigh_HB2->Fill(
float(
ii), ampldefault);
10169 h_shape0_Ahigh_HB2->Fill(
float(
ii), 1.);
10171 h_shape_Alow_HB2->Fill(
float(
ii), ampldefault);
10172 h_shape0_Alow_HB2->Fill(
float(
ii), 1.);
10175 if (pedestalw0 < pedestalwHBMax_ || pedestalw1 < pedestalwHBMax_ || pedestalw2 < pedestalwHBMax_ ||
10176 pedestalw3 < pedestalwHBMax_) {
10177 h_shape_Ahigh_HB3->Fill(
float(
ii), ampldefault);
10178 h_shape0_Ahigh_HB3->Fill(
float(
ii), 1.);
10180 h_shape_Alow_HB3->Fill(
float(
ii), ampldefault);
10181 h_shape0_Alow_HB3->Fill(
float(
ii), 1.);
10190 if (
error == 1 || amplitude < ADCAmplHBMin_ || amplitude > ADCAmplHBMax_ || rmsamplitude < rmsHBMin_ ||
10191 rmsamplitude > rmsHBMax_ || pedestal0 < pedestalHBMax_ || pedestal1 < pedestalHBMax_ ||
10192 pedestal2 < pedestalHBMax_ || pedestal3 < pedestalHBMax_ || pedestalw0 < pedestalwHBMax_ ||
10193 pedestalw1 < pedestalwHBMax_ || pedestalw2 < pedestalwHBMax_ || pedestalw3 < pedestalwHBMax_) {
10194 for (
int ii = 0;
ii < TSsize;
ii++) {
10195 double ampldefault = tool[
ii];
10196 h_shape_bad_channels_HB->Fill(
float(
ii), ampldefault);
10197 h_shape0_bad_channels_HB->Fill(
float(
ii), 1.);
10202 for (
int ii = 0;
ii < TSsize;
ii++) {
10203 double ampldefault = tool[
ii];
10204 h_shape_good_channels_HB->Fill(
float(
ii), ampldefault);
10205 h_shape0_good_channels_HB->Fill(
float(
ii), 1.);
10211 if (
error == 1 || amplitude < ADCAmplHEMin_ || amplitude > ADCAmplHEMax_ || rmsamplitude < rmsHEMin_ ||
10212 rmsamplitude > rmsHEMax_ || pedestal0 < pedestalHEMax_ || pedestal1 < pedestalHEMax_ ||
10213 pedestal2 < pedestalHEMax_ || pedestal3 < pedestalHEMax_ || pedestalw0 < pedestalwHEMax_ ||
10214 pedestalw1 < pedestalwHEMax_ || pedestalw2 < pedestalwHEMax_ || pedestalw3 < pedestalwHEMax_) {
10215 for (
int ii = 0;
ii < TSsize;
ii++) {
10216 double ampldefault = tool[
ii];
10217 h_shape_bad_channels_HE->Fill(
float(
ii), ampldefault);
10218 h_shape0_bad_channels_HE->Fill(
float(
ii), 1.);
10223 for (
int ii = 0;
ii < TSsize;
ii++) {
10224 double ampldefault = tool[
ii];
10225 h_shape_good_channels_HE->Fill(
float(
ii), ampldefault);
10226 h_shape0_good_channels_HE->Fill(
float(
ii), 1.);
10232 sum0Estimator[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
10234 sumEstimator6[sub - 1][mdepth - 1][
ieta + 41][
iphi] += errorBtype;
10235 sumEstimator0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += pedestal0;
10238 if (studyPedestalCorrelations_) {
10240 double mypedestal = pedestal0;
10241 double mypedestalw = pedestalw0;
10242 h2_pedvsampl_HB->Fill(mypedestal,
amplitude);
10243 h2_pedwvsampl_HB->Fill(mypedestalw,
amplitude);
10244 h_pedvsampl_HB->Fill(mypedestal,
amplitude);
10245 h_pedwvsampl_HB->Fill(mypedestalw,
amplitude);
10246 h_pedvsampl0_HB->Fill(mypedestal, 1.);
10247 h_pedwvsampl0_HB->Fill(mypedestalw, 1.);
10249 h2_amplvsped_HB->Fill(
amplitude, mypedestal);
10250 h2_amplvspedw_HB->Fill(
amplitude, mypedestalw);
10251 h_amplvsped_HB->Fill(
amplitude, mypedestal);
10252 h_amplvspedw_HB->Fill(
amplitude, mypedestalw);
10256 if (studyPedestalsHist_) {
10257 h_pedestal0_HB->Fill(pedestal0, 1.);
10258 h_pedestal1_HB->Fill(pedestal1, 1.);
10259 h_pedestal2_HB->Fill(pedestal2, 1.);
10260 h_pedestal3_HB->Fill(pedestal3, 1.);
10261 h_pedestalaver4_HB->Fill(pedestalaver4, 1.);
10262 h_pedestalaver9_HB->Fill(pedestalaver9, 1.);
10263 h_pedestalw0_HB->Fill(pedestalw0, 1.);
10264 h_pedestalw1_HB->Fill(pedestalw1, 1.);
10265 h_pedestalw2_HB->Fill(pedestalw2, 1.);
10266 h_pedestalw3_HB->Fill(pedestalw3, 1.);
10267 h_pedestalwaver4_HB->Fill(pedestalwaver4, 1.);
10268 h_pedestalwaver9_HB->Fill(pedestalwaver9, 1.);
10271 h_mapDepth1Ped0_HB->Fill(
double(
ieta),
double(
iphi), pedestal0);
10272 h_mapDepth1Ped1_HB->Fill(
double(
ieta),
double(
iphi), pedestal1);
10273 h_mapDepth1Ped2_HB->Fill(
double(
ieta),
double(
iphi), pedestal2);
10274 h_mapDepth1Ped3_HB->Fill(
double(
ieta),
double(
iphi), pedestal3);
10275 h_mapDepth1Pedw0_HB->Fill(
double(
ieta),
double(
iphi), pedestalw0);
10276 h_mapDepth1Pedw1_HB->Fill(
double(
ieta),
double(
iphi), pedestalw1);
10277 h_mapDepth1Pedw2_HB->Fill(
double(
ieta),
double(
iphi), pedestalw2);
10278 h_mapDepth1Pedw3_HB->Fill(
double(
ieta),
double(
iphi), pedestalw3);
10281 h_mapDepth2Ped0_HB->Fill(
double(
ieta),
double(
iphi), pedestal0);
10282 h_mapDepth2Ped1_HB->Fill(
double(
ieta),
double(
iphi), pedestal1);
10283 h_mapDepth2Ped2_HB->Fill(
double(
ieta),
double(
iphi), pedestal2);
10284 h_mapDepth2Ped3_HB->Fill(
double(
ieta),
double(
iphi), pedestal3);
10285 h_mapDepth2Pedw0_HB->Fill(
double(
ieta),
double(
iphi), pedestalw0);
10286 h_mapDepth2Pedw1_HB->Fill(
double(
ieta),
double(
iphi), pedestalw1);
10287 h_mapDepth2Pedw2_HB->Fill(
double(
ieta),
double(
iphi), pedestalw2);
10288 h_mapDepth2Pedw3_HB->Fill(
double(
ieta),
double(
iphi), pedestalw3);
10290 if (pedestalw0 < pedestalwHBMax_ || pedestalw1 < pedestalwHBMax_ || pedestalw2 < pedestalwHBMax_ ||
10291 pedestalw3 < pedestalwHBMax_) {
10293 h_mapDepth1pedestalw_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10295 h_mapDepth2pedestalw_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10297 h_mapDepth3pedestalw_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10299 h_mapDepth4pedestalw_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10301 if (pedestal0 < pedestalHBMax_ || pedestal1 < pedestalHBMax_ || pedestal2 < pedestalHBMax_ ||
10302 pedestal3 < pedestalHBMax_) {
10304 h_mapDepth1pedestal_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10306 h_mapDepth2pedestal_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10308 h_mapDepth3pedestal_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10310 h_mapDepth4pedestal_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10312 for (
int ii = 0;
ii < TSsize;
ii++) {
10313 h_pedestal00_HB->Fill(pedestal00->
getValue(
ii), 1.);
10314 h_gain_HB->Fill(
gain->getValue(
ii), 1.);
10316 h_respcorr_HB->Fill(respcorr->
getValue(), 1.);
10317 h_timecorr_HB->Fill(timecorr->
getValue(), 1.);
10318 h_lutcorr_HB->Fill(lutcorr->
getValue(), 1.);
10319 h_difpedestal0_HB->Fill(difpedestal0, 1.);
10320 h_difpedestal1_HB->Fill(difpedestal1, 1.);
10321 h_difpedestal2_HB->Fill(difpedestal2, 1.);
10322 h_difpedestal3_HB->Fill(difpedestal3, 1.);
10325 if (studyADCAmplHist_) {
10326 h_ADCAmpl345Zoom_HB->Fill(amplitude345, 1.);
10327 h_ADCAmpl345Zoom1_HB->Fill(amplitude345, 1.);
10328 h_ADCAmpl345_HB->Fill(amplitude345, 1.);
10330 h_ADCAmpl_HBCapIdNoError->Fill(
amplitude, 1.);
10331 h_ADCAmpl345_HBCapIdNoError->Fill(amplitude345, 1.);
10334 h_ADCAmpl_HBCapIdError->Fill(
amplitude, 1.);
10335 h_ADCAmpl345_HBCapIdError->Fill(amplitude345, 1.);
10338 h_ADCAmplZoom1_HB->Fill(
amplitude, 1.);
10341 h_AmplitudeHBrest->Fill(
amplitude, 1.);
10342 h_AmplitudeHBrest1->Fill(
amplitude, 1.);
10343 h_AmplitudeHBrest6->Fill(
amplitude, 1.);
10345 if (amplitude < ADCAmplHBMin_ || amplitude > ADCAmplHBMax_) {
10346 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 5)
10347 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
10349 h_mapDepth1ADCAmpl225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10351 h_mapDepth2ADCAmpl225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10356 h_mapDepth1ADCAmpl225Copy_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10358 h_mapDepth2ADCAmpl225Copy_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10366 h_mapDepth1ADCAmpl12_HB->Fill(
double(
ieta),
double(
iphi), ampl);
10368 h_mapDepth2ADCAmpl12_HB->Fill(
double(
ieta),
double(
iphi), ampl);
10369 h_bcnvsamplitude_HB->Fill(
float(bcn),
amplitude);
10370 h_bcnvsamplitude0_HB->Fill(
float(bcn), 1.);
10371 h_orbitNumvsamplitude_HB->Fill(
float(orbitNum),
amplitude);
10372 h_orbitNumvsamplitude0_HB->Fill(
float(orbitNum), 1.);
10373 if (
amplitude > forallestimators_amplitude_bigger_)
10379 if (studyTSmeanShapeHist_) {
10380 h_TSmeanA_HB->Fill(aveamplitude1, 1.);
10381 if (aveamplitude1 < TSmeanHBMin_ || aveamplitude1 > TSmeanHBMax_) {
10382 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 4)
10383 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
10385 h_mapDepth1TSmeanA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10387 h_mapDepth2TSmeanA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10391 h_mapDepth1TSmeanA_HB->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
10393 h_mapDepth2TSmeanA_HB->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
10394 if (
amplitude > forallestimators_amplitude_bigger_)
10395 sumEstimator2[sub - 1][mdepth - 1][
ieta + 41][
iphi] += aveamplitude1;
10400 if (studyTSmaxShapeHist_) {
10401 h_TSmaxA_HB->Fill(
float(ts_with_max_signal), 1.);
10402 if (ts_with_max_signal < TSpeakHBMin_ || ts_with_max_signal > TSpeakHBMax_) {
10403 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 3)
10404 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
10406 h_mapDepth1TSmaxA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10408 h_mapDepth2TSmaxA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10412 h_mapDepth1TSmaxA_HB->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
10414 h_mapDepth2TSmaxA_HB->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
10415 if (
amplitude > forallestimators_amplitude_bigger_)
10416 sumEstimator3[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
float(ts_with_max_signal);
10421 if (studyRMSshapeHist_) {
10422 h_Amplitude_HB->Fill(rmsamplitude, 1.);
10423 if (rmsamplitude < rmsHBMin_ || rmsamplitude > rmsHBMax_) {
10424 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 2)
10425 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
10427 h_mapDepth1Amplitude225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10429 h_mapDepth2Amplitude225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10433 h_mapDepth1Amplitude_HB->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
10435 h_mapDepth2Amplitude_HB->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
10436 if (
amplitude > forallestimators_amplitude_bigger_)
10437 sumEstimator4[sub - 1][mdepth - 1][
ieta + 41][
iphi] += rmsamplitude;
10442 if (studyRatioShapeHist_) {
10443 h_Ampl_HB->Fill(
ratio, 1.);
10444 if (ratio < ratioHBMin_ || ratio > ratioHBMax_) {
10445 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 1)
10446 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
10448 h_mapDepth1Ampl047_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10450 h_mapDepth2Ampl047_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10455 h_mapDepth1Ampl_HB->Fill(
double(
ieta),
double(
iphi),
ratio);
10457 h_mapDepth2Ampl_HB->Fill(
double(
ieta),
double(
iphi),
ratio);
10458 if (
amplitude > forallestimators_amplitude_bigger_)
10459 sumEstimator5[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
ratio;
10464 if (studyDiffAmplHist_) {
10473 h_mapDepth1_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10475 h_mapDepth2_HB->Fill(
double(
ieta),
double(
iphi), 1.);
10481 if (studyPedestalCorrelations_) {
10482 double mypedestal = pedestal0;
10483 double mypedestalw = pedestalw0;
10484 h2_pedvsampl_HE->Fill(mypedestal,
amplitude);
10485 h2_pedwvsampl_HE->Fill(mypedestalw,
amplitude);
10486 h_pedvsampl_HE->Fill(mypedestal,
amplitude);
10487 h_pedwvsampl_HE->Fill(mypedestalw,
amplitude);
10488 h_pedvsampl0_HE->Fill(mypedestal, 1.);
10489 h_pedwvsampl0_HE->Fill(mypedestalw, 1.);
10492 if (studyPedestalsHist_) {
10493 h_pedestal0_HE->Fill(pedestal0, 1.);
10494 h_pedestal1_HE->Fill(pedestal1, 1.);
10495 h_pedestal2_HE->Fill(pedestal2, 1.);
10496 h_pedestal3_HE->Fill(pedestal3, 1.);
10497 h_pedestalaver4_HE->Fill(pedestalaver4, 1.);
10498 h_pedestalaver9_HE->Fill(pedestalaver9, 1.);
10499 h_pedestalw0_HE->Fill(pedestalw0, 1.);
10500 h_pedestalw1_HE->Fill(pedestalw1, 1.);
10501 h_pedestalw2_HE->Fill(pedestalw2, 1.);
10502 h_pedestalw3_HE->Fill(pedestalw3, 1.);
10503 h_pedestalwaver4_HE->Fill(pedestalwaver4, 1.);
10504 h_pedestalwaver9_HE->Fill(pedestalwaver9, 1.);
10507 h_mapDepth1Ped0_HE->Fill(
double(
ieta),
double(
iphi), pedestal0);
10508 h_mapDepth1Ped1_HE->Fill(
double(
ieta),
double(
iphi), pedestal1);
10509 h_mapDepth1Ped2_HE->Fill(
double(
ieta),
double(
iphi), pedestal2);
10510 h_mapDepth1Ped3_HE->Fill(
double(
ieta),
double(
iphi), pedestal3);
10511 h_mapDepth1Pedw0_HE->Fill(
double(
ieta),
double(
iphi), pedestalw0);
10512 h_mapDepth1Pedw1_HE->Fill(
double(
ieta),
double(
iphi), pedestalw1);
10513 h_mapDepth1Pedw2_HE->Fill(
double(
ieta),
double(
iphi), pedestalw2);
10514 h_mapDepth1Pedw3_HE->Fill(
double(
ieta),
double(
iphi), pedestalw3);
10517 h_mapDepth2Ped0_HE->Fill(
double(
ieta),
double(
iphi), pedestal0);
10518 h_mapDepth2Ped1_HE->Fill(
double(
ieta),
double(
iphi), pedestal1);
10519 h_mapDepth2Ped2_HE->Fill(
double(
ieta),
double(
iphi), pedestal2);
10520 h_mapDepth2Ped3_HE->Fill(
double(
ieta),
double(
iphi), pedestal3);
10521 h_mapDepth2Pedw0_HE->Fill(
double(
ieta),
double(
iphi), pedestalw0);
10522 h_mapDepth2Pedw1_HE->Fill(
double(
ieta),
double(
iphi), pedestalw1);
10523 h_mapDepth2Pedw2_HE->Fill(
double(
ieta),
double(
iphi), pedestalw2);
10524 h_mapDepth2Pedw3_HE->Fill(
double(
ieta),
double(
iphi), pedestalw3);
10527 h_mapDepth3Ped0_HE->Fill(
double(
ieta),
double(
iphi), pedestal0);
10528 h_mapDepth3Ped1_HE->Fill(
double(
ieta),
double(
iphi), pedestal1);
10529 h_mapDepth3Ped2_HE->Fill(
double(
ieta),
double(
iphi), pedestal2);
10530 h_mapDepth3Ped3_HE->Fill(
double(
ieta),
double(
iphi), pedestal3);
10531 h_mapDepth3Pedw0_HE->Fill(
double(
ieta),
double(
iphi), pedestalw0);
10532 h_mapDepth3Pedw1_HE->Fill(
double(
ieta),
double(
iphi), pedestalw1);
10533 h_mapDepth3Pedw2_HE->Fill(
double(
ieta),
double(
iphi), pedestalw2);
10534 h_mapDepth3Pedw3_HE->Fill(
double(
ieta),
double(
iphi), pedestalw3);
10536 if (pedestalw0 < pedestalwHEMax_ || pedestalw1 < pedestalwHEMax_ || pedestalw2 < pedestalwHEMax_ ||
10537 pedestalw3 < pedestalwHEMax_) {
10539 h_mapDepth1pedestalw_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10541 h_mapDepth2pedestalw_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10543 h_mapDepth3pedestalw_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10545 if (pedestal0 < pedestalHEMax_ || pedestal1 < pedestalHEMax_ || pedestal2 < pedestalHEMax_ ||
10546 pedestal3 < pedestalHEMax_) {
10548 h_mapDepth1pedestal_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10550 h_mapDepth2pedestal_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10552 h_mapDepth3pedestal_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10554 for (
int ii = 0;
ii < TSsize;
ii++) {
10555 h_pedestal00_HE->Fill(pedestal00->
getValue(
ii), 1.);
10556 h_gain_HE->Fill(
gain->getValue(
ii), 1.);
10558 h_respcorr_HE->Fill(respcorr->
getValue(), 1.);
10559 h_timecorr_HE->Fill(timecorr->
getValue(), 1.);
10560 h_lutcorr_HE->Fill(lutcorr->
getValue(), 1.);
10565 if (studyADCAmplHist_) {
10566 h_ADCAmpl345Zoom_HE->Fill(ampl, 1.);
10567 h_ADCAmpl345Zoom1_HE->Fill(amplitude345, 1.);
10568 h_ADCAmpl345_HE->Fill(amplitude345, 1.);
10572 h_ADCAmplrest1_HE->Fill(
amplitude, 1.);
10573 h_ADCAmplrest6_HE->Fill(
amplitude, 1.);
10575 h_ADCAmplZoom1_HE->Fill(
amplitude, 1.);
10576 if (amplitude < ADCAmplHEMin_ || amplitude > ADCAmplHEMax_) {
10577 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 5)
10578 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
10580 h_mapDepth1ADCAmpl225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10582 h_mapDepth2ADCAmpl225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10584 h_mapDepth3ADCAmpl225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10589 h_mapDepth1ADCAmpl225Copy_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10591 h_mapDepth2ADCAmpl225Copy_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10593 h_mapDepth3ADCAmpl225Copy_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10604 h_mapDepth1ADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), ampl);
10605 h_mapDepth1linADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), linamplitudewithoutPedSubtr);
10608 h_mapDepth2ADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), ampl);
10609 h_mapDepth2linADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), linamplitudewithoutPedSubtr);
10612 h_mapDepth3ADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), ampl);
10613 h_mapDepth3linADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), linamplitudewithoutPedSubtr);
10618 h_bcnvsamplitude_HE->Fill(
float(bcn),
amplitude);
10619 h_bcnvsamplitude0_HE->Fill(
float(bcn), 1.);
10620 h_orbitNumvsamplitude_HE->Fill(
float(orbitNum),
amplitude);
10621 h_orbitNumvsamplitude0_HE->Fill(
float(orbitNum), 1.);
10625 if (
amplitude > forallestimators_amplitude_bigger_)
10631 if (studyTSmeanShapeHist_) {
10632 h_TSmeanA_HE->Fill(aveamplitude1, 1.);
10633 if (aveamplitude1 < TSmeanHEMin_ || aveamplitude1 > TSmeanHEMax_) {
10634 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 4)
10635 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
10637 h_mapDepth1TSmeanA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10639 h_mapDepth2TSmeanA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10641 h_mapDepth3TSmeanA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10645 h_mapDepth1TSmeanA_HE->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
10647 h_mapDepth2TSmeanA_HE->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
10649 h_mapDepth3TSmeanA_HE->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
10650 if (
amplitude > forallestimators_amplitude_bigger_)
10651 sumEstimator2[sub - 1][mdepth - 1][
ieta + 41][
iphi] += aveamplitude1;
10655 if (studyTSmaxShapeHist_) {
10656 h_TSmaxA_HE->Fill(
float(ts_with_max_signal), 1.);
10657 if (ts_with_max_signal < TSpeakHEMin_ || ts_with_max_signal > TSpeakHEMax_) {
10658 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 3)
10659 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
10661 h_mapDepth1TSmaxA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10663 h_mapDepth2TSmaxA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10665 h_mapDepth3TSmaxA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10669 h_mapDepth1TSmaxA_HE->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
10671 h_mapDepth2TSmaxA_HE->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
10673 h_mapDepth3TSmaxA_HE->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
10674 if (
amplitude > forallestimators_amplitude_bigger_)
10675 sumEstimator3[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
float(ts_with_max_signal);
10679 if (studyRMSshapeHist_) {
10680 h_Amplitude_HE->Fill(rmsamplitude, 1.);
10681 if (rmsamplitude < rmsHEMin_ || rmsamplitude > rmsHEMax_) {
10682 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 2)
10683 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
10685 h_mapDepth1Amplitude225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10687 h_mapDepth2Amplitude225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10689 h_mapDepth3Amplitude225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10693 h_mapDepth1Amplitude_HE->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
10695 h_mapDepth2Amplitude_HE->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
10697 h_mapDepth3Amplitude_HE->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
10698 if (
amplitude > forallestimators_amplitude_bigger_)
10699 sumEstimator4[sub - 1][mdepth - 1][
ieta + 41][
iphi] += rmsamplitude;
10704 if (studyRatioShapeHist_) {
10705 h_Ampl_HE->Fill(
ratio, 1.);
10706 if (ratio < ratioHEMin_ || ratio > ratioHEMax_) {
10707 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 1)
10708 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
10710 h_mapDepth1Ampl047_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10712 h_mapDepth2Ampl047_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10714 h_mapDepth3Ampl047_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10718 h_mapDepth1Ampl_HE->Fill(
double(
ieta),
double(
iphi),
ratio);
10720 h_mapDepth2Ampl_HE->Fill(
double(
ieta),
double(
iphi),
ratio);
10722 h_mapDepth3Ampl_HE->Fill(
double(
ieta),
double(
iphi),
ratio);
10723 if (
amplitude > forallestimators_amplitude_bigger_)
10724 sumEstimator5[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
ratio;
10728 if (studyDiffAmplHist_) {
10740 if (flagLaserRaddam_ > 0) {
10741 double amplitudewithPedSubtr = 0.;
10744 if (ts_with_max_signal > -1 && ts_with_max_signal < 10)
10745 amplitudewithPedSubtr = toolwithPedSubtr[ts_with_max_signal];
10746 if (ts_with_max_signal + 2 > -1 && ts_with_max_signal + 2 < 10)
10747 amplitudewithPedSubtr += toolwithPedSubtr[ts_with_max_signal + 2];
10748 if (ts_with_max_signal + 1 > -1 && ts_with_max_signal + 1 < 10)
10749 amplitudewithPedSubtr += toolwithPedSubtr[ts_with_max_signal + 1];
10750 if (ts_with_max_signal - 1 > -1 && ts_with_max_signal - 1 < 10)
10751 amplitudewithPedSubtr += toolwithPedSubtr[ts_with_max_signal - 1];
10753 h_AamplitudewithPedSubtr_RADDAM_HE->Fill(amplitudewithPedSubtr);
10754 h_AamplitudewithPedSubtr_RADDAM_HEzoom0->Fill(amplitudewithPedSubtr);
10755 h_AamplitudewithPedSubtr_RADDAM_HEzoom1->Fill(amplitudewithPedSubtr);
10757 if (amplitudewithPedSubtr > 50.) {
10758 if (flagLaserRaddam_ > 1) {
10759 mapRADDAM_HE[mdepth - 1][
ieta + 41][
iphi] += amplitudewithPedSubtr;
10760 ++mapRADDAM0_HE[mdepth - 1][
ieta + 41][
iphi];
10764 h_mapDepth1RADDAM_HE->Fill(
double(
ieta),
double(
iphi), amplitudewithPedSubtr);
10765 h_mapDepth1RADDAM0_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10766 h_A_Depth1RADDAM_HE->Fill(amplitudewithPedSubtr);
10769 h_mapDepth2RADDAM_HE->Fill(
double(
ieta),
double(
iphi), amplitudewithPedSubtr);
10770 h_mapDepth2RADDAM0_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10771 h_A_Depth2RADDAM_HE->Fill(amplitudewithPedSubtr);
10774 h_mapDepth3RADDAM_HE->Fill(
double(
ieta),
double(
iphi), amplitudewithPedSubtr);
10775 h_mapDepth3RADDAM0_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10776 h_A_Depth3RADDAM_HE->Fill(amplitudewithPedSubtr);
10780 int LLLLLL111111 = 0;
10781 if ((mdepth == 1 && fabs(ieta0) > 16 && fabs(ieta0) < 30))
10784 int LLLLLL222222 = 0;
10785 if ((mdepth == 2 && fabs(ieta0) > 16 && fabs(ieta0) < 27) ||
10786 (mdepth == 3 && fabs(ieta0) > 26 && fabs(ieta0) < 29))
10789 if (LLLLLL111111 == 1) {
10791 h_sigLayer1RADDAM_HE->Fill(
double(ieta0), amplitudewithPedSubtr);
10792 h_sigLayer1RADDAM0_HE->Fill(
double(ieta0), 1.);
10794 if (LLLLLL222222 == 1) {
10796 h_sigLayer2RADDAM_HE->Fill(
double(ieta0), amplitudewithPedSubtr);
10797 h_sigLayer2RADDAM0_HE->Fill(
double(ieta0), 1.);
10801 if (mdepth == 3 && fabs(ieta0) == 16) {
10802 h_mapDepth3RADDAM16_HE->Fill(amplitudewithPedSubtr);
10811 h_mapDepth1_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10813 h_mapDepth2_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10815 h_mapDepth3_HE->Fill(
double(
ieta),
double(
iphi), 1.);
10830 int mdepth = hcaldetid.
depth();
10831 int sub = hcaldetid.
subdet();
10834 if (mdepth == 0 || sub > 4)
10836 if (mdepth > 3 && flagupgradeqie1011_ == 3)
10838 if (mdepth > 3 && flagupgradeqie1011_ == 7)
10840 if (mdepth > 3 && flagupgradeqie1011_ == 8)
10842 if (mdepth > 3 && flagupgradeqie1011_ == 9)
10849 const HcalGain*
gain = conditions->getGain(hcaldetid);
10851 const HcalRespCorr* respcorr = conditions->getHcalRespCorr(hcaldetid);
10852 const HcalTimeCorr* timecorr = conditions->getHcalTimeCorr(hcaldetid);
10853 const HcalLUTCorr* lutcorr = conditions->getHcalLUTCorr(hcaldetid);
10854 const HcalQIECoder* channelCoder = conditions->getHcalCoder(hcaldetid);
10856 const HcalPedestal* pedestal00 = conditions->getPedestal(hcaldetid);
10859 coder.
adc2fC(qie11df, toolOriginal);
10860 double pedestalaver9 = 0.;
10861 double pedestalaver4 = 0.;
10862 double pedestal0 = 0.;
10863 double pedestal1 = 0.;
10864 double pedestal2 = 0.;
10865 double pedestal3 = 0.;
10866 double pedestalwaver9 = 0.;
10867 double pedestalwaver4 = 0.;
10868 double pedestalw0 = 0.;
10869 double pedestalw1 = 0.;
10870 double pedestalw2 = 0.;
10871 double pedestalw3 = 0.;
10872 double difpedestal0 = 0.;
10873 double difpedestal1 = 0.;
10874 double difpedestal2 = 0.;
10875 double difpedestal3 = 0.;
10878 double amplitude0 = 0.;
10879 double absamplitude = 0.;
10880 double tocampl = 0.;
10882 double amplitude345 = 0.;
10884 double ampl3ts = 0.;
10885 double amplmaxts = 0.;
10887 double timeww = 0.;
10888 double max_signal = -100.;
10889 int ts_with_max_signal = -100;
10895 double errorBtype = 0.;
10906 for (
int ii = 0;
ii < TSsize;
ii++) {
10907 double ampldefault = 0.;
10908 double tocdefault = 0.;
10909 double ampldefault0 = 0.;
10910 double ampldefault1 = 0.;
10911 double ampldefault2 = 0.;
10914 if (flaguseshunt_ == 1)
10917 ampldefault1 = toolOriginal[
ii];
10918 ampldefault2 = qie11df[
ii].adc();
10920 if (useADCmassive_) {
10921 ampldefault = ampldefault0;
10924 ampldefault = ampldefault1;
10926 if (useADCcounts_) {
10927 ampldefault = ampldefault2;
10929 tocdefault = ampldefault;
10931 int capid = (qie11df[
ii]).capid();
10933 double pedestalw = pedw->
getSigma(capid, capid);
10934 double pedestalINI = pedestal00->
getValue(capid);
10936 if (usePedestalSubtraction_)
10938 tool[
ii] = ampldefault;
10940 pedestalwaver9 += pedestalw * pedestalw;
10942 if (capid == 0 &&
c0 == 0) {
10947 pedestalw0 = pedestalw;
10948 pedestalwaver4 += pedestalw * pedestalw;
10949 difpedestal0 =
pedestal - pedestalINI;
10952 if (capid == 1 &&
c1 == 0) {
10957 pedestalw1 = pedestalw;
10958 pedestalwaver4 += pedestalw * pedestalw;
10959 difpedestal1 =
pedestal - pedestalINI;
10961 if (capid == 2 && c2 == 0) {
10966 pedestalw2 = pedestalw;
10967 pedestalwaver4 += pedestalw * pedestalw;
10968 difpedestal2 =
pedestal - pedestalINI;
10970 if (capid == 3 && c3 == 0) {
10975 pedestalw3 = pedestalw;
10976 pedestalwaver4 += pedestalw * pedestalw;
10977 difpedestal3 =
pedestal - pedestalINI;
10980 if (max_signal < ampldefault) {
10981 max_signal = ampldefault;
10982 ts_with_max_signal =
ii;
10985 absamplitude +=
abs(ampldefault);
10986 tocampl += tocdefault;
10988 if (
ii == 1 ||
ii == 2 ||
ii == 3 ||
ii == 4 ||
ii == 5 ||
ii == 6 ||
ii == 7 ||
ii == 8)
10989 amplitude345 += ampldefault;
10991 if (flagcpuoptimization_ == 0) {
10994 timew += (
ii + 1) *
abs(ampldefault);
10995 timeww += (
ii + 1) * ampldefault;
11001 pedestalaver9 /= TSsize;
11002 pedestalaver4 /= c4;
11003 pedestalwaver9 =
sqrt(pedestalwaver9 / TSsize);
11004 pedestalwaver4 =
sqrt(pedestalwaver4 / c4);
11007 if (ts_with_max_signal > -1 && ts_with_max_signal < 10) {
11008 ampl = tool[ts_with_max_signal];
11009 ampl3ts = tool[ts_with_max_signal];
11010 amplmaxts = tool[ts_with_max_signal];
11012 if (ts_with_max_signal - 1 > -1 && ts_with_max_signal - 1 < 10) {
11013 ampl += tool[ts_with_max_signal - 1];
11014 ampl3ts += tool[ts_with_max_signal - 1];
11016 if (ts_with_max_signal + 1 > -1 && ts_with_max_signal + 1 < 10) {
11017 ampl += tool[ts_with_max_signal + 1];
11018 ampl3ts += tool[ts_with_max_signal + 1];
11020 if (ts_with_max_signal + 2 > -1 && ts_with_max_signal + 2 < 10) {
11021 ampl += tool[ts_with_max_signal + 2];
11024 if (flagsipmcorrection_ != 0) {
11027 double xb = ampl / 40.;
11028 double xc = amplitude345 / 40.;
11029 double xd = ampl3ts / 40.;
11030 double xe = amplmaxts / 40.;
11031 double txa = tocampl / 40.;
11033 if (((
ieta == -16 ||
ieta == 15) && mdepth == 4) ||
11034 ((
ieta == -17 ||
ieta == 16) && (mdepth == 2 || mdepth == 3)) ||
11035 ((
ieta == -18 ||
ieta == 17) && mdepth == 5)) {
11036 double c0 = 1.000000;
11037 double b1 = 2.59096e-05;
11038 double a2 = 4.60721e-11;
11039 double corrforxa =
a2 * xa * xa +
b1 * xa +
c0;
11040 double corrforxb =
a2 * xb * xb +
b1 * xb +
c0;
11041 double corrforxc =
a2 * xc * xc +
b1 * xc +
c0;
11042 double corrforxd =
a2 * xd * xd +
b1 * xd +
c0;
11043 double corrforxe =
a2 * xe * xe +
b1 * xe +
c0;
11044 double corrfortxa =
a2 * txa * txa +
b1 * txa +
c0;
11045 h_corrforxaADDI_HE->Fill(
amplitude, corrforxa);
11046 h_corrforxaADDI0_HE->Fill(
amplitude, 1.);
11049 amplitude345 *= corrforxc;
11050 ampl3ts *= corrforxd;
11051 amplmaxts *= corrforxe;
11052 tocampl *= corrfortxa;
11056 double c0 = 1.000000;
11057 double b1 = 2.71238e-05;
11058 double a2 = 1.32877e-10;
11059 double corrforxa =
a2 * xa * xa +
b1 * xa +
c0;
11060 double corrforxb =
a2 * xb * xb +
b1 * xb +
c0;
11061 double corrforxc =
a2 * xc * xc +
b1 * xc +
c0;
11062 double corrforxd =
a2 * xd * xd +
b1 * xd +
c0;
11063 double corrforxe =
a2 * xe * xe +
b1 * xe +
c0;
11064 double corrfortxa =
a2 * txa * txa +
b1 * txa +
c0;
11065 h_corrforxaMAIN_HE->Fill(
amplitude, corrforxa);
11066 h_corrforxaMAIN0_HE->Fill(
amplitude, 1.);
11069 amplitude345 *= corrforxc;
11070 ampl3ts *= corrforxd;
11071 amplmaxts *= corrforxe;
11072 tocampl *= corrfortxa;
11077 amplitudechannel0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
11080 tocamplchannel[sub - 1][mdepth - 1][
ieta + 41][
iphi] += tocampl;
11086 if (ratio < 0. || ratio > 1.02)
11088 double aveamplitude = 0.;
11089 double aveamplitudew = 0.;
11090 if (absamplitude > 0 && timew > 0)
11091 aveamplitude = timew / absamplitude;
11092 if (amplitude0 > 0 && timeww > 0)
11093 aveamplitudew = timeww / amplitude0;
11094 double rmsamp = 0.;
11097 bool anycapid =
true;
11100 for (
int ii = 0;
ii < TSsize;
ii++) {
11101 double aaaaaa = (
ii + 1) - aveamplitudew;
11102 double aaaaaa2 = aaaaaa * aaaaaa;
11103 double ampldefault = tool[
ii];
11104 rmsamp += (aaaaaa2 * ampldefault);
11105 capid = (qie11df[
ii]).capid();
11106 if (
ii != 0 && ((lastcapid + 1) % 4) != capid) {
11114 double rmsamplitude = 0.;
11115 if ((amplitude0 > 0 && rmsamp > 0) || (amplitude0 < 0 && rmsamp < 0))
11116 rmsamplitude =
sqrt(rmsamp / amplitude0);
11117 double aveamplitude1 = aveamplitude - 1;
11122 if (sub == 1 && mdepth == 1)
11123 h_Amplitude_forCapIdErrors_HB1->Fill(
amplitude, 1.);
11124 if (sub == 1 && mdepth == 2)
11125 h_Amplitude_forCapIdErrors_HB2->Fill(
amplitude, 1.);
11126 if (sub == 2 && mdepth == 1)
11127 h_Amplitude_forCapIdErrors_HE1->Fill(
amplitude, 1.);
11128 if (sub == 2 && mdepth == 2)
11129 h_Amplitude_forCapIdErrors_HE2->Fill(
amplitude, 1.);
11130 if (sub == 2 && mdepth == 3)
11131 h_Amplitude_forCapIdErrors_HE3->Fill(
amplitude, 1.);
11134 if (sub == 1 && mdepth == 1)
11135 h_Amplitude_notCapIdErrors_HB1->Fill(
amplitude, 1.);
11136 if (sub == 1 && mdepth == 2)
11137 h_Amplitude_notCapIdErrors_HB2->Fill(
amplitude, 1.);
11138 if (sub == 2 && mdepth == 1)
11139 h_Amplitude_notCapIdErrors_HE1->Fill(
amplitude, 1.);
11140 if (sub == 2 && mdepth == 2)
11141 h_Amplitude_notCapIdErrors_HE2->Fill(
amplitude, 1.);
11142 if (sub == 2 && mdepth == 3)
11143 h_Amplitude_notCapIdErrors_HE3->Fill(
amplitude, 1.);
11146 for (
int ii = 0;
ii < TSsize;
ii++) {
11148 double ampldefault = tool[
ii];
11151 if (amplitude0 > 120) {
11152 h_shape_Ahigh_HB0->Fill(
float(
ii), ampldefault);
11153 h_shape0_Ahigh_HB0->Fill(
float(
ii), 1.);
11155 h_shape_Alow_HB0->Fill(
float(
ii), ampldefault);
11156 h_shape0_Alow_HB0->Fill(
float(
ii), 1.);
11159 if (pedestal2 < pedestalHBMax_ || pedestal3 < pedestalHBMax_ || pedestal2 < pedestalHBMax_ ||
11160 pedestal3 < pedestalHBMax_) {
11161 h_shape_Ahigh_HB1->Fill(
float(
ii), ampldefault);
11162 h_shape0_Ahigh_HB1->Fill(
float(
ii), 1.);
11164 h_shape_Alow_HB1->Fill(
float(
ii), ampldefault);
11165 h_shape0_Alow_HB1->Fill(
float(
ii), 1.);
11168 h_shape_Ahigh_HB2->Fill(
float(
ii), ampldefault);
11169 h_shape0_Ahigh_HB2->Fill(
float(
ii), 1.);
11171 h_shape_Alow_HB2->Fill(
float(
ii), ampldefault);
11172 h_shape0_Alow_HB2->Fill(
float(
ii), 1.);
11175 if (pedestalw0 < pedestalwHBMax_ || pedestalw1 < pedestalwHBMax_ || pedestalw2 < pedestalwHBMax_ ||
11176 pedestalw3 < pedestalwHBMax_) {
11177 h_shape_Ahigh_HB3->Fill(
float(
ii), ampldefault);
11178 h_shape0_Ahigh_HB3->Fill(
float(
ii), 1.);
11180 h_shape_Alow_HB3->Fill(
float(
ii), ampldefault);
11181 h_shape0_Alow_HB3->Fill(
float(
ii), 1.);
11190 if (
error == 1 || amplitude0 < ADCAmplHBMin_ || amplitude0 > ADCAmplHBMax_ || rmsamplitude < rmsHBMin_ ||
11191 rmsamplitude > rmsHBMax_ || pedestal0 < pedestalHBMax_ || pedestal1 < pedestalHBMax_ ||
11192 pedestal2 < pedestalHBMax_ || pedestal3 < pedestalHBMax_ || pedestalw0 < pedestalwHBMax_ ||
11193 pedestalw1 < pedestalwHBMax_ || pedestalw2 < pedestalwHBMax_ || pedestalw3 < pedestalwHBMax_) {
11194 for (
int ii = 0;
ii < TSsize;
ii++) {
11195 double ampldefault = tool[
ii];
11196 h_shape_bad_channels_HB->Fill(
float(
ii), ampldefault);
11197 h_shape0_bad_channels_HB->Fill(
float(
ii), 1.);
11202 for (
int ii = 0;
ii < TSsize;
ii++) {
11203 double ampldefault = tool[
ii];
11204 h_shape_good_channels_HB->Fill(
float(
ii), ampldefault);
11205 h_shape0_good_channels_HB->Fill(
float(
ii), 1.);
11213 if (
error == 1 || amplitude0 < ADCAmplHEMin_ || amplitude0 > ADCAmplHEMax_ || rmsamplitude < rmsHEMin_ ||
11214 rmsamplitude > rmsHEMax_ || pedestal0 < pedestalHEMax_ || pedestal1 < pedestalHEMax_ ||
11215 pedestal2 < pedestalHEMax_ || pedestal3 < pedestalHEMax_ || pedestalw0 < pedestalwHEMax_ ||
11216 pedestalw1 < pedestalwHEMax_ || pedestalw2 < pedestalwHEMax_ || pedestalw3 < pedestalwHEMax_) {
11217 for (
int ii = 0;
ii < TSsize;
ii++) {
11218 double ampldefault = tool[
ii];
11219 h_shape_bad_channels_HE->Fill(
float(
ii), ampldefault);
11220 h_shape0_bad_channels_HE->Fill(
float(
ii), 1.);
11225 for (
int ii = 0;
ii < TSsize;
ii++) {
11226 double ampldefault = tool[
ii];
11227 h_shape_good_channels_HE->Fill(
float(
ii), ampldefault);
11228 h_shape0_good_channels_HE->Fill(
float(
ii), 1.);
11233 sum0Estimator[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
11235 sumEstimator6[sub - 1][mdepth - 1][
ieta + 41][
iphi] += errorBtype;
11237 sumEstimator0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += pedestal0;
11240 if (studyPedestalCorrelations_) {
11242 double mypedestal = pedestal0;
11243 double mypedestalw = pedestalw0;
11244 h2_pedvsampl_HB->Fill(mypedestal,
amplitude);
11245 h2_pedwvsampl_HB->Fill(mypedestalw,
amplitude);
11246 h_pedvsampl_HB->Fill(mypedestal,
amplitude);
11247 h_pedwvsampl_HB->Fill(mypedestalw,
amplitude);
11248 h_pedvsampl0_HB->Fill(mypedestal, 1.);
11249 h_pedwvsampl0_HB->Fill(mypedestalw, 1.);
11251 h2_amplvsped_HB->Fill(
amplitude, mypedestal);
11252 h2_amplvspedw_HB->Fill(
amplitude, mypedestalw);
11253 h_amplvsped_HB->Fill(
amplitude, mypedestal);
11254 h_amplvspedw_HB->Fill(
amplitude, mypedestalw);
11258 if (studyPedestalsHist_) {
11259 h_pedestal0_HB->Fill(pedestal0, 1.);
11260 h_pedestal1_HB->Fill(pedestal1, 1.);
11261 h_pedestal2_HB->Fill(pedestal2, 1.);
11262 h_pedestal3_HB->Fill(pedestal3, 1.);
11263 h_pedestalaver4_HB->Fill(pedestalaver4, 1.);
11264 h_pedestalaver9_HB->Fill(pedestalaver9, 1.);
11265 h_pedestalw0_HB->Fill(pedestalw0, 1.);
11266 h_pedestalw1_HB->Fill(pedestalw1, 1.);
11267 h_pedestalw2_HB->Fill(pedestalw2, 1.);
11268 h_pedestalw3_HB->Fill(pedestalw3, 1.);
11269 h_pedestalwaver4_HB->Fill(pedestalwaver4, 1.);
11270 h_pedestalwaver9_HB->Fill(pedestalwaver9, 1.);
11273 h_mapDepth1Ped0_HB->Fill(
double(
ieta),
double(
iphi), pedestal0);
11274 h_mapDepth1Ped1_HB->Fill(
double(
ieta),
double(
iphi), pedestal1);
11275 h_mapDepth1Ped2_HB->Fill(
double(
ieta),
double(
iphi), pedestal2);
11276 h_mapDepth1Ped3_HB->Fill(
double(
ieta),
double(
iphi), pedestal3);
11277 h_mapDepth1Pedw0_HB->Fill(
double(
ieta),
double(
iphi), pedestalw0);
11278 h_mapDepth1Pedw1_HB->Fill(
double(
ieta),
double(
iphi), pedestalw1);
11279 h_mapDepth1Pedw2_HB->Fill(
double(
ieta),
double(
iphi), pedestalw2);
11280 h_mapDepth1Pedw3_HB->Fill(
double(
ieta),
double(
iphi), pedestalw3);
11283 h_mapDepth2Ped0_HB->Fill(
double(
ieta),
double(
iphi), pedestal0);
11284 h_mapDepth2Ped1_HB->Fill(
double(
ieta),
double(
iphi), pedestal1);
11285 h_mapDepth2Ped2_HB->Fill(
double(
ieta),
double(
iphi), pedestal2);
11286 h_mapDepth2Ped3_HB->Fill(
double(
ieta),
double(
iphi), pedestal3);
11287 h_mapDepth2Pedw0_HB->Fill(
double(
ieta),
double(
iphi), pedestalw0);
11288 h_mapDepth2Pedw1_HB->Fill(
double(
ieta),
double(
iphi), pedestalw1);
11289 h_mapDepth2Pedw2_HB->Fill(
double(
ieta),
double(
iphi), pedestalw2);
11290 h_mapDepth2Pedw3_HB->Fill(
double(
ieta),
double(
iphi), pedestalw3);
11292 if (pedestalw0 < pedestalwHBMax_ || pedestalw1 < pedestalwHBMax_ || pedestalw2 < pedestalwHBMax_ ||
11293 pedestalw3 < pedestalwHBMax_) {
11295 h_mapDepth1pedestalw_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11297 h_mapDepth2pedestalw_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11299 h_mapDepth3pedestalw_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11301 h_mapDepth4pedestalw_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11303 if (pedestal0 < pedestalHBMax_ || pedestal1 < pedestalHBMax_ || pedestal2 < pedestalHBMax_ ||
11304 pedestal3 < pedestalHBMax_) {
11306 h_mapDepth1pedestal_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11308 h_mapDepth2pedestal_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11310 h_mapDepth3pedestal_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11312 h_mapDepth4pedestal_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11314 for (
int ii = 0;
ii < TSsize;
ii++) {
11315 h_pedestal00_HB->Fill(pedestal00->
getValue(
ii), 1.);
11316 h_gain_HB->Fill(
gain->getValue(
ii), 1.);
11318 h_respcorr_HB->Fill(respcorr->
getValue(), 1.);
11319 h_timecorr_HB->Fill(timecorr->
getValue(), 1.);
11320 h_lutcorr_HB->Fill(lutcorr->
getValue(), 1.);
11321 h_difpedestal0_HB->Fill(difpedestal0, 1.);
11322 h_difpedestal1_HB->Fill(difpedestal1, 1.);
11323 h_difpedestal2_HB->Fill(difpedestal2, 1.);
11324 h_difpedestal3_HB->Fill(difpedestal3, 1.);
11327 if (studyADCAmplHist_) {
11328 h_ADCAmpl345Zoom_HB->Fill(amplitude345, 1.);
11329 h_ADCAmpl345Zoom1_HB->Fill(amplitude345, 1.);
11330 h_ADCAmpl345_HB->Fill(amplitude345, 1.);
11332 h_ADCAmpl_HBCapIdNoError->Fill(
amplitude, 1.);
11333 h_ADCAmpl345_HBCapIdNoError->Fill(amplitude345, 1.);
11336 h_ADCAmpl_HBCapIdError->Fill(
amplitude, 1.);
11337 h_ADCAmpl345_HBCapIdError->Fill(amplitude345, 1.);
11340 h_ADCAmplZoom1_HB->Fill(
amplitude, 1.);
11343 h_AmplitudeHBrest->Fill(
amplitude, 1.);
11344 h_AmplitudeHBrest1->Fill(
amplitude, 1.);
11345 h_AmplitudeHBrest6->Fill(
amplitude, 1.);
11347 if (amplitude < ADCAmplHBMin_ || amplitude > ADCAmplHBMax_) {
11348 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 5)
11349 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
11351 h_mapDepth1ADCAmpl225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11353 h_mapDepth2ADCAmpl225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11355 h_mapDepth3ADCAmpl225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11357 h_mapDepth4ADCAmpl225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11362 h_mapDepth1ADCAmpl225Copy_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11364 h_mapDepth2ADCAmpl225Copy_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11366 h_mapDepth3ADCAmpl225Copy_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11368 h_mapDepth4ADCAmpl225Copy_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11380 h_mapDepth1ADCAmpl12_HB->Fill(
double(
ieta),
double(
iphi), ampl);
11382 h_mapDepth2ADCAmpl12_HB->Fill(
double(
ieta),
double(
iphi), ampl);
11384 h_mapDepth3ADCAmpl12_HB->Fill(
double(
ieta),
double(
iphi), ampl);
11386 h_mapDepth4ADCAmpl12_HB->Fill(
double(
ieta),
double(
iphi), ampl);
11389 h_bcnvsamplitude_HB->Fill(
float(bcn),
amplitude);
11390 h_bcnvsamplitude0_HB->Fill(
float(bcn), 1.);
11391 h_orbitNumvsamplitude_HB->Fill(
float(orbitNum),
amplitude);
11392 h_orbitNumvsamplitude0_HB->Fill(
float(orbitNum), 1.);
11393 if (
amplitude > forallestimators_amplitude_bigger_)
11399 if (studyTSmeanShapeHist_) {
11400 h_TSmeanA_HB->Fill(aveamplitude1, 1.);
11401 if (aveamplitude1 < TSmeanHBMin_ || aveamplitude1 > TSmeanHBMax_) {
11402 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 4)
11403 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
11405 h_mapDepth1TSmeanA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11407 h_mapDepth2TSmeanA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11409 h_mapDepth3TSmeanA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11411 h_mapDepth4TSmeanA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11415 h_mapDepth1TSmeanA_HB->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11417 h_mapDepth2TSmeanA_HB->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11419 h_mapDepth3TSmeanA_HB->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11421 h_mapDepth4TSmeanA_HB->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11422 if (
amplitude > forallestimators_amplitude_bigger_)
11423 sumEstimator2[sub - 1][mdepth - 1][
ieta + 41][
iphi] += aveamplitude1;
11428 if (studyTSmaxShapeHist_) {
11429 h_TSmaxA_HB->Fill(
float(ts_with_max_signal), 1.);
11430 if (ts_with_max_signal < TSpeakHBMin_ || ts_with_max_signal > TSpeakHBMax_) {
11431 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 3)
11432 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
11434 h_mapDepth1TSmaxA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11436 h_mapDepth2TSmaxA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11438 h_mapDepth3TSmaxA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11440 h_mapDepth4TSmaxA225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11444 h_mapDepth1TSmaxA_HB->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11446 h_mapDepth2TSmaxA_HB->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11448 h_mapDepth3TSmaxA_HB->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11450 h_mapDepth4TSmaxA_HB->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11451 if (
amplitude > forallestimators_amplitude_bigger_)
11452 sumEstimator3[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
float(ts_with_max_signal);
11457 if (studyRMSshapeHist_) {
11458 h_Amplitude_HB->Fill(rmsamplitude, 1.);
11459 if (rmsamplitude < rmsHBMin_ || rmsamplitude > rmsHBMax_) {
11460 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 2)
11461 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
11463 h_mapDepth1Amplitude225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11465 h_mapDepth2Amplitude225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11467 h_mapDepth3Amplitude225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11469 h_mapDepth4Amplitude225_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11473 h_mapDepth1Amplitude_HB->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11475 h_mapDepth2Amplitude_HB->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11477 h_mapDepth3Amplitude_HB->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11479 h_mapDepth4Amplitude_HB->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11480 if (
amplitude > forallestimators_amplitude_bigger_)
11481 sumEstimator4[sub - 1][mdepth - 1][
ieta + 41][
iphi] += rmsamplitude;
11486 if (studyRatioShapeHist_) {
11487 h_Ampl_HB->Fill(
ratio, 1.);
11488 if (ratio < ratioHBMin_ || ratio > ratioHBMax_) {
11489 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 1)
11490 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
11492 h_mapDepth1Ampl047_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11494 h_mapDepth2Ampl047_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11496 h_mapDepth3Ampl047_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11498 h_mapDepth4Ampl047_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11503 h_mapDepth1Ampl_HB->Fill(
double(
ieta),
double(
iphi),
ratio);
11505 h_mapDepth2Ampl_HB->Fill(
double(
ieta),
double(
iphi),
ratio);
11507 h_mapDepth3Ampl_HB->Fill(
double(
ieta),
double(
iphi),
ratio);
11509 h_mapDepth4Ampl_HB->Fill(
double(
ieta),
double(
iphi),
ratio);
11510 if (
amplitude > forallestimators_amplitude_bigger_)
11511 sumEstimator5[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
ratio;
11516 if (studyDiffAmplHist_) {
11529 h_mapDepth1_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11531 h_mapDepth2_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11533 h_mapDepth3_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11535 h_mapDepth4_HB->Fill(
double(
ieta),
double(
iphi), 1.);
11541 if (studyPedestalCorrelations_) {
11544 double mypedestal = pedestal0;
11545 double mypedestalw = pedestalw0;
11546 h2_pedvsampl_HE->Fill(mypedestal,
amplitude);
11547 h2_pedwvsampl_HE->Fill(mypedestalw,
amplitude);
11548 h_pedvsampl_HE->Fill(mypedestal,
amplitude);
11549 h_pedwvsampl_HE->Fill(mypedestalw,
amplitude);
11550 h_pedvsampl0_HE->Fill(mypedestal, 1.);
11551 h_pedwvsampl0_HE->Fill(mypedestalw, 1.);
11554 if (studyPedestalsHist_) {
11555 h_pedestal0_HE->Fill(pedestal0, 1.);
11556 h_pedestal1_HE->Fill(pedestal1, 1.);
11557 h_pedestal2_HE->Fill(pedestal2, 1.);
11558 h_pedestal3_HE->Fill(pedestal3, 1.);
11559 h_pedestalaver4_HE->Fill(pedestalaver4, 1.);
11560 h_pedestalaver9_HE->Fill(pedestalaver9, 1.);
11561 h_pedestalw0_HE->Fill(pedestalw0, 1.);
11562 h_pedestalw1_HE->Fill(pedestalw1, 1.);
11563 h_pedestalw2_HE->Fill(pedestalw2, 1.);
11564 h_pedestalw3_HE->Fill(pedestalw3, 1.);
11565 h_pedestalwaver4_HE->Fill(pedestalwaver4, 1.);
11566 h_pedestalwaver9_HE->Fill(pedestalwaver9, 1.);
11569 h_mapDepth1Ped0_HE->Fill(
double(
ieta),
double(
iphi), pedestal0);
11570 h_mapDepth1Ped1_HE->Fill(
double(
ieta),
double(
iphi), pedestal1);
11571 h_mapDepth1Ped2_HE->Fill(
double(
ieta),
double(
iphi), pedestal2);
11572 h_mapDepth1Ped3_HE->Fill(
double(
ieta),
double(
iphi), pedestal3);
11573 h_mapDepth1Pedw0_HE->Fill(
double(
ieta),
double(
iphi), pedestalw0);
11574 h_mapDepth1Pedw1_HE->Fill(
double(
ieta),
double(
iphi), pedestalw1);
11575 h_mapDepth1Pedw2_HE->Fill(
double(
ieta),
double(
iphi), pedestalw2);
11576 h_mapDepth1Pedw3_HE->Fill(
double(
ieta),
double(
iphi), pedestalw3);
11579 h_mapDepth2Ped0_HE->Fill(
double(
ieta),
double(
iphi), pedestal0);
11580 h_mapDepth2Ped1_HE->Fill(
double(
ieta),
double(
iphi), pedestal1);
11581 h_mapDepth2Ped2_HE->Fill(
double(
ieta),
double(
iphi), pedestal2);
11582 h_mapDepth2Ped3_HE->Fill(
double(
ieta),
double(
iphi), pedestal3);
11583 h_mapDepth2Pedw0_HE->Fill(
double(
ieta),
double(
iphi), pedestalw0);
11584 h_mapDepth2Pedw1_HE->Fill(
double(
ieta),
double(
iphi), pedestalw1);
11585 h_mapDepth2Pedw2_HE->Fill(
double(
ieta),
double(
iphi), pedestalw2);
11586 h_mapDepth2Pedw3_HE->Fill(
double(
ieta),
double(
iphi), pedestalw3);
11589 h_mapDepth3Ped0_HE->Fill(
double(
ieta),
double(
iphi), pedestal0);
11590 h_mapDepth3Ped1_HE->Fill(
double(
ieta),
double(
iphi), pedestal1);
11591 h_mapDepth3Ped2_HE->Fill(
double(
ieta),
double(
iphi), pedestal2);
11592 h_mapDepth3Ped3_HE->Fill(
double(
ieta),
double(
iphi), pedestal3);
11593 h_mapDepth3Pedw0_HE->Fill(
double(
ieta),
double(
iphi), pedestalw0);
11594 h_mapDepth3Pedw1_HE->Fill(
double(
ieta),
double(
iphi), pedestalw1);
11595 h_mapDepth3Pedw2_HE->Fill(
double(
ieta),
double(
iphi), pedestalw2);
11596 h_mapDepth3Pedw3_HE->Fill(
double(
ieta),
double(
iphi), pedestalw3);
11598 if (pedestalw0 < pedestalwHEMax_ || pedestalw1 < pedestalwHEMax_ || pedestalw2 < pedestalwHEMax_ ||
11599 pedestalw3 < pedestalwHEMax_) {
11601 h_mapDepth1pedestalw_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11603 h_mapDepth2pedestalw_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11605 h_mapDepth3pedestalw_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11607 h_mapDepth4pedestalw_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11609 h_mapDepth5pedestalw_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11611 h_mapDepth6pedestalw_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11613 h_mapDepth7pedestalw_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11615 if (pedestal0 < pedestalHEMax_ || pedestal1 < pedestalHEMax_ || pedestal2 < pedestalHEMax_ ||
11616 pedestal3 < pedestalHEMax_) {
11618 h_mapDepth1pedestal_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11620 h_mapDepth2pedestal_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11622 h_mapDepth3pedestal_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11624 h_mapDepth4pedestal_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11626 h_mapDepth5pedestal_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11628 h_mapDepth6pedestal_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11630 h_mapDepth7pedestal_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11632 for (
int ii = 0;
ii < TSsize;
ii++) {
11633 h_pedestal00_HE->Fill(pedestal00->
getValue(
ii), 1.);
11634 h_gain_HE->Fill(
gain->getValue(
ii), 1.);
11636 h_respcorr_HE->Fill(respcorr->
getValue(), 1.);
11637 h_timecorr_HE->Fill(timecorr->
getValue(), 1.);
11638 h_lutcorr_HE->Fill(lutcorr->
getValue(), 1.);
11641 if (studyADCAmplHist_) {
11642 h_ADCAmpl345_HE->Fill(amplitude345, 1.);
11647 h_ADCAmplrest1_HE->Fill(
amplitude, 1.);
11648 h_ADCAmplrest6_HE->Fill(
amplitude, 1.);
11650 if (amplitude < ADCAmplHEMin_ || amplitude > ADCAmplHEMax_) {
11651 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 5)
11652 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
11654 h_mapDepth1ADCAmpl225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11656 h_mapDepth2ADCAmpl225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11658 h_mapDepth3ADCAmpl225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11660 h_mapDepth4ADCAmpl225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11662 h_mapDepth5ADCAmpl225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11664 h_mapDepth6ADCAmpl225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11666 h_mapDepth7ADCAmpl225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11671 h_mapDepth1ADCAmpl225Copy_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11673 h_mapDepth2ADCAmpl225Copy_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11675 h_mapDepth3ADCAmpl225Copy_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11677 h_mapDepth4ADCAmpl225Copy_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11679 h_mapDepth5ADCAmpl225Copy_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11681 h_mapDepth6ADCAmpl225Copy_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11683 h_mapDepth7ADCAmpl225Copy_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11686 h_ADCAmplZoom1_HE->Fill(
amplitude, 1.);
11687 h_ADCAmpl345Zoom1_HE->Fill(ampl3ts, 1.);
11688 h_ADCAmpl345Zoom_HE->Fill(ampl, 1.);
11692 h_mapADCAmplfirstpeak0_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11695 h_mapADCAmplsecondpeak0_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11698 if (ampl3ts > 70 && ampl3ts < 110) {
11699 h_mapADCAmpl11firstpeak_HE->Fill(
double(
ieta),
double(
iphi), ampl3ts);
11700 h_mapADCAmpl11firstpeak0_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11701 }
else if (ampl3ts > 110 && ampl3ts < 150) {
11702 h_mapADCAmpl11secondpeak_HE->Fill(
double(
ieta),
double(
iphi), ampl3ts);
11703 h_mapADCAmpl11secondpeak0_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11705 if (ampl > 87 && ampl < 127) {
11706 h_mapADCAmpl12firstpeak_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11707 h_mapADCAmpl12firstpeak0_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11708 }
else if (ampl > 127 && ampl < 167) {
11709 h_mapADCAmpl12secondpeak_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11710 h_mapADCAmpl12secondpeak0_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11728 h_mapDepth1ADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11730 h_mapDepth2ADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11732 h_mapDepth3ADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11734 h_mapDepth4ADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11736 h_mapDepth5ADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11738 h_mapDepth6ADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11740 h_mapDepth7ADCAmpl12_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11749 h_mapDepth1ADCAmpl12SiPM_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11751 h_mapDepth2ADCAmpl12SiPM_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11753 h_mapDepth3ADCAmpl12SiPM_HE->Fill(
double(
ieta),
double(
iphi), ampl);
11757 h_bcnvsamplitude_HE->Fill(
float(bcn),
amplitude);
11758 h_bcnvsamplitude0_HE->Fill(
float(bcn), 1.);
11759 h_orbitNumvsamplitude_HE->Fill(
float(orbitNum),
amplitude);
11760 h_orbitNumvsamplitude0_HE->Fill(
float(orbitNum), 1.);
11761 if (
amplitude > forallestimators_amplitude_bigger_)
11765 if (studyTSmeanShapeHist_) {
11766 h_TSmeanA_HE->Fill(aveamplitude1, 1.);
11767 if (aveamplitude1 < TSmeanHEMin_ || aveamplitude1 > TSmeanHEMax_) {
11768 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 4)
11769 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
11771 h_mapDepth1TSmeanA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11773 h_mapDepth2TSmeanA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11775 h_mapDepth3TSmeanA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11777 h_mapDepth4TSmeanA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11779 h_mapDepth5TSmeanA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11781 h_mapDepth6TSmeanA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11783 h_mapDepth7TSmeanA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11787 h_mapDepth1TSmeanA_HE->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11789 h_mapDepth2TSmeanA_HE->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11791 h_mapDepth3TSmeanA_HE->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11793 h_mapDepth4TSmeanA_HE->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11795 h_mapDepth5TSmeanA_HE->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11797 h_mapDepth6TSmeanA_HE->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11799 h_mapDepth7TSmeanA_HE->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
11800 if (
amplitude > forallestimators_amplitude_bigger_)
11801 sumEstimator2[sub - 1][mdepth - 1][
ieta + 41][
iphi] += aveamplitude1;
11805 if (studyTSmaxShapeHist_) {
11806 h_TSmaxA_HE->Fill(
float(ts_with_max_signal), 1.);
11807 if (ts_with_max_signal < TSpeakHEMin_ || ts_with_max_signal > TSpeakHEMax_) {
11808 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 3)
11809 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
11811 h_mapDepth1TSmaxA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11813 h_mapDepth2TSmaxA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11815 h_mapDepth3TSmaxA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11817 h_mapDepth4TSmaxA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11819 h_mapDepth5TSmaxA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11821 h_mapDepth6TSmaxA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11823 h_mapDepth7TSmaxA225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11827 h_mapDepth1TSmaxA_HE->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11829 h_mapDepth2TSmaxA_HE->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11831 h_mapDepth3TSmaxA_HE->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11833 h_mapDepth4TSmaxA_HE->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11835 h_mapDepth5TSmaxA_HE->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11837 h_mapDepth6TSmaxA_HE->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11839 h_mapDepth7TSmaxA_HE->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
11840 if (
amplitude > forallestimators_amplitude_bigger_)
11841 sumEstimator3[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
float(ts_with_max_signal);
11845 if (studyRMSshapeHist_) {
11846 h_Amplitude_HE->Fill(rmsamplitude, 1.);
11847 if (rmsamplitude < rmsHEMin_ || rmsamplitude > rmsHEMax_) {
11848 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 2)
11849 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
11851 h_mapDepth1Amplitude225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11853 h_mapDepth2Amplitude225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11855 h_mapDepth3Amplitude225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11857 h_mapDepth4Amplitude225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11859 h_mapDepth5Amplitude225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11861 h_mapDepth6Amplitude225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11863 h_mapDepth7Amplitude225_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11867 h_mapDepth1Amplitude_HE->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11869 h_mapDepth2Amplitude_HE->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11871 h_mapDepth3Amplitude_HE->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11873 h_mapDepth4Amplitude_HE->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11875 h_mapDepth5Amplitude_HE->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11877 h_mapDepth6Amplitude_HE->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11879 h_mapDepth7Amplitude_HE->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
11880 if (
amplitude > forallestimators_amplitude_bigger_)
11881 sumEstimator4[sub - 1][mdepth - 1][
ieta + 41][
iphi] += rmsamplitude;
11886 if (studyRatioShapeHist_) {
11887 h_Ampl_HE->Fill(
ratio, 1.);
11888 if (ratio < ratioHEMin_ || ratio > ratioHEMax_) {
11889 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 1)
11890 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
11892 h_mapDepth1Ampl047_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11894 h_mapDepth2Ampl047_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11896 h_mapDepth3Ampl047_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11898 h_mapDepth4Ampl047_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11900 h_mapDepth5Ampl047_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11902 h_mapDepth6Ampl047_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11904 h_mapDepth7Ampl047_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11908 h_mapDepth1Ampl_HE->Fill(
double(
ieta),
double(
iphi),
ratio);
11910 h_mapDepth2Ampl_HE->Fill(
double(
ieta),
double(
iphi),
ratio);
11912 h_mapDepth3Ampl_HE->Fill(
double(
ieta),
double(
iphi),
ratio);
11914 h_mapDepth4Ampl_HE->Fill(
double(
ieta),
double(
iphi),
ratio);
11916 h_mapDepth5Ampl_HE->Fill(
double(
ieta),
double(
iphi),
ratio);
11918 h_mapDepth6Ampl_HE->Fill(
double(
ieta),
double(
iphi),
ratio);
11920 h_mapDepth7Ampl_HE->Fill(
double(
ieta),
double(
iphi),
ratio);
11921 if (
amplitude > forallestimators_amplitude_bigger_)
11922 sumEstimator5[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
ratio;
11926 if (studyDiffAmplHist_) {
11944 h_mapDepth1_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11946 h_mapDepth2_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11948 h_mapDepth3_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11950 h_mapDepth4_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11952 h_mapDepth5_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11954 h_mapDepth6_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11956 h_mapDepth7_HE->Fill(
double(
ieta),
double(
iphi), 1.);
11966 int mdepth = cell.
depth();
11967 int iphi = cell.iphi() - 1;
11968 int ieta = cell.ieta();
11971 int sub = cell.subdet();
11972 const HcalPedestal* pedestal00 = conditions->getPedestal(cell);
11974 const HcalRespCorr* respcorr = conditions->getHcalRespCorr(cell);
11975 const HcalTimeCorr* timecorr = conditions->getHcalTimeCorr(cell);
11976 const HcalLUTCorr* lutcorr = conditions->getHcalLUTCorr(cell);
11977 const HcalQIECoder* channelCoder = conditions->getHcalCoder(cell);
11981 coder.
adc2fC(*digiItr, toolOriginal);
11982 double pedestalaver9 = 0.;
11983 double pedestalaver4 = 0.;
11984 double pedestal0 = 0.;
11985 double pedestal1 = 0.;
11986 double pedestal2 = 0.;
11987 double pedestal3 = 0.;
11988 double pedestalwaver9 = 0.;
11989 double pedestalwaver4 = 0.;
11990 double pedestalw0 = 0.;
11991 double pedestalw1 = 0.;
11992 double pedestalw2 = 0.;
11993 double pedestalw3 = 0.;
11995 double absamplitude = 0.;
11998 double timeww = 0.;
11999 double max_signal = -100.;
12000 int ts_with_max_signal = -100;
12006 double errorBtype = 0.;
12008 if ((*digiItr).size() != TSsize)
12010 TSsize = digiItr->size();
12011 for (
int ii = 0;
ii < TSsize;
ii++) {
12013 double ampldefault = 0.;
12014 double ampldefault0 = 0.;
12015 double ampldefault1 = 0.;
12016 double ampldefault2 = 0.;
12017 ampldefault0 =
adc2fC[digiItr->sample(
ii).adc()];
12019 ampldefault1 = toolOriginal[
ii];
12020 ampldefault2 = (*digiItr)[
ii].adc();
12021 if (useADCmassive_) {
12022 ampldefault = ampldefault0;
12025 ampldefault = ampldefault1;
12027 if (useADCcounts_) {
12028 ampldefault = ampldefault2;
12031 int capid = ((*digiItr)[
ii]).capid();
12034 double pedestalw = pedw->
getSigma(capid, capid);
12035 if (usePedestalSubtraction_)
12038 tool[
ii] = ampldefault;
12041 pedestalwaver9 += pedestalw * pedestalw;
12043 if (capid == 0 &&
c0 == 0) {
12048 pedestalw0 = pedestalw;
12049 pedestalwaver4 += pedestalw * pedestalw;
12052 if (capid == 1 &&
c1 == 0) {
12057 pedestalw1 = pedestalw;
12058 pedestalwaver4 += pedestalw * pedestalw;
12060 if (capid == 2 && c2 == 0) {
12065 pedestalw2 = pedestalw;
12066 pedestalwaver4 += pedestalw * pedestalw;
12068 if (capid == 3 && c3 == 0) {
12073 pedestalw3 = pedestalw;
12074 pedestalwaver4 += pedestalw * pedestalw;
12077 if (max_signal < ampldefault) {
12078 max_signal = ampldefault;
12079 ts_with_max_signal =
ii;
12082 absamplitude +=
abs(ampldefault);
12085 if (flagcpuoptimization_ == 0) {
12087 timew += (
ii + 1) *
abs(ampldefault);
12088 timeww += (
ii + 1) * ampldefault;
12090 amplitudechannel0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
12094 pedestalaver9 /= TSsize;
12095 pedestalaver4 /= c4;
12096 pedestalwaver9 =
sqrt(pedestalwaver9 / TSsize);
12097 pedestalwaver4 =
sqrt(pedestalwaver4 / c4);
12100 if (ts_with_max_signal > -1 && ts_with_max_signal < TSsize)
12101 ampl = tool[ts_with_max_signal];
12102 if (ts_with_max_signal + 2 > -1 && ts_with_max_signal + 2 < TSsize)
12103 ampl += tool[ts_with_max_signal + 2];
12104 if (ts_with_max_signal + 1 > -1 && ts_with_max_signal + 1 < TSsize)
12105 ampl += tool[ts_with_max_signal + 1];
12106 if (ts_with_max_signal - 1 > -1 && ts_with_max_signal - 1 < TSsize)
12107 ampl += tool[ts_with_max_signal - 1];
12114 if (ratio < 0. || ratio > 1.02)
12117 double aveamplitude = 0.;
12118 double aveamplitudew = 0.;
12119 if (absamplitude > 0 && timew > 0)
12120 aveamplitude = timew / absamplitude;
12124 double rmsamp = 0.;
12127 bool anycapid =
true;
12128 bool anyer =
false;
12132 for (
int ii = 0;
ii < TSsize;
ii++) {
12133 double aaaaaa = (
ii + 1) - aveamplitudew;
12134 double aaaaaa2 = aaaaaa * aaaaaa;
12135 double ampldefault = tool[
ii];
12136 rmsamp += (aaaaaa2 * ampldefault);
12137 capid = ((*digiItr)[
ii]).capid();
12138 bool er = (*digiItr)[
ii].er();
12139 bool dv = (*digiItr)[
ii].dv();
12140 if (
ii != 0 && ((lastcapid + 1) % 4) != capid) {
12153 if (!anycapid || anyer || !anydv)
12155 double rmsamplitude = 0.;
12158 double aveamplitude1 = aveamplitude - 1;
12160 if (sub == 4 && mdepth == 1)
12161 h_Amplitude_forCapIdErrors_HF1->Fill(
amplitude, 1.);
12162 if (sub == 4 && mdepth == 2)
12163 h_Amplitude_forCapIdErrors_HF2->Fill(
amplitude, 1.);
12166 if (sub == 4 && mdepth == 1)
12167 h_Amplitude_notCapIdErrors_HF1->Fill(
amplitude, 1.);
12168 if (sub == 4 && mdepth == 2)
12169 h_Amplitude_notCapIdErrors_HF2->Fill(
amplitude, 1.);
12174 if (
error == 1 || amplitude < ADCAmplHFMin_ || amplitude > ADCAmplHFMax_ || rmsamplitude < rmsHFMin_ ||
12175 rmsamplitude > rmsHFMax_ || pedestal0 < pedestalHFMax_ || pedestal1 < pedestalHFMax_ ||
12176 pedestal2 < pedestalHFMax_ || pedestal3 < pedestalHFMax_ || pedestalw0 < pedestalwHFMax_ ||
12177 pedestalw1 < pedestalwHFMax_ || pedestalw2 < pedestalwHFMax_ || pedestalw3 < pedestalwHFMax_
12180 for (
int ii = 0;
ii < TSsize;
ii++) {
12181 double ampldefault = tool[
ii];
12182 h_shape_bad_channels_HF->Fill(
float(
ii), ampldefault);
12183 h_shape0_bad_channels_HF->Fill(
float(
ii), 1.);
12188 for (
int ii = 0;
ii < TSsize;
ii++) {
12189 double ampldefault = tool[
ii];
12190 h_shape_good_channels_HF->Fill(
float(
ii), ampldefault);
12191 h_shape0_good_channels_HF->Fill(
float(
ii), 1.);
12196 sum0Estimator[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
12197 sumEstimator6[sub - 1][mdepth - 1][
ieta + 41][
iphi] += errorBtype;
12198 sumEstimator0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += pedestal0;
12202 if (studyPedestalCorrelations_) {
12203 double mypedestal = pedestal0;
12204 double mypedestalw = pedestalw0;
12205 h2_pedvsampl_HF->Fill(mypedestal,
amplitude);
12206 h2_pedwvsampl_HF->Fill(mypedestalw,
amplitude);
12207 h_pedvsampl_HF->Fill(mypedestal,
amplitude);
12208 h_pedwvsampl_HF->Fill(mypedestalw,
amplitude);
12209 h_pedvsampl0_HF->Fill(mypedestal, 1.);
12210 h_pedwvsampl0_HF->Fill(mypedestalw, 1.);
12213 if (studyPedestalsHist_) {
12214 h_pedestal0_HF->Fill(pedestal0, 1.);
12215 h_pedestal1_HF->Fill(pedestal1, 1.);
12216 h_pedestal2_HF->Fill(pedestal2, 1.);
12217 h_pedestal3_HF->Fill(pedestal3, 1.);
12218 h_pedestalaver4_HF->Fill(pedestalaver4, 1.);
12219 h_pedestalaver9_HF->Fill(pedestalaver9, 1.);
12220 h_pedestalw0_HF->Fill(pedestalw0, 1.);
12221 h_pedestalw1_HF->Fill(pedestalw1, 1.);
12222 h_pedestalw2_HF->Fill(pedestalw2, 1.);
12223 h_pedestalw3_HF->Fill(pedestalw3, 1.);
12224 h_pedestalwaver4_HF->Fill(pedestalwaver4, 1.);
12225 h_pedestalwaver9_HF->Fill(pedestalwaver9, 1.);
12228 h_mapDepth1Ped0_HF->Fill(
double(
ieta),
double(
iphi), pedestal0);
12229 h_mapDepth1Ped1_HF->Fill(
double(
ieta),
double(
iphi), pedestal1);
12230 h_mapDepth1Ped2_HF->Fill(
double(
ieta),
double(
iphi), pedestal2);
12231 h_mapDepth1Ped3_HF->Fill(
double(
ieta),
double(
iphi), pedestal3);
12232 h_mapDepth1Pedw0_HF->Fill(
double(
ieta),
double(
iphi), pedestalw0);
12233 h_mapDepth1Pedw1_HF->Fill(
double(
ieta),
double(
iphi), pedestalw1);
12234 h_mapDepth1Pedw2_HF->Fill(
double(
ieta),
double(
iphi), pedestalw2);
12235 h_mapDepth1Pedw3_HF->Fill(
double(
ieta),
double(
iphi), pedestalw3);
12238 h_mapDepth2Ped0_HF->Fill(
double(
ieta),
double(
iphi), pedestal0);
12239 h_mapDepth2Ped1_HF->Fill(
double(
ieta),
double(
iphi), pedestal1);
12240 h_mapDepth2Ped2_HF->Fill(
double(
ieta),
double(
iphi), pedestal2);
12241 h_mapDepth2Ped3_HF->Fill(
double(
ieta),
double(
iphi), pedestal3);
12242 h_mapDepth2Pedw0_HF->Fill(
double(
ieta),
double(
iphi), pedestalw0);
12243 h_mapDepth2Pedw1_HF->Fill(
double(
ieta),
double(
iphi), pedestalw1);
12244 h_mapDepth2Pedw2_HF->Fill(
double(
ieta),
double(
iphi), pedestalw2);
12245 h_mapDepth2Pedw3_HF->Fill(
double(
ieta),
double(
iphi), pedestalw3);
12248 if (pedestalw0 < pedestalwHFMax_ || pedestalw1 < pedestalwHFMax_ || pedestalw2 < pedestalwHFMax_ ||
12249 pedestalw3 < pedestalwHFMax_) {
12251 h_mapDepth1pedestalw_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12253 h_mapDepth2pedestalw_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12256 if (pedestal0 < pedestalHFMax_ || pedestal1 < pedestalHFMax_ || pedestal2 < pedestalHFMax_ ||
12257 pedestal3 < pedestalHFMax_) {
12259 h_mapDepth1pedestal_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12261 h_mapDepth2pedestal_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12264 for (
int ii = 0;
ii < TSsize;
ii++) {
12265 h_pedestal00_HF->Fill(pedestal00->
getValue(
ii), 1.);
12266 h_gain_HF->Fill(
gain->getValue(
ii), 1.);
12268 h_respcorr_HF->Fill(respcorr->
getValue(), 1.);
12269 h_timecorr_HF->Fill(timecorr->
getValue(), 1.);
12270 h_lutcorr_HF->Fill(lutcorr->
getValue(), 1.);
12275 if (studyADCAmplHist_) {
12277 h_ADCAmplrest1_HF->Fill(
amplitude, 1.);
12278 h_ADCAmplrest6_HF->Fill(
amplitude, 1.);
12280 h_ADCAmplZoom1_HF->Fill(
amplitude, 1.);
12281 if (amplitude < ADCAmplHFMin_ || amplitude > ADCAmplHFMax_) {
12282 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 5)
12283 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
12285 h_mapDepth1ADCAmpl225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12287 h_mapDepth2ADCAmpl225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12292 h_mapDepth1ADCAmpl225Copy_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12294 h_mapDepth2ADCAmpl225Copy_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12303 h_mapDepth1ADCAmpl12_HF->Fill(
double(
ieta),
double(
iphi), ampl);
12305 h_mapDepth2ADCAmpl12_HF->Fill(
double(
ieta),
double(
iphi), ampl);
12307 h_bcnvsamplitude_HF->Fill(
float(bcn),
amplitude);
12308 h_bcnvsamplitude0_HF->Fill(
float(bcn), 1.);
12309 h_orbitNumvsamplitude_HF->Fill(
float(orbitNum),
amplitude);
12310 h_orbitNumvsamplitude0_HF->Fill(
float(orbitNum), 1.);
12311 if (
amplitude > forallestimators_amplitude_bigger_)
12317 if (studyTSmeanShapeHist_) {
12318 h_TSmeanA_HF->Fill(aveamplitude1, 1.);
12319 if (aveamplitude1 < TSmeanHFMin_ || aveamplitude1 > TSmeanHFMax_) {
12320 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 4)
12321 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
12323 h_mapDepth1TSmeanA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12325 h_mapDepth2TSmeanA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12329 h_mapDepth1TSmeanA_HF->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
12331 h_mapDepth2TSmeanA_HF->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
12333 if (
amplitude > forallestimators_amplitude_bigger_)
12334 sumEstimator2[sub - 1][mdepth - 1][
ieta + 41][
iphi] += aveamplitude1;
12338 if (studyTSmaxShapeHist_) {
12339 h_TSmaxA_HF->Fill(
float(ts_with_max_signal), 1.);
12340 if (ts_with_max_signal < TSpeakHFMin_ || ts_with_max_signal > TSpeakHFMax_) {
12341 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 3)
12342 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
12344 h_mapDepth1TSmaxA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12346 h_mapDepth2TSmaxA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12350 h_mapDepth1TSmaxA_HF->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
12352 h_mapDepth2TSmaxA_HF->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
12353 if (
amplitude > forallestimators_amplitude_bigger_)
12354 sumEstimator3[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
float(ts_with_max_signal);
12358 if (studyRMSshapeHist_) {
12359 h_Amplitude_HF->Fill(rmsamplitude, 1.);
12360 if (rmsamplitude < rmsHFMin_ || rmsamplitude > rmsHFMax_) {
12361 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 2)
12362 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
12364 h_mapDepth1Amplitude225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12366 h_mapDepth2Amplitude225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12370 h_mapDepth1Amplitude_HF->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
12372 h_mapDepth2Amplitude_HF->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
12373 if (
amplitude > forallestimators_amplitude_bigger_)
12374 sumEstimator4[sub - 1][mdepth - 1][
ieta + 41][
iphi] += rmsamplitude;
12378 if (studyRatioShapeHist_) {
12379 h_Ampl_HF->Fill(
ratio, 1.);
12380 if (ratio < ratioHFMin_ || ratio > ratioHFMax_) {
12381 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 1)
12382 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
12384 h_mapDepth1Ampl047_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12386 h_mapDepth2Ampl047_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12390 h_mapDepth1Ampl_HF->Fill(
double(
ieta),
double(
iphi),
ratio);
12392 h_mapDepth2Ampl_HF->Fill(
double(
ieta),
double(
iphi),
ratio);
12394 if (
amplitude > forallestimators_amplitude_bigger_)
12395 sumEstimator5[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
ratio;
12400 if (studyDiffAmplHist_) {
12409 h_mapDepth1_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12411 h_mapDepth2_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12428 int mdepth = hcaldetid.
depth();
12429 int sub = hcaldetid.
subdet();
12444 if (mdepth == 0 || sub != 4)
12446 if (mdepth > 2 && flagupgradeqie1011_ == 3)
12448 if (mdepth > 2 && flagupgradeqie1011_ == 5)
12450 if (mdepth > 2 && flagupgradeqie1011_ == 8)
12452 if (mdepth > 2 && flagupgradeqie1011_ == 9)
12456 const HcalPedestal* pedestal00 = conditions->getPedestal(hcaldetid);
12457 const HcalGain*
gain = conditions->getGain(hcaldetid);
12459 const HcalRespCorr* respcorr = conditions->getHcalRespCorr(hcaldetid);
12460 const HcalTimeCorr* timecorr = conditions->getHcalTimeCorr(hcaldetid);
12461 const HcalLUTCorr* lutcorr = conditions->getHcalLUTCorr(hcaldetid);
12462 const HcalQIECoder* channelCoder = conditions->getHcalCoder(hcaldetid);
12466 coder.
adc2fC(qie10df, toolOriginal);
12469 double pedestalaver9 = 0.;
12470 double pedestalaver4 = 0.;
12471 double pedestal0 = 0.;
12472 double pedestal1 = 0.;
12473 double pedestal2 = 0.;
12474 double pedestal3 = 0.;
12475 double pedestalwaver9 = 0.;
12476 double pedestalwaver4 = 0.;
12477 double pedestalw0 = 0.;
12478 double pedestalw1 = 0.;
12479 double pedestalw2 = 0.;
12480 double pedestalw3 = 0.;
12482 double absamplitude = 0.;
12485 double timeww = 0.;
12486 double max_signal = -100.;
12487 int ts_with_max_signal = -100;
12493 double errorBtype = 0.;
12499 for (
int ii = 0;
ii < TSsize;
ii++) {
12500 double ampldefault = 0.;
12501 double ampldefault0 = 0.;
12502 double ampldefault1 = 0.;
12503 double ampldefault2 = 0.;
12506 ampldefault1 = toolOriginal[
ii];
12507 ampldefault2 = qie10df[
ii].adc();
12508 if (useADCmassive_) {
12509 ampldefault = ampldefault0;
12512 ampldefault = ampldefault1;
12514 if (useADCcounts_) {
12515 ampldefault = ampldefault2;
12518 int capid = (qie10df[
ii]).capid();
12520 double pedestalw = pedw->
getSigma(capid, capid);
12522 if (usePedestalSubtraction_)
12525 tool[
ii] = ampldefault;
12528 pedestalwaver9 += pedestalw * pedestalw;
12530 if (capid == 0 &&
c0 == 0) {
12535 pedestalw0 = pedestalw;
12536 pedestalwaver4 += pedestalw * pedestalw;
12539 if (capid == 1 &&
c1 == 0) {
12544 pedestalw1 = pedestalw;
12545 pedestalwaver4 += pedestalw * pedestalw;
12547 if (capid == 2 && c2 == 0) {
12552 pedestalw2 = pedestalw;
12553 pedestalwaver4 += pedestalw * pedestalw;
12555 if (capid == 3 && c3 == 0) {
12560 pedestalw3 = pedestalw;
12561 pedestalwaver4 += pedestalw * pedestalw;
12564 if (max_signal < ampldefault) {
12565 max_signal = ampldefault;
12566 ts_with_max_signal =
ii;
12569 absamplitude +=
abs(ampldefault);
12571 timew += (
ii + 1) *
abs(ampldefault);
12572 timeww += (
ii + 1) * ampldefault;
12576 pedestalaver9 /= TSsize;
12577 pedestalaver4 /= c4;
12578 pedestalwaver9 =
sqrt(pedestalwaver9 / TSsize);
12579 pedestalwaver4 =
sqrt(pedestalwaver4 / c4);
12582 if (ts_with_max_signal > -1 && ts_with_max_signal < TSsize)
12583 ampl = tool[ts_with_max_signal];
12584 if (ts_with_max_signal + 2 > -1 && ts_with_max_signal + 2 < TSsize)
12585 ampl += tool[ts_with_max_signal + 2];
12586 if (ts_with_max_signal + 1 > -1 && ts_with_max_signal + 1 < TSsize)
12587 ampl += tool[ts_with_max_signal + 1];
12588 if (ts_with_max_signal - 1 > -1 && ts_with_max_signal - 1 < TSsize)
12589 ampl += tool[ts_with_max_signal - 1];
12595 if (ratio < 0. || ratio > 1.02)
12597 double aveamplitude = 0.;
12598 double aveamplitudew = 0.;
12599 if (absamplitude > 0 && timew > 0)
12600 aveamplitude = timew / absamplitude;
12604 double rmsamp = 0.;
12606 bool anycapid =
true;
12609 for (
int ii = 0;
ii < TSsize;
ii++) {
12610 double aaaaaa = (
ii + 1) - aveamplitudew;
12611 double aaaaaa2 = aaaaaa * aaaaaa;
12612 double ampldefault = tool[
ii];
12613 rmsamp += (aaaaaa2 * ampldefault);
12614 capid = (qie10df[
ii]).capid();
12615 if (
ii != 0 && ((lastcapid + 1) % 4) != capid) {
12623 double rmsamplitude = 0.;
12626 double aveamplitude1 = aveamplitude - 1;
12631 if (sub == 4 && mdepth == 1)
12632 h_Amplitude_forCapIdErrors_HF1->Fill(
amplitude, 1.);
12633 if (sub == 4 && mdepth == 2)
12634 h_Amplitude_forCapIdErrors_HF2->Fill(
amplitude, 1.);
12637 if (sub == 4 && mdepth == 1)
12638 h_Amplitude_notCapIdErrors_HF1->Fill(
amplitude, 1.);
12639 if (sub == 4 && mdepth == 2)
12640 h_Amplitude_notCapIdErrors_HF2->Fill(
amplitude, 1.);
12645 if (
error == 1 || amplitude < ADCAmplHFMin_ || amplitude > ADCAmplHFMax_ || rmsamplitude < rmsHFMin_ ||
12646 rmsamplitude > rmsHFMax_ || pedestal0 < pedestalHFMax_ || pedestal1 < pedestalHFMax_ ||
12647 pedestal2 < pedestalHFMax_ || pedestal3 < pedestalHFMax_ || pedestalw0 < pedestalwHFMax_ ||
12648 pedestalw1 < pedestalwHFMax_ || pedestalw2 < pedestalwHFMax_ || pedestalw3 < pedestalwHFMax_
12651 for (
int ii = 0;
ii < TSsize;
ii++) {
12652 double ampldefault = tool[
ii];
12653 h_shape_bad_channels_HF->Fill(
float(
ii), ampldefault);
12654 h_shape0_bad_channels_HF->Fill(
float(
ii), 1.);
12659 for (
int ii = 0;
ii < TSsize;
ii++) {
12660 double ampldefault = tool[
ii];
12661 h_shape_good_channels_HF->Fill(
float(
ii), ampldefault);
12662 h_shape0_good_channels_HF->Fill(
float(
ii), 1.);
12667 sum0Estimator[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
12669 sumEstimator6[sub - 1][mdepth - 1][
ieta + 41][
iphi] += errorBtype;
12670 sumEstimator0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += pedestal0;
12674 if (studyPedestalCorrelations_) {
12675 double mypedestal = pedestal0;
12676 double mypedestalw = pedestalw0;
12677 h2_pedvsampl_HF->Fill(mypedestal,
amplitude);
12678 h2_pedwvsampl_HF->Fill(mypedestalw,
amplitude);
12679 h_pedvsampl_HF->Fill(mypedestal,
amplitude);
12680 h_pedwvsampl_HF->Fill(mypedestalw,
amplitude);
12681 h_pedvsampl0_HF->Fill(mypedestal, 1.);
12682 h_pedwvsampl0_HF->Fill(mypedestalw, 1.);
12685 if (studyPedestalsHist_) {
12686 h_pedestal0_HF->Fill(pedestal0, 1.);
12687 h_pedestal1_HF->Fill(pedestal1, 1.);
12688 h_pedestal2_HF->Fill(pedestal2, 1.);
12689 h_pedestal3_HF->Fill(pedestal3, 1.);
12690 h_pedestalaver4_HF->Fill(pedestalaver4, 1.);
12691 h_pedestalaver9_HF->Fill(pedestalaver9, 1.);
12692 h_pedestalw0_HF->Fill(pedestalw0, 1.);
12693 h_pedestalw1_HF->Fill(pedestalw1, 1.);
12694 h_pedestalw2_HF->Fill(pedestalw2, 1.);
12695 h_pedestalw3_HF->Fill(pedestalw3, 1.);
12696 h_pedestalwaver4_HF->Fill(pedestalwaver4, 1.);
12697 h_pedestalwaver9_HF->Fill(pedestalwaver9, 1.);
12700 h_mapDepth1Ped0_HF->Fill(
double(
ieta),
double(
iphi), pedestal0);
12701 h_mapDepth1Ped1_HF->Fill(
double(
ieta),
double(
iphi), pedestal1);
12702 h_mapDepth1Ped2_HF->Fill(
double(
ieta),
double(
iphi), pedestal2);
12703 h_mapDepth1Ped3_HF->Fill(
double(
ieta),
double(
iphi), pedestal3);
12704 h_mapDepth1Pedw0_HF->Fill(
double(
ieta),
double(
iphi), pedestalw0);
12705 h_mapDepth1Pedw1_HF->Fill(
double(
ieta),
double(
iphi), pedestalw1);
12706 h_mapDepth1Pedw2_HF->Fill(
double(
ieta),
double(
iphi), pedestalw2);
12707 h_mapDepth1Pedw3_HF->Fill(
double(
ieta),
double(
iphi), pedestalw3);
12710 h_mapDepth2Ped0_HF->Fill(
double(
ieta),
double(
iphi), pedestal0);
12711 h_mapDepth2Ped1_HF->Fill(
double(
ieta),
double(
iphi), pedestal1);
12712 h_mapDepth2Ped2_HF->Fill(
double(
ieta),
double(
iphi), pedestal2);
12713 h_mapDepth2Ped3_HF->Fill(
double(
ieta),
double(
iphi), pedestal3);
12714 h_mapDepth2Pedw0_HF->Fill(
double(
ieta),
double(
iphi), pedestalw0);
12715 h_mapDepth2Pedw1_HF->Fill(
double(
ieta),
double(
iphi), pedestalw1);
12716 h_mapDepth2Pedw2_HF->Fill(
double(
ieta),
double(
iphi), pedestalw2);
12717 h_mapDepth2Pedw3_HF->Fill(
double(
ieta),
double(
iphi), pedestalw3);
12720 if (pedestalw0 < pedestalwHFMax_ || pedestalw1 < pedestalwHFMax_ || pedestalw2 < pedestalwHFMax_ ||
12721 pedestalw3 < pedestalwHFMax_) {
12723 h_mapDepth1pedestalw_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12725 h_mapDepth2pedestalw_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12727 h_mapDepth3pedestalw_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12729 h_mapDepth4pedestalw_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12732 if (pedestal0 < pedestalHFMax_ || pedestal1 < pedestalHFMax_ || pedestal2 < pedestalHFMax_ ||
12733 pedestal3 < pedestalHFMax_) {
12735 h_mapDepth1pedestal_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12737 h_mapDepth2pedestal_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12739 h_mapDepth3pedestal_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12741 h_mapDepth4pedestal_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12744 for (
int ii = 0;
ii < TSsize;
ii++) {
12745 h_pedestal00_HF->Fill(pedestal00->
getValue(
ii), 1.);
12746 h_gain_HF->Fill(
gain->getValue(
ii), 1.);
12748 h_respcorr_HF->Fill(respcorr->
getValue(), 1.);
12749 h_timecorr_HF->Fill(timecorr->
getValue(), 1.);
12750 h_lutcorr_HF->Fill(lutcorr->
getValue(), 1.);
12755 if (studyADCAmplHist_) {
12757 h_ADCAmplrest1_HF->Fill(
amplitude, 1.);
12758 h_ADCAmplrest6_HF->Fill(
amplitude, 1.);
12760 h_ADCAmplZoom1_HF->Fill(
amplitude, 1.);
12761 if (amplitude < ADCAmplHFMin_ || amplitude > ADCAmplHFMax_) {
12762 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 5)
12763 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
12765 h_mapDepth1ADCAmpl225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12767 h_mapDepth2ADCAmpl225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12769 h_mapDepth3ADCAmpl225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12771 h_mapDepth4ADCAmpl225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12776 h_mapDepth1ADCAmpl225Copy_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12778 h_mapDepth2ADCAmpl225Copy_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12780 h_mapDepth3ADCAmpl225Copy_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12782 h_mapDepth4ADCAmpl225Copy_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12795 h_mapDepth1ADCAmpl12_HF->Fill(
double(
ieta),
double(
iphi), ampl);
12797 h_mapDepth2ADCAmpl12_HF->Fill(
double(
ieta),
double(
iphi), ampl);
12799 h_mapDepth3ADCAmpl12_HF->Fill(
double(
ieta),
double(
iphi), ampl);
12801 h_mapDepth4ADCAmpl12_HF->Fill(
double(
ieta),
double(
iphi), ampl);
12803 h_bcnvsamplitude_HF->Fill(
float(bcn),
amplitude);
12804 h_bcnvsamplitude0_HF->Fill(
float(bcn), 1.);
12805 h_orbitNumvsamplitude_HF->Fill(
float(orbitNum),
amplitude);
12806 h_orbitNumvsamplitude0_HF->Fill(
float(orbitNum), 1.);
12807 if (
amplitude > forallestimators_amplitude_bigger_)
12811 if (studyTSmeanShapeHist_) {
12812 h_TSmeanA_HF->Fill(aveamplitude1, 1.);
12813 if (aveamplitude1 < TSmeanHFMin_ || aveamplitude1 > TSmeanHFMax_) {
12814 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 4)
12815 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
12817 h_mapDepth1TSmeanA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12819 h_mapDepth2TSmeanA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12821 h_mapDepth3TSmeanA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12823 h_mapDepth4TSmeanA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12827 h_mapDepth1TSmeanA_HF->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
12829 h_mapDepth2TSmeanA_HF->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
12831 h_mapDepth3TSmeanA_HF->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
12833 h_mapDepth4TSmeanA_HF->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
12835 if (
amplitude > forallestimators_amplitude_bigger_)
12836 sumEstimator2[sub - 1][mdepth - 1][
ieta + 41][
iphi] += aveamplitude1;
12840 if (studyTSmaxShapeHist_) {
12841 h_TSmaxA_HF->Fill(
float(ts_with_max_signal), 1.);
12842 if (ts_with_max_signal < TSpeakHFMin_ || ts_with_max_signal > TSpeakHFMax_) {
12843 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 3)
12844 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
12846 h_mapDepth1TSmaxA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12848 h_mapDepth2TSmaxA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12850 h_mapDepth3TSmaxA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12852 h_mapDepth4TSmaxA225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12856 h_mapDepth1TSmaxA_HF->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
12858 h_mapDepth2TSmaxA_HF->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
12860 h_mapDepth3TSmaxA_HF->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
12862 h_mapDepth4TSmaxA_HF->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
12864 if (
amplitude > forallestimators_amplitude_bigger_)
12865 sumEstimator3[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
float(ts_with_max_signal);
12869 if (studyRMSshapeHist_) {
12870 h_Amplitude_HF->Fill(rmsamplitude, 1.);
12871 if (rmsamplitude < rmsHFMin_ || rmsamplitude > rmsHFMax_) {
12872 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 2)
12873 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
12875 h_mapDepth1Amplitude225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12877 h_mapDepth2Amplitude225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12879 h_mapDepth3Amplitude225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12881 h_mapDepth4Amplitude225_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12886 h_mapDepth1Amplitude_HF->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
12888 h_mapDepth2Amplitude_HF->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
12890 h_mapDepth3Amplitude_HF->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
12892 h_mapDepth4Amplitude_HF->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
12893 if (
amplitude > forallestimators_amplitude_bigger_)
12894 sumEstimator4[sub - 1][mdepth - 1][
ieta + 41][
iphi] += rmsamplitude;
12898 if (studyRatioShapeHist_) {
12899 h_Ampl_HF->Fill(
ratio, 1.);
12900 if (ratio < ratioHFMin_ || ratio > ratioHFMax_) {
12901 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 1)
12902 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
12904 h_mapDepth1Ampl047_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12906 h_mapDepth2Ampl047_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12908 h_mapDepth3Ampl047_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12910 h_mapDepth4Ampl047_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12914 h_mapDepth1Ampl_HF->Fill(
double(
ieta),
double(
iphi),
ratio);
12916 h_mapDepth2Ampl_HF->Fill(
double(
ieta),
double(
iphi),
ratio);
12918 h_mapDepth3Ampl_HF->Fill(
double(
ieta),
double(
iphi),
ratio);
12920 h_mapDepth4Ampl_HF->Fill(
double(
ieta),
double(
iphi),
ratio);
12922 if (
amplitude > forallestimators_amplitude_bigger_)
12923 sumEstimator5[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
ratio;
12928 if (studyDiffAmplHist_) {
12941 h_mapDepth1_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12943 h_mapDepth2_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12945 h_mapDepth3_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12947 h_mapDepth4_HF->Fill(
double(
ieta),
double(
iphi), 1.);
12959 int mdepth = cell.
depth();
12960 int iphi = cell.iphi() - 1;
12961 int ieta = cell.ieta();
12964 int sub = cell.subdet();
12965 const HcalPedestal* pedestal00 = conditions->getPedestal(cell);
12967 const HcalRespCorr* respcorr = conditions->getHcalRespCorr(cell);
12968 const HcalTimeCorr* timecorr = conditions->getHcalTimeCorr(cell);
12969 const HcalLUTCorr* lutcorr = conditions->getHcalLUTCorr(cell);
12970 const HcalQIECoder* channelCoder = conditions->getHcalCoder(cell);
12974 coder.
adc2fC(*digiItr, toolOriginal);
12975 double pedestalaver9 = 0.;
12976 double pedestalaver4 = 0.;
12977 double pedestal0 = 0.;
12978 double pedestal1 = 0.;
12979 double pedestal2 = 0.;
12980 double pedestal3 = 0.;
12981 double pedestalwaver9 = 0.;
12982 double pedestalwaver4 = 0.;
12983 double pedestalw0 = 0.;
12984 double pedestalw1 = 0.;
12985 double pedestalw2 = 0.;
12986 double pedestalw3 = 0.;
12988 double absamplitude = 0.;
12991 double timeww = 0.;
12992 double max_signal = -100.;
12993 int ts_with_max_signal = -100;
12999 double errorBtype = 0.;
13001 if ((*digiItr).size() != TSsize)
13003 TSsize = digiItr->size();
13004 for (
int ii = 0;
ii < TSsize;
ii++) {
13005 double ampldefault = 0.;
13006 double ampldefault0 = 0.;
13007 double ampldefault1 = 0.;
13008 double ampldefault2 = 0.;
13009 ampldefault0 =
adc2fC[digiItr->sample(
ii).adc()];
13011 ampldefault1 = toolOriginal[
ii];
13012 ampldefault2 = (*digiItr)[
ii].adc();
13013 if (useADCmassive_) {
13014 ampldefault = ampldefault0;
13017 ampldefault = ampldefault1;
13019 if (useADCcounts_) {
13020 ampldefault = ampldefault2;
13022 int capid = ((*digiItr)[
ii]).capid();
13024 double pedestalw = pedw->
getSigma(capid, capid);
13025 if (usePedestalSubtraction_)
13027 tool[
ii] = ampldefault;
13029 pedestalwaver9 += pedestalw * pedestalw;
13030 if (capid == 0 &&
c0 == 0) {
13035 pedestalw0 = pedestalw;
13036 pedestalwaver4 += pedestalw * pedestalw;
13038 if (capid == 1 &&
c1 == 0) {
13043 pedestalw1 = pedestalw;
13044 pedestalwaver4 += pedestalw * pedestalw;
13046 if (capid == 2 && c2 == 0) {
13051 pedestalw2 = pedestalw;
13052 pedestalwaver4 += pedestalw * pedestalw;
13054 if (capid == 3 && c3 == 0) {
13059 pedestalw3 = pedestalw;
13060 pedestalwaver4 += pedestalw * pedestalw;
13063 if (max_signal < ampldefault) {
13064 max_signal = ampldefault;
13065 ts_with_max_signal =
ii;
13068 absamplitude +=
abs(ampldefault);
13070 if (flagcpuoptimization_ == 0) {
13072 timew += (
ii + 1) *
abs(ampldefault);
13073 timeww += (
ii + 1) * ampldefault;
13077 pedestalaver9 /= TSsize;
13078 pedestalaver4 /= c4;
13079 pedestalwaver9 =
sqrt(pedestalwaver9 / TSsize);
13080 pedestalwaver4 =
sqrt(pedestalwaver4 / c4);
13081 if (ts_with_max_signal > -1 && ts_with_max_signal < 10)
13082 ampl = tool[ts_with_max_signal];
13083 if (ts_with_max_signal + 2 > -1 && ts_with_max_signal + 2 < 10)
13084 ampl += tool[ts_with_max_signal + 2];
13085 if (ts_with_max_signal + 1 > -1 && ts_with_max_signal + 1 < 10)
13086 ampl += tool[ts_with_max_signal + 1];
13087 if (ts_with_max_signal - 1 > -1 && ts_with_max_signal - 1 < 10)
13088 ampl += tool[ts_with_max_signal - 1];
13092 if (ratio < 0. || ratio > 1.04)
13094 double aveamplitude = 0.;
13095 double aveamplitudew = 0.;
13096 if (absamplitude > 0 && timew > 0)
13097 aveamplitude = timew / absamplitude;
13100 double rmsamp = 0.;
13102 bool anycapid =
true;
13103 bool anyer =
false;
13107 for (
int ii = 0;
ii < TSsize;
ii++) {
13108 double aaaaaa = (
ii + 1) - aveamplitudew;
13109 double aaaaaa2 = aaaaaa * aaaaaa;
13110 double ampldefault = tool[
ii];
13111 rmsamp += (aaaaaa2 * ampldefault);
13112 capid = ((*digiItr)[
ii]).capid();
13113 bool er = (*digiItr)[
ii].er();
13114 bool dv = (*digiItr)[
ii].dv();
13115 if (
ii != 0 && ((lastcapid + 1) % 4) != capid) {
13127 if (!anycapid || anyer || !anydv)
13129 double rmsamplitude = 0.;
13132 double aveamplitude1 = aveamplitude - 1;
13134 if (sub == 3 && mdepth == 4)
13135 h_Amplitude_forCapIdErrors_HO4->Fill(
amplitude, 1.);
13138 if (sub == 3 && mdepth == 4)
13139 h_Amplitude_notCapIdErrors_HO4->Fill(
amplitude, 1.);
13143 if (
error == 1 || amplitude < ADCAmplHOMin_ || amplitude > ADCAmplHOMax_ || rmsamplitude < rmsHOMin_ ||
13144 rmsamplitude > rmsHOMax_ || pedestal0 < pedestalHOMax_ || pedestal1 < pedestalHOMax_ ||
13145 pedestal2 < pedestalHOMax_ || pedestal3 < pedestalHOMax_ || pedestalw0 < pedestalwHOMax_ ||
13146 pedestalw1 < pedestalwHOMax_ || pedestalw2 < pedestalwHOMax_ || pedestalw3 < pedestalwHOMax_
13149 for (
int ii = 0;
ii < TSsize;
ii++) {
13150 double ampldefault = tool[
ii];
13151 h_shape_bad_channels_HO->Fill(
float(
ii), ampldefault);
13152 h_shape0_bad_channels_HO->Fill(
float(
ii), 1.);
13155 for (
int ii = 0;
ii < TSsize;
ii++) {
13156 double ampldefault = tool[
ii];
13157 h_shape_good_channels_HO->Fill(
float(
ii), ampldefault);
13158 h_shape0_good_channels_HO->Fill(
float(
ii), 1.);
13163 sum0Estimator[sub - 1][mdepth - 1][
ieta + 41][
iphi] += 1.;
13165 sumEstimator6[sub - 1][mdepth - 1][
ieta + 41][
iphi] += errorBtype;
13166 sumEstimator0[sub - 1][mdepth - 1][
ieta + 41][
iphi] += pedestal0;
13169 if (studyPedestalCorrelations_) {
13170 double mypedestal = pedestal0;
13171 double mypedestalw = pedestalw0;
13172 h2_pedvsampl_HO->Fill(mypedestal,
amplitude);
13173 h2_pedwvsampl_HO->Fill(mypedestalw,
amplitude);
13174 h_pedvsampl_HO->Fill(mypedestal,
amplitude);
13175 h_pedwvsampl_HO->Fill(mypedestalw,
amplitude);
13176 h_pedvsampl0_HO->Fill(mypedestal, 1.);
13177 h_pedwvsampl0_HO->Fill(mypedestalw, 1.);
13180 if (studyPedestalsHist_) {
13181 h_pedestal0_HO->Fill(pedestal0, 1.);
13182 h_pedestal1_HO->Fill(pedestal1, 1.);
13183 h_pedestal2_HO->Fill(pedestal2, 1.);
13184 h_pedestal3_HO->Fill(pedestal3, 1.);
13185 h_pedestalaver4_HO->Fill(pedestalaver4, 1.);
13186 h_pedestalaver9_HO->Fill(pedestalaver9, 1.);
13187 h_pedestalw0_HO->Fill(pedestalw0, 1.);
13188 h_pedestalw1_HO->Fill(pedestalw1, 1.);
13189 h_pedestalw2_HO->Fill(pedestalw2, 1.);
13190 h_pedestalw3_HO->Fill(pedestalw3, 1.);
13191 h_pedestalwaver4_HO->Fill(pedestalwaver4, 1.);
13192 h_pedestalwaver9_HO->Fill(pedestalwaver9, 1.);
13195 h_mapDepth4Ped0_HO->Fill(
double(
ieta),
double(
iphi), pedestal0);
13196 h_mapDepth4Ped1_HO->Fill(
double(
ieta),
double(
iphi), pedestal1);
13197 h_mapDepth4Ped2_HO->Fill(
double(
ieta),
double(
iphi), pedestal2);
13198 h_mapDepth4Ped3_HO->Fill(
double(
ieta),
double(
iphi), pedestal3);
13199 h_mapDepth4Pedw0_HO->Fill(
double(
ieta),
double(
iphi), pedestalw0);
13200 h_mapDepth4Pedw1_HO->Fill(
double(
ieta),
double(
iphi), pedestalw1);
13201 h_mapDepth4Pedw2_HO->Fill(
double(
ieta),
double(
iphi), pedestalw2);
13202 h_mapDepth4Pedw3_HO->Fill(
double(
ieta),
double(
iphi), pedestalw3);
13204 if (pedestalw0 < pedestalwHOMax_ || pedestalw1 < pedestalwHOMax_ || pedestalw2 < pedestalwHOMax_ ||
13205 pedestalw3 < pedestalwHOMax_) {
13207 h_mapDepth4pedestalw_HO->Fill(
double(
ieta),
double(
iphi), 1.);
13209 if (pedestal0 < pedestalHOMax_ || pedestal1 < pedestalHOMax_ || pedestal2 < pedestalHOMax_ ||
13210 pedestal3 < pedestalHOMax_) {
13212 h_mapDepth4pedestal_HO->Fill(
double(
ieta),
double(
iphi), 1.);
13214 for (
int ii = 0;
ii < TSsize;
ii++) {
13215 h_pedestal00_HO->Fill(pedestal00->
getValue(
ii), 1.);
13216 h_gain_HO->Fill(
gain->getValue(
ii), 1.);
13218 h_respcorr_HO->Fill(respcorr->
getValue(), 1.);
13219 h_timecorr_HO->Fill(timecorr->
getValue(), 1.);
13220 h_lutcorr_HO->Fill(lutcorr->
getValue(), 1.);
13223 if (studyADCAmplHist_) {
13225 h_ADCAmplrest1_HO->Fill(
amplitude, 1.);
13226 h_ADCAmplrest6_HO->Fill(
amplitude, 1.);
13228 h_ADCAmplZoom1_HO->Fill(
amplitude, 1.);
13229 h_ADCAmpl_HO_copy->Fill(
amplitude, 1.);
13230 if (amplitude < ADCAmplHOMin_ || amplitude > ADCAmplHOMax_) {
13231 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 5)
13232 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
13234 h_mapDepth4ADCAmpl225_HO->Fill(
double(
ieta),
double(
iphi), 1.);
13240 h_mapDepth4ADCAmpl225Copy_HO->Fill(
double(
ieta),
double(
iphi), 1.);
13246 h_mapDepth4ADCAmpl12_HO->Fill(
double(
ieta),
double(
iphi), ampl);
13248 h_bcnvsamplitude_HO->Fill(
float(bcn),
amplitude);
13249 h_bcnvsamplitude0_HO->Fill(
float(bcn), 1.);
13251 h_orbitNumvsamplitude_HO->Fill(
float(orbitNum),
amplitude);
13252 h_orbitNumvsamplitude0_HO->Fill(
float(orbitNum), 1.);
13253 if (
amplitude > forallestimators_amplitude_bigger_)
13256 if (studyTSmeanShapeHist_) {
13257 h_TSmeanA_HO->Fill(aveamplitude1, 1.);
13258 if (aveamplitude1 < TSmeanHOMin_ || aveamplitude1 > TSmeanHOMax_) {
13259 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 4)
13260 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
13262 h_mapDepth4TSmeanA225_HO->Fill(
double(
ieta),
double(
iphi), 1.);
13265 h_mapDepth4TSmeanA_HO->Fill(
double(
ieta),
double(
iphi), aveamplitude1);
13266 if (
amplitude > forallestimators_amplitude_bigger_)
13267 sumEstimator2[sub - 1][mdepth - 1][
ieta + 41][
iphi] += aveamplitude1;
13269 if (studyTSmaxShapeHist_) {
13270 h_TSmaxA_HO->Fill(
float(ts_with_max_signal), 1.);
13271 if (ts_with_max_signal < TSpeakHOMin_ || ts_with_max_signal > TSpeakHOMax_) {
13272 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 3)
13273 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
13275 h_mapDepth4TSmaxA225_HO->Fill(
double(
ieta),
double(
iphi), 1.);
13279 h_mapDepth4TSmaxA_HO->Fill(
double(
ieta),
double(
iphi),
float(ts_with_max_signal));
13280 if (
amplitude > forallestimators_amplitude_bigger_)
13281 sumEstimator3[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
float(ts_with_max_signal);
13283 if (studyRMSshapeHist_) {
13284 h_Amplitude_HO->Fill(rmsamplitude, 1.);
13285 if (rmsamplitude < rmsHOMin_ || rmsamplitude > rmsHOMax_) {
13286 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 2)
13287 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
13289 h_mapDepth4Amplitude225_HO->Fill(
double(
ieta),
double(
iphi), 1.);
13292 h_mapDepth4Amplitude_HO->Fill(
double(
ieta),
double(
iphi), rmsamplitude);
13293 if (
amplitude > forallestimators_amplitude_bigger_)
13294 sumEstimator4[sub - 1][mdepth - 1][
ieta + 41][
iphi] += rmsamplitude;
13296 if (studyRatioShapeHist_) {
13297 h_Ampl_HO->Fill(
ratio, 1.);
13298 if (ratio < ratioHOMin_ || ratio > ratioHOMax_) {
13299 if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 1)
13300 ++badchannels[sub - 1][mdepth - 1][
ieta + 41][
iphi];
13302 h_mapDepth4Ampl047_HO->Fill(
double(
ieta),
double(
iphi), 1.);
13305 h_mapDepth4Ampl_HO->Fill(
double(
ieta),
double(
iphi),
ratio);
13306 if (
amplitude > forallestimators_amplitude_bigger_)
13307 sumEstimator5[sub - 1][mdepth - 1][
ieta + 41][
iphi] +=
ratio;
13309 if (studyDiffAmplHist_) {
13314 h_mapDepth4_HO->Fill(
double(
ieta),
double(
iphi), 1.);
13319 if (kdet == 1 || kdet == 2) {
13323 cal_RBX = (kphi + 1) / 4;
13324 cal_RBX = cal_RBX + 18 * (keta + 1) / 2;
13327 cal_RBX = (
int)(kphi / 18) + 1;
13334 cal_RBX = kphi / 12 + 1;
13340 cal_RBX = kphi / 12 + 1 + 6;
13346 cal_RBX = kphi / 6 + 1 + 12;
13352 cal_RBX = kphi / 12 + 1 + 24;
13358 cal_RBX = kphi / 12 + 1 + 30;
13365 if (flagfitshunt1pedorledlowintensity_ != 0) {
13367 if (usecontinuousnumbering_) {
13368 lscounterM1 = lscounter - 1;
13373 h_nevents_per_eachRealLS->Fill(
float(lscounterM1),
float(nevcounter));
13374 h_nevents_per_LS->Fill(
float(nevcounter));
13375 h_nevents_per_LSzoom->Fill(
float(nevcounter));
13376 nevcounter0 = nevcounter;
13377 if (nevcounter0 != 0) {
13379 for (
int k1 = 0; k1 <
ndepth; k1++) {
13380 for (
int k2 = 0; k2 <
neta; k2++) {
13381 for (
int k3 = 0; k3 <
nphi; k3++) {
13382 int ieta = k2 - 41;
13383 if (sumEstimator0[
k0][k1][k2][k3] != 0.) {
13385 if (flagestimatornormalization_ == 0)
13386 bbbc = sumEstimator0[
k0][k1][k2][k3] / nevcounter0;
13387 if (flagestimatornormalization_ == 1)
13388 bbbc = sumEstimator0[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
13390 if (flagestimatornormalization_ == 2) {
13391 bbbc = sumEstimator0[
k0][k1][k2][k3];
13392 bbb1 = sum0Estimator[
k0][k1][k2][k3];
13396 h_sumPedestalLS1->Fill(bbbc / bbb1);
13397 h_2DsumPedestalLS1->Fill(
double(
ieta),
double(k3), bbbc);
13398 h_2D0sumPedestalLS1->Fill(
double(
ieta),
double(k3), bbb1);
13399 h_sumPedestalperLS1->Fill(
float(lscounterM1), bbbc);
13400 h_sum0PedestalperLS1->Fill(
float(lscounterM1), bbb1);
13403 h_sumPedestalLS2->Fill(bbbc / bbb1);
13404 h_2DsumPedestalLS2->Fill(
double(
ieta),
double(k3), bbbc);
13405 h_2D0sumPedestalLS2->Fill(
double(
ieta),
double(k3), bbb1);
13406 h_sumPedestalperLS2->Fill(
float(lscounterM1), bbbc);
13407 h_sum0PedestalperLS2->Fill(
float(lscounterM1), bbb1);
13414 h_sumPedestalLS3->Fill(bbbc / bbb1);
13415 h_2DsumPedestalLS3->Fill(
double(
ieta),
double(k3), bbbc);
13416 h_2D0sumPedestalLS3->Fill(
double(
ieta),
double(k3), bbb1);
13417 h_sumPedestalperLS3->Fill(
float(lscounterM1), bbbc);
13418 h_sum0PedestalperLS3->Fill(
float(lscounterM1), bbb1);
13421 h_sumPedestalLS4->Fill(bbbc / bbb1);
13422 h_2DsumPedestalLS4->Fill(
double(
ieta),
double(k3), bbbc);
13423 h_2D0sumPedestalLS4->Fill(
double(
ieta),
double(k3), bbb1);
13424 h_sumPedestalperLS4->Fill(
float(lscounterM1), bbbc);
13425 h_sum0PedestalperLS4->Fill(
float(lscounterM1), bbb1);
13428 h_sumPedestalLS5->Fill(bbbc / bbb1);
13429 h_2DsumPedestalLS5->Fill(
double(
ieta),
double(k3), bbbc);
13430 h_2D0sumPedestalLS5->Fill(
double(
ieta),
double(k3), bbb1);
13431 h_sumPedestalperLS5->Fill(
float(lscounterM1), bbbc);
13432 h_sum0PedestalperLS5->Fill(
float(lscounterM1), bbb1);
13439 h_sumPedestalLS6->Fill(bbbc / bbb1);
13440 h_2DsumPedestalLS6->Fill(
double(
ieta),
double(k3), bbbc);
13441 h_2D0sumPedestalLS6->Fill(
double(
ieta),
double(k3), bbb1);
13442 h_sumPedestalperLS6->Fill(
float(lscounterM1), bbbc);
13443 h_sum0PedestalperLS6->Fill(
float(lscounterM1), bbb1);
13446 h_sumPedestalLS7->Fill(bbbc / bbb1);
13447 h_2DsumPedestalLS7->Fill(
double(
ieta),
double(k3), bbbc);
13448 h_2D0sumPedestalLS7->Fill(
double(
ieta),
double(k3), bbb1);
13449 h_sumPedestalperLS7->Fill(
float(lscounterM1), bbbc);
13450 h_sum0PedestalperLS7->Fill(
float(lscounterM1), bbb1);
13457 h_sumPedestalLS8->Fill(bbbc / bbb1);
13458 h_2DsumPedestalLS8->Fill(
double(
ieta),
double(k3), bbbc);
13459 h_2D0sumPedestalLS8->Fill(
double(
ieta),
double(k3), bbb1);
13460 h_sumPedestalperLS8->Fill(
float(lscounterM1), bbbc);
13461 h_sum0PedestalperLS8->Fill(
float(lscounterM1), bbb1);
13465 if (sumEstimator1[
k0][k1][k2][k3] != 0.) {
13467 if (flagestimatornormalization_ == 0)
13468 bbbc = sumEstimator1[
k0][k1][k2][k3] / nevcounter0;
13469 if (flagestimatornormalization_ == 1)
13470 bbbc = sumEstimator1[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
13472 if (flagestimatornormalization_ == 2) {
13473 bbbc = sumEstimator1[
k0][k1][k2][k3];
13474 bbb1 = sum0Estimator[
k0][k1][k2][k3];
13476 if (lscounterM1 >= lsmin_ && lscounterM1 < lsmax_) {
13477 int kkkk2 = (k2 - 1) / 4;
13482 int kkkk3 = (k3) / 4 + 1;
13484 ietaphi = ((kkkk2)-1) *
znphi + (kkkk3);
13487 bbb3 = bbbc / bbb1;
13489 h_2DsumADCAmplEtaPhiLs0->Fill(
float(lscounterM1),
float(ietaphi), bbbc);
13490 h_2DsumADCAmplEtaPhiLs00->Fill(
float(lscounterM1),
float(ietaphi), bbb1);
13493 h_2DsumADCAmplEtaPhiLs1->Fill(
float(lscounterM1),
float(ietaphi), bbbc);
13494 h_2DsumADCAmplEtaPhiLs10->Fill(
float(lscounterM1),
float(ietaphi), bbb1);
13497 h_2DsumADCAmplEtaPhiLs2->Fill(
float(lscounterM1),
float(ietaphi), bbbc);
13498 h_2DsumADCAmplEtaPhiLs20->Fill(
float(lscounterM1),
float(ietaphi), bbb1);
13501 h_2DsumADCAmplEtaPhiLs3->Fill(
float(lscounterM1),
float(ietaphi), bbbc);
13502 h_2DsumADCAmplEtaPhiLs30->Fill(
float(lscounterM1),
float(ietaphi), bbb1);
13505 h_sumADCAmplEtaPhiLs->Fill(bbb3);
13506 h_sumADCAmplEtaPhiLs_bbbc->Fill(bbbc);
13507 h_sumADCAmplEtaPhiLs_bbb1->Fill(bbb1);
13508 h_sumADCAmplEtaPhiLs_lscounterM1orbitNum->Fill(
float(lscounterM1),
float(orbitNum));
13509 h_sumADCAmplEtaPhiLs_orbitNum->Fill(
float(orbitNum), 1.);
13510 h_sumADCAmplEtaPhiLs_lscounterM1->Fill(
float(lscounterM1), 1.);
13511 h_sumADCAmplEtaPhiLs_ietaphi->Fill(
float(ietaphi));
13515 h_sumADCAmplLS1copy1->Fill(bbbc / bbb1);
13516 h_sumADCAmplLS1copy2->Fill(bbbc / bbb1);
13517 h_sumADCAmplLS1copy3->Fill(bbbc / bbb1);
13518 h_sumADCAmplLS1copy4->Fill(bbbc / bbb1);
13519 h_sumADCAmplLS1copy5->Fill(bbbc / bbb1);
13520 h_sumADCAmplLS1->Fill(bbbc / bbb1);
13521 if (bbbc / bbb1 > lsdep_estimator1_HBdepth1_)
13522 h_2DsumADCAmplLS1->Fill(
double(
ieta),
double(k3), bbbc);
13523 if (bbbc / bbb1 > 2. * lsdep_estimator1_HBdepth1_)
13524 h_2DsumADCAmplLS1_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
13525 h_2D0sumADCAmplLS1->Fill(
double(
ieta),
double(k3), bbb1);
13526 h_sumADCAmplperLS1->Fill(
float(lscounterM1), bbbc);
13527 if (bbbc / bbb1 > lsdep_estimator1_HBdepth1_)
13528 h_sumCutADCAmplperLS1->Fill(
float(lscounterM1), bbbc);
13529 h_sum0ADCAmplperLS1->Fill(
float(lscounterM1), bbb1);
13532 h_sumADCAmplLS2->Fill(bbbc / bbb1);
13533 if (bbbc / bbb1 > lsdep_estimator1_HBdepth2_)
13534 h_2DsumADCAmplLS2->Fill(
double(
ieta),
double(k3), bbbc);
13535 if (bbbc / bbb1 > 2. * lsdep_estimator1_HBdepth2_)
13536 h_2DsumADCAmplLS2_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
13537 h_2D0sumADCAmplLS2->Fill(
double(
ieta),
double(k3), bbb1);
13538 h_sumADCAmplperLS2->Fill(
float(lscounterM1), bbbc);
13539 if (bbbc / bbb1 > lsdep_estimator1_HBdepth2_)
13540 h_sumCutADCAmplperLS2->Fill(
float(lscounterM1), bbbc);
13541 h_sum0ADCAmplperLS2->Fill(
float(lscounterM1), bbb1);
13544 h_sumADCAmplperLSdepth3HBu->Fill(
float(lscounterM1), bbbc);
13545 if (bbbc / bbb1 > lsdep_estimator1_HBdepth3_)
13546 h_sumCutADCAmplperLSdepth3HBu->Fill(
float(lscounterM1), bbbc);
13547 h_sum0ADCAmplperLSdepth3HBu->Fill(
float(lscounterM1), bbb1);
13549 if (bbbc / bbb1 > lsdep_estimator1_HBdepth3_)
13550 h_2DsumADCAmplLSdepth3HBu->Fill(
double(
ieta),
double(k3), bbbc);
13551 h_2D0sumADCAmplLSdepth3HBu->Fill(
double(
ieta),
double(k3), bbb1);
13554 h_sumADCAmplperLSdepth4HBu->Fill(
float(lscounterM1), bbbc);
13555 if (bbbc / bbb1 > lsdep_estimator1_HBdepth4_)
13556 h_sumCutADCAmplperLSdepth4HBu->Fill(
float(lscounterM1), bbbc);
13557 h_sum0ADCAmplperLSdepth4HBu->Fill(
float(lscounterM1), bbb1);
13559 if (bbbc / bbb1 > lsdep_estimator1_HBdepth4_)
13560 h_2DsumADCAmplLSdepth4HBu->Fill(
double(
ieta),
double(k3), bbbc);
13561 h_2D0sumADCAmplLSdepth4HBu->Fill(
double(
ieta),
double(k3), bbb1);
13566 h_sumADCAmplLS3->Fill(bbbc / bbb1);
13567 if (bbbc / bbb1 > lsdep_estimator1_HEdepth1_)
13568 h_2DsumADCAmplLS3->Fill(
double(
ieta),
double(k3), bbbc);
13569 if (bbbc / bbb1 > 2. * lsdep_estimator1_HEdepth1_)
13570 h_2DsumADCAmplLS3_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
13571 h_2D0sumADCAmplLS3->Fill(
double(
ieta),
double(k3), bbb1);
13572 h_sumADCAmplperLS3->Fill(
float(lscounterM1), bbbc);
13573 if (bbbc / bbb1 > lsdep_estimator1_HEdepth1_)
13574 h_sumCutADCAmplperLS3->Fill(
float(lscounterM1), bbbc);
13575 h_sum0ADCAmplperLS3->Fill(
float(lscounterM1), bbb1);
13578 h_sumADCAmplLS4->Fill(bbbc / bbb1);
13579 if (bbbc / bbb1 > lsdep_estimator1_HEdepth2_)
13580 h_2DsumADCAmplLS4->Fill(
double(
ieta),
double(k3), bbbc);
13581 if (bbbc / bbb1 > 2. * lsdep_estimator1_HEdepth2_)
13582 h_2DsumADCAmplLS4_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
13583 h_2D0sumADCAmplLS4->Fill(
double(
ieta),
double(k3), bbb1);
13584 h_sumADCAmplperLS4->Fill(
float(lscounterM1), bbbc);
13585 if (bbbc / bbb1 > lsdep_estimator1_HEdepth2_)
13586 h_sumCutADCAmplperLS4->Fill(
float(lscounterM1), bbbc);
13587 h_sum0ADCAmplperLS4->Fill(
float(lscounterM1), bbb1);
13590 h_sumADCAmplLS5->Fill(bbbc / bbb1);
13591 if (bbbc / bbb1 > lsdep_estimator1_HEdepth3_)
13592 h_2DsumADCAmplLS5->Fill(
double(
ieta),
double(k3), bbbc);
13593 if (bbbc / bbb1 > 2. * lsdep_estimator1_HEdepth3_)
13594 h_2DsumADCAmplLS5_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
13595 h_2D0sumADCAmplLS5->Fill(
double(
ieta),
double(k3), bbb1);
13596 h_sumADCAmplperLS5->Fill(
float(lscounterM1), bbbc);
13597 if (bbbc / bbb1 > lsdep_estimator1_HEdepth3_)
13598 h_sumCutADCAmplperLS5->Fill(
float(lscounterM1), bbbc);
13599 h_sum0ADCAmplperLS5->Fill(
float(lscounterM1), bbb1);
13602 h_sumADCAmplperLSdepth4HEu->Fill(
float(lscounterM1), bbbc);
13603 if (bbbc / bbb1 > lsdep_estimator1_HEdepth4_)
13604 h_sumCutADCAmplperLSdepth4HEu->Fill(
float(lscounterM1), bbbc);
13605 h_sum0ADCAmplperLSdepth4HEu->Fill(
float(lscounterM1), bbb1);
13606 if (bbbc / bbb1 > lsdep_estimator1_HEdepth4_)
13607 h_2DsumADCAmplLSdepth4HEu->Fill(
double(
ieta),
double(k3), bbbc);
13608 h_2D0sumADCAmplLSdepth4HEu->Fill(
double(
ieta),
double(k3), bbb1);
13611 h_sumADCAmplperLSdepth5HEu->Fill(
float(lscounterM1), bbbc);
13612 if (bbbc / bbb1 > lsdep_estimator1_HEdepth5_)
13613 h_sumCutADCAmplperLSdepth5HEu->Fill(
float(lscounterM1), bbbc);
13614 h_sum0ADCAmplperLSdepth5HEu->Fill(
float(lscounterM1), bbb1);
13615 if (bbbc / bbb1 > lsdep_estimator1_HEdepth5_)
13616 h_2DsumADCAmplLSdepth5HEu->Fill(
double(
ieta),
double(k3), bbbc);
13617 h_2D0sumADCAmplLSdepth5HEu->Fill(
double(
ieta),
double(k3), bbb1);
13621 h_sumADCAmplperLSdepth6HEu->Fill(
float(lscounterM1), bbbc);
13622 if (bbbc / bbb1 > lsdep_estimator1_HEdepth6_)
13623 h_sumCutADCAmplperLSdepth6HEu->Fill(
float(lscounterM1), bbbc);
13624 h_sum0ADCAmplperLSdepth6HEu->Fill(
float(lscounterM1), bbb1);
13625 if (bbbc / bbb1 > lsdep_estimator1_HEdepth6_)
13626 h_2DsumADCAmplLSdepth6HEu->Fill(
double(
ieta),
double(k3), bbbc);
13627 h_2D0sumADCAmplLSdepth6HEu->Fill(
double(
ieta),
double(k3), bbb1);
13630 h_sumADCAmplperLSdepth7HEu->Fill(
float(lscounterM1), bbbc);
13631 if (bbbc / bbb1 > lsdep_estimator1_HEdepth7_)
13632 h_sumCutADCAmplperLSdepth7HEu->Fill(
float(lscounterM1), bbbc);
13633 h_sum0ADCAmplperLSdepth7HEu->Fill(
float(lscounterM1), bbb1);
13634 if (bbbc / bbb1 > lsdep_estimator1_HEdepth7_)
13635 h_2DsumADCAmplLSdepth7HEu->Fill(
double(
ieta),
double(k3), bbbc);
13636 h_2D0sumADCAmplLSdepth7HEu->Fill(
double(
ieta),
double(k3), bbb1);
13643 h_sumADCAmplLS6->Fill(bbbc / bbb1);
13644 if (bbbc / bbb1 > lsdep_estimator1_HFdepth1_)
13645 h_2DsumADCAmplLS6->Fill(
double(
ieta),
double(k3), bbbc);
13646 if (bbbc / bbb1 > 2. * lsdep_estimator1_HFdepth1_)
13647 h_2DsumADCAmplLS6_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
13648 h_2D0sumADCAmplLS6->Fill(
double(
ieta),
double(k3), bbb1);
13649 h_sumADCAmplperLS6->Fill(
float(lscounterM1), bbbc);
13650 if (bbbc / bbb1 > lsdep_estimator1_HFdepth1_)
13651 h_sumCutADCAmplperLS6->Fill(
float(lscounterM1), bbbc);
13652 h_sum0ADCAmplperLS6->Fill(
float(lscounterM1), bbb1);
13655 h_sumADCAmplLS7->Fill(bbbc / bbb1);
13656 if (bbbc / bbb1 > lsdep_estimator1_HFdepth2_)
13657 h_2DsumADCAmplLS7->Fill(
double(
ieta),
double(k3), bbbc);
13658 if (bbbc / bbb1 > 2. * lsdep_estimator1_HFdepth2_)
13659 h_2DsumADCAmplLS7_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
13660 h_2D0sumADCAmplLS7->Fill(
double(
ieta),
double(k3), bbb1);
13661 h_sumADCAmplperLS7->Fill(
float(lscounterM1), bbbc);
13662 if (bbbc / bbb1 > lsdep_estimator1_HFdepth2_)
13663 h_sumCutADCAmplperLS7->Fill(
float(lscounterM1), bbbc);
13664 h_sum0ADCAmplperLS7->Fill(
float(lscounterM1), bbb1);
13668 h_sumADCAmplperLS6u->Fill(
float(lscounterM1), bbbc);
13669 if (bbbc / bbb1 > lsdep_estimator1_HFdepth3_)
13670 h_sumCutADCAmplperLS6u->Fill(
float(lscounterM1), bbbc);
13671 h_sum0ADCAmplperLS6u->Fill(
float(lscounterM1), bbb1);
13672 if (bbbc / bbb1 > lsdep_estimator1_HFdepth3_)
13673 h_2DsumADCAmplLSdepth3HFu->Fill(
double(
ieta),
double(k3), bbbc);
13674 h_2D0sumADCAmplLSdepth3HFu->Fill(
double(
ieta),
double(k3), bbb1);
13677 h_sumADCAmplperLS7u->Fill(
float(lscounterM1), bbbc);
13678 if (bbbc / bbb1 > lsdep_estimator1_HFdepth4_)
13679 h_sumCutADCAmplperLS7u->Fill(
float(lscounterM1), bbbc);
13680 h_sum0ADCAmplperLS7u->Fill(
float(lscounterM1), bbb1);
13681 if (bbbc / bbb1 > lsdep_estimator1_HFdepth4_)
13682 h_2DsumADCAmplLSdepth4HFu->Fill(
double(
ieta),
double(k3), bbbc);
13683 h_2D0sumADCAmplLSdepth4HFu->Fill(
double(
ieta),
double(k3), bbb1);
13690 h_sumADCAmplLS8->Fill(bbbc / bbb1);
13691 if (bbbc / bbb1 > lsdep_estimator1_HOdepth4_)
13692 h_2DsumADCAmplLS8->Fill(
double(
ieta),
double(k3), bbbc);
13693 if (bbbc / bbb1 > 2. * lsdep_estimator1_HOdepth4_)
13694 h_2DsumADCAmplLS8_LSselected->Fill(
double(
ieta),
double(k3), bbbc);
13695 h_2D0sumADCAmplLS8->Fill(
double(
ieta),
double(k3), bbb1);
13696 h_sumADCAmplperLS8->Fill(
float(lscounterM1), bbbc);
13697 if (bbbc / bbb1 > lsdep_estimator1_HOdepth4_)
13698 h_sumCutADCAmplperLS8->Fill(
float(lscounterM1), bbbc);
13699 h_sum0ADCAmplperLS8->Fill(
float(lscounterM1), bbb1);
13703 if (sumEstimator2[
k0][k1][k2][k3] != 0.) {
13705 if (flagestimatornormalization_ == 0)
13706 bbbc = sumEstimator2[
k0][k1][k2][k3] / nevcounter0;
13707 if (flagestimatornormalization_ == 1)
13708 bbbc = sumEstimator2[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
13710 if (flagestimatornormalization_ == 2) {
13711 bbbc = sumEstimator2[
k0][k1][k2][k3];
13712 bbb1 = sum0Estimator[
k0][k1][k2][k3];
13719 h_sumTSmeanALS1->Fill(bbbc / bbb1);
13720 if (bbbc / bbb1 > lsdep_estimator2_HBdepth1_)
13721 h_2DsumTSmeanALS1->Fill(
double(
ieta),
double(k3), bbbc);
13722 h_2D0sumTSmeanALS1->Fill(
double(
ieta),
double(k3), bbb1);
13723 h_sumTSmeanAperLS1->Fill(
float(lscounterM1), bbbc);
13724 if (bbbc / bbb1 > lsdep_estimator2_HBdepth1_)
13725 h_sumCutTSmeanAperLS1->Fill(
float(lscounterM1), bbbc);
13726 h_sum0TSmeanAperLS1->Fill(
float(lscounterM1), bbb1);
13727 if (bbbc / bbb1 > 2. * lsdep_estimator2_HBdepth1_)
13728 h_sumTSmeanAperLS1_LSselected->Fill(
float(lscounterM1), bbbc);
13731 h_sumTSmeanALS2->Fill(bbbc / bbb1);
13732 if (bbbc / bbb1 > lsdep_estimator2_HBdepth2_)
13733 h_2DsumTSmeanALS2->Fill(
double(
ieta),
double(k3), bbbc);
13734 h_2D0sumTSmeanALS2->Fill(
double(
ieta),
double(k3), bbb1);
13735 h_sumTSmeanAperLS2->Fill(
float(lscounterM1), bbbc);
13736 if (bbbc / bbb1 > lsdep_estimator2_HBdepth2_)
13737 h_sumCutTSmeanAperLS2->Fill(
float(lscounterM1), bbbc);
13738 h_sum0TSmeanAperLS2->Fill(
float(lscounterM1), bbb1);
13743 h_sumTSmeanALS3->Fill(bbbc / bbb1);
13744 if (bbbc / bbb1 > lsdep_estimator2_HEdepth1_)
13745 h_2DsumTSmeanALS3->Fill(
double(
ieta),
double(k3), bbbc);
13746 h_2D0sumTSmeanALS3->Fill(
double(
ieta),
double(k3), bbb1);
13747 h_sumTSmeanAperLS3->Fill(
float(lscounterM1), bbbc);
13748 if (bbbc / bbb1 > lsdep_estimator2_HEdepth1_)
13749 h_sumCutTSmeanAperLS3->Fill(
float(lscounterM1), bbbc);
13750 h_sum0TSmeanAperLS3->Fill(
float(lscounterM1), bbb1);
13753 h_sumTSmeanALS4->Fill(bbbc / bbb1);
13754 if (bbbc / bbb1 > lsdep_estimator2_HEdepth2_)
13755 h_2DsumTSmeanALS4->Fill(
double(
ieta),
double(k3), bbbc);
13756 h_2D0sumTSmeanALS4->Fill(
double(
ieta),
double(k3), bbb1);
13757 h_sumTSmeanAperLS4->Fill(
float(lscounterM1), bbbc);
13758 if (bbbc / bbb1 > lsdep_estimator2_HEdepth2_)
13759 h_sumCutTSmeanAperLS4->Fill(
float(lscounterM1), bbbc);
13760 h_sum0TSmeanAperLS4->Fill(
float(lscounterM1), bbb1);
13763 h_sumTSmeanALS5->Fill(bbbc / bbb1);
13764 if (bbbc / bbb1 > lsdep_estimator2_HEdepth3_)
13765 h_2DsumTSmeanALS5->Fill(
double(
ieta),
double(k3), bbbc);
13766 h_2D0sumTSmeanALS5->Fill(
double(
ieta),
double(k3), bbb1);
13767 h_sumTSmeanAperLS5->Fill(
float(lscounterM1), bbbc);
13768 if (bbbc / bbb1 > lsdep_estimator2_HEdepth3_)
13769 h_sumCutTSmeanAperLS5->Fill(
float(lscounterM1), bbbc);
13770 h_sum0TSmeanAperLS5->Fill(
float(lscounterM1), bbb1);
13777 h_sumTSmeanALS6->Fill(bbbc / bbb1);
13778 if (bbbc / bbb1 > lsdep_estimator2_HFdepth1_)
13779 h_2DsumTSmeanALS6->Fill(
double(
ieta),
double(k3), bbbc);
13780 h_2D0sumTSmeanALS6->Fill(
double(
ieta),
double(k3), bbb1);
13781 h_sumTSmeanAperLS6->Fill(
float(lscounterM1), bbbc);
13782 if (bbbc / bbb1 > lsdep_estimator2_HFdepth1_)
13783 h_sumCutTSmeanAperLS6->Fill(
float(lscounterM1), bbbc);
13784 h_sum0TSmeanAperLS6->Fill(
float(lscounterM1), bbb1);
13787 h_sumTSmeanALS7->Fill(bbbc / bbb1);
13788 if (bbbc / bbb1 > lsdep_estimator2_HFdepth2_)
13789 h_2DsumTSmeanALS7->Fill(
double(
ieta),
double(k3), bbbc);
13790 h_2D0sumTSmeanALS7->Fill(
double(
ieta),
double(k3), bbb1);
13791 h_sumTSmeanAperLS7->Fill(
float(lscounterM1), bbbc);
13792 if (bbbc / bbb1 > lsdep_estimator2_HFdepth2_)
13793 h_sumCutTSmeanAperLS7->Fill(
float(lscounterM1), bbbc);
13794 h_sum0TSmeanAperLS7->Fill(
float(lscounterM1), bbb1);
13801 h_sumTSmeanALS8->Fill(bbbc / bbb1);
13802 if (bbbc / bbb1 > lsdep_estimator2_HOdepth4_)
13803 h_2DsumTSmeanALS8->Fill(
double(
ieta),
double(k3), bbbc);
13804 h_2D0sumTSmeanALS8->Fill(
double(
ieta),
double(k3), bbb1);
13805 h_sumTSmeanAperLS8->Fill(
float(lscounterM1), bbbc);
13806 if (bbbc / bbb1 > lsdep_estimator2_HOdepth4_)
13807 h_sumCutTSmeanAperLS8->Fill(
float(lscounterM1), bbbc);
13808 h_sum0TSmeanAperLS8->Fill(
float(lscounterM1), bbb1);
13814 if (sumEstimator3[
k0][k1][k2][k3] != 0.) {
13817 if (flagestimatornormalization_ == 0)
13818 bbbc = sumEstimator3[
k0][k1][k2][k3] / nevcounter0;
13819 if (flagestimatornormalization_ == 1)
13820 bbbc = sumEstimator3[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
13822 if (flagestimatornormalization_ == 2) {
13823 bbbc = sumEstimator3[
k0][k1][k2][k3];
13824 bbb1 = sum0Estimator[
k0][k1][k2][k3];
13831 h_sumTSmaxALS1->Fill(bbbc / bbb1);
13832 if (bbbc / bbb1 > lsdep_estimator3_HBdepth1_)
13833 h_2DsumTSmaxALS1->Fill(
double(
ieta),
double(k3), bbbc);
13834 h_2D0sumTSmaxALS1->Fill(
double(
ieta),
double(k3), bbb1);
13835 h_sumTSmaxAperLS1->Fill(
float(lscounterM1), bbbc);
13836 if (bbbc / bbb1 > lsdep_estimator3_HBdepth1_)
13837 h_sumCutTSmaxAperLS1->Fill(
float(lscounterM1), bbbc);
13838 h_sum0TSmaxAperLS1->Fill(
float(lscounterM1), bbb1);
13839 if (bbbc / bbb1 > 2. * lsdep_estimator3_HBdepth1_)
13840 h_sumTSmaxAperLS1_LSselected->Fill(
float(lscounterM1), bbbc);
13843 h_sumTSmaxALS2->Fill(bbbc / bbb1);
13844 if (bbbc / bbb1 > lsdep_estimator3_HBdepth2_)
13845 h_2DsumTSmaxALS2->Fill(
double(
ieta),
double(k3), bbbc);
13846 h_2D0sumTSmaxALS2->Fill(
double(
ieta),
double(k3), bbb1);
13847 h_sumTSmaxAperLS2->Fill(
float(lscounterM1), bbbc);
13848 if (bbbc / bbb1 > lsdep_estimator3_HBdepth2_)
13849 h_sumCutTSmaxAperLS2->Fill(
float(lscounterM1), bbbc);
13850 h_sum0TSmaxAperLS2->Fill(
float(lscounterM1), bbb1);
13857 h_sumTSmaxALS3->Fill(bbbc / bbb1);
13858 if (bbbc / bbb1 > lsdep_estimator3_HEdepth1_)
13859 h_2DsumTSmaxALS3->Fill(
double(
ieta),
double(k3), bbbc);
13860 h_2D0sumTSmaxALS3->Fill(
double(
ieta),
double(k3), bbb1);
13861 h_sumTSmaxAperLS3->Fill(
float(lscounterM1), bbbc);
13862 if (bbbc / bbb1 > lsdep_estimator3_HEdepth1_)
13863 h_sumCutTSmaxAperLS3->Fill(
float(lscounterM1), bbbc);
13864 h_sum0TSmaxAperLS3->Fill(
float(lscounterM1), bbb1);
13867 h_sumTSmaxALS4->Fill(bbbc / bbb1);
13868 if (bbbc / bbb1 > lsdep_estimator3_HEdepth2_)
13869 h_2DsumTSmaxALS4->Fill(
double(
ieta),
double(k3), bbbc);
13870 h_2D0sumTSmaxALS4->Fill(
double(
ieta),
double(k3), bbb1);
13871 h_sumTSmaxAperLS4->Fill(
float(lscounterM1), bbbc);
13872 if (bbbc / bbb1 > lsdep_estimator3_HEdepth2_)
13873 h_sumCutTSmaxAperLS4->Fill(
float(lscounterM1), bbbc);
13874 h_sum0TSmaxAperLS4->Fill(
float(lscounterM1), bbb1);
13877 h_sumTSmaxALS5->Fill(bbbc / bbb1);
13878 if (bbbc / bbb1 > lsdep_estimator3_HEdepth3_)
13879 h_2DsumTSmaxALS5->Fill(
double(
ieta),
double(k3), bbbc);
13880 h_2D0sumTSmaxALS5->Fill(
double(
ieta),
double(k3), bbb1);
13881 h_sumTSmaxAperLS5->Fill(
float(lscounterM1), bbbc);
13882 if (bbbc / bbb1 > lsdep_estimator3_HEdepth3_)
13883 h_sumCutTSmaxAperLS5->Fill(
float(lscounterM1), bbbc);
13884 h_sum0TSmaxAperLS5->Fill(
float(lscounterM1), bbb1);
13891 h_sumTSmaxALS6->Fill(bbbc / bbb1);
13892 if (bbbc / bbb1 > lsdep_estimator3_HFdepth1_)
13893 h_2DsumTSmaxALS6->Fill(
double(
ieta),
double(k3), bbbc);
13894 h_2D0sumTSmaxALS6->Fill(
double(
ieta),
double(k3), bbb1);
13895 h_sumTSmaxAperLS6->Fill(
float(lscounterM1), bbbc);
13896 if (bbbc / bbb1 > lsdep_estimator3_HFdepth1_)
13897 h_sumCutTSmaxAperLS6->Fill(
float(lscounterM1), bbbc);
13898 h_sum0TSmaxAperLS6->Fill(
float(lscounterM1), bbb1);
13901 h_sumTSmaxALS7->Fill(bbbc / bbb1);
13902 if (bbbc / bbb1 > lsdep_estimator3_HFdepth2_)
13903 h_2DsumTSmaxALS7->Fill(
double(
ieta),
double(k3), bbbc);
13904 h_2D0sumTSmaxALS7->Fill(
double(
ieta),
double(k3), bbb1);
13905 h_sumTSmaxAperLS7->Fill(
float(lscounterM1), bbbc);
13906 if (bbbc / bbb1 > lsdep_estimator3_HFdepth2_)
13907 h_sumCutTSmaxAperLS7->Fill(
float(lscounterM1), bbbc);
13908 h_sum0TSmaxAperLS7->Fill(
float(lscounterM1), bbb1);
13915 h_sumTSmaxALS8->Fill(bbbc / bbb1);
13916 if (bbbc / bbb1 > lsdep_estimator3_HOdepth4_)
13917 h_2DsumTSmaxALS8->Fill(
double(
ieta),
double(k3), bbbc);
13918 h_2D0sumTSmaxALS8->Fill(
double(
ieta),
double(k3), bbb1);
13919 h_sumTSmaxAperLS8->Fill(
float(lscounterM1), bbbc);
13920 if (bbbc / bbb1 > lsdep_estimator3_HOdepth4_)
13921 h_sumCutTSmaxAperLS8->Fill(
float(lscounterM1), bbbc);
13922 h_sum0TSmaxAperLS8->Fill(
float(lscounterM1), bbb1);
13928 if (sumEstimator4[
k0][k1][k2][k3] != 0.) {
13931 if (flagestimatornormalization_ == 0)
13932 bbbc = sumEstimator4[
k0][k1][k2][k3] / nevcounter0;
13933 if (flagestimatornormalization_ == 1)
13934 bbbc = sumEstimator4[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
13936 if (flagestimatornormalization_ == 2) {
13937 bbbc = sumEstimator4[
k0][k1][k2][k3];
13938 bbb1 = sum0Estimator[
k0][k1][k2][k3];
13945 h_sumAmplitudeLS1->Fill(bbbc / bbb1);
13946 if (bbbc / bbb1 > lsdep_estimator4_HBdepth1_)
13947 h_2DsumAmplitudeLS1->Fill(
double(
ieta),
double(k3), bbbc);
13948 h_2D0sumAmplitudeLS1->Fill(
double(
ieta),
double(k3), bbb1);
13949 h_sumAmplitudeperLS1->Fill(
float(lscounterM1), bbbc);
13950 if (bbbc / bbb1 > lsdep_estimator4_HBdepth1_)
13951 h_sumCutAmplitudeperLS1->Fill(
float(lscounterM1), bbbc);
13952 h_sum0AmplitudeperLS1->Fill(
float(lscounterM1), bbb1);
13953 if (bbbc / bbb1 > 2. * lsdep_estimator4_HBdepth1_)
13954 h_sumAmplitudeperLS1_LSselected->Fill(
float(lscounterM1), bbbc);
13957 h_sumAmplitudeLS2->Fill(bbbc / bbb1);
13958 if (bbbc / bbb1 > lsdep_estimator4_HBdepth2_)
13959 h_2DsumAmplitudeLS2->Fill(
double(
ieta),
double(k3), bbbc);
13960 h_2D0sumAmplitudeLS2->Fill(
double(
ieta),
double(k3), bbb1);
13961 h_sumAmplitudeperLS2->Fill(
float(lscounterM1), bbbc);
13962 if (bbbc / bbb1 > lsdep_estimator4_HBdepth2_)
13963 h_sumCutAmplitudeperLS2->Fill(
float(lscounterM1), bbbc);
13964 h_sum0AmplitudeperLS2->Fill(
float(lscounterM1), bbb1);
13971 h_sumAmplitudeLS3->Fill(bbbc / bbb1);
13972 if (bbbc / bbb1 > lsdep_estimator4_HEdepth1_)
13973 h_2DsumAmplitudeLS3->Fill(
double(
ieta),
double(k3), bbbc);
13974 h_2D0sumAmplitudeLS3->Fill(
double(
ieta),
double(k3), bbb1);
13975 h_sumAmplitudeperLS3->Fill(
float(lscounterM1), bbbc);
13976 if (bbbc / bbb1 > lsdep_estimator4_HEdepth1_)
13977 h_sumCutAmplitudeperLS3->Fill(
float(lscounterM1), bbbc);
13978 h_sum0AmplitudeperLS3->Fill(
float(lscounterM1), bbb1);
13981 h_sumAmplitudeLS4->Fill(bbbc / bbb1);
13982 if (bbbc / bbb1 > lsdep_estimator4_HEdepth2_)
13983 h_2DsumAmplitudeLS4->Fill(
double(
ieta),
double(k3), bbbc);
13984 h_2D0sumAmplitudeLS4->Fill(
double(
ieta),
double(k3), bbb1);
13985 h_sumAmplitudeperLS4->Fill(
float(lscounterM1), bbbc);
13986 if (bbbc / bbb1 > lsdep_estimator4_HEdepth2_)
13987 h_sumCutAmplitudeperLS4->Fill(
float(lscounterM1), bbbc);
13988 h_sum0AmplitudeperLS4->Fill(
float(lscounterM1), bbb1);
13991 h_sumAmplitudeLS5->Fill(bbbc / bbb1);
13992 if (bbbc / bbb1 > lsdep_estimator4_HEdepth3_)
13993 h_2DsumAmplitudeLS5->Fill(
double(
ieta),
double(k3), bbbc);
13994 h_2D0sumAmplitudeLS5->Fill(
double(
ieta),
double(k3), bbb1);
13995 h_sumAmplitudeperLS5->Fill(
float(lscounterM1), bbbc);
13996 if (bbbc / bbb1 > lsdep_estimator4_HEdepth3_)
13997 h_sumCutAmplitudeperLS5->Fill(
float(lscounterM1), bbbc);
13998 h_sum0AmplitudeperLS5->Fill(
float(lscounterM1), bbb1);
14005 h_sumAmplitudeLS6->Fill(bbbc / bbb1);
14006 if (bbbc / bbb1 > lsdep_estimator4_HFdepth1_)
14007 h_2DsumAmplitudeLS6->Fill(
double(
ieta),
double(k3), bbbc);
14008 h_2D0sumAmplitudeLS6->Fill(
double(
ieta),
double(k3), bbb1);
14009 h_sumAmplitudeperLS6->Fill(
float(lscounterM1), bbbc);
14010 if (bbbc / bbb1 > lsdep_estimator4_HFdepth1_)
14011 h_sumCutAmplitudeperLS6->Fill(
float(lscounterM1), bbbc);
14012 h_sum0AmplitudeperLS6->Fill(
float(lscounterM1), bbb1);
14015 h_sumAmplitudeLS7->Fill(bbbc / bbb1);
14016 if (bbbc / bbb1 > lsdep_estimator4_HFdepth2_)
14017 h_2DsumAmplitudeLS7->Fill(
double(
ieta),
double(k3), bbbc);
14018 h_2D0sumAmplitudeLS7->Fill(
double(
ieta),
double(k3), bbb1);
14019 h_sumAmplitudeperLS7->Fill(
float(lscounterM1), bbbc);
14020 if (bbbc / bbb1 > lsdep_estimator4_HFdepth2_)
14021 h_sumCutAmplitudeperLS7->Fill(
float(lscounterM1), bbbc);
14022 h_sum0AmplitudeperLS7->Fill(
float(lscounterM1), bbb1);
14029 h_sumAmplitudeLS8->Fill(bbbc / bbb1);
14030 if (bbbc / bbb1 > lsdep_estimator4_HOdepth4_)
14031 h_2DsumAmplitudeLS8->Fill(
double(
ieta),
double(k3), bbbc);
14032 h_2D0sumAmplitudeLS8->Fill(
double(
ieta),
double(k3), bbb1);
14033 h_sumAmplitudeperLS8->Fill(
float(lscounterM1), bbbc);
14034 if (bbbc / bbb1 > lsdep_estimator4_HOdepth4_)
14035 h_sumCutAmplitudeperLS8->Fill(
float(lscounterM1), bbbc);
14036 h_sum0AmplitudeperLS8->Fill(
float(lscounterM1), bbb1);
14042 if (sumEstimator5[
k0][k1][k2][k3] != 0.) {
14045 if (flagestimatornormalization_ == 0)
14046 bbbc = sumEstimator5[
k0][k1][k2][k3] / nevcounter0;
14047 if (flagestimatornormalization_ == 1)
14048 bbbc = sumEstimator5[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
14050 if (flagestimatornormalization_ == 2) {
14051 bbbc = sumEstimator5[
k0][k1][k2][k3];
14052 bbb1 = sum0Estimator[
k0][k1][k2][k3];
14059 h_sumAmplLS1->Fill(bbbc / bbb1);
14060 if (bbbc / bbb1 > lsdep_estimator5_HBdepth1_)
14061 h_2DsumAmplLS1->Fill(
double(
ieta),
double(k3), bbbc);
14062 h_2D0sumAmplLS1->Fill(
double(
ieta),
double(k3), bbb1);
14063 h_sumAmplperLS1->Fill(
float(lscounterM1), bbbc);
14064 if (bbbc / bbb1 > lsdep_estimator5_HBdepth1_)
14065 h_sumCutAmplperLS1->Fill(
float(lscounterM1), bbbc);
14066 h_sum0AmplperLS1->Fill(
float(lscounterM1), bbb1);
14067 if (bbbc / bbb1 > 2. * lsdep_estimator5_HBdepth1_)
14068 h_sumAmplperLS1_LSselected->Fill(
float(lscounterM1), bbbc);
14071 h_sumAmplLS2->Fill(bbbc / bbb1);
14072 if (bbbc / bbb1 > lsdep_estimator5_HBdepth2_)
14073 h_2DsumAmplLS2->Fill(
double(
ieta),
double(k3), bbbc);
14074 h_2D0sumAmplLS2->Fill(
double(
ieta),
double(k3), bbb1);
14075 h_sumAmplperLS2->Fill(
float(lscounterM1), bbbc);
14076 if (bbbc / bbb1 > lsdep_estimator5_HBdepth2_)
14077 h_sumCutAmplperLS2->Fill(
float(lscounterM1), bbbc);
14078 h_sum0AmplperLS2->Fill(
float(lscounterM1), bbb1);
14085 h_sumAmplLS3->Fill(bbbc / bbb1);
14086 if (bbbc / bbb1 > lsdep_estimator5_HEdepth1_)
14087 h_2DsumAmplLS3->Fill(
double(
ieta),
double(k3), bbbc);
14088 h_2D0sumAmplLS3->Fill(
double(
ieta),
double(k3), bbb1);
14089 h_sumAmplperLS3->Fill(
float(lscounterM1), bbbc);
14090 if (bbbc / bbb1 > lsdep_estimator5_HEdepth1_)
14091 h_sumCutAmplperLS3->Fill(
float(lscounterM1), bbbc);
14092 h_sum0AmplperLS3->Fill(
float(lscounterM1), bbb1);
14095 h_sumAmplLS4->Fill(bbbc / bbb1);
14096 if (bbbc / bbb1 > lsdep_estimator5_HEdepth2_)
14097 h_2DsumAmplLS4->Fill(
double(
ieta),
double(k3), bbbc);
14098 h_2D0sumAmplLS4->Fill(
double(
ieta),
double(k3), bbb1);
14099 h_sumAmplperLS4->Fill(
float(lscounterM1), bbbc);
14100 if (bbbc / bbb1 > lsdep_estimator5_HEdepth2_)
14101 h_sumCutAmplperLS4->Fill(
float(lscounterM1), bbbc);
14102 h_sum0AmplperLS4->Fill(
float(lscounterM1), bbb1);
14105 h_sumAmplLS5->Fill(bbbc / bbb1);
14106 if (bbbc / bbb1 > lsdep_estimator5_HEdepth3_)
14107 h_2DsumAmplLS5->Fill(
double(
ieta),
double(k3), bbbc);
14108 h_2D0sumAmplLS5->Fill(
double(
ieta),
double(k3), bbb1);
14109 h_sumAmplperLS5->Fill(
float(lscounterM1), bbbc);
14110 if (bbbc / bbb1 > lsdep_estimator5_HEdepth3_)
14111 h_sumCutAmplperLS5->Fill(
float(lscounterM1), bbbc);
14112 h_sum0AmplperLS5->Fill(
float(lscounterM1), bbb1);
14119 h_sumAmplLS6->Fill(bbbc / bbb1);
14120 if (bbbc / bbb1 > lsdep_estimator5_HFdepth1_)
14121 h_2DsumAmplLS6->Fill(
double(
ieta),
double(k3), bbbc);
14122 h_2D0sumAmplLS6->Fill(
double(
ieta),
double(k3), bbb1);
14123 h_sumAmplperLS6->Fill(
float(lscounterM1), bbbc);
14124 if (bbbc / bbb1 > lsdep_estimator5_HFdepth1_)
14125 h_sumCutAmplperLS6->Fill(
float(lscounterM1), bbbc);
14126 h_sum0AmplperLS6->Fill(
float(lscounterM1), bbb1);
14129 h_sumAmplLS7->Fill(bbbc / bbb1);
14130 if (bbbc / bbb1 > lsdep_estimator5_HFdepth2_)
14131 h_2DsumAmplLS7->Fill(
double(
ieta),
double(k3), bbbc);
14132 h_2D0sumAmplLS7->Fill(
double(
ieta),
double(k3), bbb1);
14133 h_sumAmplperLS7->Fill(
float(lscounterM1), bbbc);
14134 if (bbbc / bbb1 > lsdep_estimator5_HFdepth2_)
14135 h_sumCutAmplperLS7->Fill(
float(lscounterM1), bbbc);
14136 h_sum0AmplperLS7->Fill(
float(lscounterM1), bbb1);
14143 h_sumAmplLS8->Fill(bbbc / bbb1);
14144 if (bbbc / bbb1 > lsdep_estimator5_HOdepth4_)
14145 h_2DsumAmplLS8->Fill(
double(
ieta),
double(k3), bbbc);
14146 h_2D0sumAmplLS8->Fill(
double(
ieta),
double(k3), bbb1);
14147 h_sumAmplperLS8->Fill(
float(lscounterM1), bbbc);
14148 if (bbbc / bbb1 > lsdep_estimator5_HOdepth4_)
14149 h_sumCutAmplperLS8->Fill(
float(lscounterM1), bbbc);
14150 h_sum0AmplperLS8->Fill(
float(lscounterM1), bbb1);
14155 if (sumEstimator6[
k0][k1][k2][k3] != 0.) {
14158 if (flagestimatornormalization_ == 0)
14159 bbbc = sumEstimator6[
k0][k1][k2][k3] / nevcounter0;
14160 if (flagestimatornormalization_ == 1)
14161 bbbc = sumEstimator6[
k0][k1][k2][k3] / sum0Estimator[
k0][k1][k2][k3];
14163 if (flagestimatornormalization_ == 2) {
14164 bbbc = sumEstimator6[
k0][k1][k2][k3];
14165 bbb1 = sum0Estimator[
k0][k1][k2][k3];
14172 h_sumErrorBLS1->Fill(bbbc / bbb1);
14173 h_2DsumErrorBLS1->Fill(
double(
ieta),
double(k3), bbbc);
14174 h_2D0sumErrorBLS1->Fill(
double(
ieta),
double(k3), bbb1);
14175 h_sumErrorBperLS1->Fill(
float(lscounterM1), bbbc);
14176 h_sum0ErrorBperLS1->Fill(
float(lscounterM1), bbb1);
14179 h_sumErrorBLS2->Fill(bbbc / bbb1);
14180 h_2DsumErrorBLS2->Fill(
double(
ieta),
double(k3), bbbc);
14181 h_2D0sumErrorBLS2->Fill(
double(
ieta),
double(k3), bbb1);
14182 h_sumErrorBperLS2->Fill(
float(lscounterM1), bbbc);
14183 h_sum0ErrorBperLS2->Fill(
float(lscounterM1), bbb1);
14190 h_sumErrorBLS3->Fill(bbbc / bbb1);
14191 h_2DsumErrorBLS3->Fill(
double(
ieta),
double(k3), bbbc);
14192 h_2D0sumErrorBLS3->Fill(
double(
ieta),
double(k3), bbb1);
14193 h_sumErrorBperLS3->Fill(
float(lscounterM1), bbbc);
14194 h_sum0ErrorBperLS3->Fill(
float(lscounterM1), bbb1);
14197 h_sumErrorBLS4->Fill(bbbc / bbb1);
14198 h_2DsumErrorBLS4->Fill(
double(
ieta),
double(k3), bbbc);
14199 h_2D0sumErrorBLS4->Fill(
double(
ieta),
double(k3), bbb1);
14200 h_sumErrorBperLS4->Fill(
float(lscounterM1), bbbc);
14201 h_sum0ErrorBperLS4->Fill(
float(lscounterM1), bbb1);
14204 h_sumErrorBLS5->Fill(bbbc / bbb1);
14205 h_2DsumErrorBLS5->Fill(
double(
ieta),
double(k3), bbbc);
14206 h_2D0sumErrorBLS5->Fill(
double(
ieta),
double(k3), bbb1);
14207 h_sumErrorBperLS5->Fill(
float(lscounterM1), bbbc);
14208 h_sum0ErrorBperLS5->Fill(
float(lscounterM1), bbb1);
14215 h_sumErrorBLS6->Fill(bbbc / bbb1);
14216 h_2DsumErrorBLS6->Fill(
double(
ieta),
double(k3), bbbc);
14217 h_2D0sumErrorBLS6->Fill(
double(
ieta),
double(k3), bbb1);
14218 h_sumErrorBperLS6->Fill(
float(lscounterM1), bbbc);
14219 h_sum0ErrorBperLS6->Fill(
float(lscounterM1), bbb1);
14222 h_sumErrorBLS7->Fill(bbbc / bbb1);
14223 h_2DsumErrorBLS7->Fill(
double(
ieta),
double(k3), bbbc);
14224 h_2D0sumErrorBLS7->Fill(
double(
ieta),
double(k3), bbb1);
14225 h_sumErrorBperLS7->Fill(
float(lscounterM1), bbbc);
14226 h_sum0ErrorBperLS7->Fill(
float(lscounterM1), bbb1);
14233 h_sumErrorBLS8->Fill(bbbc / bbb1);
14234 h_2DsumErrorBLS8->Fill(
double(
ieta),
double(k3), bbbc);
14235 h_2D0sumErrorBLS8->Fill(
double(
ieta),
double(k3), bbb1);
14236 h_sumErrorBperLS8->Fill(
float(lscounterM1), bbbc);
14237 h_sum0ErrorBperLS8->Fill(
float(lscounterM1), bbb1);
14251 averSIGNALoccupancy_HB /=
float(nevcounter0);
14252 h_averSIGNALoccupancy_HB->Fill(
float(lscounterM1), averSIGNALoccupancy_HB);
14253 averSIGNALoccupancy_HE /=
float(nevcounter0);
14254 h_averSIGNALoccupancy_HE->Fill(
float(lscounterM1), averSIGNALoccupancy_HE);
14255 averSIGNALoccupancy_HF /=
float(nevcounter0);
14256 h_averSIGNALoccupancy_HF->Fill(
float(lscounterM1), averSIGNALoccupancy_HF);
14257 averSIGNALoccupancy_HO /=
float(nevcounter0);
14258 h_averSIGNALoccupancy_HO->Fill(
float(lscounterM1), averSIGNALoccupancy_HO);
14260 averSIGNALoccupancy_HB = 0.;
14261 averSIGNALoccupancy_HE = 0.;
14262 averSIGNALoccupancy_HF = 0.;
14263 averSIGNALoccupancy_HO = 0.;
14266 averSIGNALsumamplitude_HB /=
float(nevcounter0);
14267 h_averSIGNALsumamplitude_HB->Fill(
float(lscounterM1), averSIGNALsumamplitude_HB);
14268 averSIGNALsumamplitude_HE /=
float(nevcounter0);
14269 h_averSIGNALsumamplitude_HE->Fill(
float(lscounterM1), averSIGNALsumamplitude_HE);
14270 averSIGNALsumamplitude_HF /=
float(nevcounter0);
14271 h_averSIGNALsumamplitude_HF->Fill(
float(lscounterM1), averSIGNALsumamplitude_HF);
14272 averSIGNALsumamplitude_HO /=
float(nevcounter0);
14273 h_averSIGNALsumamplitude_HO->Fill(
float(lscounterM1), averSIGNALsumamplitude_HO);
14275 averSIGNALsumamplitude_HB = 0.;
14276 averSIGNALsumamplitude_HE = 0.;
14277 averSIGNALsumamplitude_HF = 0.;
14278 averSIGNALsumamplitude_HO = 0.;
14281 averNOSIGNALoccupancy_HB /=
float(nevcounter0);
14282 h_averNOSIGNALoccupancy_HB->Fill(
float(lscounterM1), averNOSIGNALoccupancy_HB);
14283 averNOSIGNALoccupancy_HE /=
float(nevcounter0);
14284 h_averNOSIGNALoccupancy_HE->Fill(
float(lscounterM1), averNOSIGNALoccupancy_HE);
14285 averNOSIGNALoccupancy_HF /=
float(nevcounter0);
14286 h_averNOSIGNALoccupancy_HF->Fill(
float(lscounterM1), averNOSIGNALoccupancy_HF);
14287 averNOSIGNALoccupancy_HO /=
float(nevcounter0);
14288 h_averNOSIGNALoccupancy_HO->Fill(
float(lscounterM1), averNOSIGNALoccupancy_HO);
14290 averNOSIGNALoccupancy_HB = 0.;
14291 averNOSIGNALoccupancy_HE = 0.;
14292 averNOSIGNALoccupancy_HF = 0.;
14293 averNOSIGNALoccupancy_HO = 0.;
14296 averNOSIGNALsumamplitude_HB /=
float(nevcounter0);
14297 h_averNOSIGNALsumamplitude_HB->Fill(
float(lscounterM1), averNOSIGNALsumamplitude_HB);
14298 averNOSIGNALsumamplitude_HE /=
float(nevcounter0);
14299 h_averNOSIGNALsumamplitude_HE->Fill(
float(lscounterM1), averNOSIGNALsumamplitude_HE);
14300 averNOSIGNALsumamplitude_HF /=
float(nevcounter0);
14301 h_averNOSIGNALsumamplitude_HF->Fill(
float(lscounterM1), averNOSIGNALsumamplitude_HF);
14302 averNOSIGNALsumamplitude_HO /=
float(nevcounter0);
14303 h_averNOSIGNALsumamplitude_HO->Fill(
float(lscounterM1), averNOSIGNALsumamplitude_HO);
14305 averNOSIGNALsumamplitude_HB = 0.;
14306 averNOSIGNALsumamplitude_HE = 0.;
14307 averNOSIGNALsumamplitude_HF = 0.;
14308 averNOSIGNALsumamplitude_HO = 0.;
14310 h_maxxSUMAmpl_HB->Fill(
float(lscounterM1), maxxSUM1);
14311 h_maxxSUMAmpl_HE->Fill(
float(lscounterM1), maxxSUM2);
14312 h_maxxSUMAmpl_HO->Fill(
float(lscounterM1), maxxSUM3);
14313 h_maxxSUMAmpl_HF->Fill(
float(lscounterM1), maxxSUM4);
14319 h_maxxOCCUP_HB->Fill(
float(lscounterM1), maxxOCCUP1);
14320 h_maxxOCCUP_HE->Fill(
float(lscounterM1), maxxOCCUP2);
14321 h_maxxOCCUP_HO->Fill(
float(lscounterM1), maxxOCCUP3);
14322 h_maxxOCCUP_HF->Fill(
float(lscounterM1), maxxOCCUP4);
14331 std::cout <<
" ==== Edn of run " << std::endl;
14345 emap = conditions->getHcalMapping();
14349 MAPfile <<
"#define LogEleMapdb_h" << std::endl;
14350 MAPfile <<
"#include <algorithm>" << std::endl;
14351 MAPfile <<
"#include <iostream>" << std::endl;
14352 MAPfile <<
"#include <vector>" << std::endl;
14353 MAPfile <<
"#include <string>" << std::endl;
14354 MAPfile <<
"#include <sstream>" << std::endl;
14355 MAPfile << std::endl;
14357 MAPfile <<
"struct Cell {" << std::endl;
14358 MAPfile <<
" std::string subdet;" << std::endl;
14359 MAPfile <<
" int Eta;" << std::endl;
14360 MAPfile <<
" int Phi;" << std::endl;
14361 MAPfile <<
" int Depth;" << std::endl;
14362 MAPfile <<
" std::string RBX;" << std::endl;
14363 MAPfile <<
" int RM;" << std::endl;
14364 MAPfile <<
" int Pixel;" << std::endl;
14365 MAPfile <<
" int RMfiber;" << std::endl;
14366 MAPfile <<
" int FiberCh;" << std::endl;
14367 MAPfile <<
" int QIE;" << std::endl;
14368 MAPfile <<
" int ADC;" << std::endl;
14369 MAPfile <<
" int VMECardID;" << std::endl;
14370 MAPfile <<
" int dccID;" << std::endl;
14371 MAPfile <<
" int Spigot;" << std::endl;
14372 MAPfile <<
" int FiberIndex;" << std::endl;
14373 MAPfile <<
" int HtrSlot;" << std::endl;
14374 MAPfile <<
" int HtrTB;" << std::endl;
14375 MAPfile << std::endl;
14377 MAPfile <<
"// the function check, if \"par\" == \"val\" for this cell" << std::endl;
14378 MAPfile <<
" bool check(const std::string par, const int val) const " << std::endl;
14379 MAPfile <<
" {" << std::endl;
14380 MAPfile <<
" if (par == \"Eta\") return (val == Eta);" << std::endl;
14381 MAPfile <<
" else if (par == \"Phi\") return (val == Phi);" << std::endl;
14382 MAPfile <<
" else if (par == \"Depth\") return (val == Depth);" << std::endl;
14383 MAPfile <<
" else if (par == \"RM\") return (val == RM);" << std::endl;
14384 MAPfile <<
" else if (par == \"Pixel\") return (val == Pixel);" << std::endl;
14385 MAPfile <<
" else if (par == \"RMfiber\") return (val == RMfiber);" << std::endl;
14386 MAPfile <<
" else if (par == \"FiberCh\") return (val == FiberCh);" << std::endl;
14387 MAPfile <<
" else if (par == \"QIE\") return (val == QIE);" << std::endl;
14388 MAPfile <<
" else if (par == \"ADC\") return (val == ADC);" << std::endl;
14389 MAPfile <<
" else if (par == \"VMECardID\") return (val == VMECardID);" << std::endl;
14390 MAPfile <<
" else if (par == \"dccID\") return (val == dccID);" << std::endl;
14391 MAPfile <<
" else if (par == \"Spigot\") return (val == Spigot);" << std::endl;
14392 MAPfile <<
" else if (par == \"FiberIndex\") return (val == FiberIndex);" << std::endl;
14393 MAPfile <<
" else if (par == \"HtrSlot\") return (val == HtrSlot);" << std::endl;
14394 MAPfile <<
" else if (par == \"HtrTB\") return (val == HtrTB);" << std::endl;
14395 MAPfile <<
" else return false;" << std::endl;
14396 MAPfile <<
" }" << std::endl;
14397 MAPfile << std::endl;
14399 MAPfile <<
" bool check(const std::string par, const std::string val) const" << std::endl;
14400 MAPfile <<
" {" << std::endl;
14401 MAPfile <<
" if (par == \"subdet\") return (val == subdet);" << std::endl;
14402 MAPfile <<
" else if (par == \"RBX\") return (val == RBX);" << std::endl;
14403 MAPfile <<
" else return false;" << std::endl;
14404 MAPfile <<
" }" << std::endl;
14406 MAPfile <<
"};" << std::endl;
14407 MAPfile << std::endl;
14409 MAPfile <<
"const Cell AllCells[] = {" << std::endl;
14410 MAPfile <<
"//{ SD, Eta, Phi, Depth, RBX, RM, PIXEL, RMfiber, Fiber Ch., QIE, ADC, VMECrateId, dccid, spigot, "
14411 "fiberIndex, htrSlot, htrTopBottom }"
14417 for (
int phi = 1; phi <=
nphi; phi++) {
14424 MAPfile <<
" {\"" << subdet <<
"\" , " << detid->
ieta() <<
" , " << detid->
iphi() - 1 <<
" , "
14425 << detid->
depth() <<
" ,";
14426 MAPfile <<
"\"" << lmap_entry.
rbx() <<
"\" , " << lmap_entry.
rm() <<
" , " << lmap_entry.
pixel() <<
" , "
14427 << lmap_entry.
rmFiber() <<
" , ";
14431 <<
" , " << emap_entry.
fiberIndex() <<
" , ";
14433 MAPfile <<
"}," << std::endl;
14439 for (
int phi = 1; phi <=
nphi; phi++) {
14446 MAPfile <<
" {\"" << subdet <<
"\" , " << detid->
ieta() - 1 <<
" , " << detid->
iphi() - 1 <<
" , "
14447 << detid->
depth() <<
" ,";
14448 MAPfile <<
"\"" << lmap_entry.
rbx() <<
"\" , " << lmap_entry.
rm() <<
" , " << lmap_entry.
pixel() <<
" , "
14449 << lmap_entry.
rmFiber() <<
" , ";
14453 <<
" , " << emap_entry.
fiberIndex() <<
" , ";
14455 MAPfile <<
"}," << std::endl;
14462 for (
int eta = -20;
eta <= -20;
eta++) {
14463 for (
int phi =
nphi; phi <=
nphi; phi++) {
14470 MAPfile <<
" {\"" << subdet <<
"\" , " << detid->
ieta() <<
" , " << detid->
iphi() - 1 <<
" , "
14471 << detid->
depth() <<
" ,";
14472 MAPfile <<
"\"" << lmap_entry.
rbx() <<
"\" , " << lmap_entry.
rm() <<
" , " << lmap_entry.
pixel() <<
" , "
14473 << lmap_entry.
rmFiber() <<
" , ";
14477 <<
" , " << emap_entry.
fiberIndex() <<
" , ";
14479 MAPfile <<
"}," << std::endl;
14485 for (
int eta = -19;
eta <= -16;
eta++) {
14486 for (
int phi =
nphi; phi <=
nphi; phi++) {
14493 MAPfile <<
" {\"" << subdet <<
"\" , " << detid->
ieta() <<
" , " << detid->
iphi() - 1 <<
" , "
14494 << detid->
depth() <<
" ,";
14495 MAPfile <<
"\"" << lmap_entry.
rbx() <<
"\" , " << lmap_entry.
rm() <<
" , " << lmap_entry.
pixel() <<
" , "
14496 << lmap_entry.
rmFiber() <<
" , ";
14500 <<
" , " << emap_entry.
fiberIndex() <<
" , ";
14502 MAPfile <<
"}," << std::endl;
14507 for (
int eta = -29;
eta <= -16;
eta++) {
14508 for (
int phi = 1; phi <= 71; phi++) {
14515 MAPfile <<
" {\"" << subdet <<
"\" , " << detid->
ieta() <<
" , " << detid->
iphi() - 1 <<
" , "
14516 << detid->
depth() <<
" ,";
14517 MAPfile <<
"\"" << lmap_entry.
rbx() <<
"\" , " << lmap_entry.
rm() <<
" , " << lmap_entry.
pixel() <<
" , "
14518 << lmap_entry.
rmFiber() <<
" , ";
14522 <<
" , " << emap_entry.
fiberIndex() <<
" , ";
14524 MAPfile <<
"}," << std::endl;
14530 for (
int phi = 1; phi <=
nphi; phi++) {
14537 MAPfile <<
" {\"" << subdet <<
"\" , " << detid->
ieta() <<
" , " << detid->
iphi() - 1 <<
" , "
14538 << detid->
depth() <<
" ,";
14539 MAPfile <<
"\"" << lmap_entry.
rbx() <<
"\" , " << lmap_entry.
rm() <<
" , " << lmap_entry.
pixel() <<
" , "
14540 << lmap_entry.
rmFiber() <<
" , ";
14544 <<
" , " << emap_entry.
fiberIndex() <<
" , ";
14546 MAPfile <<
"}," << std::endl;
14554 for (
int eta = -41;
eta <= -29;
eta++) {
14555 for (
int phi = 1; phi <=
nphi; phi += 2) {
14562 MAPfile <<
" {\"" << subdet <<
"\" , " << detid->
ieta() <<
" , " << detid->
iphi() - 1 <<
" , "
14563 << detid->
depth() <<
" ,";
14564 MAPfile <<
"\"" << lmap_entry.
rbx() <<
"\" , " << lmap_entry.
rm() <<
" , " << lmap_entry.
pixel() <<
" , "
14565 << lmap_entry.
rmFiber() <<
" , ";
14569 <<
" , " << emap_entry.
fiberIndex() <<
" , ";
14571 MAPfile <<
"}," << std::endl;
14578 for (
int phi = 1; phi <=
nphi; phi += 2) {
14585 MAPfile <<
" {\"" << subdet <<
"\" , " << detid->
ieta() <<
" , " << detid->
iphi() - 1 <<
" , "
14586 << detid->
depth() <<
" ,";
14587 MAPfile <<
"\"" << lmap_entry.
rbx() <<
"\" , " << lmap_entry.
rm() <<
" , " << lmap_entry.
pixel() <<
" , "
14588 << lmap_entry.
rmFiber() <<
" , ";
14592 <<
" , " << emap_entry.
fiberIndex() <<
" , ";
14594 MAPfile <<
"}," << std::endl;
14603 for (
int phi = 1; phi <=
nphi; phi++) {
14610 MAPfile <<
" {\"" << subdet <<
"\" , " << detid->
ieta() <<
" , " << detid->
iphi() - 1 <<
" , "
14611 << detid->
depth() <<
" ,";
14612 MAPfile <<
"\"" << lmap_entry.
rbx() <<
"\" , " << lmap_entry.
rm() <<
" , " << lmap_entry.
pixel() <<
" , "
14613 << lmap_entry.
rmFiber() <<
" , ";
14617 <<
" , " << emap_entry.
fiberIndex() <<
" , ";
14619 MAPfile <<
"}," << std::endl;
14626 for (
int phi = 1; phi <=
nphi; phi++) {
14633 MAPfile <<
" {\"" << subdet <<
"\" , " << detid->
ieta() - 1 <<
" , " << detid->
iphi() - 1 <<
" , "
14634 << detid->
depth() <<
" ,";
14635 MAPfile <<
"\"" << lmap_entry.
rbx() <<
"\" , " << lmap_entry.
rm() <<
" , " << lmap_entry.
pixel() <<
" , "
14636 << lmap_entry.
rmFiber() <<
" , ";
14640 <<
" , " << emap_entry.
fiberIndex() <<
" , ";
14642 MAPfile <<
"}," << std::endl;
14647 MAPfile <<
"};" << std::endl;
14648 MAPfile << std::endl;
14650 MAPfile <<
"// macro for array length calculation" << std::endl;
14651 MAPfile <<
"#define DIM(a) (sizeof(a)/sizeof(a[0]))" << std::endl;
14652 MAPfile << std::endl;
14654 MAPfile <<
"// class for cells array managing" << std::endl;
14655 MAPfile <<
"class CellDB {" << std::endl;
14656 MAPfile <<
"public:" << std::endl;
14657 MAPfile <<
" CellDB()" << std::endl;
14658 MAPfile <<
" : cells(AllCells, AllCells + DIM(AllCells))" << std::endl;
14659 MAPfile <<
"{}" << std::endl;
14660 MAPfile << std::endl;
14662 MAPfile <<
"// return i-th cell" << std::endl;
14663 MAPfile <<
"Cell operator [] (int i) const {return cells[i];}" << std::endl;
14665 MAPfile <<
"// number of cells in database" << std::endl;
14666 MAPfile <<
"int size() const {return cells.size();}" << std::endl;
14667 MAPfile << std::endl;
14669 MAPfile <<
"// select cells for which \"par\" == \"val\"" << std::endl;
14670 MAPfile <<
"template<typename T>" << std::endl;
14671 MAPfile <<
"CellDB find(const std::string par, const T val) const" << std::endl;
14672 MAPfile <<
"{" << std::endl;
14673 MAPfile <<
" std::vector<Cell> s;" << std::endl;
14674 MAPfile <<
" for (size_t i = 0; i < cells.size(); ++i)" << std::endl;
14675 MAPfile <<
" if (cells[i].check(par, val))" << std::endl;
14676 MAPfile <<
" s.push_back(cells[i]);" << std::endl;
14677 MAPfile <<
" return CellDB(s);" << std::endl;
14678 MAPfile <<
"} " << std::endl;
14679 MAPfile << std::endl;
14680 MAPfile <<
"private:" << std::endl;
14681 MAPfile <<
" CellDB( const std::vector<Cell> s)" << std::endl;
14682 MAPfile <<
" : cells(s)" << std::endl;
14683 MAPfile <<
"{}" << std::endl;
14684 MAPfile <<
"std::vector<Cell> cells;" << std::endl;
14685 MAPfile <<
"};" << std::endl;
14687 std::cout <<
"===== Finish writing Channel MAP =====" << std::endl;