CMS 3D CMS Logo

CMTRawAnalyzer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 //
4 // Package: CMTRawAnalyzer
5 //
7 //
8 using namespace std;
9 //
10 using namespace edm;
11 //
12 //
14 public:
15  explicit CMTRawAnalyzer(const edm::ParameterSet&);
16  ~CMTRawAnalyzer() override;
17  void beginJob() override;
18  void analyze(const edm::Event&, const edm::EventSetup&) override;
19  void endJob() override;
20  void beginRun(const edm::Run& r, const edm::EventSetup& iSetup) override;
21  void endRun(const edm::Run& r, const edm::EventSetup& iSetup) override;
22  virtual void fillMAP();
23 
24 private:
31  // phi-symmetry monitoring for calibration group:
37  // double dR(double eta1, double phi1, double eta2, double phi2);
38  // double phi12(double phi1, double en1, double phi2, double en2);
39  // double dPhiWsign(double phi1, double phi2);
50  int verbosity;
69  bool useADCfC_;
73  double ratioHBMin_;
74  double ratioHBMax_;
75  double ratioHEMin_;
76  double ratioHEMax_;
77  double ratioHFMin_;
78  double ratioHFMax_;
79  double ratioHOMin_;
80  double ratioHOMax_;
106  //
123  // HE upgrade:
128  // HF upgrade:
131  // HB upgrade:
134 
143 
152 
161 
172  double rmsHBMin_;
173  double rmsHBMax_;
174  double rmsHEMin_;
175  double rmsHEMax_;
176  double rmsHFMin_;
177  double rmsHFMax_;
178  double rmsHOMin_;
179  double rmsHOMax_;
181  double TSpeakHBMin_;
182  double TSpeakHBMax_;
183  double TSpeakHEMin_;
184  double TSpeakHEMax_;
185  double TSpeakHFMin_;
186  double TSpeakHFMax_;
187  double TSpeakHOMin_;
188  double TSpeakHOMax_;
189  double TSmeanHBMin_;
190  double TSmeanHBMax_;
191  double TSmeanHEMin_;
192  double TSmeanHEMax_;
193  double TSmeanHFMin_;
194  double TSmeanHFMax_;
195  double TSmeanHOMin_;
196  double TSmeanHOMax_;
197  int lsmin_;
198  int lsmax_;
249  int nevent;
250  int nevent50;
251  int nnnnnn;
257  int nnnnnn1;
258  int nnnnnn2;
259  int nnnnnn3;
260  int nnnnnn4;
261  int nnnnnn5;
262  int nnnnnn6;
342  TH1F* h_error1;
343  TH1F* h_error2;
344  TH1F* h_error3;
345  TH1F* h_amplError;
346  TH1F* h_amplFine;
348  TH1F* h_error1_HB;
349  TH1F* h_error2_HB;
350  TH1F* h_error3_HB;
351  TH1F* h_error4_HB;
352  TH1F* h_error5_HB;
353  TH1F* h_error6_HB;
354  TH1F* h_error7_HB;
361  TH1F* h_fiber0_HB;
362  TH1F* h_fiber1_HB;
363  TH1F* h_fiber2_HB;
366  TH1F* h_error1_HE;
367  TH1F* h_error2_HE;
368  TH1F* h_error3_HE;
369  TH1F* h_error4_HE;
370  TH1F* h_error5_HE;
371  TH1F* h_error6_HE;
372  TH1F* h_error7_HE;
382  TH1F* h_fiber0_HE;
383  TH1F* h_fiber1_HE;
384  TH1F* h_fiber2_HE;
387  TH1F* h_error1_HF;
388  TH1F* h_error2_HF;
389  TH1F* h_error3_HF;
390  TH1F* h_error4_HF;
391  TH1F* h_error5_HF;
392  TH1F* h_error6_HF;
393  TH1F* h_error7_HF;
400  TH1F* h_fiber0_HF;
401  TH1F* h_fiber1_HF;
402  TH1F* h_fiber2_HF;
405  TH1F* h_error1_HO;
406  TH1F* h_error2_HO;
407  TH1F* h_error3_HO;
408  TH1F* h_error4_HO;
409  TH1F* h_error5_HO;
410  TH1F* h_error6_HO;
411  TH1F* h_error7_HO;
415  TH1F* h_fiber0_HO;
416  TH1F* h_fiber1_HO;
417  TH1F* h_fiber2_HO;
469  TH1F* h_TSmaxA_HB;
487  TH1F* h_Ampl_HB;
548  TH1F* h_TSmaxA_HF;
566  TH1F* h_Ampl_HF;
594  TH1F* h_TSmaxA_HO;
600  TH1F* h_Ampl_HO;
746  TH1F* h_TSmaxA_HE;
776  TH1F* h_Ampl_HE;
833  TH2F* h_map_HB;
850  TH2F* h_map_HE;
867  TH2F* h_map_HO;
884  TH2F* h_map_HF;
1350  TH1F* h_gain_HB;
1359  TH1F* h_gain_HE;
1364  TH1F* h_gain_HF;
1369  TH1F* h_gain_HO;
1645  // phy-symmetry, phi-symmetry:
1646  // Reco:
1653  //HB:
1678  //HE:
1721  //HF:
1734  // Digi as Reco:
1735  //HB:
1748  //HE:
1770  //HF:
1783  // RADDAM:
1818  int calibcapiderror[ndepth][neta][nphi];
1819  float calibt[ndepth][neta][nphi];
1820  double caliba[ndepth][neta][nphi];
1821  double calibw[ndepth][neta][nphi];
1822  double calib0[ndepth][neta][nphi];
1823  double signal[ndepth][neta][nphi];
1824  double calib3[ndepth][neta][nphi];
1825  double signal3[ndepth][neta][nphi];
1826  double calib2[ndepth][neta][nphi];
1827  int badchannels[nsub][ndepth][neta][nphi]; // for upgrade
1828  double sumEstimator0[nsub][ndepth][neta][nphi];
1829  double sumEstimator1[nsub][ndepth][neta][nphi];
1830  double sumEstimator2[nsub][ndepth][neta][nphi];
1831  double sumEstimator3[nsub][ndepth][neta][nphi];
1832  double sumEstimator4[nsub][ndepth][neta][nphi];
1833  double sumEstimator5[nsub][ndepth][neta][nphi];
1834  double sumEstimator6[nsub][ndepth][neta][nphi];
1835  double sum0Estimator[nsub][ndepth][neta][nphi];
1836 
1837  // phi-symmetry monitoring for calibration group:
1838  double amplitudechannel0[nsub][ndepth][neta][nphi];
1839  double amplitudechannel[nsub][ndepth][neta][nphi];
1840  double amplitudechannel2[nsub][ndepth][neta][nphi];
1841  double tocamplchannel[nsub][ndepth][neta][nphi];
1842  double maprphinorm[nsub][ndepth][neta][nphi];
1843  // rec energy:
1844  double recNoiseEnergy0[nsub][ndepth][neta][nphi];
1845  double recNoiseEnergy1[nsub][ndepth][neta][nphi];
1846  double recNoiseEnergy2[nsub][ndepth][neta][nphi];
1847 
1848  double recSignalEnergy0[nsub][ndepth][neta][nphi];
1849  double recSignalEnergy1[nsub][ndepth][neta][nphi];
1850  double recSignalEnergy2[nsub][ndepth][neta][nphi];
1851 
1852  float TS_data[100];
1853  float TS_cal[100];
1854  double mapRADDAM_HE[ndepth][neta][nphi];
1855  int mapRADDAM0_HE[ndepth][neta][nphi];
1856  double mapRADDAM_HED2[ndepth][neta];
1857  int mapRADDAM_HED20[ndepth][neta];
1858  float binanpfit = anpfit / npfit;
1859  long int gsmdepth1sipm[npfit][neta][nphi][ndepth];
1861  long int Nevent;
1862  int Run;
1863  int run0;
1866  long int orbitNum;
1867  int bcn;
1868  int lumi;
1869  int ls0;
1894  double maxxSUM1;
1895  double maxxSUM2;
1896  double maxxSUM3;
1897  double maxxSUM4;
1898  double maxxOCCUP1;
1899  double maxxOCCUP2;
1900  double maxxOCCUP3;
1901  double maxxOCCUP4;
1902  TTree* myTree;
1903  TFile* hOutputFile;
1904  ofstream MAPfile;
1906  // Get RBX number from 1-35 for Calibration box
1907  int getRBX(int& i, int& j, int& k);
1908  void fillDigiErrors(HBHEDigiCollection::const_iterator& digiItr);
1909  void fillDigiErrorsHF(HFDigiCollection::const_iterator& digiItr);
1910  void fillDigiErrorsHO(HODigiCollection::const_iterator& digiItr);
1911  // upgrade:
1912  void fillDigiErrorsHFQIE10(QIE10DataFrame qie10df);
1913  void fillDigiErrorsQIE11(QIE11DataFrame qie11df);
1914  void fillDigiAmplitude(HBHEDigiCollection::const_iterator& digiItr);
1915  void fillDigiAmplitudeHF(HFDigiCollection::const_iterator& digiItr);
1916  void fillDigiAmplitudeHO(HODigiCollection::const_iterator& digiItr);
1917  // upgrade:
1918  void fillDigiAmplitudeHFQIE10(QIE10DataFrame qie10df);
1919  void fillDigiAmplitudeQIE11(QIE11DataFrame qie11df);
1921  int eta, phi, depth, nTS, cap_num;
1922  int numOfTS;
1925  float alsmin;
1926  float blsmax;
1928 };
1929 //
1931 //
1933  if (verbosity > 0)
1934  std::cout << "============== endJob ===================================" << std::endl;
1935 
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));
1942 
1943  hOutputFile->SetCompressionLevel(2);
1944 
1945  hOutputFile->Write();
1946  hOutputFile->cd();
1947 
1948  if (recordNtuples_)
1949  myTree->Write();
1950 
1952  std::cout << "===== full number of events = " << nevent << std::endl;
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
1956  << std::endl;
1957  std::cout << "===== full number of events*HBHEdigis = " << nnnnnn << std::endl;
1958  std::cout << "===== full number of events*HFdigis and qie10 = " << counterhf << " and " << counterhfqie10
1959  << std::endl;
1960  std::cout << "===== full number of events*HOdigis = " << counterho << std::endl;
1961 
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();
1973 
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();
1982 
1983  h_2DsumADCAmplEtaPhiLs0->Write();
1984  h_2DsumADCAmplEtaPhiLs1->Write();
1985  h_2DsumADCAmplEtaPhiLs2->Write();
1986  h_2DsumADCAmplEtaPhiLs3->Write();
1987 
1988  h_2DsumADCAmplEtaPhiLs00->Write();
1989  h_2DsumADCAmplEtaPhiLs10->Write();
1990  h_2DsumADCAmplEtaPhiLs20->Write();
1991  h_2DsumADCAmplEtaPhiLs30->Write();
1992 
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();
2000 
2001  if (recordHistoes_) {
2002  h_errorGeneral->Write();
2003  h_error1->Write();
2004  h_error2->Write();
2005  h_error3->Write();
2006  h_amplError->Write();
2007  h_amplFine->Write();
2008 
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();
2027 
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();
2049 
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();
2068 
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();
2084 
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();
2106 
2107  h_ADCAmpl345Zoom_HB->Write();
2108  h_ADCAmpl345Zoom1_HB->Write();
2109  h_ADCAmpl345_HB->Write();
2110 
2111  h_ADCAmpl_HBCapIdNoError->Write();
2112  h_ADCAmpl345_HBCapIdNoError->Write();
2113  h_ADCAmpl_HBCapIdError->Write();
2114  h_ADCAmpl345_HBCapIdError->Write();
2115 
2116  h_ADCAmplZoom_HB->Write();
2117  h_ADCAmplZoom1_HB->Write();
2118  h_ADCAmpl_HB->Write();
2119 
2120  h_AmplitudeHBrest->Write();
2121  h_AmplitudeHBrest1->Write();
2122  h_AmplitudeHBrest6->Write();
2123 
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();
2130 
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();
2137 
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();
2147 
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();
2157 
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();
2167 
2168  h_Ampl_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();
2185 
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();
2206 
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();
2220 
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();
2230 
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();
2240 
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();
2250 
2251  h_Ampl_HF->Write();
2252  h_mapDepth1Ampl047_HF->Write();
2253  h_mapDepth2Ampl047_HF->Write();
2254  h_mapDepth3Ampl047_HF->Write();
2255  h_mapDepth4Ampl047_HF->Write();
2256 
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();
2269 
2271  h_ADCAmpl_HO->Write();
2272  h_ADCAmplrest1_HO->Write();
2273  h_ADCAmplrest6_HO->Write();
2274 
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();
2280 
2281  h_TSmeanA_HO->Write();
2282  h_mapDepth4TSmeanA225_HO->Write();
2283  h_mapDepth4TSmeanA_HO->Write();
2284 
2285  h_TSmaxA_HO->Write();
2286  h_mapDepth4TSmaxA225_HO->Write();
2287  h_mapDepth4TSmaxA_HO->Write();
2288 
2289  h_Amplitude_HO->Write();
2290  h_mapDepth4Amplitude225_HO->Write();
2291  h_mapDepth4Amplitude_HO->Write();
2292  h_Ampl_HO->Write();
2293  h_mapDepth4Ampl047_HO->Write();
2294  h_mapDepth4Ampl_HO->Write();
2295  h_mapDepth4AmplE34_HO->Write();
2296  h_mapDepth4_HO->Write();
2297 
2299 
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();
2307 
2308  h_ADCAmplZoom1_HE->Write();
2309 
2310  h_corrforxaMAIN_HE->Write();
2311  h_corrforxaMAIN0_HE->Write();
2312  h_corrforxaADDI_HE->Write();
2313  h_corrforxaADDI0_HE->Write();
2314 
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();
2322 
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();
2335 
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();
2342 
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();
2357 
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();
2364 
2365  h_mapDepth1linADCAmpl12_HE->Write();
2366  h_mapDepth2linADCAmpl12_HE->Write();
2367  h_mapDepth3linADCAmpl12_HE->Write();
2368 
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();
2384 
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();
2400 
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();
2416 
2417  h_Ampl_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();
2446 
2448 
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();
2457 
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();
2464 
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();
2471 
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();
2478 
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();
2485 
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();
2492 
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();
2499 
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();
2506 
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();
2513 
2515  h_mapCapCalib047_HB->Write();
2516  h_mapCapCalib047_HE->Write();
2517  h_mapCapCalib047_HO->Write();
2518  h_mapCapCalib047_HF->Write();
2519 
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();
2536  h_map_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();
2553  h_map_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();
2570  h_map_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();
2587  h_map_HF->Write();
2588 
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();
2596 
2597  // for estimator0:
2598  h_sumPedestalLS1->Write();
2599  h_2DsumPedestalLS1->Write();
2600  h_sumPedestalperLS1->Write();
2601  h_2D0sumPedestalLS1->Write();
2602  h_sum0PedestalperLS1->Write();
2603 
2604  h_sumPedestalLS2->Write();
2605  h_2DsumPedestalLS2->Write();
2606  h_sumPedestalperLS2->Write();
2607  h_2D0sumPedestalLS2->Write();
2608  h_sum0PedestalperLS2->Write();
2609 
2610  h_sumPedestalLS3->Write();
2611  h_2DsumPedestalLS3->Write();
2612  h_sumPedestalperLS3->Write();
2613  h_2D0sumPedestalLS3->Write();
2614  h_sum0PedestalperLS3->Write();
2615 
2616  h_sumPedestalLS4->Write();
2617  h_2DsumPedestalLS4->Write();
2618  h_sumPedestalperLS4->Write();
2619  h_2D0sumPedestalLS4->Write();
2620  h_sum0PedestalperLS4->Write();
2621 
2622  h_sumPedestalLS5->Write();
2623  h_2DsumPedestalLS5->Write();
2624  h_sumPedestalperLS5->Write();
2625  h_2D0sumPedestalLS5->Write();
2626  h_sum0PedestalperLS5->Write();
2627 
2628  h_sumPedestalLS6->Write();
2629  h_2DsumPedestalLS6->Write();
2630  h_sumPedestalperLS6->Write();
2631  h_2D0sumPedestalLS6->Write();
2632  h_sum0PedestalperLS6->Write();
2633 
2634  h_sumPedestalLS7->Write();
2635  h_2DsumPedestalLS7->Write();
2636  h_sumPedestalperLS7->Write();
2637  h_2D0sumPedestalLS7->Write();
2638  h_sum0PedestalperLS7->Write();
2639 
2640  h_sumPedestalLS8->Write();
2641  h_2DsumPedestalLS8->Write();
2642  h_sumPedestalperLS8->Write();
2643  h_2D0sumPedestalLS8->Write();
2644  h_sum0PedestalperLS8->Write();
2645 
2646  // for estimator1:
2647 
2648  // for HE gain stability vs LS:
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();
2661  // for HB gain stability vs LS:
2662  h_2DsumADCAmplLSdepth3HBu->Write();
2663  h_2D0sumADCAmplLSdepth3HBu->Write();
2664  h_2DsumADCAmplLSdepth4HBu->Write();
2665  h_2D0sumADCAmplLSdepth4HBu->Write();
2666 
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();
2679 
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();
2687 
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();
2695 
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();
2703 
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();
2711 
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();
2722 
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();
2735 
2736  h_sumADCAmplperLSdepth3HBu->Write();
2737  h_sumADCAmplperLSdepth4HBu->Write();
2738  h_sumCutADCAmplperLSdepth3HBu->Write();
2739  h_sumCutADCAmplperLSdepth4HBu->Write();
2740  h_sum0ADCAmplperLSdepth3HBu->Write();
2741  h_sum0ADCAmplperLSdepth4HBu->Write();
2742 
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();
2751 
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();
2760 
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();
2769 
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();
2778 
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();
2789 
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();
2797 
2798  // for estimator2:
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();
2806 
2807  h_sumTSmeanALS2->Write();
2808  h_2DsumTSmeanALS2->Write();
2809  h_sumTSmeanAperLS2->Write();
2810  h_sumCutTSmeanAperLS2->Write();
2811  h_2D0sumTSmeanALS2->Write();
2812  h_sum0TSmeanAperLS2->Write();
2813 
2814  h_sumTSmeanALS3->Write();
2815  h_2DsumTSmeanALS3->Write();
2816  h_sumTSmeanAperLS3->Write();
2817  h_sumCutTSmeanAperLS3->Write();
2818  h_2D0sumTSmeanALS3->Write();
2819  h_sum0TSmeanAperLS3->Write();
2820 
2821  h_sumTSmeanALS4->Write();
2822  h_2DsumTSmeanALS4->Write();
2823  h_sumTSmeanAperLS4->Write();
2824  h_sumCutTSmeanAperLS4->Write();
2825  h_2D0sumTSmeanALS4->Write();
2826  h_sum0TSmeanAperLS4->Write();
2827 
2828  h_sumTSmeanALS5->Write();
2829  h_2DsumTSmeanALS5->Write();
2830  h_sumTSmeanAperLS5->Write();
2831  h_sumCutTSmeanAperLS5->Write();
2832  h_2D0sumTSmeanALS5->Write();
2833  h_sum0TSmeanAperLS5->Write();
2834 
2835  h_sumTSmeanALS6->Write();
2836  h_2DsumTSmeanALS6->Write();
2837  h_sumTSmeanAperLS6->Write();
2838  h_sumCutTSmeanAperLS6->Write();
2839  h_2D0sumTSmeanALS6->Write();
2840  h_sum0TSmeanAperLS6->Write();
2841 
2842  h_sumTSmeanALS7->Write();
2843  h_2DsumTSmeanALS7->Write();
2844  h_sumTSmeanAperLS7->Write();
2845  h_sumCutTSmeanAperLS7->Write();
2846  h_2D0sumTSmeanALS7->Write();
2847  h_sum0TSmeanAperLS7->Write();
2848 
2849  h_sumTSmeanALS8->Write();
2850  h_2DsumTSmeanALS8->Write();
2851  h_sumTSmeanAperLS8->Write();
2852  h_sumCutTSmeanAperLS8->Write();
2853  h_2D0sumTSmeanALS8->Write();
2854  h_sum0TSmeanAperLS8->Write();
2855 
2856  // for estimator3:
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();
2864 
2865  h_sumTSmaxALS2->Write();
2866  h_2DsumTSmaxALS2->Write();
2867  h_sumTSmaxAperLS2->Write();
2868  h_sumCutTSmaxAperLS2->Write();
2869  h_2D0sumTSmaxALS2->Write();
2870  h_sum0TSmaxAperLS2->Write();
2871 
2872  h_sumTSmaxALS3->Write();
2873  h_2DsumTSmaxALS3->Write();
2874  h_sumTSmaxAperLS3->Write();
2875  h_sumCutTSmaxAperLS3->Write();
2876  h_2D0sumTSmaxALS3->Write();
2877  h_sum0TSmaxAperLS3->Write();
2878 
2879  h_sumTSmaxALS4->Write();
2880  h_2DsumTSmaxALS4->Write();
2881  h_sumTSmaxAperLS4->Write();
2882  h_sumCutTSmaxAperLS4->Write();
2883  h_2D0sumTSmaxALS4->Write();
2884  h_sum0TSmaxAperLS4->Write();
2885 
2886  h_sumTSmaxALS5->Write();
2887  h_2DsumTSmaxALS5->Write();
2888  h_sumTSmaxAperLS5->Write();
2889  h_sumCutTSmaxAperLS5->Write();
2890  h_2D0sumTSmaxALS5->Write();
2891  h_sum0TSmaxAperLS5->Write();
2892 
2893  h_sumTSmaxALS6->Write();
2894  h_2DsumTSmaxALS6->Write();
2895  h_sumTSmaxAperLS6->Write();
2896  h_sumCutTSmaxAperLS6->Write();
2897  h_2D0sumTSmaxALS6->Write();
2898  h_sum0TSmaxAperLS6->Write();
2899 
2900  h_sumTSmaxALS7->Write();
2901  h_2DsumTSmaxALS7->Write();
2902  h_sumTSmaxAperLS7->Write();
2903  h_sumCutTSmaxAperLS7->Write();
2904  h_2D0sumTSmaxALS7->Write();
2905  h_sum0TSmaxAperLS7->Write();
2906 
2907  h_sumTSmaxALS8->Write();
2908  h_2DsumTSmaxALS8->Write();
2909  h_sumTSmaxAperLS8->Write();
2910  h_sumCutTSmaxAperLS8->Write();
2911  h_2D0sumTSmaxALS8->Write();
2912  h_sum0TSmaxAperLS8->Write();
2913 
2914  // for estimator4:
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();
2922 
2923  h_sumAmplitudeLS2->Write();
2924  h_2DsumAmplitudeLS2->Write();
2925  h_sumAmplitudeperLS2->Write();
2926  h_sumCutAmplitudeperLS2->Write();
2927  h_2D0sumAmplitudeLS2->Write();
2928  h_sum0AmplitudeperLS2->Write();
2929 
2930  h_sumAmplitudeLS3->Write();
2931  h_2DsumAmplitudeLS3->Write();
2932  h_sumAmplitudeperLS3->Write();
2933  h_sumCutAmplitudeperLS3->Write();
2934  h_2D0sumAmplitudeLS3->Write();
2935  h_sum0AmplitudeperLS3->Write();
2936 
2937  h_sumAmplitudeLS4->Write();
2938  h_2DsumAmplitudeLS4->Write();
2939  h_sumAmplitudeperLS4->Write();
2940  h_sumCutAmplitudeperLS4->Write();
2941  h_2D0sumAmplitudeLS4->Write();
2942  h_sum0AmplitudeperLS4->Write();
2943 
2944  h_sumAmplitudeLS5->Write();
2945  h_2DsumAmplitudeLS5->Write();
2946  h_sumAmplitudeperLS5->Write();
2947  h_sumCutAmplitudeperLS5->Write();
2948  h_2D0sumAmplitudeLS5->Write();
2949  h_sum0AmplitudeperLS5->Write();
2950 
2951  h_sumAmplitudeLS6->Write();
2952  h_2DsumAmplitudeLS6->Write();
2953  h_sumAmplitudeperLS6->Write();
2954  h_sumCutAmplitudeperLS6->Write();
2955  h_2D0sumAmplitudeLS6->Write();
2956  h_sum0AmplitudeperLS6->Write();
2957 
2958  h_sumAmplitudeLS7->Write();
2959  h_2DsumAmplitudeLS7->Write();
2960  h_sumAmplitudeperLS7->Write();
2961  h_sumCutAmplitudeperLS7->Write();
2962  h_2D0sumAmplitudeLS7->Write();
2963  h_sum0AmplitudeperLS7->Write();
2964 
2965  h_sumAmplitudeLS8->Write();
2966  h_2DsumAmplitudeLS8->Write();
2967  h_sumAmplitudeperLS8->Write();
2968  h_sumCutAmplitudeperLS8->Write();
2969  h_2D0sumAmplitudeLS8->Write();
2970  h_sum0AmplitudeperLS8->Write();
2971 
2972  // for estimator6:
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();
2983 
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();
2999 
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();
3010 
3011  h_sumErrorBLS8->Write();
3012  h_sumErrorBperLS8->Write();
3013  h_sum0ErrorBperLS8->Write();
3014  h_2D0sumErrorBLS8->Write();
3015  h_2DsumErrorBLS8->Write();
3016 
3017  // for estimator5:
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();
3025 
3026  h_sumAmplLS2->Write();
3027  h_2DsumAmplLS2->Write();
3028  h_sumAmplperLS2->Write();
3029  h_sumCutAmplperLS2->Write();
3030  h_2D0sumAmplLS2->Write();
3031  h_sum0AmplperLS2->Write();
3032 
3033  h_sumAmplLS3->Write();
3034  h_2DsumAmplLS3->Write();
3035  h_sumAmplperLS3->Write();
3036  h_sumCutAmplperLS3->Write();
3037  h_2D0sumAmplLS3->Write();
3038  h_sum0AmplperLS3->Write();
3039 
3040  h_sumAmplLS4->Write();
3041  h_2DsumAmplLS4->Write();
3042  h_sumAmplperLS4->Write();
3043  h_sumCutAmplperLS4->Write();
3044  h_2D0sumAmplLS4->Write();
3045  h_sum0AmplperLS4->Write();
3046 
3047  h_sumAmplLS5->Write();
3048  h_2DsumAmplLS5->Write();
3049  h_sumAmplperLS5->Write();
3050  h_sumCutAmplperLS5->Write();
3051  h_2D0sumAmplLS5->Write();
3052  h_sum0AmplperLS5->Write();
3053 
3054  h_sumAmplLS6->Write();
3055  h_2DsumAmplLS6->Write();
3056  h_sumAmplperLS6->Write();
3057  h_sumCutAmplperLS6->Write();
3058  h_2D0sumAmplLS6->Write();
3059  h_sum0AmplperLS6->Write();
3060 
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();
3069 
3070  h_sumAmplLS7->Write();
3071  h_2DsumAmplLS7->Write();
3072  h_sumAmplperLS7->Write();
3073  h_sumCutAmplperLS7->Write();
3074  h_2D0sumAmplLS7->Write();
3075  h_sum0AmplperLS7->Write();
3076 
3077  h_sumAmplLS8->Write();
3078  h_2DsumAmplLS8->Write();
3079  h_sumAmplperLS8->Write();
3080  h_sumCutAmplperLS8->Write();
3081  h_2D0sumAmplLS8->Write();
3082  h_sum0AmplperLS8->Write();
3083 
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();
3096 
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();
3109 
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();
3122 
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();
3135 
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();
3152 
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();
3169 
3170  h_pedestal00_HB->Write();
3171  h_gain_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();
3179 
3180  h_pedestal00_HE->Write();
3181  h_gain_HE->Write();
3182  h_respcorr_HE->Write();
3183  h_timecorr_HE->Write();
3184  h_lutcorr_HE->Write();
3185 
3186  h_pedestal00_HF->Write();
3187  h_gain_HF->Write();
3188  h_respcorr_HF->Write();
3189  h_timecorr_HF->Write();
3190  h_lutcorr_HF->Write();
3191 
3192  h_pedestal00_HO->Write();
3193  h_gain_HO->Write();
3194  h_respcorr_HO->Write();
3195  h_timecorr_HO->Write();
3196  h_lutcorr_HO->Write();
3197 
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();
3209 
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();
3228 
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();
3245 
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();
3270 
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();
3287 
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();
3296 
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();
3305 
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();
3322 
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();
3339 
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();
3348 
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();
3357 
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();
3382 
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();
3391 
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();
3400 
3401  h_averSIGNALoccupancy_HB->Write();
3402  h_averSIGNALoccupancy_HE->Write();
3403  h_averSIGNALoccupancy_HF->Write();
3404  h_averSIGNALoccupancy_HO->Write();
3405 
3406  h_averSIGNALsumamplitude_HB->Write();
3407  h_averSIGNALsumamplitude_HE->Write();
3408  h_averSIGNALsumamplitude_HF->Write();
3409  h_averSIGNALsumamplitude_HO->Write();
3410 
3411  h_averNOSIGNALoccupancy_HB->Write();
3412  h_averNOSIGNALoccupancy_HE->Write();
3413  h_averNOSIGNALoccupancy_HF->Write();
3414  h_averNOSIGNALoccupancy_HO->Write();
3415 
3416  h_averNOSIGNALsumamplitude_HB->Write();
3417  h_averNOSIGNALsumamplitude_HE->Write();
3418  h_averNOSIGNALsumamplitude_HF->Write();
3419  h_averNOSIGNALsumamplitude_HO->Write();
3420 
3421  h_maxxSUMAmpl_HB->Write();
3422  h_maxxSUMAmpl_HE->Write();
3423  h_maxxSUMAmpl_HF->Write();
3424  h_maxxSUMAmpl_HO->Write();
3425 
3426  h_maxxOCCUP_HB->Write();
3427  h_maxxOCCUP_HE->Write();
3428  h_maxxOCCUP_HF->Write();
3429  h_maxxOCCUP_HO->Write();
3430 
3431  h_sumamplitudechannel_HB->Write();
3432  h_sumamplitudechannel_HE->Write();
3433  h_sumamplitudechannel_HF->Write();
3434  h_sumamplitudechannel_HO->Write();
3435 
3436  h_eventamplitude_HB->Write();
3437  h_eventamplitude_HE->Write();
3438  h_eventamplitude_HF->Write();
3439  h_eventamplitude_HO->Write();
3440 
3441  h_eventoccupancy_HB->Write();
3442  h_eventoccupancy_HE->Write();
3443  h_eventoccupancy_HF->Write();
3444  h_eventoccupancy_HO->Write();
3445 
3446  h_2DAtaildepth1_HB->Write();
3447  h_2D0Ataildepth1_HB->Write();
3448  h_2DAtaildepth2_HB->Write();
3449  h_2D0Ataildepth2_HB->Write();
3450 
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();
3465 
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();
3480 
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();
3488 
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();
3496  //HB
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();
3509 
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();
3522 
3523  //HE
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();
3545 
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();
3567 
3568  //HF
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();
3575 
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();
3582 
3583  // Digi as Reco:
3584  //HB:
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();
3597 
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();
3619 
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();
3632 
3633  // RADDAM:
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();
3668 
3669  h_amplitudeaveragedbydepthes_HE->Write();
3670  h_ndepthesperamplitudebins_HE->Write();
3672  } //if
3674  hOutputFile->Close();
3675  std::cout << "===== Finish writing user histograms and ntuple =====" << std::endl;
3677 }
3678 //
3679 
3680 //
3681 //
3683  verbosity = iConfig.getUntrackedParameter<int>("Verbosity");
3684  MAPcreation = iConfig.getUntrackedParameter<int>("MapCreation");
3685  recordNtuples_ = iConfig.getUntrackedParameter<bool>("recordNtuples");
3686  maxNeventsInNtuple_ = iConfig.getParameter<int>("maxNeventsInNtuple");
3687  tok_calib_ = consumes<HcalCalibDigiCollection>(iConfig.getParameter<edm::InputTag>("hcalCalibDigiCollectionTag")); //
3688  tok_hbhe_ = consumes<HBHEDigiCollection>(iConfig.getParameter<edm::InputTag>("hbheDigiCollectionTag"));
3689  tok_ho_ = consumes<HODigiCollection>(iConfig.getParameter<edm::InputTag>("hoDigiCollectionTag"));
3690  tok_hf_ = consumes<HFDigiCollection>(iConfig.getParameter<edm::InputTag>("hfDigiCollectionTag")); //
3691  tok_qie11_ = consumes<QIE11DigiCollection>(iConfig.getParameter<edm::InputTag>("hbheQIE11DigiCollectionTag"));
3692  tok_qie10_ = consumes<QIE10DigiCollection>(iConfig.getParameter<edm::InputTag>("hbheQIE10DigiCollectionTag"));
3693  // phi-symmetry monitoring for calibration group:
3694  tok_hbheSignal_ = consumes<HBHERecHitCollection>(iConfig.getParameter<edm::InputTag>("hbheInputSignalTag"));
3695  tok_hbheNoise_ = consumes<HBHERecHitCollection>(iConfig.getParameter<edm::InputTag>("hbheInputNoiseTag"));
3696  tok_hfSignal_ = consumes<HFRecHitCollection>(iConfig.getParameter<edm::InputTag>("hfInputSignalTag"));
3697  tok_hfNoise_ = consumes<HFRecHitCollection>(iConfig.getParameter<edm::InputTag>("hfInputNoiseTag"));
3698  recordHistoes_ = iConfig.getUntrackedParameter<bool>("recordHistoes");
3699  studyRunDependenceHist_ = iConfig.getUntrackedParameter<bool>("studyRunDependenceHist");
3700  studyCapIDErrorsHist_ = iConfig.getUntrackedParameter<bool>("studyCapIDErrorsHist");
3701  studyRMSshapeHist_ = iConfig.getUntrackedParameter<bool>("studyRMSshapeHist");
3702  studyRatioShapeHist_ = iConfig.getUntrackedParameter<bool>("studyRatioShapeHist");
3703  studyTSmaxShapeHist_ = iConfig.getUntrackedParameter<bool>("studyTSmaxShapeHist");
3704  studyTSmeanShapeHist_ = iConfig.getUntrackedParameter<bool>("studyTSmeanShapeHist");
3705  studyDiffAmplHist_ = iConfig.getUntrackedParameter<bool>("studyDiffAmplHist");
3706  studyCalibCellsHist_ = iConfig.getUntrackedParameter<bool>("studyCalibCellsHist");
3707  studyADCAmplHist_ = iConfig.getUntrackedParameter<bool>("studyADCAmplHist");
3708  studyPedestalsHist_ = iConfig.getUntrackedParameter<bool>("studyPedestalsHist");
3709  studyPedestalCorrelations_ = iConfig.getUntrackedParameter<bool>("studyPedestalCorrelations");
3710  useADCmassive_ = iConfig.getUntrackedParameter<bool>("useADCmassive");
3711  useADCfC_ = iConfig.getUntrackedParameter<bool>("useADCfC");
3712  useADCcounts_ = iConfig.getUntrackedParameter<bool>("useADCcounts");
3713  usePedestalSubtraction_ = iConfig.getUntrackedParameter<bool>("usePedestalSubtraction");
3714  usecontinuousnumbering_ = iConfig.getUntrackedParameter<bool>("usecontinuousnumbering");
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");
3804  rmsHBMin_ = iConfig.getParameter<double>("rmsHBMin"); //
3805  rmsHBMax_ = iConfig.getParameter<double>("rmsHBMax"); //
3806  rmsHEMin_ = iConfig.getParameter<double>("rmsHEMin"); //
3807  rmsHEMax_ = iConfig.getParameter<double>("rmsHEMax"); //
3808  rmsHFMin_ = iConfig.getParameter<double>("rmsHFMin"); //
3809  rmsHFMax_ = iConfig.getParameter<double>("rmsHFMax"); //
3810  rmsHOMin_ = iConfig.getParameter<double>("rmsHOMin"); //
3811  rmsHOMax_ = iConfig.getParameter<double>("rmsHOMax"); //
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"); //
3868  fOutputFileName = iConfig.getUntrackedParameter<std::string>("HistOutFile");
3869  MAPOutputFileName = iConfig.getUntrackedParameter<std::string>("MAPOutFile");
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"); //
3886  lsmin_ = iConfig.getParameter<int>("lsmin"); //
3887  lsmax_ = iConfig.getParameter<int>("lsmax"); //
3888  alsmin = lsmin_;
3889  blsmax = lsmax_;
3890  nlsminmax = lsmax_ - lsmin_ + 1;
3891  numOfLaserEv = 0;
3892  local_event = 0;
3893  numOfTS = 10;
3894  run0 = -1;
3895  runcounter = 0;
3896  eventcounter = 0;
3897  lumi = 0;
3898  ls0 = -1;
3899  lscounter = 0;
3900  lscounterM1 = 0;
3901  lscounter10 = 0;
3902  nevcounter = 0;
3903  lscounterrun = 0;
3904  lscounterrun10 = 0;
3905  nevcounter0 = 0;
3906  nevcounter00 = 0;
3907  for (int k0 = 0; k0 < nsub; k0++) {
3908  for (int k1 = 0; k1 < ndepth; k1++) {
3909  for (int k2 = 0; k2 < neta; k2++) {
3910  if (k0 == 1) {
3911  mapRADDAM_HED2[k1][k2] = 0.;
3912  mapRADDAM_HED20[k1][k2] = 0.;
3913  }
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.;
3923  if (k0 == 1) {
3924  mapRADDAM_HE[k1][k2][k3] = 0.;
3925  mapRADDAM0_HE[k1][k2][k3] = 0;
3926  }
3927  } //for
3928  } //for
3929  } //for
3930  } //for
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.;
3947  maxxSUM1 = 0.;
3948  maxxSUM2 = 0.;
3949  maxxSUM3 = 0.;
3950  maxxSUM4 = 0.;
3951  maxxOCCUP1 = 0.;
3952  maxxOCCUP2 = 0.;
3953  maxxOCCUP3 = 0.;
3954  maxxOCCUP4 = 0.;
3955  testmetka = 0;
3956 }
3959  iSetup.get<HcalDbRecord>().get(conditions);
3960  iSetup.get<HcalRecNumberingRecord>().get(topo_);
3961  if (MAPcreation > 0) {
3962  topo = &*topo_;
3963  if (flagupgradeqie1011_ == 1)
3964  fillMAP();
3965  MAPcreation = 0;
3966  }
3967  nevent++;
3968  nevent50 = nevent / 50;
3969  Run = iEvent.id().run();
3970  Nevent = iEvent.id().event(); // event number = global_event
3971  lumi = iEvent.luminosityBlock(); // lumi section
3972  bcn = iEvent.bunchCrossing();
3973  orbitNum = iEvent.orbitNumber();
3974  int outabortgap = 1;
3975  if (bcn >= bcnrejectedlow_ && bcn <= bcnrejectedhigh_)
3976  outabortgap = 0; // if(bcn>=3446 && bcn<=3564)
3977 
3978  if ((flagabortgaprejected_ == 1 && outabortgap == 1) || (flagabortgaprejected_ == 0 && outabortgap == 0) ||
3979  flagabortgaprejected_ == 2) {
3980  if (run0 != Run) {
3981  ++runcounter;
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));
3990  lscounterrun = 0;
3991  lscounterrun10 = 0;
3992  } // runcounter > 1
3993  cout << " ---------***********************------------- " << endl;
3994  cout << " New Run = " << Run << " runcounter = " << runcounter << endl;
3995  cout << " ------- " << endl;
3996  run0 = Run;
3997  eventcounter = 0;
3998  ls0 = -1;
3999  } // new run
4000  else {
4001  nevcounter00 = 0;
4002  } //else new run
4003  ++eventcounter;
4004  if (ls0 != lumi) {
4005  if (ls0 != -1) {
4006  h_nevents_per_eachLS->Fill(float(lscounter), float(nevcounter)); //
4007  nevcounter0 = nevcounter;
4008  } // ls0>-1
4009  lscounter++;
4010  lscounterrun++;
4011  if (usecontinuousnumbering_) {
4012  lscounterM1 = lscounter - 1;
4013  } else {
4014  lscounterM1 = ls0;
4015  }
4016  if (ls0 != -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.) {
4020  ++lscounter10;
4021  ++lscounterrun10;
4022  }
4023  h_nevents_per_LS->Fill(float(nevcounter));
4024  h_nevents_per_LSzoom->Fill(float(nevcounter));
4025  nevcounter = 0;
4026  ls0 = lumi;
4027  } // new lumi
4028  else {
4029  nevcounter0 = 0;
4030  } //else new lumi
4031  ++nevcounter; // #ev in LS
4033  if (flagtoaskrunsorls_ == 0) {
4034  lscounterM1 = runcounter;
4035  nevcounter0 = nevcounter00;
4036  }
4037  if (nevcounter0 != 0 || nevcounter > 99999) {
4038  if (nevcounter > 99999)
4039  nevcounter0 = 1;
4043  unsigned long int pcountall1 = 0;
4044  unsigned long int pcountall3 = 0;
4045  unsigned long int pcountall6 = 0;
4046  unsigned long int pcountall8 = 0;
4047  int pcountmin1 = 0;
4048  int pcountmin3 = 0;
4049  int pcountmin6 = 0;
4050  int pcountmin8 = 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;
4055  int mcountmin1 = 0;
4056  int mcountmin3 = 0;
4057  int mcountmin6 = 0;
4058  int mcountmin8 = 0;
4059  int pnnbins1 = 0;
4060  int pnnbins3 = 0;
4061  int pnnbins6 = 0;
4062  int pnnbins8 = 0;
4063  int pnnmin1 = 999999999;
4064  int pnnmin3 = 999999999;
4065  int pnnmin6 = 999999999;
4066  int pnnmin8 = 999999999;
4067  int mnnbins1 = 0;
4068  int mnnbins3 = 0;
4069  int mnnbins6 = 0;
4070  int mnnbins8 = 0;
4071  int mnnmin1 = 999999999;
4072  int mnnmin3 = 999999999;
4073  int mnnmin6 = 999999999;
4074  int mnnmin8 = 999999999;
4075  for (int k0 = 0; k0 < nsub; k0++) {
4076  for (int k1 = 0; k1 < ndepth; k1++) {
4077  for (int k3 = 0; k3 < nphi; k3++) {
4078  for (int k2 = 0; k2 < neta; k2++) {
4079  int ieta = k2 - 41;
4080  // ------------------------------------------------------------sumEstimator0
4081  if (sumEstimator0[k0][k1][k2][k3] != 0.) {
4082  // fill histoes:
4083  double bbbc = 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];
4088  double bbb1 = 1.;
4089  if (flagestimatornormalization_ == 2) {
4090  bbbc = sumEstimator0[k0][k1][k2][k3];
4091  bbb1 = sum0Estimator[k0][k1][k2][k3];
4092  }
4093 
4094  // HB:
4095  if (k0 == 0) {
4096  // HBdepth1
4097  if (k1 + 1 == 1) {
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);
4103  }
4104  if (k1 + 1 == 2) {
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);
4110  }
4111  }
4112  // HE:
4113  if (k0 == 1) {
4114  // HEdepth1
4115  if (k1 + 1 == 1) {
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);
4121  }
4122  if (k1 + 1 == 2) {
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);
4128  }
4129  if (k1 + 1 == 3) {
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);
4135  }
4136  }
4137  // HF:
4138  if (k0 == 3) {
4139  // HFdepth1
4140  if (k1 + 1 == 1) {
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);
4146  }
4147  if (k1 + 1 == 2) {
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);
4153  }
4154  }
4155  // HO:
4156  if (k0 == 2) {
4157  // HOdepth4
4158  if (k1 + 1 == 4) {
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);
4164  }
4165  }
4166  } //if(sumEstimator0[k0][k1][k2][k3] != 0.
4167 
4168  // ---------------------------------------------------------------------------------------------------------------------------sumEstimator1
4169  if (sumEstimator1[k0][k1][k2][k3] != 0.) {
4170  // fill histoes:
4171  double bbbc = 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];
4176  double bbb1 = 1.;
4177  if (flagestimatornormalization_ == 2) {
4178  bbbc = sumEstimator1[k0][k1][k2][k3];
4179  bbb1 = sum0Estimator[k0][k1][k2][k3];
4180  }
4181  //flag for ask type of Normalization for CMT estimators:
4182  //=0-normalizationOn#evOfLS; =1-averagedMeanChannelVariable; =2-averageVariable-normalizationOn#entriesInLS;
4183  //flagestimatornormalization = cms.int32(2), !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4184  // zhokin 18.10.2018 STUDY: CALL HFF2 (ID,NID,X,Y,W)
4185  if (lscounterM1 >= lsmin_ && lscounterM1 < lsmax_) {
4186  // INDEXIES:
4187  int kkkk2 = (k2 - 1) / 4;
4188  if (k2 == 0)
4189  kkkk2 = 1.;
4190  else
4191  kkkk2 += 2; //kkkk2= 1-22
4192  int kkkk3 = (k3) / 4 + 1; //kkkk3= 1-18
4193  // PACKING
4194  //kkkk2= 1-22 ;kkkk3= 1-18
4195  int ietaphi = 0;
4196  ietaphi = ((kkkk2)-1) * znphi + (kkkk3);
4197  // Outout is ietaphi = 1 - 396 ( # =396; in histo,booking is: 1 - 397 )
4198 
4199  double bbb3 = 0.;
4200  if (bbb1 != 0.)
4201  bbb3 = bbbc / bbb1;
4202  // very very wrong if below:
4203  // if(bbb3 != 0.) {
4204 
4205  if (k0 == 0) {
4206  h_2DsumADCAmplEtaPhiLs0->Fill(float(lscounterM1), float(ietaphi), bbbc); //HB
4207  h_2DsumADCAmplEtaPhiLs00->Fill(float(lscounterM1), float(ietaphi), bbb1); //HB
4208  }
4209  if (k0 == 1) {
4210  h_2DsumADCAmplEtaPhiLs1->Fill(float(lscounterM1), float(ietaphi), bbbc); //HE
4211  h_2DsumADCAmplEtaPhiLs10->Fill(float(lscounterM1), float(ietaphi), bbb1); //HE
4212  }
4213  if (k0 == 2) {
4214  h_2DsumADCAmplEtaPhiLs2->Fill(float(lscounterM1), float(ietaphi), bbbc); //HO
4215  h_2DsumADCAmplEtaPhiLs20->Fill(float(lscounterM1), float(ietaphi), bbb1); //HO
4216  }
4217  if (k0 == 3) {
4218  h_2DsumADCAmplEtaPhiLs3->Fill(float(lscounterM1), float(ietaphi), bbbc); //HF
4219  h_2DsumADCAmplEtaPhiLs30->Fill(float(lscounterM1), float(ietaphi), bbb1); //HF
4220  }
4221 
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));
4229 
4230  // }// bb3
4231  } // lscounterM1 >= lsmin_ && lscounterM1 < lsmax_
4232 
4233  // HB:
4234  if (k0 == 0) {
4235  // HBdepth1
4236  if (k1 + 1 == 1) {
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);
4247 
4248  h_2D0sumADCAmplLS1->Fill(double(ieta), double(k3), bbb1);
4249 
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);
4254 
4255  if (ieta > 0) {
4256  if (k3 < 36) {
4257  h_sumADCAmplperLS1_P1->Fill(float(lscounterM1), bbbc);
4258  h_sum0ADCAmplperLS1_P1->Fill(float(lscounterM1), bbb1);
4259  } else {
4260  h_sumADCAmplperLS1_P2->Fill(float(lscounterM1), bbbc);
4261  h_sum0ADCAmplperLS1_P2->Fill(float(lscounterM1), bbb1);
4262  }
4264  if (bbbc / bbb1 > 25.) {
4265  pcountall1 += bbb1;
4266  pcountmin1 += bbb1;
4267  }
4269 
4270  } else {
4271  if (k3 < 36) {
4272  h_sumADCAmplperLS1_M1->Fill(float(lscounterM1), bbbc);
4273  h_sum0ADCAmplperLS1_M1->Fill(float(lscounterM1), bbb1);
4274  } else {
4275  h_sumADCAmplperLS1_M2->Fill(float(lscounterM1), bbbc);
4276  h_sum0ADCAmplperLS1_M2->Fill(float(lscounterM1), bbb1);
4277  }
4279  if (bbbc / bbb1 > 25.) {
4280  mcountall1 += bbb1;
4281  mcountmin1 += bbb1;
4282  }
4284  }
4285  }
4286  // HBdepth2
4287  if (k1 + 1 == 2) {
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);
4298  if (ieta > 0) {
4299  if (k3 < 36) {
4300  h_sumADCAmplperLS1_P1->Fill(float(lscounterM1), bbbc);
4301  h_sum0ADCAmplperLS1_P1->Fill(float(lscounterM1), bbb1);
4302  } else {
4303  h_sumADCAmplperLS1_P2->Fill(float(lscounterM1), bbbc);
4304  h_sum0ADCAmplperLS1_P2->Fill(float(lscounterM1), bbb1);
4305  }
4306  } else {
4307  if (k3 < 36) {
4308  h_sumADCAmplperLS1_M1->Fill(float(lscounterM1), bbbc);
4309  h_sum0ADCAmplperLS1_M1->Fill(float(lscounterM1), bbb1);
4310  } else {
4311  h_sumADCAmplperLS1_M2->Fill(float(lscounterM1), bbbc);
4312  h_sum0ADCAmplperLS1_M2->Fill(float(lscounterM1), bbb1);
4313  }
4314  }
4315  }
4316  // HBdepth3 upgrade
4317  if (k1 + 1 == 3) {
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);
4322 
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);
4326  } //if(k1+1 ==3)
4327 
4328  // HBdepth4 upgrade
4329  if (k1 + 1 == 4) {
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);
4334 
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);
4338  } //if(k1+1 ==4)
4339  }
4340 
4341  // HE:
4342  if (k0 == 1) {
4343  // HEdepth1
4344  if (k1 + 1 == 1) {
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);
4355  if (ieta > 0) {
4356  if (k3 < 36) {
4357  h_sumADCAmplperLS3_P1->Fill(float(lscounterM1), bbbc);
4358  h_sum0ADCAmplperLS3_P1->Fill(float(lscounterM1), bbb1);
4359  } else {
4360  h_sumADCAmplperLS3_P2->Fill(float(lscounterM1), bbbc);
4361  h_sum0ADCAmplperLS3_P2->Fill(float(lscounterM1), bbb1);
4362  }
4364  if (bbbc / bbb1 > 15. && k3 % 2 == 0) {
4365  pcountall3 += bbb1;
4366  pcountmin3 += bbb1;
4367  }
4369  } else {
4370  if (k3 < 36) {
4371  h_sumADCAmplperLS3_M1->Fill(float(lscounterM1), bbbc);
4372  h_sum0ADCAmplperLS3_M1->Fill(float(lscounterM1), bbb1);
4373  } else {
4374  h_sumADCAmplperLS3_M2->Fill(float(lscounterM1), bbbc);
4375  h_sum0ADCAmplperLS3_M2->Fill(float(lscounterM1), bbb1);
4376  }
4378  if (bbbc / bbb1 > 15. && k3 % 2 == 0) {
4379  mcountall3 += bbb1;
4380  mcountmin3 += bbb1;
4381  }
4383  }
4384  }
4385  // HEdepth2
4386  if (k1 + 1 == 2) {
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);
4397  if (ieta > 0) {
4398  if (k3 < 36) {
4399  h_sumADCAmplperLS3_P1->Fill(float(lscounterM1), bbbc);
4400  h_sum0ADCAmplperLS3_P1->Fill(float(lscounterM1), bbb1);
4401  } else {
4402  h_sumADCAmplperLS3_P2->Fill(float(lscounterM1), bbbc);
4403  h_sum0ADCAmplperLS3_P2->Fill(float(lscounterM1), bbb1);
4404  }
4405  } else {
4406  if (k3 < 36) {
4407  h_sumADCAmplperLS3_M1->Fill(float(lscounterM1), bbbc);
4408  h_sum0ADCAmplperLS3_M1->Fill(float(lscounterM1), bbb1);
4409  } else {
4410  h_sumADCAmplperLS3_M2->Fill(float(lscounterM1), bbbc);
4411  h_sum0ADCAmplperLS3_M2->Fill(float(lscounterM1), bbb1);
4412  }
4413  }
4414  }
4415  // HEdepth3
4416  if (k1 + 1 == 3) {
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);
4427  if (ieta > 0) {
4428  if (k3 < 36) {
4429  h_sumADCAmplperLS3_P1->Fill(float(lscounterM1), bbbc);
4430  h_sum0ADCAmplperLS3_P1->Fill(float(lscounterM1), bbb1);
4431  } else {
4432  h_sumADCAmplperLS3_P2->Fill(float(lscounterM1), bbbc);
4433  h_sum0ADCAmplperLS3_P2->Fill(float(lscounterM1), bbb1);
4434  }
4435  } else {
4436  if (k3 < 36) {
4437  h_sumADCAmplperLS3_M1->Fill(float(lscounterM1), bbbc);
4438  h_sum0ADCAmplperLS3_M1->Fill(float(lscounterM1), bbb1);
4439  } else {
4440  h_sumADCAmplperLS3_M2->Fill(float(lscounterM1), bbbc);
4441  h_sum0ADCAmplperLS3_M2->Fill(float(lscounterM1), bbb1);
4442  }
4443  }
4444  } //if(k1+1 ==3
4445  // HEdepth4 upgrade
4446  if (k1 + 1 == 4) {
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);
4451 
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);
4455  } //if(k1+1 ==4)
4456 
4457  // HEdepth5 upgrade
4458  if (k1 + 1 == 5) {
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);
4463 
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);
4467  } //if(k1+1 ==5)
4468 
4469  // HEdepth6 upgrade
4470  if (k1 + 1 == 6) {
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);
4475 
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);
4479  } //if(k1+1 ==6)
4480 
4481  // HEdepth7 upgrade
4482  if (k1 + 1 == 7) {
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);
4487 
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);
4491  } //if(k1+1 ==7)
4492  } //if(k0==1) =HE
4493  // HF:
4494  if (k0 == 3) {
4495  // HFdepth1
4496  if (k1 + 1 == 1) {
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);
4507 
4509  if (ieta > 0) {
4510  if (k3 < 36) {
4511  h_sumADCAmplperLS6_P1->Fill(float(lscounterM1), bbbc);
4512  h_sum0ADCAmplperLS6_P1->Fill(float(lscounterM1), bbb1);
4513  } else {
4514  h_sumADCAmplperLS6_P2->Fill(float(lscounterM1), bbbc);
4515  h_sum0ADCAmplperLS6_P2->Fill(float(lscounterM1), bbb1);
4516  }
4518  if (bbbc / bbb1 > 20.) {
4519  pcountall6 += bbb1;
4520  pcountmin6 += bbb1;
4521  }
4523 
4524  } else {
4525  if (k3 < 36) {
4526  h_sumADCAmplperLS6_M1->Fill(float(lscounterM1), bbbc);
4527  h_sum0ADCAmplperLS6_M1->Fill(float(lscounterM1), bbb1);
4528  } else {
4529  h_sumADCAmplperLS6_M2->Fill(float(lscounterM1), bbbc);
4530  h_sum0ADCAmplperLS6_M2->Fill(float(lscounterM1), bbb1);
4531  }
4533  if (bbbc / bbb1 > 20.) {
4534  mcountall6 += bbb1;
4535  mcountmin6 += bbb1;
4536  }
4538  }
4540  } //if(k1+1 ==1)
4541 
4542  // HFdepth2
4543  if (k1 + 1 == 2) {
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);
4554 
4555  if (ieta > 0) {
4556  if (k3 < 36) {
4557  h_sumADCAmplperLS6_P1->Fill(float(lscounterM1), bbbc);
4558  h_sum0ADCAmplperLS6_P1->Fill(float(lscounterM1), bbb1);
4559  } else {
4560  h_sumADCAmplperLS6_P2->Fill(float(lscounterM1), bbbc);
4561  h_sum0ADCAmplperLS6_P2->Fill(float(lscounterM1), bbb1);
4562  }
4563  } else {
4564  if (k3 < 36) {
4565  h_sumADCAmplperLS6_M1->Fill(float(lscounterM1), bbbc);
4566  h_sum0ADCAmplperLS6_M1->Fill(float(lscounterM1), bbb1);
4567  } else {
4568  h_sumADCAmplperLS6_M2->Fill(float(lscounterM1), bbbc);
4569  h_sum0ADCAmplperLS6_M2->Fill(float(lscounterM1), bbb1);
4570  }
4571  }
4572  } //if(k1+1 ==2)
4573 
4574  // HFdepth3 upgrade
4575  if (k1 + 1 == 3) {
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);
4580 
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);
4584  } //if(k1+1 ==3)
4585 
4586  // HFdepth4 upgrade
4587  if (k1 + 1 == 4) {
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);
4592 
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);
4596  } //if(k1+1 ==4)
4597 
4598  } //end HF
4599 
4600  // HO:
4601  if (k0 == 2) {
4602  // HOdepth4
4603  if (k1 + 1 == 4) {
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);
4614 
4616  if (ieta > 0) {
4617  if (k3 < 36) {
4618  h_sumADCAmplperLS8_P1->Fill(float(lscounterM1), bbbc);
4619  h_sum0ADCAmplperLS8_P1->Fill(float(lscounterM1), bbb1);
4620  } else {
4621  h_sumADCAmplperLS8_P2->Fill(float(lscounterM1), bbbc);
4622  h_sum0ADCAmplperLS8_P2->Fill(float(lscounterM1), bbb1);
4623  }
4625  if (bbbc / bbb1 > 80.) {
4626  pcountall8 += bbb1;
4627  pcountmin8 += bbb1;
4628  }
4630 
4631  } else {
4632  if (k3 < 36) {
4633  h_sumADCAmplperLS8_M1->Fill(float(lscounterM1), bbbc);
4634  h_sum0ADCAmplperLS8_M1->Fill(float(lscounterM1), bbb1);
4635  } else {
4636  h_sumADCAmplperLS8_M2->Fill(float(lscounterM1), bbbc);
4637  h_sum0ADCAmplperLS8_M2->Fill(float(lscounterM1), bbb1);
4638  }
4640  if (bbbc / bbb1 > 80.) {
4641  mcountall8 += bbb1;
4642  mcountmin8 += bbb1;
4643  }
4645  }
4647  }
4648  }
4649  } //if(sumEstimator1[k0][k1][k2][k3] != 0.
4650  // ------------------------------------------------------------------------------------------------------------------------sumEstimator2
4651  if (sumEstimator2[k0][k1][k2][k3] != 0.) {
4652  // fill histoes:
4653  double bbbc = 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];
4658  double bbb1 = 1.;
4659  if (flagestimatornormalization_ == 2) {
4660  bbbc = sumEstimator2[k0][k1][k2][k3];
4661  bbb1 = sum0Estimator[k0][k1][k2][k3];
4662  }
4663 
4664  // HB:
4665  if (k0 == 0) {
4666  // HBdepth1
4667  if (k1 + 1 == 1) {
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);
4678  }
4679  if (k1 + 1 == 2) {
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);
4688  }
4689  }
4690  // HE:
4691  if (k0 == 1) {
4692  // HBdepth1
4693  if (k1 + 1 == 1) {
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);
4702  }
4703  if (k1 + 1 == 2) {
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);
4712  }
4713  if (k1 + 1 == 3) {
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);
4722  }
4723  }
4724  // HF:
4725  if (k0 == 3) {
4726  // HBdepth1
4727  if (k1 + 1 == 1) {
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);
4736  }
4737  if (k1 + 1 == 2) {
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);
4746  }
4747  }
4748  // HO:
4749  if (k0 == 2) {
4750  // HBdepth1
4751  if (k1 + 1 == 4) {
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);
4760  }
4761  }
4762  } //if(sumEstimator2[k0][k1][k2][k3] != 0.
4763 
4764  // ------------------------------------------------------------------------------------------------------------------------sumEstimator3
4765  if (sumEstimator3[k0][k1][k2][k3] != 0.) {
4766  // fill histoes:
4767  double bbbc = 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];
4772  double bbb1 = 1.;
4773  if (flagestimatornormalization_ == 2) {
4774  bbbc = sumEstimator3[k0][k1][k2][k3];
4775  bbb1 = sum0Estimator[k0][k1][k2][k3];
4776  }
4777 
4778  // HB:
4779  if (k0 == 0) {
4780  // HBdepth1
4781  if (k1 + 1 == 1) {
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);
4792  }
4793  if (k1 + 1 == 2) {
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);
4802  }
4803  }
4804  // HE:
4805  if (k0 == 1) {
4806  // HBdepth1
4807  if (k1 + 1 == 1) {
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);
4816  }
4817  if (k1 + 1 == 2) {
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);
4826  }
4827  if (k1 + 1 == 3) {
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);
4836  }
4837  }
4838  // HF:
4839  if (k0 == 3) {
4840  // HBdepth1
4841  if (k1 + 1 == 1) {
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);
4850  }
4851  if (k1 + 1 == 2) {
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);
4860  }
4861  }
4862  // HO:
4863  if (k0 == 2) {
4864  // HBdepth1
4865  if (k1 + 1 == 4) {
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);
4874  }
4875  }
4876  } //if(sumEstimator3[k0][k1][k2][k3] != 0.
4877 
4878  // ------------------------------------------------------------------------------------------------------------------------sumEstimator4
4879  if (sumEstimator4[k0][k1][k2][k3] != 0.) {
4880  // fill histoes:
4881  double bbbc = 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];
4886  double bbb1 = 1.;
4887  if (flagestimatornormalization_ == 2) {
4888  bbbc = sumEstimator4[k0][k1][k2][k3];
4889  bbb1 = sum0Estimator[k0][k1][k2][k3];
4890  }
4891 
4892  // HB:
4893  if (k0 == 0) {
4894  // HBdepth1
4895  if (k1 + 1 == 1) {
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);
4906  }
4907  if (k1 + 1 == 2) {
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);
4916  }
4917  }
4918  // HE:
4919  if (k0 == 1) {
4920  // HBdepth1
4921  if (k1 + 1 == 1) {
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);
4930  }
4931  if (k1 + 1 == 2) {
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);
4940  }
4941  if (k1 + 1 == 3) {
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);
4950  }
4951  }
4952  // HF:
4953  if (k0 == 3) {
4954  // HBdepth1
4955  if (k1 + 1 == 1) {
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);
4964  }
4965  if (k1 + 1 == 2) {
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);
4974  }
4975  }
4976  // HO:
4977  if (k0 == 2) {
4978  // HBdepth1
4979  if (k1 + 1 == 4) {
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);
4988  }
4989  }
4990  } //if(sumEstimator4[k0][k1][k2][k3] != 0.
4991  // ------------------------------------------------------------------------------------------------------------------------sumEstimator5
4992  if (sumEstimator5[k0][k1][k2][k3] != 0.) {
4993  // fill histoes:
4994  double bbbc = 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];
4999  double bbb1 = 1.;
5000  if (flagestimatornormalization_ == 2) {
5001  bbbc = sumEstimator5[k0][k1][k2][k3];
5002  bbb1 = sum0Estimator[k0][k1][k2][k3];
5003  }
5004 
5005  // HB:
5006  if (k0 == 0) {
5007  // HBdepth1
5008  if (k1 + 1 == 1) {
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);
5019  }
5020  if (k1 + 1 == 2) {
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);
5029  }
5030  }
5031  // HE:
5032  if (k0 == 1) {
5033  // HEdepth1
5034  if (k1 + 1 == 1) {
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);
5043  }
5044  if (k1 + 1 == 2) {
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);
5053  }
5054  if (k1 + 1 == 3) {
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);
5063  }
5064  }
5065  // HF:
5066  if (k0 == 3) {
5067  // HFdepth1
5068  if (k1 + 1 == 1) {
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);
5077  }
5078  if (k1 + 1 == 2) {
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);
5087  }
5088  }
5089  // HO:
5090  if (k0 == 2) {
5091  // HOdepth4
5092  if (k1 + 1 == 4) {
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);
5101  }
5102  }
5103  } //if(sumEstimator5[k0][k1][k2][k3] != 0.
5104  // ------------------------------------------------------------------------------------------------------------------------sumEstimator6 (Error-B)
5105  if (sumEstimator6[k0][k1][k2][k3] != 0.) {
5106  // fill histoes:
5107  double bbbc = 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];
5112  double bbb1 = 1.;
5113  if (flagestimatornormalization_ == 2) {
5114  bbbc = sumEstimator6[k0][k1][k2][k3];
5115  bbb1 = sum0Estimator[k0][k1][k2][k3];
5116  }
5117 
5118  // HB:
5119  if (k0 == 0) {
5120  // HBdepth1
5121  if (k1 + 1 == 1) {
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);
5127  }
5128  if (k1 + 1 == 2) {
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);
5134  }
5135  }
5136  // HE:
5137  if (k0 == 1) {
5138  // HEdepth1
5139  if (k1 + 1 == 1) {
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);
5145  }
5146  if (k1 + 1 == 2) {
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);
5152  }
5153  if (k1 + 1 == 3) {
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);
5159  }
5160  }
5161  // HF:
5162  if (k0 == 3) {
5163  // HFdepth1
5164  if (k1 + 1 == 1) {
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);
5170  }
5171  if (k1 + 1 == 2) {
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);
5177  }
5178  }
5179  // HO:
5180  if (k0 == 2) {
5181  // HOdepth4
5182  if (k1 + 1 == 4) {
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);
5188  }
5189  }
5191  } //if(sumEstimator6[k0][k1][k2][k3] != 0.
5192  } //for k2
5193  // occupancy distributions for error-A:
5194  // HB
5195  if (k0 == 0 && k1 == 0) {
5196  if (pcountmin1 > 0) {
5197  if (pcountmin1 < pnnmin1)
5198  pnnmin1 = pcountmin1;
5199  pcountmin1 = 0;
5200  pnnbins1++;
5201  }
5202  if (mcountmin1 > 0) {
5203  if (mcountmin1 < mnnmin1)
5204  mnnmin1 = mcountmin1;
5205  mcountmin1 = 0;
5206  mnnbins1++;
5207  }
5208  } //
5209  // HE
5210  if (k0 == 1 && k1 == 0) {
5211  if (pcountmin3 > 0) {
5212  if (pcountmin3 < pnnmin3)
5213  pnnmin3 = pcountmin3;
5214  pcountmin3 = 0;
5215  pnnbins3++;
5216  }
5217  if (mcountmin3 > 0) {
5218  if (mcountmin3 < mnnmin3)
5219  mnnmin3 = mcountmin3;
5220  mcountmin3 = 0;
5221  mnnbins3++;
5222  }
5223  } //
5224  // HO
5225  if (k0 == 2 && k1 == 3) {
5226  if (pcountmin8 > 0) {
5227  if (pcountmin8 < pnnmin8)
5228  pnnmin8 = pcountmin8;
5229  pcountmin8 = 0;
5230  pnnbins8++;
5231  }
5232  if (mcountmin8 > 0) {
5233  if (mcountmin8 < mnnmin8)
5234  mnnmin8 = mcountmin8;
5235  mcountmin8 = 0;
5236  mnnbins8++;
5237  }
5238  } //
5239  // HF
5240  if (k0 == 3 && k1 == 0) {
5241  if (pcountmin6 > 0) {
5242  if (pcountmin6 < pnnmin6)
5243  pnnmin6 = pcountmin6;
5244  pcountmin6 = 0;
5245  pnnbins6++;
5246  }
5247  if (mcountmin6 > 0) {
5248  if (mcountmin6 < mnnmin6)
5249  mnnmin6 = mcountmin6;
5250  mcountmin6 = 0;
5251  mnnbins6++;
5252  }
5253  } //
5254 
5255  } //for k3
5256  } //for k1
5257  } //for k0
5261 
5262  // cout<<"=============================== lscounterM1 = "<< (float)lscounterM1 <<endl;
5263 
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);
5272 
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);
5281 
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);
5290 
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);
5299 
5300  for (int k0 = 0; k0 < nsub; k0++) {
5301  for (int k1 = 0; k1 < ndepth; k1++) {
5302  for (int k2 = 0; k2 < neta; k2++) {
5303  for (int k3 = 0; k3 < nphi; k3++) {
5304  // reset massives:
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.;
5313  } //for
5314  } //for
5315  } //for
5316  } //for
5317 
5318  //------------------------------------------------------ averSIGNAL
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);
5327 
5328  averSIGNALoccupancy_HB = 0.;
5329  averSIGNALoccupancy_HE = 0.;
5330  averSIGNALoccupancy_HF = 0.;
5331  averSIGNALoccupancy_HO = 0.;
5332 
5333  //------------------------------------------------------
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);
5342 
5343  averSIGNALsumamplitude_HB = 0.;
5344  averSIGNALsumamplitude_HE = 0.;
5345  averSIGNALsumamplitude_HF = 0.;
5346  averSIGNALsumamplitude_HO = 0.;
5347 
5348  //------------------------------------------------------ averNOSIGNAL
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);
5357 
5358  averNOSIGNALoccupancy_HB = 0.;
5359  averNOSIGNALoccupancy_HE = 0.;
5360  averNOSIGNALoccupancy_HF = 0.;
5361  averNOSIGNALoccupancy_HO = 0.;
5362 
5363  //------------------------------------------------------
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);
5372 
5373  averNOSIGNALsumamplitude_HB = 0.;
5374  averNOSIGNALsumamplitude_HE = 0.;
5375  averNOSIGNALsumamplitude_HF = 0.;
5376  averNOSIGNALsumamplitude_HO = 0.;
5377 
5378  //------------------------------------------------------ maxxSA and maxxOccupancy
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);
5383  maxxSUM1 = 0.;
5384  maxxSUM2 = 0.;
5385  maxxSUM3 = 0.;
5386  maxxSUM4 = 0.;
5387  //------------------------------------------------------
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);
5392  maxxOCCUP1 = 0.;
5393  maxxOCCUP2 = 0.;
5394  maxxOCCUP3 = 0.;
5395  maxxOCCUP4 = 0.;
5396 
5397  //------------------------------------------------------
5398  } //if(nevcounter0 != 0)
5399  // POINT1
5400 
5402  // for upgrade:
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.;
5416  }
5417  if (studyRunDependenceHist_) {
5418  for (int k0 = 0; k0 < nsub; k0++) {
5419  badchannels[k0][k1][k2][k3] = 0;
5420  } //for
5421  } //if
5422 
5423  } //for
5424  } //for
5425  } //for
5426  for (int k0 = 0; k0 < nsub; k0++) {
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.;
5433 
5434  tocamplchannel[k0][k1][k2][k3] = 0.;
5435  maprphinorm[k0][k1][k2][k3] = 0.;
5436  // phi-symmetry monitoring for calibration group:
5437  // rec energy:
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.;
5444 
5445  } //k3
5446  } //k2
5447  } //k1
5448  } //k0
5454  if (flagupgradeqie1011_ != 2 && flagupgradeqie1011_ != 3 && flagupgradeqie1011_ != 6 && flagupgradeqie1011_ != 7 &&
5455  flagupgradeqie1011_ != 8) {
5457  iEvent.getByToken(tok_hf_, hf);
5458  bool gotHFDigis = true;
5459  if (!(iEvent.getByToken(tok_hf_, hf))) {
5460  gotHFDigis = false;
5461  } //this is a boolean set up to check if there are HFdigis in input root file
5462  if (!(hf.isValid())) {
5463  gotHFDigis = false;
5464  } //if it is not there, leave it false
5465  if (!gotHFDigis) {
5466  cout << " ****************************** =========================== No HFDigiCollection found " << endl;
5467  } else {
5469  for (HFDigiCollection::const_iterator digi = hf->begin(); digi != hf->end(); digi++) {
5470  eta = digi->id().ieta();
5471  phi = digi->id().iphi();
5472  depth = digi->id().depth();
5473  nTS = digi->size();
5475  counterhf++;
5477  if (recordHistoes_ && studyCapIDErrorsHist_)
5478  fillDigiErrorsHF(digi);
5480  if (recordHistoes_)
5481  fillDigiAmplitudeHF(digi);
5483  if (recordHistoes_ && studyCalibCellsHist_) {
5484  int iphi = phi - 1;
5485  int ieta = eta;
5486  if (ieta > 0)
5487  ieta -= 1;
5488  if (nTS <= numOfTS)
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];
5492  if (i > 1 && i < 6)
5493  signal3[3][ieta + 41][iphi] += TS_data[i];
5494  } // TS
5495  } // if(recordHistoes_ && studyCalibCellsHist_)
5496  } // for
5497  } // hf.isValid
5498  } // end flagupgrade
5499 
5502  // upgrade:
5503  if (flagupgradeqie1011_ != 1) {
5505  iEvent.getByToken(tok_qie10_, hfqie10);
5506  const QIE10DigiCollection& qie10dc =
5507  *(hfqie10);
5508  bool gotQIE10Digis = true;
5509  if (!(iEvent.getByToken(tok_qie10_, hfqie10))) {
5510  gotQIE10Digis = false;
5511  } //this is a boolean set up to check if there are HFdigis in input root file
5512  if (!(hfqie10.isValid())) {
5513  gotQIE10Digis = false;
5514  } //if it is not there, leave it false
5515  if (!gotQIE10Digis) {
5516  cout << " No QIE10DigiCollection collection is found " << endl;
5517  } else {
5519  double totalAmplitudeHF = 0.;
5520  for (unsigned int j = 0; j < qie10dc.size(); j++) {
5521  QIE10DataFrame qie10df = static_cast<QIE10DataFrame>(qie10dc[j]);
5522  DetId detid = qie10df.detid();
5523  HcalDetId hcaldetid = HcalDetId(detid);
5524  int eta = hcaldetid.ieta();
5525  int phi = hcaldetid.iphi();
5526  // int depth = hcaldetid.depth();
5527  // loop over the samples in the digi
5528  nTS = qie10df.samples();
5530  counterhfqie10++;
5532  if (recordHistoes_ && studyCapIDErrorsHist_)
5533  fillDigiErrorsHFQIE10(qie10df);
5535  if (recordHistoes_)
5536  fillDigiAmplitudeHFQIE10(qie10df);
5538  // if(recordHistoes_ ) {
5539  if (recordHistoes_ && studyCalibCellsHist_) {
5540  int iphi = phi - 1;
5541  int ieta = eta;
5542  if (ieta > 0)
5543  ieta -= 1;
5544  double amplitudefullTSs = 0.;
5545  double nnnnnnTS = 0.;
5546  for (int i = 0; i < nTS; ++i) {
5547  // j - QIE channel
5548  // i - time sample (TS)
5549  int adc = qie10df[i].adc();
5550  // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5551  // float charge = adc2fC_QIE10[ adc ];
5552  TS_data[i] = adc2fC_QIE10[adc];
5553  signal[3][ieta + 41][iphi] += TS_data[i];
5554  totalAmplitudeHF += TS_data[i];
5555  amplitudefullTSs += TS_data[i];
5556  nnnnnnTS++;
5557  if (i > 1 && i < 6)
5558  signal3[3][ieta + 41][iphi] += TS_data[i];
5559 
5560  } // TS
5561  h_numberofhitsHFtest->Fill(nnnnnnTS);
5562  h_AmplitudeHFtest->Fill(amplitudefullTSs);
5563  } // if(recordHistoes_ && studyCalibCellsHist_)
5564  } // for
5565  h_totalAmplitudeHF->Fill(totalAmplitudeHF);
5566  h_totalAmplitudeHFperEvent->Fill(float(eventcounter), totalAmplitudeHF);
5567  } // hfqie10.isValid
5568  } // end flagupgrade
5569  //end upgrade
5570  //
5571  //
5573  int qwert1 = 0;
5574  int qwert2 = 0;
5575  int qwert3 = 0;
5576  int qwert4 = 0;
5577  int qwert5 = 0;
5578  if (flagupgradeqie1011_ != 2 && flagupgradeqie1011_ != 3) {
5580  iEvent.getByToken(tok_hbhe_, hbhe);
5581  bool gotHBHEDigis = true;
5582  if (!(iEvent.getByToken(tok_hbhe_, hbhe)))
5583  gotHBHEDigis = false; //this is a boolean set up to check if there are HBHEgigis in input root file
5584  if (!(hbhe.isValid()))
5585  gotHBHEDigis = false; //if it is not there, leave it false
5586  if (!gotHBHEDigis) {
5587  cout << " No HBHEDigiCollection collection is found " << endl;
5588  } else {
5589  // unsigned int NHBHEDigiCollectionsize = hbhe->size();
5590  double totalAmplitudeHB = 0.;
5591  double totalAmplitudeHE = 0.;
5592  double nnnnnnTSHB = 0.;
5593  double nnnnnnTSHE = 0.;
5594 
5595  for (HBHEDigiCollection::const_iterator digi = hbhe->begin(); digi != hbhe->end(); digi++) {
5596  eta = digi->id().ieta();
5597  phi = digi->id().iphi();
5598  depth = digi->id().depth();
5599  nTS = digi->size();
5601  nnnnnnhbhe++;
5602  nnnnnn++;
5604  if (digi->id().subdet() == HcalBarrel && depth == 1 && qwert1 == 0) {
5605  nnnnnn1++;
5606  qwert1 = 1;
5607  }
5608  if (digi->id().subdet() == HcalBarrel && depth == 2 && qwert2 == 0) {
5609  nnnnnn2++;
5610  qwert2 = 1;
5611  }
5612  if (digi->id().subdet() == HcalEndcap && depth == 1 && qwert3 == 0) {
5613  nnnnnn3++;
5614  qwert3 = 1;
5615  }
5616  if (digi->id().subdet() == HcalEndcap && depth == 2 && qwert4 == 0) {
5617  nnnnnn4++;
5618  qwert4 = 1;
5619  }
5620  if (digi->id().subdet() == HcalEndcap && depth == 3 && qwert5 == 0) {
5621  nnnnnn5++;
5622  qwert5 = 1;
5623  }
5625  if (recordHistoes_ && studyCapIDErrorsHist_)
5626  fillDigiErrors(digi);
5628  if (recordHistoes_)
5629  fillDigiAmplitude(digi);
5630 
5631  if (recordHistoes_ && studyCalibCellsHist_) {
5632  int iphi = phi - 1;
5633  int ieta = eta;
5634  if (ieta > 0)
5635  ieta -= 1;
5637  if (digi->id().subdet() == HcalBarrel) {
5638  double amplitudefullTSs = 0.;
5639  nnnnnnTSHB++;
5640  if (nTS <= numOfTS)
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];
5646  if (i > 1 && i < 6)
5647  signal3[0][ieta + 41][iphi] += TS_data[i];
5648  }
5649  h_AmplitudeHBtest->Fill(amplitudefullTSs);
5650  } // HB
5652  if (digi->id().subdet() == HcalEndcap) {
5653  double amplitudefullTSs = 0.;
5654  nnnnnnTSHE++;
5655  if (nTS <= numOfTS)
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];
5661  if (i > 1 && i < 6)
5662  signal3[1][ieta + 41][iphi] += TS_data[i];
5663  }
5664  h_AmplitudeHEtest->Fill(amplitudefullTSs);
5665  } // HE
5666 
5667  } //if(recordHistoes_ && studyCalibCellsHist_)
5668  if (recordNtuples_ && nevent50 < maxNeventsInNtuple_) {
5669  } //if(recordNtuples_)
5670  } // for HBHE digis
5671  if (totalAmplitudeHB != 0.) {
5672  h_numberofhitsHBtest->Fill(nnnnnnTSHB);
5673  h_totalAmplitudeHB->Fill(totalAmplitudeHB);
5674  h_totalAmplitudeHBperEvent->Fill(float(eventcounter), totalAmplitudeHB);
5675  }
5676  if (totalAmplitudeHE != 0.) {
5677  h_numberofhitsHEtest->Fill(nnnnnnTSHE);
5678  h_totalAmplitudeHE->Fill(totalAmplitudeHE);
5679  h_totalAmplitudeHEperEvent->Fill(float(eventcounter), totalAmplitudeHE);
5680  }
5681  } //hbhe.isValid
5682  } // end flagupgrade
5683  //---------------------------------------------------------------
5685  // upgrade:
5686  if (flagupgradeqie1011_ != 1 && flagupgradeqie1011_ != 4 && flagupgradeqie1011_ != 5 && flagupgradeqie1011_ != 10) {
5688  iEvent.getByToken(tok_qie11_, heqie11);
5689  const QIE11DigiCollection& qie11dc =
5690  *(heqie11);
5691  bool gotQIE11Digis = true;
5692  if (!(iEvent.getByToken(tok_qie11_, heqie11)))
5693  gotQIE11Digis = false; //this is a boolean set up to check if there are QIE11gigis in input root file
5694  if (!(heqie11.isValid()))
5695  gotQIE11Digis = false; //if it is not there, leave it false
5696  if (!gotQIE11Digis) {
5697  cout << " No QIE11DigiCollection collection is found " << endl;
5698  } else {
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++) {
5705  QIE11DataFrame qie11df = static_cast<QIE11DataFrame>(qie11dc[j]);
5706  DetId detid = qie11df.detid();
5707  HcalDetId hcaldetid = HcalDetId(detid);
5708  int eta = hcaldetid.ieta();
5709  int phi = hcaldetid.iphi();
5710  int depth = hcaldetid.depth();
5711  if (depth == 0)
5712  return;
5713  int sub = hcaldetid.subdet(); // 1-HB, 2-HE (HFDigiCollection: 4-HF)
5714  // loop over the samples in the digi
5715  nTS = qie11df.samples();
5717  nnnnnnhbheqie11++;
5718  nnnnnn++;
5719  if (recordHistoes_ && studyCapIDErrorsHist_)
5720  fillDigiErrorsQIE11(qie11df);
5722  if (recordHistoes_)
5723  fillDigiAmplitudeQIE11(qie11df);
5726  if (sub == 1 && depth == 1 && qwert1 == 0) {
5727  nnnnnn1++;
5728  qwert1 = 1;
5729  }
5730  if (sub == 1 && depth == 2 && qwert2 == 0) {
5731  nnnnnn2++;
5732  qwert2 = 1;
5733  }
5734  if (sub == 2 && depth == 1 && qwert3 == 0) {
5735  nnnnnn3++;
5736  qwert3 = 1;
5737  }
5738  if (sub == 2 && depth == 2 && qwert4 == 0) {
5739  nnnnnn4++;
5740  qwert4 = 1;
5741  }
5742  if (sub == 2 && depth == 3 && qwert5 == 0) {
5743  nnnnnn5++;
5744  qwert5 = 1;
5745  }
5746 
5747  if (recordHistoes_ && studyCalibCellsHist_) {
5748  int iphi = phi - 1;
5749  int ieta = eta;
5750  if (ieta > 0)
5751  ieta -= 1;
5752  // HB:
5753  if (sub == 1) {
5754  double amplitudefullTSs1 = 0.;
5755  double amplitudefullTSs6 = 0.;
5756  nnnnnnTSHBQIE11++;
5757  for (int i = 0; i < nTS; ++i) {
5758  int adc = qie11df[i].adc();
5759  double charge1 = adc2fC_QIE11_shunt1[adc];
5760  double charge6 = adc2fC_QIE11_shunt6[adc];
5761  amplitudefullTSs1 += charge1;
5762  amplitudefullTSs6 += charge6;
5763  double charge = charge6;
5764  TS_data[i] = charge;
5765  signal[0][ieta + 41][iphi] += charge;
5766  if (i > 1 && i < 6)
5767  signal3[0][ieta + 41][iphi] += charge;
5768  totalAmplitudeHBQIE11 += charge;
5769  } //for
5770  h_AmplitudeHBtest1->Fill(amplitudefullTSs1, 1.);
5771  h_AmplitudeHBtest6->Fill(amplitudefullTSs6, 1.);
5772  } //HB end
5773  // HE:
5774  if (sub == 2) {
5775  double amplitudefullTSs1 = 0.;
5776  double amplitudefullTSs6 = 0.;
5777  nnnnnnTSHEQIE11++;
5778  for (int i = 0; i < nTS; i++) {
5779  int adc = qie11df[i].adc();
5780  double charge1 = adc2fC_QIE11_shunt1[adc];
5781  double charge6 = adc2fC_QIE11_shunt6[adc];
5782  amplitudefullTSs1 += charge1;
5783  amplitudefullTSs6 += charge6;
5784  double charge = charge6;
5785  TS_data[i] = charge;
5786  signal[1][ieta + 41][iphi] += charge;
5787  if (i > 1 && i < 6)
5788  signal3[1][ieta + 41][iphi] += charge;
5789  totalAmplitudeHEQIE11 += charge;
5790  } //for
5791  h_AmplitudeHEtest1->Fill(amplitudefullTSs1, 1.);
5792  h_AmplitudeHEtest6->Fill(amplitudefullTSs6, 1.);
5793 
5794  } //HE end
5795  } //if(recordHistoes_ && studyCalibCellsHist_)
5796  } // for QIE11 digis
5797 
5798  if (totalAmplitudeHBQIE11 != 0.) {
5799  h_numberofhitsHBtest->Fill(nnnnnnTSHBQIE11);
5800  h_totalAmplitudeHB->Fill(totalAmplitudeHBQIE11);
5801  h_totalAmplitudeHBperEvent->Fill(float(eventcounter), totalAmplitudeHBQIE11);
5802  }
5803  if (totalAmplitudeHEQIE11 != 0.) {
5804  h_numberofhitsHEtest->Fill(nnnnnnTSHEQIE11);
5805  h_totalAmplitudeHE->Fill(totalAmplitudeHEQIE11);
5806  h_totalAmplitudeHEperEvent->Fill(float(eventcounter), totalAmplitudeHEQIE11);
5807  }
5808  } //heqie11.isValid
5809  } // end flagupgrade
5810 
5813  iEvent.getByToken(tok_ho_, ho);
5814  bool gotHODigis = true;
5815  if (!(iEvent.getByToken(tok_ho_, ho)))
5816  gotHODigis = false; //this is a boolean set up to check if there are HOgigis in input root file
5817  if (!(ho.isValid()))
5818  gotHODigis = false; //if it is not there, leave it false
5819  if (!gotHODigis) {
5820  // if(!ho.isValid()) {
5821  cout << " No HO collection is found " << endl;
5822  } else {
5823  int qwert6 = 0;
5824  double totalAmplitudeHO = 0.;
5825  for (HODigiCollection::const_iterator digi = ho->begin(); digi != ho->end(); digi++) {
5826  eta = digi->id().ieta();
5827  phi = digi->id().iphi();
5828  depth = digi->id().depth();
5829  nTS = digi->size();
5831  counterho++;
5833  if (qwert6 == 0) {
5834  nnnnnn6++;
5835  qwert6 = 1;
5836  }
5838  if (recordHistoes_ && studyCapIDErrorsHist_)
5839  fillDigiErrorsHO(digi);
5841  if (recordHistoes_)
5842  fillDigiAmplitudeHO(digi);
5844  if (recordHistoes_ && studyCalibCellsHist_) {
5845  int iphi = phi - 1;
5846  int ieta = eta;
5847  if (ieta > 0)
5848  ieta -= 1;
5849  double nnnnnnTS = 0.;
5850  double amplitudefullTSs = 0.;
5851  if (nTS <= numOfTS)
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];
5857  if (i > 1 && i < 6)
5858  signal3[2][ieta + 41][iphi] += TS_data[i];
5859  nnnnnnTS++;
5860  } //if for
5861  h_AmplitudeHOtest->Fill(amplitudefullTSs);
5862  h_numberofhitsHOtest->Fill(nnnnnnTS);
5863  } //if(recordHistoes_ && studyCalibCellsHist_)
5864  } //for HODigiCollection
5865 
5866  h_totalAmplitudeHO->Fill(totalAmplitudeHO);
5867  h_totalAmplitudeHOperEvent->Fill(float(eventcounter), totalAmplitudeHO);
5868  } //ho.isValid(
5869 
5871  // AZ 04.11.2019
5873  if (flagIterativeMethodCalibrationGroupReco_ > 0) {
5877  // HBHE: HBHERecHitCollection hbheNoise Noise
5879  iEvent.getByToken(tok_hbheNoise_, hbheNoise);
5880  // if(!hbheNoise.isValid()){edm::LogWarning("AnalyzerMB") << "VeRawAnalyzer: Error! can't get hbhe" << " product! No HBHE MS "; return ; }
5881  // const HBHERecHitCollection HithbheNoise = *(hbheNoise.product());
5882  // edm::LogInfo("AnalyzerMB")<<" HBHE Noise size of collection "<<HithbheNoise.size();
5883  // h_HBHERecHitssize->Fill((float)HithbheNoise.size());
5884  // if(HithbheNoise.size()!= 5184){edm::LogWarning("AnalyzerMB")<<" HBHE problem "<<rnnum<<" "<<HithbheNoise.size();//return;
5885  // }
5886  bool gotHBHERecHitsNoise = true;
5887  if (!(iEvent.getByToken(tok_hbheNoise_, hbheNoise)))
5888  gotHBHERecHitsNoise =
5889  false; //this is a boolean set up to check if there are HBHERecHitsNoise in input root file
5890  if (!(hbheNoise.isValid()))
5891  gotHBHERecHitsNoise = false; //if it is not there, leave it false
5892  if (!gotHBHERecHitsNoise) {
5893  // if(!hbheNoise.isValid()) {
5894  std::cout << " No RecHits HBHENoise collection is found " << endl;
5895  } else {
5896  for (HBHERecHitCollection::const_iterator hbheItr = hbheNoise->begin(); hbheItr != hbheNoise->end();
5897  hbheItr++) {
5898  // Recalibration of energy
5899  float icalconst = 1.;
5900  // DetId mydetid = hbheItr->id().rawId();
5901  // if( theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
5902  HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
5903  double energyhit = aHit.energy();
5904  DetId id = (*hbheItr).detid();
5905  HcalDetId hid = HcalDetId(id);
5906  int sub = ((hid).rawId() >> 25) & 0x7;
5907 
5908  if (sub == 1)
5909  h_energyhitNoise_HB->Fill(energyhit, 1.);
5910  if (sub == 2)
5911  h_energyhitNoise_HE->Fill(energyhit, 1.);
5912  // if(fabs(energyhit) > 40. ) continue;
5913 
5914  //std::cout<<sub<<std::endl;
5915  if (hid.depth() == 1 && sub == 1 && hid.iphi() == 25) {
5916  if (verbosity == -9063)
5917  std::cout << " Noise,sub = " << sub << " mdepth = " << hid.depth() << " ieta= " << hid.ieta()
5918  << " iphi= " << hid.iphi() << " energyhit= " << energyhit << std::endl;
5919  }
5920  if (hid.depth() == 1 && sub == 2 && hid.iphi() == 25) {
5921  if (verbosity == -9063)
5922  std::cout << " Noise,sub = " << sub << " mdepth = " << hid.depth() << " ieta= " << hid.ieta()
5923  << " iphi= " << hid.iphi() << " energyhit= " << energyhit << std::endl;
5924  }
5925  int ieta = hid.ieta(); // -15 ... -1; 1... 15 for HB
5926  if (ieta > 0)
5927  ieta -= 1; // -15 ... -1; 0... 14 for HB
5928  int iphi = hid.iphi() - 1;
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);
5933  } // hbheNoise
5934  } //hbheNoise.isValid(
5936 
5937  // HF: HFRecHitCollection hfNoise Noise
5939  iEvent.getByToken(tok_hfNoise_, hfNoise);
5940  // if(!hfNoise.isValid()){edm::LogWarning("AnalyzerMB") << "VeRawAnalyzer: Error! can't get hf" << " product! No HF MS "; return ; }
5941  // const HFRecHitCollection HithfNoise = *(hfNoise.product());
5942  // edm::LogInfo("AnalyzerMB")<<" HF Noise size of collection "<<HithfNoise.size();
5943  // h_HFRecHitssize->Fill((float)HithfNoise.size());
5944  // if(HithfNoise.size()!= 5184){edm::LogWarning("AnalyzerMB")<<" HF problem "<<rnnum<<" "<<HithfNoise.size();//return;
5945  // }
5946  bool gotHFRecHitsNoise = true;
5947  if (!(iEvent.getByToken(tok_hfNoise_, hfNoise)))
5948  gotHFRecHitsNoise = false; //this is a boolean set up to check if there are HFRecHitsNoise in input root file
5949  if (!(hfNoise.isValid()))
5950  gotHFRecHitsNoise = false; //if it is not there, leave it false
5951  if (!gotHFRecHitsNoise) {
5952  // if(!hfNoise.isValid()) {
5953  std::cout << " No RecHits HFNoise collection is found " << endl;
5954  } else {
5955  for (HFRecHitCollection::const_iterator hfItr = hfNoise->begin(); hfItr != hfNoise->end(); hfItr++) {
5956  // Recalibration of energy
5957  float icalconst = 1.;
5958  // DetId mydetid = hfItr->id().rawId();
5959  // if( theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
5960  HFRecHit aHit(hfItr->id(), hfItr->energy() * icalconst, hfItr->time());
5961  double energyhit = aHit.energy();
5962  DetId id = (*hfItr).detid();
5963  HcalDetId hid = HcalDetId(id);
5964  int sub = ((hid).rawId() >> 25) & 0x7;
5965 
5966  h_energyhitNoise_HF->Fill(energyhit, 1.);
5967  // if(fabs(energyhit) > 40. ) continue;
5968 
5969  //std::cout<<sub<<std::endl;
5970  if (hid.iphi() == 25) {
5971  if (verbosity == -9065)
5972  std::cout << "HF Noise,sub = " << sub << " mdepth = " << hid.depth() << " ieta= " << hid.ieta()
5973  << " iphi= " << hid.iphi() << " energyhit= " << energyhit << std::endl;
5974  }
5975  int ieta = hid.ieta(); // -15 ... -1; 1... 15 for HB
5976  if (ieta > 0)
5977  ieta -= 1; // -15 ... -1; 0... 14 for HB
5978  int iphi = hid.iphi() - 1;
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);
5983  } // hfNoise
5984  } //hfNoise.isValid(
5986 
5990  // HBHE: HBHERecHitCollection hbheSignal Signal
5992  iEvent.getByToken(tok_hbheSignal_, hbheSignal);
5993  // if(!hbheSignal.isValid()){edm::LogWarning("AnalyzerMB") << "VeRawAnalyzer: Error! can't get hbhe" << " product! No HBHE MS "; return ; }
5994  // const HBHERecHitCollection HithbheSignal = *(hbheSignal.product());
5995  // edm::LogInfo("AnalyzerMB")<<" HBHE Signal size of collection "<<HithbheSignal.size();
5996  // h_HBHERecHitssize->Fill((float)HithbheSignal.size());
5997  // if(HithbheSignal.size()!= 5184){edm::LogWarning("AnalyzerMB")<<" HBHE problem "<<rnnum<<" "<<HithbheSignal.size();//return;
5998  // }
5999  bool gotHBHERecHitsSignal = true;
6000  if (!(iEvent.getByToken(tok_hbheSignal_, hbheSignal)))
6001  gotHBHERecHitsSignal =
6002  false; //this is a boolean set up to check if there are HBHERecHitsSignal in input root file
6003  if (!(hbheSignal.isValid()))
6004  gotHBHERecHitsSignal = false; //if it is not there, leave it false
6005  if (!gotHBHERecHitsSignal) {
6006  // if(!hbheSignal.isValid()) {
6007  std::cout << " No RecHits HBHESignal collection is found " << endl;
6008  } else {
6009  for (HBHERecHitCollection::const_iterator hbheItr = hbheSignal->begin(); hbheItr != hbheSignal->end();
6010  hbheItr++) {
6011  // Recalibration of energy
6012  float icalconst = 1.;
6013  // DetId mydetid = hbheItr->id().rawId();
6014  // if( theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
6015  HBHERecHit aHit(hbheItr->id(), hbheItr->energy() * icalconst, hbheItr->time());
6016  double energyhit = aHit.energy();
6017  DetId id = (*hbheItr).detid();
6018  HcalDetId hid = HcalDetId(id);
6019  int sub = ((hid).rawId() >> 25) & 0x7;
6020 
6021  if (sub == 1)
6022  h_energyhitSignal_HB->Fill(energyhit, 1.);
6023  if (sub == 2)
6024  h_energyhitSignal_HE->Fill(energyhit, 1.);
6025 
6026  //std::cout<<sub<<std::endl;
6027  if (hid.depth() == 1 && sub == 1 && hid.iphi() == 25) {
6028  if (verbosity == -9062)
6029  std::cout << "HBHE Signal,sub = " << sub << " mdepth = " << hid.depth() << " ieta= " << hid.ieta()
6030  << " iphi= " << hid.iphi() << " energyhit= " << energyhit << std::endl;
6031  }
6032  if (hid.depth() == 1 && sub == 2 && hid.iphi() == 25) {
6033  if (verbosity == -9062)
6034  std::cout << "HBHE Signal,sub = " << sub << " mdepth = " << hid.depth() << " ieta= " << hid.ieta()
6035  << " iphi= " << hid.iphi() << " energyhit= " << energyhit << std::endl;
6036  }
6037  int ieta = hid.ieta(); // -15 ... -1; 1... 15 for HB
6038  if (ieta > 0)
6039  ieta -= 1; // -15 ... -1; 0... 14 for HB
6040  int iphi = hid.iphi() - 1;
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);
6045  } // hbheSignal
6046  } //hbheSignal.isValid(
6048 
6049  // HF: HFRecHitCollection hfSignal Signal
6051  iEvent.getByToken(tok_hfSignal_, hfSignal);
6052  // if(!hfSignal.isValid()){edm::LogWarning("AnalyzerMB") << "VeRawAnalyzer: Error! can't get hf" << " product! No HF MS "; return ; }
6053  // const HFRecHitCollection HithfSignal = *(hfSignal.product());
6054  // edm::LogInfo("AnalyzerMB")<<" HF Signal size of collection "<<HithfSignal.size();
6055  // h_HFRecHitssize->Fill((float)HithfSignal.size());
6056  // if(HithfSignal.size()!= 5184){edm::LogWarning("AnalyzerMB")<<" HF problem "<<rnnum<<" "<<HithfSignal.size();//return;
6057  // }
6058  bool gotHFRecHitsSignal = true;
6059  if (!(iEvent.getByToken(tok_hfSignal_, hfSignal)))
6060  gotHFRecHitsSignal = false; //this is a boolean set up to check if there are HFRecHitsSignal in input root file
6061  if (!(hfSignal.isValid()))
6062  gotHFRecHitsSignal = false; //if it is not there, leave it false
6063  if (!gotHFRecHitsSignal) {
6064  // if(!hfSignal.isValid()) {
6065  std::cout << " No RecHits HFSignal collection is found " << endl;
6066  } else {
6067  for (HFRecHitCollection::const_iterator hfItr = hfSignal->begin(); hfItr != hfSignal->end(); hfItr++) {
6068  // Recalibration of energy
6069  float icalconst = 1.;
6070  // DetId mydetid = hfItr->id().rawId();
6071  // if( theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
6072  HFRecHit aHit(hfItr->id(), hfItr->energy() * icalconst, hfItr->time());
6073  double energyhit = aHit.energy();
6074  DetId id = (*hfItr).detid();
6075  HcalDetId hid = HcalDetId(id);
6076  int sub = ((hid).rawId() >> 25) & 0x7;
6077 
6078  h_energyhitSignal_HF->Fill(energyhit, 1.);
6079  // if(fabs(energyhit) > 40. ) continue;
6080 
6081  //std::cout<<sub<<std::endl;
6082  if (hid.iphi() == 25) {
6083  if (verbosity == -9064)
6084  std::cout << "HF Signal,sub = " << sub << " mdepth = " << hid.depth() << " ieta= " << hid.ieta()
6085  << " iphi= " << hid.iphi() << " energyhit= " << energyhit << std::endl;
6086  }
6087  int ieta = hid.ieta(); // -15 ... -1; 1... 15 for HB
6088  if (ieta > 0)
6089  ieta -= 1; // -15 ... -1; 0... 14 for HB
6090  int iphi = hid.iphi() - 1;
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);
6095  } // hfSignal
6096  } //hfSignal.isValid(
6098 
6100  // END of RecHits for phi-symmetry monitoring of calibration group
6101  } // flagIterativeMethodCalibrationGroupReco_ > 0
6103 
6105 
6114  if (flagIterativeMethodCalibrationGroupDigi_ > 0) {
6118  // // // // // // // tocdefault tocampl tocamplchannel: calibration group, Iterative method, coding start 29.08.2019
6119  for (int k0 = 0; k0 < nsub; k0++) {
6120  // HE only, temporary
6121  if (k0 == 1) {
6122  for (int k1 = 0; k1 < ndepth; k1++) {
6123  // k2: 0-81
6124  for (int k2 = 0; k2 < neta; k2++) {
6125  // int k2plot = k2-41;int kkk = k2; if(k2plot >0 ) kkk=k2+1; //-41 +41 !=0
6126  int k2plot = k2 - 41;
6127  int kkk = k2plot; //if(k2plot >=0 ) kkk=k2plot+1; //-41 +40 !=0
6128  //preparation for PHI normalization:
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];
6134  ++nsumoverphi;
6135  if (verbosity == -9504)
6136  std::cout << "==== nsumoverphi = " << nsumoverphi << " sumoverphi = " << sumoverphi
6137  << " k1 = " << k1 << " k2 = " << k2 << " kkk = " << kkk << " k3 = " << k3 << std::endl;
6138  } //if != 0
6139  } //k3
6140  // PHI normalization into new massive && filling plots:
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);
6144  if (verbosity == -9504)
6145  std::cout << "nsumoverphi= " << nsumoverphi << " sumoverphi= " << sumoverphi << " k1= " << k1
6146  << " k2= " << k2 << " kkk= " << kkk << " k3= " << k3
6147  << " maprphinorm= " << maprphinorm[k0][k1][k2][k3] << endl;
6148  if (k1 == 0) {
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.);
6156  }
6157  if (k1 == 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.);
6165  }
6166  if (k1 == 2) {
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.);
6174  }
6175  if (k1 == 3) {
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.);
6183  }
6184  if (k1 == 4) {
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.);
6192  }
6193  if (k1 == 5) {
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.);
6201  }
6202  if (k1 == 6) {
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.);
6210  }
6211  } //if nsumoverphi != 0
6212  } //k3
6213  } //k2
6214  } //k1
6215  } //if k0 == 1 HE
6216  } //k0
6217  // // // // // // // // // // // // // // // // // // // // // // // //
6218  // // // // // // // // // // // // // // // // // // // // // // // //
6219  // // // // // // // // // // // // // // // // // // // // // // // //
6220  // // // // // // // amplitudechannel amplitudechannel amplitudechannel: calibration group, Iterative method, coding start 11.11.2019
6221  for (int k0 = 0; k0 < nsub; k0++) {
6222  // HB:
6223  if (k0 == 0) {
6224  for (int k1 = 0; k1 < ndepth; k1++) {
6225  // k2: 0-81
6226  for (int k2 = 0; k2 < neta; k2++) {
6227  // int k2plot = k2-41;int kkk = k2; if(k2plot >0 ) kkk=k2+1; //-41 +41 !=0
6228  int k2plot = k2 - 41;
6229  int kkk = k2plot; // if(k2plot >=0 ) kkk=k2plot+1; //-41 +40 !=0
6230  for (int k3 = 0; k3 < nphi; k3++) {
6231  if (k1 == 0) {
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]);
6235  }
6236  if (k1 == 1) {
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]);
6240  }
6241  if (k1 == 2) {
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]);
6245  }
6246  if (k1 == 3) {
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]);
6250  }
6251  } //k3
6252  } //k2
6253  } //k1
6254  } //if k0 == 0 HB
6255 
6256  // HE:
6257  if (k0 == 1) {
6258  for (int k1 = 0; k1 < ndepth; k1++) {
6259  // k2: 0-81
6260  for (int k2 = 0; k2 < neta; k2++) {
6261  // int k2plot = k2-41;int kkk = k2; if(k2plot >0 ) kkk=k2+1; //-41 +41 !=0
6262  int k2plot = k2 - 41;
6263  int kkk = k2plot; // if(k2plot >=0 ) kkk=k2plot+1; //-41 +40 !=0
6264  for (int k3 = 0; k3 < nphi; k3++) {
6265  if (k1 == 0) {
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]);
6269  }
6270  if (k1 == 1) {
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]);
6274  }
6275  if (k1 == 2) {
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]);
6279  }
6280  if (k1 == 3) {
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]);
6284  }
6285  if (k1 == 4) {
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]);
6289  }
6290  if (k1 == 5) {
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]);
6294  }
6295  if (k1 == 6) {
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]);
6299  }
6300  } //k3
6301  } //k2
6302  } //k1
6303  } //if k0 == 1 HE
6304 
6305  // HF: 4 depthes for Digis and only 2 - for Reco !!!
6306  if (k0 == 3) {
6307  for (int k1 = 0; k1 < ndepth; k1++) {
6308  // k2: 0-81
6309  for (int k2 = 0; k2 < neta; k2++) {
6310  // int k2plot = k2-41;int kkk = k2; if(k2plot >0 ) kkk=k2+1; //-41 +41 !=0
6311  int k2plot = k2 - 41;
6312  int kkk = k2plot; // if(k2plot >=0 ) kkk=k2plot+1; //-41 +40 !=0
6313  for (int k3 = 0; k3 < nphi; k3++) {
6314  if (k1 == 0) {
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]);
6318  }
6319  if (k1 == 1) {
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]);
6323  }
6324  if (k1 == 2) {
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]);
6328  }
6329  if (k1 == 3) {
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]);
6333  }
6334  } //k3
6335  } //k2
6336  } //k1
6337  } //if k0 == 3 HF
6338 
6339  } //k0
6340 
6341  } // if(flagIterativeMethodCalibrationGroupDigi
6342 
6348  if (flagIterativeMethodCalibrationGroupReco_ > 0) {
6352  // recSignalEnergy0[sub-1][mdepth-1][ieta+41][iphi] += 1.; recNoiseEnergy0[sub-1][mdepth-1][ieta+41][iphi] += 1.;
6353  // recSignalEnergy1[sub-1][mdepth-1][ieta+41][iphi] += energyhit; recNoiseEnergy1[sub-1][mdepth-1][ieta+41][iphi] += energyhit;
6354  // recSignalEnergy2[sub-1][mdepth-1][ieta+41][iphi] += pow(energyhit,2); recNoiseEnergy2[sub-1][mdepth-1][ieta+41][iphi] += pow(energyhit,2);
6355  //
6356  for (int k0 = 0; k0 < nsub; k0++) {
6357  // HB:
6358  if (k0 == 0) {
6359  for (int k1 = 0; k1 < ndepth; k1++) {
6360  // k2: 0-81
6361  for (int k2 = 0; k2 < neta; k2++) {
6362  // int k2plot = k2-41;int kkk = k2; if(k2plot >0 ) kkk=k2+1; //-41 +41 !=0
6363  int k2plot = k2 - 41;
6364  int kkk = k2plot; // if(k2plot >=0 ) kkk=k2plot+1; //-41 +40 !=0
6365  for (int k3 = 0; k3 < nphi; k3++) {
6366  if (k1 == 0) {
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]);
6373  }
6374  if (k1 == 1) {
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]);
6381  }
6382  if (k1 == 2) {
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]);
6389  }
6390  if (k1 == 3) {
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]);
6397  }
6398  } //k3
6399  } //k2
6400  } //k1
6401  } //if k0 == 0 HB
6402 
6403  // HE:
6404  if (k0 == 1) {
6405  for (int k1 = 0; k1 < ndepth; k1++) {
6406  // k2: 0-81
6407  for (int k2 = 0; k2 < neta; k2++) {
6408  // int k2plot = k2-41;int kkk = k2; if(k2plot >0 ) kkk=k2+1; //-41 +41 !=0
6409  int k2plot = k2 - 41;
6410  int kkk = k2plot; // if(k2plot >=0 ) kkk=k2plot+1; //-41 +40 !=0
6411  for (int k3 = 0; k3 < nphi; k3++) {
6412  if (k1 == 0) {
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]);
6419  }
6420  if (k1 == 1) {
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]);
6427  }
6428  if (k1 == 2) {
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]);
6435  }
6436  if (k1 == 3) {
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]);
6443  }
6444  if (k1 == 4) {
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]);
6451  }
6452  if (k1 == 5) {
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]);
6459  }
6460  if (k1 == 6) {
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]);
6467  }
6468  } //k3
6469  } //k2
6470  } //k1
6471  } //if k0 == 1 HE
6472 
6473  // HF: 4 depthes for Digis and only 2 - for Reco !!!
6474  if (k0 == 3) {
6475  for (int k1 = 0; k1 < ndepth; k1++) {
6476  // k2: 0-81
6477  for (int k2 = 0; k2 < neta; k2++) {
6478  // int k2plot = k2-41;int kkk = k2; if(k2plot >0 ) kkk=k2+1; //-41 +41 !=0
6479  int k2plot = k2 - 41;
6480  int kkk = k2plot; // if(k2plot >=0 ) kkk=k2plot+1; //-41 +40 !=0
6481  for (int k3 = 0; k3 < nphi; k3++) {
6482  if (k1 == 0) {
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]);
6489  }
6490  if (k1 == 1) {
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]);
6497  }
6498  } //k3
6499  } //k2
6500  } //k1
6501  } //if k0 == 3 HF
6502 
6503  } //k0
6504 
6505  } // if(flagIterativeMethodCalibrationGroupReco
6506 
6508 
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) {
6516  // ---------------------------------------- D2 sum over phi before!!! any dividing:
6517  mapRADDAM_HED2[k1][k2] += mapRADDAM_HE[k1][k2][k3];
6518  // N phi sectors w/ digihits
6519  ++mapRADDAM_HED20[k1][k2];
6520  } //if
6521  } //for
6522  } //for
6523  } //for
6524 
6526  for (int k1 = 0; k1 < ndepth; k1++) {
6527  for (int k2 = 0; k2 < neta; k2++) {
6528  if (mapRADDAM_HED20[k1][k2] != 0) {
6529  // validation of channels at eta16:
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]);
6538  } else {
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]);
6542  }
6544  mapRADDAM_HED2[k1][k2] /= mapRADDAM_HED20[k1][k2];
6545  } // if(mapRADDAM_HED20[k1][k2] != 0
6546  } //for
6547  } //for
6549  for (int k1 = 0; k1 < ndepth; k1++) {
6550  for (int k2 = 0; k2 < neta; k2++) {
6551  if (k1 == 2 && (k2 == 25 || k2 == 56)) {
6552  } else {
6553  // if(k2!=25 && k2!=56) {
6554  int k2plot = k2 - 41;
6555  int kkk = k2;
6556  if (k2plot > 0)
6557  kkk = k2 + 1;
6558  int kk2 = 25;
6559  if (k2plot > 0)
6560  kk2 = 56;
6561  if (mapRADDAM_HED2[k1][k2] != 0. && mapRADDAM_HED2[2][kk2] != 0) {
6562  mapRADDAM_HED2[k1][k2] /= mapRADDAM_HED2[2][kk2];
6563  // (d1 & eta 17-29) L1
6564  int LLLLLL111111 = 0;
6565  if ((k1 == 0 && fabs(kkk - 41) > 16 && fabs(kkk - 41) < 30))
6566  LLLLLL111111 = 1;
6567  // (d2 & eta 17-26) && (d3 & eta 27-28) L2
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))
6571  LLLLLL222222 = 1;
6572  //
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.);
6576  }
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.);
6580  }
6581  } //if
6582  } // if(k2!=25 && k2!=56
6583  } //for
6584  } //for
6585 
6587 
6588  //------------------------------------------------------ aver per eta 16(depth=3-> k1=2, k2=16(15) :
6590  for (int k1 = 0; k1 < ndepth; k1++) {
6591  for (int k2 = 0; k2 < neta; k2++) {
6592  if (k1 == 2 && (k2 == 25 || k2 == 56)) {
6593  } else {
6594  int k2plot = k2 - 41;
6595  int kk2 = 25;
6596  if (k2plot > 0)
6597  kk2 = 56;
6598  int kkk = k2;
6599  if (k2plot > 0)
6600  kkk = k2 + 1;
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))
6606  LLLLLL111111 = 1;
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))
6610  LLLLLL222222 = 1;
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.);
6614  }
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.);
6618  }
6619  } //if
6620  } //for
6621  } // if(k2!=25 && k2!=56
6622  } //for
6623  } //for
6624  //
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;
6633  } //for
6634  } //for
6635  } //for
6636 
6638  } // END TREATMENT : if(flagLaserRaddam_ == 1
6640 
6642  // // // // // // //sumamplitudes:
6643  int testcount1 = 0;
6644  int testcount2 = 0;
6645  int testcount3 = 0;
6647  for (int k0 = 0; k0 < nsub; k0++) {
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.)
6655  testcount1++;
6656  if (amplitudechannel[k0][0][k2][k3] != 0. && amplitudechannel[k0][1][k2][k3] == 0.)
6657  testcount2++;
6658  if (amplitudechannel[k0][0][k2][k3] == 0. && amplitudechannel[k0][1][k2][k3] != 0.)
6659  testcount3++;
6660 
6661  // HB
6662  if (k0 == 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;
6667  sumofchannels++;
6668  } else {
6669  if (sumamplitudechannel_HB > 0.) {
6670  sumamplitudesubdet0 += sumamplitudechannel_HB;
6671  sumofchannels0++;
6672  }
6673  }
6674  } //
6675 
6676  // HE
6677  if (k0 == 1) {
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;
6683  sumofchannels++;
6684  } else {
6685  if (sumamplitudechannel_HE > 0.) {
6686  sumamplitudesubdet0 += sumamplitudechannel_HE;
6687  sumofchannels0++;
6688  }
6689  }
6690  } //
6691 
6692  // HO
6693  if (k0 == 2) {
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;
6698  sumofchannels++;
6699  } else {
6700  if (sumamplitudechannel_HO > 0.) {
6701  sumamplitudesubdet0 += sumamplitudechannel_HO;
6702  sumofchannels0++;
6703  }
6704  }
6705  } //
6706  // HF
6707  if (k0 == 3) {
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;
6712  sumofchannels++;
6713  } else {
6714  if (sumamplitudechannel_HF > 0.) {
6715  sumamplitudesubdet0 += sumamplitudechannel_HF;
6716  sumofchannels0++;
6717  }
6718  }
6719  } //
6720 
6721  } //k3
6722  } //k2
6723  // }//k1
6724  // SA of each sub-detector DONE. Then: summarize or find maximum throught events of LS
6725  if (k0 == 0) {
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++) {
6739  int ieta = k2 - 41;
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.);
6744  }
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.);
6749  }
6750  } //for
6751  } //for
6752  } //>60000
6753  } //HB
6754  if (k0 == 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;
6765  } //HE
6766  if (k0 == 2) {
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;
6777  } //HO
6778  if (k0 == 3) {
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;
6789  } //HF
6790  } //k0
6791 
6794  if (recordHistoes_ && studyRunDependenceHist_) {
6795  int eeeeee;
6796  eeeeee = lscounterM1;
6797  if (flagtoaskrunsorls_ == 0)
6798  eeeeee = runcounter;
6799 
6801  for (int k0 = 0; k0 < nsub; k0++) {
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)
6810  ++nbadchannels;
6811  } //k3
6812  } //k2
6814  //HB
6815  if (k0 == 0) {
6816  if (k1 == 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.);
6828  }
6829  if (k1 == 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.);
6841  }
6842  }
6843  //HE
6844  if (k0 == 1) {
6845  if (k1 == 0) {
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.);
6857  }
6858  if (k1 == 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.);
6870  }
6871  if (k1 == 2) {
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.);
6883  }
6884  }
6885  //HO
6886  if (k0 == 2) {
6887  if (k1 == 3) {
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.);
6899  }
6900  }
6901  //HF
6902  if (k0 == 3) {
6903  if (k1 == 0) {
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.);
6915  }
6916  if (k1 == 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.);
6928  }
6929  }
6930 
6932  } //k1
6933  } //k0
6935  } //if(recordHistoes_&& studyRunDependenceHist_)
6936 
6939  iEvent.getByToken(tok_calib_, calib);
6940 
6941  bool gotCALIBDigis = true;
6942  if (!(iEvent.getByToken(tok_calib_, calib))) {
6943  gotCALIBDigis = false; //this is a boolean set up to check if there are CALIBgigis in input root file
6944  }
6945  if (!(calib.isValid())) {
6946  gotCALIBDigis = false; //if it is not there, leave it false
6947  }
6948  if (!gotCALIBDigis) {
6949  } else {
6950  for (HcalCalibDigiCollection::const_iterator digi = calib->begin(); digi != calib->end(); digi++) {
6951  int cal_det = digi->id().hcalSubdet(); // 1-HB,2-HE,3-HO,4-HF
6952  int cal_phi = digi->id().iphi();
6953  int cal_eta = digi->id().ieta();
6954  int cal_cbox = digi->id().cboxChannel();
6955 
6957  if (recordHistoes_ && studyCalibCellsHist_) {
6958  if (cal_det > 0 && cal_det < 5 && cal_cbox == 0) {
6959  int iphi = cal_phi - 1;
6960  int ieta = cal_eta;
6961  if (ieta > 0)
6962  ieta -= 1;
6963  nTS = digi->size();
6964  double max_signal = -100.;
6965  int ts_with_max_signal = -100;
6966  double timew = 0.;
6967 
6968  //
6969  if (nTS <= numOfTS)
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;
6975  }
6976  if (i > 1 && i < 6)
6977  calib3[cal_det - 1][ieta + 41][iphi] += ampldefault;
6978  calib0[cal_det - 1][ieta + 41][iphi] += ampldefault;
6979  timew += (i + 1) * ampldefault;
6980  } // for
6981  //
6982 
6983  double amplitude = calib0[cal_det - 1][ieta + 41][iphi];
6984  double aveamplitude = -100.;
6985  if (amplitude > 0 && timew > 0)
6986  aveamplitude = timew / amplitude; // average_TS +1
6987  double aveamplitude1 = aveamplitude - 1; // means iTS=0-9
6988  caliba[cal_det - 1][ieta + 41][iphi] = aveamplitude1;
6989 
6990  double rmsamp = 0.;
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); // fC
6996  } //for 2
6997  double rmsamplitude = -100.;
6998  if ((amplitude > 0 && rmsamp > 0) || (amplitude < 0 && rmsamp < 0))
6999  rmsamplitude = sqrt(rmsamp / amplitude);
7000  calibw[cal_det - 1][ieta + 41][iphi] = rmsamplitude;
7001  //
7002  calibt[cal_det - 1][ieta + 41][iphi] = ts_with_max_signal;
7003  //
7004 
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];
7015  //
7016  bool anycapid = true;
7017  bool anyer = false;
7018  bool anydv = 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(); // capId (0-3, sequential)
7023  bool er = (*digi)[ii].er(); // error
7024  bool dv = (*digi)[ii].dv(); // valid data
7025  if (ii != 0 && ((lastcapid + 1) % 4) != capid)
7026  anycapid = false;
7027  lastcapid = capid;
7028  if (er)
7029  anyer = true;
7030  if (!dv)
7031  anydv = false;
7032  }
7033  if (!anycapid)
7034  error1 = 1;
7035  if (anyer)
7036  error2 = 1;
7037  if (!anydv)
7038  error3 = 1;
7039  if (error1 != 0 || error2 != 0 || error3 != 0)
7040  calibcapiderror[cal_det - 1][ieta + 41][iphi] = 100;
7041 
7042  } // if(cal_det>0 && cal_det<5
7043  } //if(recordHistoes_ && studyCalibCellsHist_)
7045 
7046  if (recordNtuples_ && nevent50 < maxNeventsInNtuple_) {
7047  } //if(recordNtuples_) {
7048 
7049  } //for(HcalCalibDigiCollection
7050  } //if(calib.isValid(
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) {
7060 
7061  if (signal[k1][k2][k3] > 0.) {
7062  if (k1 == 0) {
7063  h_FullSignal3D_HB->Fill(double(k2plot), double(k3), signal[k1][k2][k3]);
7064  h_FullSignal3D0_HB->Fill(double(k2plot), double(k3), 1.);
7065  }
7066  if (k1 == 1) {
7067  h_FullSignal3D_HE->Fill(double(k2plot), double(k3), signal[k1][k2][k3]);
7068  h_FullSignal3D0_HE->Fill(double(k2plot), double(k3), 1.);
7069  }
7070  if (k1 == 2) {
7071  h_FullSignal3D_HO->Fill(double(k2plot), double(k3), signal[k1][k2][k3]);
7072  h_FullSignal3D0_HO->Fill(double(k2plot), double(k3), 1.);
7073  }
7074  if (k1 == 3) {
7075  h_FullSignal3D_HF->Fill(double(k2plot), double(k3), signal[k1][k2][k3]);
7076  h_FullSignal3D0_HF->Fill(double(k2plot), double(k3), 1.);
7077  }
7078  }
7079 
7080  } // optimization
7082 
7084  // k2 = 0-81, k3= 0-71
7085  // return to real indexes in eta and phi ( k20 and k30)
7086  int k20 = k2 - 41; // k20 = -41 - 40
7087  if (k20 > 0 || k20 == 0)
7088  k20 += 1; // k20 = -41 - -1 and +1 - +41
7089  int k30 = k3 + 1; // k30= 1-nphi
7090 
7091  // find calibration indexes in eta and phi ( kk2 and kk3)
7092  int kk2 = 0, kk3 = 0;
7093  if (k1 == 0 || k1 == 1) {
7094  if (k20 > 0)
7095  kk2 = 1;
7096  else
7097  kk2 = -1;
7098  if (k30 == 71 || k30 == nphi || k30 == 1 || k30 == 2)
7099  kk3 = 71;
7100  else
7101  kk3 = ((k30 - 3) / 4) * 4 + 3;
7102  } else if (k1 == 2) {
7103  if (abs(k20) <= 4) {
7104  kk2 = 0;
7105  if (k30 == 71 || k30 == nphi || k30 == 1 || k30 == 2 || k30 == 3 || k30 == 4)
7106  kk3 = 71;
7107  else
7108  kk3 = ((k30 - 5) / 6) * 6 + 5;
7109  } else {
7110  if (abs(k20) > 4 && abs(k20) <= 10)
7111  kk2 = 1;
7112  if (abs(k20) > 10 && abs(k20) <= 15)
7113  kk2 = 2;
7114  if (k20 < 0)
7115  kk2 = -kk2;
7116  if (k30 == 71 || k30 == nphi || (k30 >= 1 && k30 <= 10))
7117  kk3 = 71;
7118  else
7119  kk3 = ((k30 - 11) / 12) * 12 + 11;
7120  }
7121  } else if (k1 == 3) {
7122  if (k20 > 0)
7123  kk2 = 1;
7124  else
7125  kk2 = -1;
7126  if (k30 >= 1 && k30 <= 18)
7127  kk3 = 1;
7128  if (k30 >= 19 && k30 <= 36)
7129  kk3 = 19;
7130  if (k30 >= 37 && k30 <= 54)
7131  kk3 = 37;
7132  if (k30 >= 55 && k30 <= nphi)
7133  kk3 = 55;
7134  }
7135  // return to indexes in massiv
7136  int kkk2 = kk2 + 41;
7137  if (kk2 > 0)
7138  kkk2 -= 1;
7139  int kkk3 = kk3;
7140  kkk3 -= 1;
7141 
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];
7146  if (k1 == 0) {
7147  h_mapGetRMSOverNormalizedSignal_HB->Fill(double(k2plot), double(k3), GetRMSOverNormalizedSignal);
7148  h_mapGetRMSOverNormalizedSignal0_HB->Fill(double(k2plot), double(k3), 1.);
7149  }
7150  if (k1 == 1) {
7151  h_mapGetRMSOverNormalizedSignal_HE->Fill(double(k2plot), double(k3), GetRMSOverNormalizedSignal);
7152  h_mapGetRMSOverNormalizedSignal0_HE->Fill(double(k2plot), double(k3), 1.);
7153  }
7154  if (k1 == 2) {
7155  h_mapGetRMSOverNormalizedSignal_HO->Fill(double(k2plot), double(k3), GetRMSOverNormalizedSignal);
7156  h_mapGetRMSOverNormalizedSignal0_HO->Fill(double(k2plot), double(k3), 1.);
7157  }
7158  if (k1 == 3) {
7159  h_mapGetRMSOverNormalizedSignal_HF->Fill(double(k2plot), double(k3), GetRMSOverNormalizedSignal);
7160  h_mapGetRMSOverNormalizedSignal0_HF->Fill(double(k2plot), double(k3), 1.);
7161  }
7162  }
7163  } //optimization
7165  if (signal[k1][k2][k3] > 0.) {
7166  // ADC
7167  double adc = 0.;
7168  if (calib0[k1][kkk2][kkk3] > 0.)
7169  adc = calib0[k1][kkk2][kkk3];
7170  // Ratio
7171  double ratio = 2.;
7172  if (calib0[k1][kkk2][kkk3] > 0.)
7173  ratio = calib2[k1][kkk2][kkk3] / calib0[k1][kkk2][kkk3];
7174  // TSmax
7175  float calibtsmax = calibt[k1][kkk2][kkk3];
7176  // TSmean
7177  float calibtsmean = caliba[k1][kkk2][kkk3];
7178  // Width
7179  float calibwidth = calibw[k1][kkk2][kkk3];
7180  // CapIdErrors
7181  float calibcap = -100.;
7182  calibcap = calibcapiderror[k1][kkk2][kkk3];
7183 
7184  // HB:
7185  if (k1 == 0) {
7186  // ADC
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);
7192  // Ratio
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);
7197  // TSmax
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);
7203  }
7204  // TSmean
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);
7210  }
7211  // Width
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);
7217  }
7218  // CapIdErrors
7219  if (calibcap > 0)
7220  h_mapCapCalib047_HB->Fill(double(k2plot), double(k3), 1.);
7221  //
7222  h_map_HB->Fill(double(k2plot), double(k3), 1.);
7223  }
7224  // HE:
7225  if (k1 == 1) {
7226  // ADC
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);
7232  // Ratio
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);
7237  // TSmax
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);
7243  }
7244  // TSmean
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);
7250  }
7251  // Width
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);
7257  }
7258  // CapIdErrors
7259  if (calibcap > 0)
7260  h_mapCapCalib047_HE->Fill(double(k2plot), double(k3), 1.);
7261  //
7262  h_map_HE->Fill(double(k2plot), double(k3), 1.);
7263  }
7264  // HO:
7265  if (k1 == 2) {
7266  // ADC
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);
7272  // Ratio
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);
7277  // TSmax
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);
7283  }
7284  // TSmean
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);
7290  }
7291  // Width
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);
7297  }
7298  // CapIdErrors
7299  if (calibcap > 0)
7300  h_mapCapCalib047_HO->Fill(double(k2plot), double(k3), 1.);
7301  //
7302  h_map_HO->Fill(double(k2plot), double(k3), 1.);
7303  }
7304  // HF:
7305  if (k1 == 3) {
7306  // ADC
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);
7312  // Ratio
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);
7317  // TSmax
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);
7323  }
7324  // TSmean
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);
7330  }
7331  // Width
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);
7337  }
7338  // CapIdErrors
7339  if (calibcap > 0)
7340  h_mapCapCalib047_HF->Fill(double(k2plot), double(k3), 1.);
7341  //
7342  h_map_HF->Fill(double(k2plot), double(k3), 1.);
7343  }
7345  } // if(signal[k1][k2][k3]>0.)
7347  } // k3
7348  } // k2
7349  } // k1
7350 
7352 
7353  } //if(recordHistoes_&& studyCalibCellsHist_)
7354 
7356  if (recordNtuples_ && nevent50 < maxNeventsInNtuple_)
7357  myTree->Fill();
7358  // if(recordNtuples_ && nevent < maxNeventsInNtuple_) myTree->Fill();
7359 
7361  if (++local_event % 100 == 0) {
7362  if (verbosity == -22)
7363  cout << "run " << Run << " processing events " << local_event << " ok, "
7364  << ", lumi " << lumi << ", numOfLaserEv " << numOfLaserEv << endl;
7365  }
7366  } // bcn
7367 
7368  //EndAnalyzer
7369 }
7370 
7371 // ------------ method called once each job just before starting event loop -----------
7373  if (verbosity > 0)
7374  cout << "======================== beignJob START +++++++++++++++++++++++++++" << endl;
7375  hOutputFile = new TFile(fOutputFileName.c_str(), "RECREATE");
7377  nnnnnn = 0;
7378  nnnnnnhbhe = 0;
7379  nnnnnnhbheqie11 = 0;
7380  nevent = 0;
7381  nevent50 = 0;
7382  counterhf = 0;
7383  counterhfqie10 = 0;
7384  counterho = 0;
7385  nnnnnn1 = 0;
7386  nnnnnn2 = 0;
7387  nnnnnn3 = 0;
7388  nnnnnn4 = 0;
7389  nnnnnn5 = 0;
7390  nnnnnn6 = 0;
7391  // nnnnnn7= 0;
7392  // nnnnnn8= 0;
7393 
7395 
7396  if (recordHistoes_) {
7397  // ha2 = new TH2F("ha2"," ", neta, -41., 41., nphi, 0., bphi);
7398 
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.);
7405 
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.);
7424 
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.);
7446 
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.);
7465 
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.);
7481 
7483 
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.);
7490  // fullAmplitude:
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.);
7494 
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.);
7498 
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.);
7503 
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);
7537  // RMS:
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);
7547  // Ratio:
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);
7565 
7567 
7568  // stuff regarding summed(total) Amplitude vs iEvent (histo-name is h_totalAmplitudeHEperEvent)
7569  // to see from which event ALL channels are available(related to quality of the run)
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.);
7576 
7577  // Aijk Amplitude:
7578  h_ADCAmplZoom1_HE = new TH1F("h_ADCAmplZoom1_HE", " ", npfit, 0., anpfit); // for amplmaxts 1TS w/ max
7579  h_ADCAmpl345Zoom1_HE = new TH1F("h_ADCAmpl345Zoom1_HE", " ", npfit, 0., anpfit); // for ampl3ts 3TSs
7580  h_ADCAmpl345Zoom_HE = new TH1F("h_ADCAmpl345Zoom_HE", " ", npfit, 0., anpfit); // for ampl 4TSs
7581  h_amplitudeaveragedbydepthes_HE =
7582  new TH1F("h_amplitudeaveragedbydepthes_HE", " ", npfit, 0., anpfit); // for cross-check: A spectrum
7583  h_ndepthesperamplitudebins_HE =
7584  new TH1F("h_ndepthesperamplitudebins_HE", " ", 10, 0., 10.); // for cross-check: ndepthes
7585 
7586  // Ampl12 4TSs to work with "ped-Gsel0" or "led-low-intensity" to clarify gain diff peak2-peak1
7587  h_mapADCAmplfirstpeak_HE =
7588  new TH2F("h_mapADCAmplfirstpeak_HE", " ", neta, -41., 41., nphi, 0., bphi); // for amplmaxts 1TS w/ max
7589  h_mapADCAmplfirstpeak0_HE =
7590  new TH2F("h_mapADCAmplfirstpeak0_HE", " ", neta, -41., 41., nphi, 0., bphi); // for amplmaxts 1TS w/ max
7591  h_mapADCAmplsecondpeak_HE =
7592  new TH2F("h_mapADCAmplsecondpeak_HE", " ", neta, -41., 41., nphi, 0., bphi); // for amplmaxts 1TS w/ max
7593  h_mapADCAmplsecondpeak0_HE =
7594  new TH2F("h_mapADCAmplsecondpeak0_HE", " ", neta, -41., 41., nphi, 0., bphi); // for amplmaxts 1TS w/ max
7595 
7596  h_mapADCAmpl11firstpeak_HE =
7597  new TH2F("h_mapADCAmpl11firstpeak_HE", " ", neta, -41., 41., nphi, 0., bphi); // for ampl3ts 3TSs
7598  h_mapADCAmpl11firstpeak0_HE =
7599  new TH2F("h_mapADCAmpl11firstpeak0_HE", " ", neta, -41., 41., nphi, 0., bphi); // for ampl3ts 3TSs
7600  h_mapADCAmpl11secondpeak_HE =
7601  new TH2F("h_mapADCAmpl11secondpeak_HE", " ", neta, -41., 41., nphi, 0., bphi); // for ampl3ts 3TSs
7602  h_mapADCAmpl11secondpeak0_HE =
7603  new TH2F("h_mapADCAmpl11secondpeak0_HE", " ", neta, -41., 41., nphi, 0., bphi); // for ampl3ts 3TSs
7604 
7605  h_mapADCAmpl12firstpeak_HE =
7606  new TH2F("h_mapADCAmpl12firstpeak_HE", " ", neta, -41., 41., nphi, 0., bphi); // for ampl 4TSs
7607  h_mapADCAmpl12firstpeak0_HE =
7608  new TH2F("h_mapADCAmpl12firstpeak0_HE", " ", neta, -41., 41., nphi, 0., bphi); // for ampl 4TSs
7609  h_mapADCAmpl12secondpeak_HE =
7610  new TH2F("h_mapADCAmpl12secondpeak_HE", " ", neta, -41., 41., nphi, 0., bphi); // for ampl 4TSs
7611  h_mapADCAmpl12secondpeak0_HE =
7612  new TH2F("h_mapADCAmpl12secondpeak0_HE", " ", neta, -41., 41., nphi, 0., bphi); // for ampl 4TSs
7613 
7614  // Ampl12 4TSs to work with "ped-Gsel0" or "led-low-intensity" to clarify gain diff peak2-peak1 fit results:
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.);
7621 
7622  // Aijk Amplitude:
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.);
7627 
7628  h_ADCAmpl345_HE = new TH1F("h_ADCAmpl345_HE", " ", 70, 0., 700000.);
7629 
7630  // SiPM corrections:
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.);
7635 
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);
7650 
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);
7661 
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);
7692  // RMS:
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);
7708 
7709  // Ratio:
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);
7754 
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);
7769 
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);
7777 
7778  //
7779  // Didi as done in Reco
7780  //HB:
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);
7793  //HE:
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);
7815  //HF:
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);
7828 
7829  // Reco
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.); //
7836 
7837  //HB:
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);
7850 
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);
7863 
7864  //HE:
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);
7886 
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);
7908 
7909  //HF:
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);
7916 
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);
7923 
7925  // RADDAM:
7926  // if(flagLaserRaddam_ == 1 ) {
7927  // }
7928  int min80 = -100.;
7929  int max80 = 9000.;
7930  // fill for each digi (=each event, each channel)
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);
7937 
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);
7951  int min90 = 0.;
7952  int max90 = 5000.;
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.);
7970 
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.);
7975  // fullAmplitude:
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.);
7980 
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);
8021  // Ratio:
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);
8039 
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.);
8045  // fullAmplitude:
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.);
8049 
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);
8064  // Ratio:
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);
8070 
8072  int baP = 4000;
8073  float baR = 0.;
8074  float baR2 = baP;
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);
8091 
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);
8100 
8101  int zaP = 1000;
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);
8112 
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.);
8121 
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.);
8130 
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.);
8138 
8139  // for LS :
8140 
8141  // for LS binning:
8142  int bac = howmanybinsonplots_;
8143  // int bac= 15;
8144  float bac2 = bac + 1.;
8145  // bac, 1., bac2 );
8146 
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);
8153 
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);
8160 
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);
8167 
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);
8174 
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);
8181 
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);
8188 
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);
8195 
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);
8202 
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);
8212 
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);
8286 
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);
8294  //--------------------------------------------------
8295  // for estimator0:
8296  float pst1 = 30.;
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);
8302 
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);
8308 
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);
8314 
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);
8320 
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);
8326 
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);
8332 
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);
8338 
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);
8344 
8345  //--------------------------------------------------
8346  // for estimator1:
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);
8359 
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);
8367 
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);
8375 
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);
8383 
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);
8391  // HE upgrade depth4
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);
8395 
8396  // HE upgrade depth5
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);
8400  // HE upgrade depth6
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);
8404  // HE upgrade depth7
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);
8408  // for HE gain stability vs LS:
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);
8421 
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);
8429  // HF upgrade depth3
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);
8433 
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);
8441  // HF upgrade depth4
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);
8445 
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);
8453 
8454  // HB upgrade depth3
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);
8458  // HB upgrade depth4
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);
8462 
8463  // for HB gain stability vs LS:
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);
8468 
8469  // error-A for HB( depth1 only)
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);
8478 
8479  // error-A for HE( depth1 only)
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);
8488 
8489  // error-A for HF( depth1 only)
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);
8498 
8499  // error-A for HO( depth4 only)
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);
8508 
8509  //--------------------------------------------------
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);
8517 
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);
8524 
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);
8531 
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);
8538 
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);
8545 
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);
8552 
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);
8559 
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);
8566  //--------------------------------------------------
8567  // for estimator3:
8568  // float est3 = 10.0;
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);
8576 
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);
8583 
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);
8590 
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);
8597 
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);
8604 
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);
8611 
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);
8618 
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);
8625  //--------------------------------------------------
8626  // for estimator4:
8627  // float est4 = 3.4;
8628  // float est41= 2.0;
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);
8636 
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);
8643 
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);
8650 
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);
8657 
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);
8664 
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);
8671 
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);
8678 
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);
8685  //--------------------------------------------------
8686  // for estimator5:
8687  // float est5 = 0.6;
8688  // float est51= 1.0;
8689  // float est52= 0.8;
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);
8697 
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);
8704 
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);
8711 
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);
8718 
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);
8725 
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);
8732 
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);
8741 
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);
8748 
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);
8755  //--------------------------------------------------
8756  // for estimator6:
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);
8767 
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);
8783 
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);
8794 
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);
8800 
8801  //--------------------------------------------------
8802  // for averSIGNALOCCUPANCY :
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);
8807 
8808  // for averSIGNALsumamplitude :
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);
8813 
8814  // for averNOSIGNALOCCUPANCY :
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);
8819 
8820  // for averNOSIGNALsumamplitude :
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);
8825 
8826  // for channel SUM over depthes Amplitudes for each sub-detector
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.);
8831 
8832  // for event Amplitudes for each sub-detector
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.);
8837 
8838  // for event Occupancy for each sub-detector
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.);
8843 
8844  // for maxxSUMAmplitude
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);
8849 
8850  // for maxxOCCUP
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);
8855  //--------------------------------------------------
8856  // pedestals
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);
8869 
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);
8882 
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);
8895 
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);
8908  //--------------------------------------------------
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);
8925 
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);
8942  //--------------------------------------------------
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.);
8952 
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.);
8958 
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.);
8964 
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.);
8970  //--------------------------------------------------
8971  float est6 = 2500.;
8972  int ist6 = 30;
8973  int ist2 = 60;
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);
8985 
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);
8992 
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);
8999 
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);
9006  //--------------------------------------------------
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);
9023 
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);
9048 
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);
9065 
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);
9074  //--------------------------------------------------
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);
9089 
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);
9094 
9095  h_mapDepth4ADCAmpl12_HO = new TH2F("h_mapDepth4ADCAmpl12_HO", " ", neta, -41., 41., nphi, 0., bphi);
9096 
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);
9100  //--------------------------------------------------
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);
9117  //--------------------------------------------------
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.);
9134  //--------------------------------------------------
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.);
9151  //--------------------------------------------------
9152  // if(flagcpuoptimization_== 0 ) {
9153 
9154  int spl = 1000;
9155  float spls = 5000;
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);
9164  int spl0 = 1000;
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);
9174  int spl1 = 1000;
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);
9184 
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.);
9193 
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.);
9202 
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);
9207 
9209  } //if(recordHistoes_
9210  if (verbosity > 0)
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");
9217 
9218  } //if(recordNtuples_
9219  if (verbosity > 0)
9220  cout << "======================== beignJob finish +++++++++++++++++++++++++++" << endl;
9222 }
9223 
9226 // ------------ method called for each event ------------
9228  CaloSamples toolOriginal; // TS
9229  // double tool[100];
9230  if (verbosity == -22)
9231  std::cout << "************** in loop over Digis counter = " << nnnnnnhbhe << std::endl;
9232  HcalDetId cell(digiItr->id());
9233  int mdepth = cell.depth();
9234  int iphi = cell.iphi() - 1;
9235  int ieta = cell.ieta();
9236  if (ieta > 0)
9237  ieta -= 1;
9238  int sub = cell.subdet(); // 1-HB, 2-HE (HFDigiCollection: 4-HF)
9239  // !!!!!!
9240  int errorGeneral = 0;
9241  int error1 = 0;
9242  int error2 = 0;
9243  int error3 = 0;
9244  int error4 = 0;
9245  int error5 = 0;
9246  int error6 = 0;
9247  int error7 = 0;
9248  // !!!!!!
9249  bool anycapid = true;
9250  bool anyer = false;
9251  bool anydv = true;
9252  // for help:
9253  int firstcapid = 0;
9254  int sumcapid = 0;
9255  int lastcapid = 0, capid = 0;
9256  int ERRORfiber = -10;
9257  int ERRORfiberChan = -10;
9258  int ERRORfiberAndChan = -10;
9259  int repetedcapid = 0;
9260  int TSsize = 10;
9261  TSsize = digiItr->size();
9262 
9264  for (int ii = 0; ii < TSsize; ii++) {
9265  capid = (*digiItr)[ii].capid(); // capId (0-3, sequential)
9266  bool er = (*digiItr)[ii].er(); // error
9267  bool dv = (*digiItr)[ii].dv(); // valid data
9268  int fiber = (*digiItr)[ii].fiber(); // get the fiber number
9269  int fiberChan = (*digiItr)[ii].fiberChan(); // get the fiber channel number
9270  int fiberAndChan = (*digiItr)[ii].fiberAndChan(); // get the id channel
9271  if (ii != 0 && ((lastcapid + 1) % 4) != capid) {
9272  anycapid = false;
9273  ERRORfiber = fiber;
9274  ERRORfiberChan = fiberChan;
9275  ERRORfiberAndChan = fiberAndChan;
9276  if (capid != lastcapid) {
9277  } else {
9278  repetedcapid = 1;
9279  }
9280  }
9281  lastcapid = capid;
9282 
9283  if (ii == 0)
9284  firstcapid = capid;
9285  sumcapid += capid;
9286 
9287  if (er) {
9288  anyer = true;
9289  ERRORfiber = fiber;
9290  ERRORfiberChan = fiberChan;
9291  ERRORfiberAndChan = fiberAndChan;
9292  }
9293  if (!dv) {
9294  anydv = false;
9295  ERRORfiber = fiber;
9296  ERRORfiberChan = fiberChan;
9297  ERRORfiberAndChan = fiberAndChan;
9298  }
9299 
9300  } // for
9301 
9303  if (firstcapid == 0 && !anycapid)
9304  errorGeneral = 1;
9305  if (firstcapid == 1 && !anycapid)
9306  errorGeneral = 2;
9307  if (firstcapid == 2 && !anycapid)
9308  errorGeneral = 3;
9309  if (firstcapid == 3 && !anycapid)
9310  errorGeneral = 4;
9311  if (!anycapid)
9312  error1 = 1;
9313  if (anyer)
9314  error2 = 1;
9315  if (!anydv)
9316  error3 = 1;
9317 
9318  if (!anycapid && anyer)
9319  error4 = 1;
9320  if (!anycapid && !anydv)
9321  error5 = 1;
9322  if (!anycapid && anyer && !anydv)
9323  error6 = 1;
9324  if (anyer && !anydv)
9325  error7 = 1;
9327  // Energy:
9328 
9329  double ampl = 0.;
9330  for (int ii = 0; ii < TSsize; ii++) {
9331  double ampldefault = adc2fC[digiItr->sample(ii).adc()];
9332  ampl += ampldefault; // fC
9333  }
9334 
9336  // Digis:
9337  // HB
9338  if (sub == 1) {
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.);
9348 
9349  if (error1 != 0 || error2 != 0 || error3 != 0) {
9350  if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9351  ++badchannels[sub - 1][mdepth - 1][ieta + 41][iphi]; // 0-neta ; 0-71
9352  h_amplError_HB->Fill(ampl, 1.);
9353  if (mdepth == 1)
9354  h_mapDepth1Error_HB->Fill(double(ieta), double(iphi));
9355  if (mdepth == 2)
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.);
9360  } else {
9361  h_amplFine_HB->Fill(ampl, 1.);
9362  }
9363  }
9364  // HE
9365  if (sub == 2) {
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.);
9375 
9376  if (error1 != 0 || error2 != 0 || error3 != 0) {
9377  if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9378  ++badchannels[sub - 1][mdepth - 1][ieta + 41][iphi]; // 0-neta ; 0-71
9379  h_amplError_HE->Fill(ampl, 1.);
9380  if (mdepth == 1)
9381  h_mapDepth1Error_HE->Fill(double(ieta), double(iphi));
9382  if (mdepth == 2)
9383  h_mapDepth2Error_HE->Fill(double(ieta), double(iphi));
9384  if (mdepth == 3)
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.);
9389  } else {
9390  h_amplFine_HE->Fill(ampl, 1.);
9391  }
9392  }
9393  // ha2->Fill(double(ieta), double(iphi));
9394 } //fillDigiErrors
9399 // ------------ method called for each event ------------
9401  CaloSamples toolOriginal; // TS
9402  // double tool[100];
9403  DetId detid = qie11df.detid();
9404  HcalDetId hcaldetid = HcalDetId(detid);
9405  int ieta = hcaldetid.ieta();
9406  if (ieta > 0)
9407  ieta -= 1;
9408  int iphi = hcaldetid.iphi() - 1;
9409  int mdepth = hcaldetid.depth();
9410  int sub = hcaldetid.subdet(); // 1-HB, 2-HE (HFDigiCollection: 4-HF)
9411  // !!!!!!
9412  int error1 = 0;
9413  // !!!!!!
9414  bool anycapid = true;
9415  // bool anyer = false;
9416  // bool anydv = true;
9417  // for help:
9418  int firstcapid = 0;
9419  int sumcapid = 0;
9420  int lastcapid = 0, capid = 0;
9421  int repetedcapid = 0;
9422  // loop over the samples in the digi
9423  nTS = qie11df.samples();
9425  for (int ii = 0; ii < nTS; ii++) {
9426  capid = qie11df[ii].capid(); // capId (0-3, sequential)
9427  if (ii != 0 && ((lastcapid + 1) % 4) != capid) {
9428  anycapid = false;
9429  if (capid != lastcapid) {
9430  } else {
9431  repetedcapid = 1;
9432  }
9433  }
9434  lastcapid = capid;
9435  if (ii == 0)
9436  firstcapid = capid;
9437  sumcapid += capid;
9438  } // for
9440  if (!anycapid)
9441  error1 = 1;
9442  // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9443  double ampl = 0.;
9444  for (int ii = 0; ii < nTS; ii++) {
9445  int adc = qie11df[ii].adc();
9446 
9447  double ampldefault = adc2fC_QIE11_shunt6[adc];
9448  if (flaguseshunt_ == 1)
9449  ampldefault = adc2fC_QIE11_shunt1[adc];
9450 
9451  ampl += ampldefault; //
9452  }
9454  // Digis:HBHE
9455  if (sub == 1) {
9456  h_error1_HB->Fill(double(error1), 1.);
9457  h_repetedcapid_HB->Fill(double(repetedcapid), 1.);
9458  if (error1 != 0) {
9459  // if(error1 !=0 || error2 !=0 || error3 !=0 ) {
9460  if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9461  ++badchannels[sub - 1][mdepth - 1][ieta + 41][iphi]; // 0-neta ; 0-71
9462  h_amplError_HB->Fill(ampl, 1.);
9463  if (mdepth == 1)
9464  h_mapDepth1Error_HB->Fill(double(ieta), double(iphi));
9465  if (mdepth == 2)
9466  h_mapDepth2Error_HB->Fill(double(ieta), double(iphi));
9467  if (mdepth == 3)
9468  h_mapDepth3Error_HB->Fill(double(ieta), double(iphi));
9469  if (mdepth == 4)
9470  h_mapDepth4Error_HB->Fill(double(ieta), double(iphi));
9471  h_errorGeneral_HB->Fill(double(firstcapid), 1.);
9472  } else {
9473  h_amplFine_HB->Fill(ampl, 1.);
9474  }
9475  }
9476  if (sub == 2) {
9477  h_error1_HE->Fill(double(error1), 1.);
9478  h_repetedcapid_HE->Fill(double(repetedcapid), 1.);
9479  if (error1 != 0) {
9480  // if(error1 !=0 || error2 !=0 || error3 !=0 ) {
9481  if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9482  ++badchannels[sub - 1][mdepth - 1][ieta + 41][iphi]; // 0-neta ; 0-71
9483  h_amplError_HE->Fill(ampl, 1.);
9484  if (mdepth == 1)
9485  h_mapDepth1Error_HE->Fill(double(ieta), double(iphi));
9486  if (mdepth == 2)
9487  h_mapDepth2Error_HE->Fill(double(ieta), double(iphi));
9488  if (mdepth == 3)
9489  h_mapDepth3Error_HE->Fill(double(ieta), double(iphi));
9490  if (mdepth == 4)
9491  h_mapDepth4Error_HE->Fill(double(ieta), double(iphi));
9492  if (mdepth == 5)
9493  h_mapDepth5Error_HE->Fill(double(ieta), double(iphi));
9494  if (mdepth == 6)
9495  h_mapDepth6Error_HE->Fill(double(ieta), double(iphi));
9496  if (mdepth == 7)
9497  h_mapDepth7Error_HE->Fill(double(ieta), double(iphi));
9498  h_errorGeneral_HE->Fill(double(firstcapid), 1.);
9499  } else {
9500  h_amplFine_HE->Fill(ampl, 1.);
9501  }
9502  }
9503 } //fillDigiErrorsQIE11
9505 // ------------ method called for each event ------------
9507  CaloSamples toolOriginal; // TS
9508  // double tool[100];
9509  HcalDetId cell(digiItr->id());
9510  int mdepth = cell.depth();
9511  int iphi = cell.iphi() - 1;
9512  int ieta = cell.ieta();
9513  if (ieta > 0)
9514  ieta -= 1;
9515  int sub = cell.subdet(); // 1-HB, 2-HE (HFDigiCollection: 4-HF)
9516  if (mdepth > 2)
9517  std::cout << " HF DIGI ?????????????? ERROR mdepth = " << mdepth << std::endl;
9518  // !!!!!!
9519  int errorGeneral = 0;
9520  int error1 = 0;
9521  int error2 = 0;
9522  int error3 = 0;
9523  int error4 = 0;
9524  int error5 = 0;
9525  int error6 = 0;
9526  int error7 = 0;
9527  // !!!!!!
9528  bool anycapid = true;
9529  bool anyer = false;
9530  bool anydv = true;
9531  // for help:
9532  int firstcapid = 0;
9533  int sumcapid = 0;
9534  int lastcapid = 0, capid = 0;
9535  int ERRORfiber = -10;
9536  int ERRORfiberChan = -10;
9537  int ERRORfiberAndChan = -10;
9538  int repetedcapid = 0;
9539 
9540  int TSsize = 10;
9541  TSsize = digiItr->size();
9543  for (int ii = 0; ii < TSsize; ii++) {
9544  capid = (*digiItr)[ii].capid(); // capId (0-3, sequential)
9545  bool er = (*digiItr)[ii].er(); // error
9546  bool dv = (*digiItr)[ii].dv(); // valid data
9547  int fiber = (*digiItr)[ii].fiber(); // get the fiber number
9548  int fiberChan = (*digiItr)[ii].fiberChan(); // get the fiber channel number
9549  int fiberAndChan = (*digiItr)[ii].fiberAndChan(); // get the id channel
9550  if (ii != 0 && ((lastcapid + 1) % 4) != capid) {
9551  anycapid = false;
9552  ERRORfiber = fiber;
9553  ERRORfiberChan = fiberChan;
9554  ERRORfiberAndChan = fiberAndChan;
9555  if (capid != lastcapid) {
9556  } else {
9557  repetedcapid = 1;
9558  }
9559  }
9560  lastcapid = capid;
9561  if (ii == 0)
9562  firstcapid = capid;
9563  sumcapid += capid;
9564  if (er) {
9565  anyer = true;
9566  ERRORfiber = fiber;
9567  ERRORfiberChan = fiberChan;
9568  ERRORfiberAndChan = fiberAndChan;
9569  }
9570  if (!dv) {
9571  anydv = false;
9572  ERRORfiber = fiber;
9573  ERRORfiberChan = fiberChan;
9574  ERRORfiberAndChan = fiberAndChan;
9575  }
9576  } // for
9578  if (firstcapid == 0 && !anycapid)
9579  errorGeneral = 1;
9580  if (firstcapid == 1 && !anycapid)
9581  errorGeneral = 2;
9582  if (firstcapid == 2 && !anycapid)
9583  errorGeneral = 3;
9584  if (firstcapid == 3 && !anycapid)
9585  errorGeneral = 4;
9586  if (!anycapid)
9587  error1 = 1;
9588  if (anyer)
9589  error2 = 1;
9590  if (!anydv)
9591  error3 = 1;
9592  if (!anycapid && anyer)
9593  error4 = 1;
9594  if (!anycapid && !anydv)
9595  error5 = 1;
9596  if (!anycapid && anyer && !anydv)
9597  error6 = 1;
9598  if (anyer && !anydv)
9599  error7 = 1;
9601  double ampl = 0.;
9602  for (int ii = 0; ii < TSsize; ii++) {
9603  double ampldefault = adc2fC[digiItr->sample(ii).adc()];
9604  ampl += ampldefault; // fC
9605  }
9607  // Digis: HF
9608  if (sub == 4) {
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]; // 0-neta ; 0-71
9621  h_amplError_HF->Fill(ampl, 1.);
9622  if (mdepth == 1)
9623  h_mapDepth1Error_HF->Fill(double(ieta), double(iphi));
9624  if (mdepth == 2)
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.);
9629  } else {
9630  h_amplFine_HF->Fill(ampl, 1.);
9631  }
9632  }
9633 }
9638 // ------------ method called for each event ------------
9640  CaloSamples toolOriginal; // TS
9641  // double tool[100];
9642  DetId detid = qie10df.detid();
9643  HcalDetId hcaldetid = HcalDetId(detid);
9644  int ieta = hcaldetid.ieta();
9645  if (ieta > 0)
9646  ieta -= 1;
9647  int iphi = hcaldetid.iphi() - 1;
9648  int mdepth = hcaldetid.depth();
9649  int sub = hcaldetid.subdet(); // 1-HB, 2-HE (HFDigiCollection: 4-HF)
9650  // !!!!!!
9651  int error1 = 0;
9652  // !!!!!!
9653  bool anycapid = true;
9654  // bool anyer = false;
9655  // bool anydv = true;
9656  // for help:
9657  int firstcapid = 0;
9658  int sumcapid = 0;
9659  int lastcapid = 0, capid = 0;
9660  int repetedcapid = 0;
9661  // loop over the samples in the digi
9662  nTS = qie10df.samples();
9664  for (int ii = 0; ii < nTS; ii++) {
9665  capid = qie10df[ii].capid(); // capId (0-3, sequential)
9666  if (ii != 0 && ((lastcapid + 1) % 4) != capid) {
9667  anycapid = false;
9668  if (capid != lastcapid) {
9669  } else {
9670  repetedcapid = 1;
9671  }
9672  }
9673  lastcapid = capid;
9674  if (ii == 0)
9675  firstcapid = capid;
9676  sumcapid += capid;
9677  } // for
9679  if (!anycapid)
9680  error1 = 1;
9681  // if( anyer ) error2 = 1;
9682  // if( !anydv ) error3 = 1;
9684  // Energy:
9685  // int adc = qie10df[ii].adc();
9686  // int tdc = qie10df[ii].le_tdc();
9687  // int trail = qie10df[ii].te_tdc();
9688  // int capid = qie10df[ii].capid();
9689  // int soi = qie10df[ii].soi();
9690  // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9691  // store pulse information
9692  // THIS NEEDS TO BE UPDATED AND IS ONLY
9693  // BEING USED AS A PLACE HOLDER UNTIL THE
9694  // REAL LINEARIZATION CONSTANTS ARE DEFINED
9695  // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9696  double ampl = 0.;
9697  for (int ii = 0; ii < nTS; ii++) {
9698  int adc = qie10df[ii].adc();
9699  double ampldefault = adc2fC_QIE10[adc];
9700  ampl += ampldefault; //
9701  }
9703  // Digis:HF
9704  if (sub == 4) {
9705  h_error1_HF->Fill(double(error1), 1.);
9706  h_repetedcapid_HF->Fill(double(repetedcapid), 1.);
9707  if (error1 != 0) {
9708  // if(error1 !=0 || error2 !=0 || error3 !=0 ) {
9709  if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9710  ++badchannels[sub - 1][mdepth - 1][ieta + 41][iphi]; // 0-neta ; 0-71
9711  h_amplError_HF->Fill(ampl, 1.);
9712  if (mdepth == 1)
9713  h_mapDepth1Error_HF->Fill(double(ieta), double(iphi));
9714  if (mdepth == 2)
9715  h_mapDepth2Error_HF->Fill(double(ieta), double(iphi));
9716  if (mdepth == 3)
9717  h_mapDepth3Error_HF->Fill(double(ieta), double(iphi));
9718  if (mdepth == 4)
9719  h_mapDepth4Error_HF->Fill(double(ieta), double(iphi));
9720  h_errorGeneral_HF->Fill(double(firstcapid), 1.);
9721  } else {
9722  h_amplFine_HF->Fill(ampl, 1.);
9723  }
9724  }
9725 }
9728 // ------------ method called for each event ------------
9730  CaloSamples toolOriginal; // TS
9731  HcalDetId cell(digiItr->id());
9732  int mdepth = cell.depth();
9733  int iphi = cell.iphi() - 1;
9734  int ieta = cell.ieta();
9735  if (ieta > 0)
9736  ieta -= 1;
9737  int sub = cell.subdet(); // 1-HB, 2-HE, 3-HO, 4-HF
9738  int errorGeneral = 0;
9739  int error1 = 0;
9740  int error2 = 0;
9741  int error3 = 0;
9742  int error4 = 0;
9743  int error5 = 0;
9744  int error6 = 0;
9745  int error7 = 0;
9746  // !!!!!!
9747  bool anycapid = true;
9748  bool anyer = false;
9749  bool anydv = true;
9750  // for help:
9751  int firstcapid = 0;
9752  int sumcapid = 0;
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(); // capId (0-3, sequential)
9760  bool er = (*digiItr)[ii].er(); // error
9761  bool dv = (*digiItr)[ii].dv(); // valid data
9762  int fiber = (*digiItr)[ii].fiber(); // get the fiber number
9763  int fiberChan = (*digiItr)[ii].fiberChan(); // get the fiber channel number
9764  int fiberAndChan = (*digiItr)[ii].fiberAndChan(); // get the id channel
9765  if (ii != 0 && ((lastcapid + 1) % 4) != capid) {
9766  anycapid = false;
9767  ERRORfiber = fiber;
9768  ERRORfiberChan = fiberChan;
9769  ERRORfiberAndChan = fiberAndChan;
9770  if (capid != lastcapid) {
9771  } else {
9772  repetedcapid = 1;
9773  }
9774  }
9775  lastcapid = capid;
9776 
9777  if (ii == 0)
9778  firstcapid = capid;
9779  sumcapid += capid;
9780 
9781  if (er) {
9782  anyer = true;
9783  ERRORfiber = fiber;
9784  ERRORfiberChan = fiberChan;
9785  ERRORfiberAndChan = fiberAndChan;
9786  }
9787  if (!dv) {
9788  anydv = false;
9789  ERRORfiber = fiber;
9790  ERRORfiberChan = fiberChan;
9791  ERRORfiberAndChan = fiberAndChan;
9792  }
9793 
9794  } // for
9795 
9797  if (firstcapid == 0 && !anycapid)
9798  errorGeneral = 1;
9799  if (firstcapid == 1 && !anycapid)
9800  errorGeneral = 2;
9801  if (firstcapid == 2 && !anycapid)
9802  errorGeneral = 3;
9803  if (firstcapid == 3 && !anycapid)
9804  errorGeneral = 4;
9805  if (!anycapid)
9806  error1 = 1;
9807  if (anyer)
9808  error2 = 1;
9809  if (!anydv)
9810  error3 = 1;
9811 
9812  if (!anycapid && anyer)
9813  error4 = 1;
9814  if (!anycapid && !anydv)
9815  error5 = 1;
9816  if (!anycapid && anyer && !anydv)
9817  error6 = 1;
9818  if (anyer && !anydv)
9819  error7 = 1;
9821  // Energy:
9822  double ampl = 0.;
9823  for (int ii = 0; ii < (*digiItr).size(); ii++) {
9824  double ampldefault = adc2fC[digiItr->sample(ii).adc()];
9825  ampl += ampldefault; // fC
9826  }
9828  // Digis:
9829  // HO
9830  if (sub == 3) {
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.);
9840 
9841  if (error1 != 0 || error2 != 0 || error3 != 0) {
9842  if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 0)
9843  ++badchannels[sub - 1][mdepth - 1][ieta + 41][iphi]; // 0-neta ; 0-71
9844  h_amplError_HO->Fill(ampl, 1.);
9845  if (mdepth == 4)
9846  h_mapDepth4Error_HO->Fill(double(ieta), double(iphi));
9847  // to be divided by h_mapDepth4_HO
9848 
9849  if (mdepth != 4)
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.);
9854  } else {
9855  h_amplFine_HO->Fill(ampl, 1.);
9856  }
9857  }
9858 }
9862  CaloSamples toolOriginal; // TS
9863  double tool[100];
9864  double toolwithPedSubtr[100]; // TS
9865  double lintoolwithoutPedSubtr[100]; // TS
9866  HcalDetId cell(digiItr->id());
9867  int mdepth = cell.depth();
9868  int iphi = cell.iphi() - 1; // 0-71
9869  int ieta0 = cell.ieta(); //-41 +41 !=0
9870  int ieta = ieta0;
9871  if (ieta > 0)
9872  ieta -= 1; //-41 +41
9873  int sub = cell.subdet(); // 1-HB, 2-HE (HFDigiCollection: 4-HF)
9874  const HcalPedestal* pedestal00 = conditions->getPedestal(cell);
9875  const HcalGain* gain = conditions->getGain(cell);
9876  // const HcalGainWidth* gainWidth = conditions->getGainWidth(cell);
9877  const HcalRespCorr* respcorr = conditions->getHcalRespCorr(cell);
9878  const HcalTimeCorr* timecorr = conditions->getHcalTimeCorr(cell);
9879  const HcalLUTCorr* lutcorr = conditions->getHcalLUTCorr(cell);
9880  // HcalCalibrations calib = conditions->getHcalCalibrations(cell);
9881  const HcalQIECoder* channelCoder = conditions->getHcalCoder(cell);
9882  const HcalPedestalWidth* pedw = conditions->getPedestalWidth(cell);
9883  HcalCoderDb coder(*channelCoder, *shape);
9884  if (useADCfC_)
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.;
9902 
9903  double amplitudewithPedSubtr1 = 0.;
9904  double amplitudewithPedSubtr2 = 0.;
9905  double amplitudewithPedSubtr3 = 0.;
9906  double amplitudewithPedSubtr4 = 0.;
9907  double amplitude = 0.;
9908  double absamplitude = 0.;
9909  double amplitude345 = 0.;
9910  double ampl = 0.;
9911  double linamplitudewithoutPedSubtr = 0.;
9912  double timew = 0.;
9913  double timeww = 0.;
9914  double max_signal = -100.;
9915  int ts_with_max_signal = -100;
9916  int c0 = 0;
9917  int c1 = 0;
9918  int c2 = 0;
9919  int c3 = 0;
9920  int c4 = 0;
9921  double errorBtype = 0.;
9922 
9923  // int TSsize = 10;
9924  int TSsize = 10;
9925  // if((*digiItr).size() != 10) std::cout << "TSsize HBHE != 10 and = " <<(*digiItr).size()<< std::endl;
9926  if ((*digiItr).size() != TSsize)
9927  errorBtype = 1.;
9928  TSsize = digiItr->size();
9929  // ii = 0 to 9
9930  for (int ii = 0; ii < TSsize; ii++) {
9931  // for (int ii=0; ii<digiItr->size(); 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()]; // massive ADCcounts
9939  if (useADCfC_)
9940  ampldefault1 = toolOriginal[ii]; //adcfC
9941  ampldefault2 = (*digiItr)[ii].adc(); //ADCcounts linearized
9942  if (useADCmassive_) {
9943  ampldefault = ampldefault0;
9944  }
9945  if (useADCfC_) {
9946  ampldefault = ampldefault1;
9947  }
9948  if (useADCcounts_) {
9949  ampldefault = ampldefault2;
9950  }
9951  ampldefaultwithPedSubtr = ampldefault0;
9952  linampldefaultwithoutPedSubtr = ampldefault2;
9953 
9954  int capid = ((*digiItr)[ii]).capid();
9955  // double pedestal = calib.pedestal(capid);
9956  double pedestalINI = pedestal00->getValue(capid);
9957  double pedestal = pedestal00->getValue(capid);
9958  double pedestalw = pedw->getSigma(capid, capid);
9959  ampldefaultwithPedSubtr -= pedestal; // pedestal subtraction
9960  if (usePedestalSubtraction_)
9961  ampldefault -= pedestal; // pedestal subtraction
9962  // ampldefault*= calib.respcorrgain(capid) ; // fC --> GeV
9963  tool[ii] = ampldefault;
9964  toolwithPedSubtr[ii] = ampldefaultwithPedSubtr;
9965  lintoolwithoutPedSubtr[ii] = linampldefaultwithoutPedSubtr;
9966 
9967  pedestalaver9 += pedestal;
9968  pedestalwaver9 += pedestalw * pedestalw;
9969 
9970  if (capid == 0 && c0 == 0) {
9971  c0++;
9972  c4++;
9973  pedestalaver4 += pedestal;
9974  pedestal0 = pedestal;
9975  pedestalw0 = pedestalw;
9976  pedestalwaver4 += pedestalw * pedestalw;
9977  difpedestal0 = pedestal - pedestalINI;
9978  }
9979 
9980  if (capid == 1 && c1 == 0) {
9981  c1++;
9982  c4++;
9983  pedestalaver4 += pedestal;
9984  pedestal1 = pedestal;
9985  pedestalw1 = pedestalw;
9986  pedestalwaver4 += pedestalw * pedestalw;
9987  difpedestal1 = pedestal - pedestalINI;
9988  }
9989  if (capid == 2 && c2 == 0) {
9990  c2++;
9991  c4++;
9992  pedestalaver4 += pedestal;
9993  pedestal2 = pedestal;
9994  pedestalw2 = pedestalw;
9995  pedestalwaver4 += pedestalw * pedestalw;
9996  difpedestal2 = pedestal - pedestalINI;
9997  }
9998  if (capid == 3 && c3 == 0) {
9999  c3++;
10000  c4++;
10001  pedestalaver4 += pedestal;
10002  pedestal3 = pedestal;
10003  pedestalw3 = pedestalw;
10004  pedestalwaver4 += pedestalw * pedestalw;
10005  difpedestal3 = pedestal - pedestalINI;
10006  }
10007 
10008  if (max_signal < ampldefault) {
10009  max_signal = ampldefault;
10010  ts_with_max_signal = ii;
10011  }
10013  // TS = 1 to 10: 1 2 3 4 5 6 7 8 9 10
10014  // ii = 0 to 9: 0 1 2 3 4 5 6 7 8 9
10015  // var.1 ----------------------
10016  // var.2 ----------------
10017  // var.3 ----------
10018  // var.4 -------
10019  //
10020  // TS = 2-9 for raddam only var.1
10021  if (ii > 0 && ii < 9)
10022  amplitudewithPedSubtr1 += ampldefaultwithPedSubtr; //
10023  // TS = 3-8 for raddam only var.2
10024  if (ii > 1 && ii < 8)
10025  amplitudewithPedSubtr2 += ampldefaultwithPedSubtr; //
10026  // TS = 4-7 for raddam only var.3
10027  if (ii > 2 && ii < 7)
10028  amplitudewithPedSubtr3 += ampldefaultwithPedSubtr; //
10029  // TS = 4-6 for raddam only var.4
10030  if (ii > 2 && ii < 6)
10031  amplitudewithPedSubtr4 += ampldefaultwithPedSubtr; //
10032  //
10033  amplitude += ampldefault; //
10034  absamplitude += abs(ampldefault); //
10035 
10036  if (ii == 3 || ii == 4 || ii == 5)
10037  amplitude345 += ampldefault;
10038  if (flagcpuoptimization_ == 0) {
10040  } //flagcpuoptimization
10041  timew += (ii + 1) * abs(ampldefault);
10042  timeww += (ii + 1) * ampldefault;
10043  } //for 1
10044  amplitudechannel0[sub - 1][mdepth - 1][ieta + 41][iphi] += 1.; // 0-neta ; 0-71 HBHE
10045  amplitudechannel[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude; // 0-neta ; 0-71 HBHE
10046  amplitudechannel2[sub - 1][mdepth - 1][ieta + 41][iphi] += pow(amplitude, 2); // 0-neta ; 0-71 HBHE
10047 
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];
10060 
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];
10070 
10071  double ratio = 0.;
10072  if (amplitude != 0.)
10073  ratio = ampl / amplitude;
10074  if (ratio < 0. || ratio > 1.02)
10075  ratio = 0.;
10076  double aveamplitude = 0.;
10077  double aveamplitudew = 0.;
10078  if (absamplitude > 0 && timew > 0)
10079  aveamplitude = timew / absamplitude; // average_TS +1
10080  if (amplitude > 0 && timeww > 0)
10081  aveamplitudew = timeww / amplitude; // average_TS +1
10082  double rmsamp = 0.;
10083  // and CapIdErrors:
10084  int error = 0;
10085  bool anycapid = true;
10086  bool anyer = false;
10087  bool anydv = true;
10088  int lastcapid = 0;
10089  int capid = 0;
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); // fC
10095  capid = ((*digiItr)[ii]).capid();
10096  bool er = (*digiItr)[ii].er(); // error
10097  bool dv = (*digiItr)[ii].dv(); // valid data
10098  if (ii != 0 && ((lastcapid + 1) % 4) != capid) {
10099  anycapid = false;
10100  }
10101  // std::cout << " ii = " << ii << " capid = " << capid << " ((lastcapid+1)%4) = " << ((lastcapid+1)%4) << std::endl;
10102  lastcapid = capid;
10103  if (er) {
10104  anyer = true;
10105  }
10106  if (!dv) {
10107  anydv = false;
10108  }
10109  } //for 2
10110  if (!anycapid || anyer || !anydv)
10111  error = 1;
10112 
10113  double rmsamplitude = 0.;
10114  if ((amplitude > 0 && rmsamp > 0) || (amplitude < 0 && rmsamp < 0))
10115  rmsamplitude = sqrt(rmsamp / amplitude);
10116  double aveamplitude1 = aveamplitude - 1; // means iTS=0-9
10117 
10118  // CapIdErrors end /////////////////////////////////////////////////////////
10119 
10120  // AZ 1.10.2015:
10121  if (error == 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.);
10132  }
10133  if (error != 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.);
10144  }
10145 
10146  for (int ii = 0; ii < TSsize; ii++) {
10147  // for (int ii=0; ii<10; ii++) {
10148  double ampldefault = tool[ii];
10150  if (sub == 1) {
10151  if (amplitude > 120) {
10152  h_shape_Ahigh_HB0->Fill(float(ii), ampldefault);
10153  h_shape0_Ahigh_HB0->Fill(float(ii), 1.);
10154  } else {
10155  h_shape_Alow_HB0->Fill(float(ii), ampldefault);
10156  h_shape0_Alow_HB0->Fill(float(ii), 1.);
10157  } //HB0
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.);
10163  } else {
10164  h_shape_Alow_HB1->Fill(float(ii), ampldefault);
10165  h_shape0_Alow_HB1->Fill(float(ii), 1.);
10166  } //HB1
10167  if (error == 0) {
10168  h_shape_Ahigh_HB2->Fill(float(ii), ampldefault);
10169  h_shape0_Ahigh_HB2->Fill(float(ii), 1.);
10170  } else {
10171  h_shape_Alow_HB2->Fill(float(ii), ampldefault);
10172  h_shape0_Alow_HB2->Fill(float(ii), 1.);
10173  } //HB2
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.);
10179  } else {
10180  h_shape_Alow_HB3->Fill(float(ii), ampldefault);
10181  h_shape0_Alow_HB3->Fill(float(ii), 1.);
10182  } //HB3
10183 
10184  } // sub HB
10185 
10186  } //for 3 over TSs
10187 
10188  if (sub == 1) {
10189  // bad_channels with C,A,W,P,pW,
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.);
10198  }
10199  }
10200  // good_channels with C,A,W,P,pW
10201  else {
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.);
10206  }
10207  }
10208  } // sub HB
10209  if (sub == 2) {
10210  // bad_channels with C,A,W,P,pW,
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.);
10219  }
10220  }
10221  // good_channels with C,A,W,P,pW,
10222  else {
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.);
10227  }
10228  }
10229  } // sub HE
10230 
10232  sum0Estimator[sub - 1][mdepth - 1][ieta + 41][iphi] += 1.;
10233  // for Error B-type
10234  sumEstimator6[sub - 1][mdepth - 1][ieta + 41][iphi] += errorBtype;
10235  sumEstimator0[sub - 1][mdepth - 1][ieta + 41][iphi] += pedestal0; //Pedestals
10236  // HB
10237  if (sub == 1) {
10238  if (studyPedestalCorrelations_) {
10239  // // // // // // // // // HB PedestalCorrelations :
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.);
10248 
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);
10253  h_amplvsped0_HB->Fill(amplitude, 1.);
10254  } //
10255  // // // // // // // // // HB Pedestals:
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.);
10269  // for averaged values:
10270  if (mdepth == 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);
10279  }
10280  if (mdepth == 2) {
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);
10289  }
10290  if (pedestalw0 < pedestalwHBMax_ || pedestalw1 < pedestalwHBMax_ || pedestalw2 < pedestalwHBMax_ ||
10291  pedestalw3 < pedestalwHBMax_) {
10292  if (mdepth == 1)
10293  h_mapDepth1pedestalw_HB->Fill(double(ieta), double(iphi), 1.);
10294  if (mdepth == 2)
10295  h_mapDepth2pedestalw_HB->Fill(double(ieta), double(iphi), 1.);
10296  if (mdepth == 3)
10297  h_mapDepth3pedestalw_HB->Fill(double(ieta), double(iphi), 1.);
10298  if (mdepth == 4)
10299  h_mapDepth4pedestalw_HB->Fill(double(ieta), double(iphi), 1.);
10300  }
10301  if (pedestal0 < pedestalHBMax_ || pedestal1 < pedestalHBMax_ || pedestal2 < pedestalHBMax_ ||
10302  pedestal3 < pedestalHBMax_) {
10303  if (mdepth == 1)
10304  h_mapDepth1pedestal_HB->Fill(double(ieta), double(iphi), 1.);
10305  if (mdepth == 2)
10306  h_mapDepth2pedestal_HB->Fill(double(ieta), double(iphi), 1.);
10307  if (mdepth == 3)
10308  h_mapDepth3pedestal_HB->Fill(double(ieta), double(iphi), 1.);
10309  if (mdepth == 4)
10310  h_mapDepth4pedestal_HB->Fill(double(ieta), double(iphi), 1.);
10311  }
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.);
10315  }
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.);
10323  } //
10324  // // // // // // // // // HB ADCAmpl:
10325  if (studyADCAmplHist_) {
10326  h_ADCAmpl345Zoom_HB->Fill(amplitude345, 1.);
10327  h_ADCAmpl345Zoom1_HB->Fill(amplitude345, 1.);
10328  h_ADCAmpl345_HB->Fill(amplitude345, 1.);
10329  if (error == 0) {
10330  h_ADCAmpl_HBCapIdNoError->Fill(amplitude, 1.);
10331  h_ADCAmpl345_HBCapIdNoError->Fill(amplitude345, 1.);
10332  }
10333  if (error == 1) {
10334  h_ADCAmpl_HBCapIdError->Fill(amplitude, 1.);
10335  h_ADCAmpl345_HBCapIdError->Fill(amplitude345, 1.);
10336  }
10337  h_ADCAmplZoom_HB->Fill(amplitude, 1.);
10338  h_ADCAmplZoom1_HB->Fill(amplitude, 1.);
10339  h_ADCAmpl_HB->Fill(amplitude, 1.);
10340 
10341  h_AmplitudeHBrest->Fill(amplitude, 1.);
10342  h_AmplitudeHBrest1->Fill(amplitude, 1.);
10343  h_AmplitudeHBrest6->Fill(amplitude, 1.);
10344 
10345  if (amplitude < ADCAmplHBMin_ || amplitude > ADCAmplHBMax_) {
10346  if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 5)
10347  ++badchannels[sub - 1][mdepth - 1][ieta + 41][iphi]; // 0-neta ; 0-71
10348  if (mdepth == 1)
10349  h_mapDepth1ADCAmpl225_HB->Fill(double(ieta), double(iphi), 1.);
10350  if (mdepth == 2)
10351  h_mapDepth2ADCAmpl225_HB->Fill(double(ieta), double(iphi), 1.);
10352  } // if
10353  // if(amplitude >400.) averSIGNALoccupancy_HB += 1.;
10354  if (amplitude < 35.) {
10355  if (mdepth == 1)
10356  h_mapDepth1ADCAmpl225Copy_HB->Fill(double(ieta), double(iphi), 1.);
10357  if (mdepth == 2)
10358  h_mapDepth2ADCAmpl225Copy_HB->Fill(double(ieta), double(iphi), 1.);
10359  } // if
10360  // for averaged values:
10361  if (mdepth == 1)
10362  h_mapDepth1ADCAmpl_HB->Fill(double(ieta), double(iphi), amplitude);
10363  if (mdepth == 2)
10364  h_mapDepth2ADCAmpl_HB->Fill(double(ieta), double(iphi), amplitude);
10365  if (mdepth == 1)
10366  h_mapDepth1ADCAmpl12_HB->Fill(double(ieta), double(iphi), ampl);
10367  if (mdepth == 2)
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_)
10374  sumEstimator1[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude;
10375  } //if(studyADCAmplHist_
10377 
10378  // // // // // // // // // HB TSmean:
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]; // 0-neta ; 0-71
10384  if (mdepth == 1)
10385  h_mapDepth1TSmeanA225_HB->Fill(double(ieta), double(iphi), 1.);
10386  if (mdepth == 2)
10387  h_mapDepth2TSmeanA225_HB->Fill(double(ieta), double(iphi), 1.);
10388  } // if
10389  // for averaged values:
10390  if (mdepth == 1)
10391  h_mapDepth1TSmeanA_HB->Fill(double(ieta), double(iphi), aveamplitude1);
10392  if (mdepth == 2)
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;
10396  } //if(studyTSmeanShapeHist_
10398 
10399  // // // // // // // // // HB TSmax:
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]; // 0-neta ; 0-71
10405  if (mdepth == 1)
10406  h_mapDepth1TSmaxA225_HB->Fill(double(ieta), double(iphi), 1.);
10407  if (mdepth == 2)
10408  h_mapDepth2TSmaxA225_HB->Fill(double(ieta), double(iphi), 1.);
10409  } // if
10410  // for averaged values:
10411  if (mdepth == 1)
10412  h_mapDepth1TSmaxA_HB->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
10413  if (mdepth == 2)
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);
10417  } //if(studyTSmaxShapeHist_
10419 
10420  // // // // // // // // // HB RMS:
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]; // 0-neta ; 0-71
10426  if (mdepth == 1)
10427  h_mapDepth1Amplitude225_HB->Fill(double(ieta), double(iphi), 1.);
10428  if (mdepth == 2)
10429  h_mapDepth2Amplitude225_HB->Fill(double(ieta), double(iphi), 1.);
10430  } // if
10431  // for averaged values:
10432  if (mdepth == 1)
10433  h_mapDepth1Amplitude_HB->Fill(double(ieta), double(iphi), rmsamplitude);
10434  if (mdepth == 2)
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;
10438  } //if(studyRMSshapeHist_)
10440 
10441  // // // // // // // // // HB Ratio:
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]; // 0-neta ; 0-71
10447  if (mdepth == 1)
10448  h_mapDepth1Ampl047_HB->Fill(double(ieta), double(iphi), 1.);
10449  if (mdepth == 2)
10450  h_mapDepth2Ampl047_HB->Fill(double(ieta), double(iphi), 1.);
10451  // //
10452  } //if(ratio
10453  // for averaged values:
10454  if (mdepth == 1)
10455  h_mapDepth1Ampl_HB->Fill(double(ieta), double(iphi), ratio);
10456  if (mdepth == 2)
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;
10460  } //if(studyRatioShapeHist_)
10462 
10463  // // // // // // // // // HB DiffAmplitude:
10464  if (studyDiffAmplHist_) {
10465  if (mdepth == 1)
10466  h_mapDepth1AmplE34_HB->Fill(double(ieta), double(iphi), amplitude);
10467  if (mdepth == 2)
10468  h_mapDepth2AmplE34_HB->Fill(double(ieta), double(iphi), amplitude);
10469  } // if(studyDiffAmplHist_)
10470 
10472  if (mdepth == 1)
10473  h_mapDepth1_HB->Fill(double(ieta), double(iphi), 1.);
10474  if (mdepth == 2)
10475  h_mapDepth2_HB->Fill(double(ieta), double(iphi), 1.);
10476  } //if ( sub == 1 )
10477 
10478  // HE
10479  if (sub == 2) {
10480  // // // // // // // // // HE PedestalCorrelations :
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.);
10490  } //
10491  // // // // // // // // // HE Pedestals:
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.);
10505  // for averaged values:
10506  if (mdepth == 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);
10515  }
10516  if (mdepth == 2) {
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);
10525  }
10526  if (mdepth == 3) {
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);
10535  }
10536  if (pedestalw0 < pedestalwHEMax_ || pedestalw1 < pedestalwHEMax_ || pedestalw2 < pedestalwHEMax_ ||
10537  pedestalw3 < pedestalwHEMax_) {
10538  if (mdepth == 1)
10539  h_mapDepth1pedestalw_HE->Fill(double(ieta), double(iphi), 1.);
10540  if (mdepth == 2)
10541  h_mapDepth2pedestalw_HE->Fill(double(ieta), double(iphi), 1.);
10542  if (mdepth == 3)
10543  h_mapDepth3pedestalw_HE->Fill(double(ieta), double(iphi), 1.);
10544  }
10545  if (pedestal0 < pedestalHEMax_ || pedestal1 < pedestalHEMax_ || pedestal2 < pedestalHEMax_ ||
10546  pedestal3 < pedestalHEMax_) {
10547  if (mdepth == 1)
10548  h_mapDepth1pedestal_HE->Fill(double(ieta), double(iphi), 1.);
10549  if (mdepth == 2)
10550  h_mapDepth2pedestal_HE->Fill(double(ieta), double(iphi), 1.);
10551  if (mdepth == 3)
10552  h_mapDepth3pedestal_HE->Fill(double(ieta), double(iphi), 1.);
10553  }
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.);
10557  }
10558  h_respcorr_HE->Fill(respcorr->getValue(), 1.);
10559  h_timecorr_HE->Fill(timecorr->getValue(), 1.);
10560  h_lutcorr_HE->Fill(lutcorr->getValue(), 1.);
10561  } //
10562 
10563  // h_mapDepth1ADCAmpl12SiPM_HE
10564  // // // // // // // // // HE ADCAmpl:
10565  if (studyADCAmplHist_) {
10566  h_ADCAmpl345Zoom_HE->Fill(ampl, 1.);
10567  h_ADCAmpl345Zoom1_HE->Fill(amplitude345, 1.);
10568  h_ADCAmpl345_HE->Fill(amplitude345, 1.);
10569  h_ADCAmpl_HE->Fill(amplitude, 1.);
10570 
10571  h_ADCAmplrest_HE->Fill(amplitude, 1.);
10572  h_ADCAmplrest1_HE->Fill(amplitude, 1.);
10573  h_ADCAmplrest6_HE->Fill(amplitude, 1.);
10574 
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]; // 0-neta ; 0-71
10579  if (mdepth == 1)
10580  h_mapDepth1ADCAmpl225_HE->Fill(double(ieta), double(iphi), 1.);
10581  if (mdepth == 2)
10582  h_mapDepth2ADCAmpl225_HE->Fill(double(ieta), double(iphi), 1.);
10583  if (mdepth == 3)
10584  h_mapDepth3ADCAmpl225_HE->Fill(double(ieta), double(iphi), 1.);
10585  } // if
10586  // if(amplitude > 700.) averSIGNALoccupancy_HE += 1.;
10587  if (amplitude < 500.) {
10588  if (mdepth == 1)
10589  h_mapDepth1ADCAmpl225Copy_HE->Fill(double(ieta), double(iphi), 1.);
10590  if (mdepth == 2)
10591  h_mapDepth2ADCAmpl225Copy_HE->Fill(double(ieta), double(iphi), 1.);
10592  if (mdepth == 3)
10593  h_mapDepth3ADCAmpl225Copy_HE->Fill(double(ieta), double(iphi), 1.);
10594  } // if
10595  // for averaged values:
10596  if (mdepth == 1)
10597  h_mapDepth1ADCAmpl_HE->Fill(double(ieta), double(iphi), amplitude);
10598  if (mdepth == 2)
10599  h_mapDepth2ADCAmpl_HE->Fill(double(ieta), double(iphi), amplitude);
10600  if (mdepth == 3)
10601  h_mapDepth3ADCAmpl_HE->Fill(double(ieta), double(iphi), amplitude);
10602 
10603  if (mdepth == 1) {
10604  h_mapDepth1ADCAmpl12_HE->Fill(double(ieta), double(iphi), ampl);
10605  h_mapDepth1linADCAmpl12_HE->Fill(double(ieta), double(iphi), linamplitudewithoutPedSubtr);
10606  }
10607  if (mdepth == 2) {
10608  h_mapDepth2ADCAmpl12_HE->Fill(double(ieta), double(iphi), ampl);
10609  h_mapDepth2linADCAmpl12_HE->Fill(double(ieta), double(iphi), linamplitudewithoutPedSubtr);
10610  }
10611  if (mdepth == 3) {
10612  h_mapDepth3ADCAmpl12_HE->Fill(double(ieta), double(iphi), ampl);
10613  h_mapDepth3linADCAmpl12_HE->Fill(double(ieta), double(iphi), linamplitudewithoutPedSubtr);
10614  }
10615 
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.);
10622 
10624 
10625  if (amplitude > forallestimators_amplitude_bigger_)
10626  sumEstimator1[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude;
10627 
10628  } //if(studyADCAmplHist_
10630  // // // // // // // // // HE TSmean:
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]; // 0-neta ; 0-71
10636  if (mdepth == 1)
10637  h_mapDepth1TSmeanA225_HE->Fill(double(ieta), double(iphi), 1.);
10638  if (mdepth == 2)
10639  h_mapDepth2TSmeanA225_HE->Fill(double(ieta), double(iphi), 1.);
10640  if (mdepth == 3)
10641  h_mapDepth3TSmeanA225_HE->Fill(double(ieta), double(iphi), 1.);
10642  } // if
10643  // for averaged values:
10644  if (mdepth == 1)
10645  h_mapDepth1TSmeanA_HE->Fill(double(ieta), double(iphi), aveamplitude1);
10646  if (mdepth == 2)
10647  h_mapDepth2TSmeanA_HE->Fill(double(ieta), double(iphi), aveamplitude1);
10648  if (mdepth == 3)
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;
10652  } //if(studyTSmeanShapeHist_) {
10654  // // // // // // // // // HE TSmax:
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]; // 0-neta ; 0-71
10660  if (mdepth == 1)
10661  h_mapDepth1TSmaxA225_HE->Fill(double(ieta), double(iphi), 1.);
10662  if (mdepth == 2)
10663  h_mapDepth2TSmaxA225_HE->Fill(double(ieta), double(iphi), 1.);
10664  if (mdepth == 3)
10665  h_mapDepth3TSmaxA225_HE->Fill(double(ieta), double(iphi), 1.);
10666  } // if
10667  // for averaged values:
10668  if (mdepth == 1)
10669  h_mapDepth1TSmaxA_HE->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
10670  if (mdepth == 2)
10671  h_mapDepth2TSmaxA_HE->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
10672  if (mdepth == 3)
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);
10676  } //if(studyTSmaxShapeHist_) {
10678  // // // // // // // // // HE RMS:
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]; // 0-neta ; 0-71
10684  if (mdepth == 1)
10685  h_mapDepth1Amplitude225_HE->Fill(double(ieta), double(iphi), 1.);
10686  if (mdepth == 2)
10687  h_mapDepth2Amplitude225_HE->Fill(double(ieta), double(iphi), 1.);
10688  if (mdepth == 3)
10689  h_mapDepth3Amplitude225_HE->Fill(double(ieta), double(iphi), 1.);
10690  }
10691  // for averaged values:
10692  if (mdepth == 1)
10693  h_mapDepth1Amplitude_HE->Fill(double(ieta), double(iphi), rmsamplitude);
10694  if (mdepth == 2)
10695  h_mapDepth2Amplitude_HE->Fill(double(ieta), double(iphi), rmsamplitude);
10696  if (mdepth == 3)
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;
10700  } //if(studyRMSshapeHist_)
10702 
10703  // // // // // // // // // HE Ratio:
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]; // 0-neta ; 0-71
10709  if (mdepth == 1)
10710  h_mapDepth1Ampl047_HE->Fill(double(ieta), double(iphi), 1.);
10711  if (mdepth == 2)
10712  h_mapDepth2Ampl047_HE->Fill(double(ieta), double(iphi), 1.);
10713  if (mdepth == 3)
10714  h_mapDepth3Ampl047_HE->Fill(double(ieta), double(iphi), 1.);
10715  }
10716  // for averaged values:
10717  if (mdepth == 1)
10718  h_mapDepth1Ampl_HE->Fill(double(ieta), double(iphi), ratio);
10719  if (mdepth == 2)
10720  h_mapDepth2Ampl_HE->Fill(double(ieta), double(iphi), ratio);
10721  if (mdepth == 3)
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;
10725  } //if(studyRatioShapeHist_)
10727  // // // // // // // // // HE DiffAmplitude:
10728  if (studyDiffAmplHist_) {
10729  // gain stability:
10730  if (mdepth == 1)
10731  h_mapDepth1AmplE34_HE->Fill(double(ieta), double(iphi), amplitude);
10732  if (mdepth == 2)
10733  h_mapDepth2AmplE34_HE->Fill(double(ieta), double(iphi), amplitude);
10734  if (mdepth == 3)
10735  h_mapDepth3AmplE34_HE->Fill(double(ieta), double(iphi), amplitude);
10736 
10737  } // if(studyDiffAmplHist_)
10738 
10739  // RADDAM filling:
10740  if (flagLaserRaddam_ > 0) {
10741  double amplitudewithPedSubtr = 0.;
10742 
10743  //for cut on A_channel:
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];
10752 
10753  h_AamplitudewithPedSubtr_RADDAM_HE->Fill(amplitudewithPedSubtr);
10754  h_AamplitudewithPedSubtr_RADDAM_HEzoom0->Fill(amplitudewithPedSubtr);
10755  h_AamplitudewithPedSubtr_RADDAM_HEzoom1->Fill(amplitudewithPedSubtr);
10756 
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];
10761  }
10762 
10763  if (mdepth == 1) {
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);
10767  }
10768  if (mdepth == 2) {
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);
10772  }
10773  if (mdepth == 3) {
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);
10777  }
10778 
10779  // (d1 & eta 17-29) L1
10780  int LLLLLL111111 = 0;
10781  if ((mdepth == 1 && fabs(ieta0) > 16 && fabs(ieta0) < 30))
10782  LLLLLL111111 = 1;
10783  // (d2 & eta 17-26) && (d3 & eta 27-28) L2
10784  int LLLLLL222222 = 0;
10785  if ((mdepth == 2 && fabs(ieta0) > 16 && fabs(ieta0) < 27) ||
10786  (mdepth == 3 && fabs(ieta0) > 26 && fabs(ieta0) < 29))
10787  LLLLLL222222 = 1;
10788  //
10789  if (LLLLLL111111 == 1) {
10790  //forStudy h_mapLayer1RADDAM_HE->Fill(fabs(double(ieta0)), amplitudewithPedSubtr); h_mapLayer1RADDAM0_HE->Fill(fabs(double(ieta0)), 1.); h_A_Layer1RADDAM_HE->Fill(amplitudewithPedSubtr);
10791  h_sigLayer1RADDAM_HE->Fill(double(ieta0), amplitudewithPedSubtr);
10792  h_sigLayer1RADDAM0_HE->Fill(double(ieta0), 1.);
10793  }
10794  if (LLLLLL222222 == 1) {
10795  //forStudy h_mapLayer2RADDAM_HE->Fill(fabs(double(ieta0)), amplitudewithPedSubtr); h_mapLayer2RADDAM0_HE->Fill(fabs(double(ieta0)), 1.); h_A_Layer2RADDAM_HE->Fill(amplitudewithPedSubtr);
10796  h_sigLayer2RADDAM_HE->Fill(double(ieta0), amplitudewithPedSubtr);
10797  h_sigLayer2RADDAM0_HE->Fill(double(ieta0), 1.);
10798  }
10799 
10800  //
10801  if (mdepth == 3 && fabs(ieta0) == 16) {
10802  h_mapDepth3RADDAM16_HE->Fill(amplitudewithPedSubtr);
10803  // forStudy h_mapDepth3RADDAM160_HE->Fill(1.);
10804  }
10805  //
10806  } //amplitude > 60.
10807  } // END RADDAM
10808 
10810  if (mdepth == 1)
10811  h_mapDepth1_HE->Fill(double(ieta), double(iphi), 1.);
10812  if (mdepth == 2)
10813  h_mapDepth2_HE->Fill(double(ieta), double(iphi), 1.);
10814  if (mdepth == 3)
10815  h_mapDepth3_HE->Fill(double(ieta), double(iphi), 1.);
10816  } //if ( sub == 2 )
10817  //
10818 } // fillDigiAmplitude
10822  CaloSamples toolOriginal; // TS
10823  double tool[100];
10824  DetId detid = qie11df.detid();
10825  HcalDetId hcaldetid = HcalDetId(detid);
10826  int ieta = hcaldetid.ieta();
10827  if (ieta > 0)
10828  ieta -= 1;
10829  int iphi = hcaldetid.iphi() - 1;
10830  int mdepth = hcaldetid.depth();
10831  int sub = hcaldetid.subdet(); // 1-HB, 2-HE QIE11DigiCollection
10832  nTS = qie11df.samples();
10834  if (mdepth == 0 || sub > 4)
10835  return;
10836  if (mdepth > 3 && flagupgradeqie1011_ == 3)
10837  return;
10838  if (mdepth > 3 && flagupgradeqie1011_ == 7)
10839  return;
10840  if (mdepth > 3 && flagupgradeqie1011_ == 8)
10841  return;
10842  if (mdepth > 3 && flagupgradeqie1011_ == 9)
10843  return;
10844 
10845  // for some CMSSW versions and GT this line uncommented, can help to run job
10846  //if(mdepth ==4 && sub==1 && (ieta == -16 || ieta == 15) ) return;// HB depth4 eta=-16, 15 since I did:if(ieta > 0) ieta -= 1;
10849  const HcalGain* gain = conditions->getGain(hcaldetid);
10850  // const HcalGainWidth* gainWidth = conditions->getGainWidth(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);
10855  const HcalPedestalWidth* pedw = conditions->getPedestalWidth(hcaldetid);
10856  const HcalPedestal* pedestal00 = conditions->getPedestal(hcaldetid);
10857  HcalCoderDb coder(*channelCoder, *shape);
10858  if (useADCfC_)
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.;
10876 
10877  double amplitude = 0.;
10878  double amplitude0 = 0.;
10879  double absamplitude = 0.;
10880  double tocampl = 0.;
10881 
10882  double amplitude345 = 0.;
10883  double ampl = 0.;
10884  double ampl3ts = 0.;
10885  double amplmaxts = 0.;
10886  double timew = 0.;
10887  double timeww = 0.;
10888  double max_signal = -100.;
10889  int ts_with_max_signal = -100;
10890  int c0 = 0;
10891  int c1 = 0;
10892  int c2 = 0;
10893  int c3 = 0;
10894  int c4 = 0;
10895  double errorBtype = 0.;
10896 
10897  int TSsize = 10; // sub= 1 HB
10898  if (sub == 2)
10899  TSsize = 8; // sub = 2 HE
10900 
10901  if (nTS != TSsize)
10902  errorBtype = 1.;
10903  TSsize = nTS; //nTS = qie11df.samples();
10905  // double ADC_ped = 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.;
10912 
10913  ampldefault0 = adc2fC_QIE11_shunt6[qie11df[ii].adc()]; // massive !!!!!! (use for local runs as default shunt6)
10914  if (flaguseshunt_ == 1)
10915  ampldefault0 = adc2fC_QIE11_shunt1[qie11df[ii].adc()]; // massive !!!!!!
10916  if (useADCfC_)
10917  ampldefault1 = toolOriginal[ii]; //adcfC
10918  ampldefault2 = qie11df[ii].adc(); //ADCcounts
10919 
10920  if (useADCmassive_) {
10921  ampldefault = ampldefault0;
10922  } // !!!!!!
10923  if (useADCfC_) {
10924  ampldefault = ampldefault1;
10925  }
10926  if (useADCcounts_) {
10927  ampldefault = ampldefault2;
10928  }
10929  tocdefault = ampldefault;
10930 
10931  int capid = (qie11df[ii]).capid();
10932  double pedestal = pedestal00->getValue(capid);
10933  double pedestalw = pedw->getSigma(capid, capid);
10934  double pedestalINI = pedestal00->getValue(capid);
10935  tocdefault -= pedestal; // pedestal subtraction
10936  if (usePedestalSubtraction_)
10937  ampldefault -= pedestal; // pedestal subtraction
10938  tool[ii] = ampldefault;
10939  pedestalaver9 += pedestal;
10940  pedestalwaver9 += pedestalw * pedestalw;
10941 
10942  if (capid == 0 && c0 == 0) {
10943  c0++;
10944  c4++;
10945  pedestalaver4 += pedestal;
10946  pedestal0 = pedestal;
10947  pedestalw0 = pedestalw;
10948  pedestalwaver4 += pedestalw * pedestalw;
10949  difpedestal0 = pedestal - pedestalINI;
10950  }
10951 
10952  if (capid == 1 && c1 == 0) {
10953  c1++;
10954  c4++;
10955  pedestalaver4 += pedestal;
10956  pedestal1 = pedestal;
10957  pedestalw1 = pedestalw;
10958  pedestalwaver4 += pedestalw * pedestalw;
10959  difpedestal1 = pedestal - pedestalINI;
10960  }
10961  if (capid == 2 && c2 == 0) {
10962  c2++;
10963  c4++;
10964  pedestalaver4 += pedestal;
10965  pedestal2 = pedestal;
10966  pedestalw2 = pedestalw;
10967  pedestalwaver4 += pedestalw * pedestalw;
10968  difpedestal2 = pedestal - pedestalINI;
10969  }
10970  if (capid == 3 && c3 == 0) {
10971  c3++;
10972  c4++;
10973  pedestalaver4 += pedestal;
10974  pedestal3 = pedestal;
10975  pedestalw3 = pedestalw;
10976  pedestalwaver4 += pedestalw * pedestalw;
10977  difpedestal3 = pedestal - pedestalINI;
10978  }
10979 
10980  if (max_signal < ampldefault) {
10981  max_signal = ampldefault;
10982  ts_with_max_signal = ii;
10983  }
10984  amplitude += ampldefault; //
10985  absamplitude += abs(ampldefault); //
10986  tocampl += tocdefault; //
10987 
10988  if (ii == 1 || ii == 2 || ii == 3 || ii == 4 || ii == 5 || ii == 6 || ii == 7 || ii == 8)
10989  amplitude345 += ampldefault;
10990 
10991  if (flagcpuoptimization_ == 0) {
10992  } //flagcpuoptimization
10993 
10994  timew += (ii + 1) * abs(ampldefault);
10995  timeww += (ii + 1) * ampldefault;
10996 
10997  } //for 1
10999  amplitude0 = amplitude;
11000 
11001  pedestalaver9 /= TSsize;
11002  pedestalaver4 /= c4;
11003  pedestalwaver9 = sqrt(pedestalwaver9 / TSsize);
11004  pedestalwaver4 = sqrt(pedestalwaver4 / c4);
11005 
11006  // ------------ to get signal in TS: -2 max +1 ------------
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];
11011  }
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];
11015  }
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];
11019  }
11020  if (ts_with_max_signal + 2 > -1 && ts_with_max_signal + 2 < 10) {
11021  ampl += tool[ts_with_max_signal + 2];
11022  }
11023  // HE charge correction for SiPMs:
11024  if (flagsipmcorrection_ != 0) {
11025  if (sub == 2) {
11026  double xa = amplitude / 40.;
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.;
11032  // ADDI case:
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.);
11047  amplitude *= corrforxa;
11048  ampl *= corrforxb;
11049  amplitude345 *= corrforxc;
11050  ampl3ts *= corrforxd;
11051  amplmaxts *= corrforxe;
11052  tocampl *= corrfortxa;
11053  }
11054  // MAIN case:
11055  else {
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.);
11067  amplitude *= corrforxa;
11068  ampl *= corrforxb;
11069  amplitude345 *= corrforxc;
11070  ampl3ts *= corrforxd;
11071  amplmaxts *= corrforxe;
11072  tocampl *= corrfortxa;
11073  }
11074  } // sub == 2 HE charge correction end
11075  } //flagsipmcorrection_
11077  amplitudechannel0[sub - 1][mdepth - 1][ieta + 41][iphi] += 1.; // 0-neta ; 0-71 HBHE
11078  amplitudechannel[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude; // 0-neta ; 0-71 HBHE
11079  amplitudechannel2[sub - 1][mdepth - 1][ieta + 41][iphi] += pow(amplitude, 2);
11080  tocamplchannel[sub - 1][mdepth - 1][ieta + 41][iphi] += tocampl; // 0-neta ; 0-71 HBHE
11081 
11082  double ratio = 0.;
11083  // if(amplallTS != 0.) ratio = ampl/amplallTS;
11084  if (amplitude != 0.)
11085  ratio = ampl / amplitude;
11086  if (ratio < 0. || ratio > 1.02)
11087  ratio = 0.;
11088  double aveamplitude = 0.;
11089  double aveamplitudew = 0.;
11090  if (absamplitude > 0 && timew > 0)
11091  aveamplitude = timew / absamplitude; // average_TS +1
11092  if (amplitude0 > 0 && timeww > 0)
11093  aveamplitudew = timeww / amplitude0; // average_TS +1
11094  double rmsamp = 0.;
11095  // and CapIdErrors:
11096  int error = 0;
11097  bool anycapid = true;
11098  int lastcapid = 0;
11099  int capid = 0;
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); // fC
11105  capid = (qie11df[ii]).capid();
11106  if (ii != 0 && ((lastcapid + 1) % 4) != capid) {
11107  anycapid = false;
11108  }
11109  lastcapid = capid;
11110  } //for 2
11111 
11112  if (!anycapid)
11113  error = 1;
11114  double rmsamplitude = 0.;
11115  if ((amplitude0 > 0 && rmsamp > 0) || (amplitude0 < 0 && rmsamp < 0))
11116  rmsamplitude = sqrt(rmsamp / amplitude0);
11117  double aveamplitude1 = aveamplitude - 1; // means iTS=0-9
11118  // CapIdErrors end /////////////////////////////////////////////////////////
11119 
11120  // AZ 1.10.2015:
11121  if (error == 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.);
11132  }
11133  if (error != 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.);
11144  }
11145 
11146  for (int ii = 0; ii < TSsize; ii++) {
11147  // for (int ii=0; ii<10; ii++) {
11148  double ampldefault = tool[ii];
11150  if (sub == 1) {
11151  if (amplitude0 > 120) {
11152  h_shape_Ahigh_HB0->Fill(float(ii), ampldefault);
11153  h_shape0_Ahigh_HB0->Fill(float(ii), 1.);
11154  } else {
11155  h_shape_Alow_HB0->Fill(float(ii), ampldefault);
11156  h_shape0_Alow_HB0->Fill(float(ii), 1.);
11157  } //HB0
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.);
11163  } else {
11164  h_shape_Alow_HB1->Fill(float(ii), ampldefault);
11165  h_shape0_Alow_HB1->Fill(float(ii), 1.);
11166  } //HB1
11167  if (error == 0) {
11168  h_shape_Ahigh_HB2->Fill(float(ii), ampldefault);
11169  h_shape0_Ahigh_HB2->Fill(float(ii), 1.);
11170  } else {
11171  h_shape_Alow_HB2->Fill(float(ii), ampldefault);
11172  h_shape0_Alow_HB2->Fill(float(ii), 1.);
11173  } //HB2
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.);
11179  } else {
11180  h_shape_Alow_HB3->Fill(float(ii), ampldefault);
11181  h_shape0_Alow_HB3->Fill(float(ii), 1.);
11182  } //HB3
11183 
11184  } // sub HB
11185 
11186  } //for 3 over TSs
11187 
11188  if (sub == 1) {
11189  // bad_channels with C,A,W,P,pW,
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.);
11198  }
11199  }
11200  // good_channels with C,A,W,P,pW
11201  else {
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.);
11206  }
11207  }
11208  } // sub HB
11209 
11210  // HE starts:
11211  if (sub == 2) {
11212  // shape bad_channels with C,A,W,P,pW,
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.);
11221  }
11222  }
11223  // shape good_channels with C,A,W,P,pW,
11224  else {
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.);
11229  } // ii
11230  } // else for good channels
11231  } // sub HE
11233  sum0Estimator[sub - 1][mdepth - 1][ieta + 41][iphi] += 1.;
11234  // for Error B-type
11235  sumEstimator6[sub - 1][mdepth - 1][ieta + 41][iphi] += errorBtype;
11236  // sumEstimator0[sub-1][mdepth-1][ieta+41][iphi] += pedestalw0;//Sig_Pedestals
11237  sumEstimator0[sub - 1][mdepth - 1][ieta + 41][iphi] += pedestal0; //Pedestals
11238  // HB
11239  if (sub == 1) {
11240  if (studyPedestalCorrelations_) {
11241  // // // // // // // // // HB PedestalCorrelations :
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.);
11250 
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);
11255  h_amplvsped0_HB->Fill(amplitude, 1.);
11256  } //
11257  // // // // // // // // // HB Pedestals:
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.);
11271  // for averaged values:
11272  if (mdepth == 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);
11281  }
11282  if (mdepth == 2) {
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);
11291  }
11292  if (pedestalw0 < pedestalwHBMax_ || pedestalw1 < pedestalwHBMax_ || pedestalw2 < pedestalwHBMax_ ||
11293  pedestalw3 < pedestalwHBMax_) {
11294  if (mdepth == 1)
11295  h_mapDepth1pedestalw_HB->Fill(double(ieta), double(iphi), 1.);
11296  if (mdepth == 2)
11297  h_mapDepth2pedestalw_HB->Fill(double(ieta), double(iphi), 1.);
11298  if (mdepth == 3)
11299  h_mapDepth3pedestalw_HB->Fill(double(ieta), double(iphi), 1.);
11300  if (mdepth == 3)
11301  h_mapDepth4pedestalw_HB->Fill(double(ieta), double(iphi), 1.);
11302  }
11303  if (pedestal0 < pedestalHBMax_ || pedestal1 < pedestalHBMax_ || pedestal2 < pedestalHBMax_ ||
11304  pedestal3 < pedestalHBMax_) {
11305  if (mdepth == 1)
11306  h_mapDepth1pedestal_HB->Fill(double(ieta), double(iphi), 1.);
11307  if (mdepth == 2)
11308  h_mapDepth2pedestal_HB->Fill(double(ieta), double(iphi), 1.);
11309  if (mdepth == 3)
11310  h_mapDepth3pedestal_HB->Fill(double(ieta), double(iphi), 1.);
11311  if (mdepth == 4)
11312  h_mapDepth4pedestal_HB->Fill(double(ieta), double(iphi), 1.);
11313  }
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.);
11317  }
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.);
11325  } //
11326  // // // // // // // // // HB ADCAmpl:
11327  if (studyADCAmplHist_) {
11328  h_ADCAmpl345Zoom_HB->Fill(amplitude345, 1.);
11329  h_ADCAmpl345Zoom1_HB->Fill(amplitude345, 1.);
11330  h_ADCAmpl345_HB->Fill(amplitude345, 1.);
11331  if (error == 0) {
11332  h_ADCAmpl_HBCapIdNoError->Fill(amplitude, 1.);
11333  h_ADCAmpl345_HBCapIdNoError->Fill(amplitude345, 1.);
11334  }
11335  if (error == 1) {
11336  h_ADCAmpl_HBCapIdError->Fill(amplitude, 1.);
11337  h_ADCAmpl345_HBCapIdError->Fill(amplitude345, 1.);
11338  }
11339  h_ADCAmplZoom_HB->Fill(amplitude, 1.);
11340  h_ADCAmplZoom1_HB->Fill(amplitude, 1.);
11341  h_ADCAmpl_HB->Fill(amplitude, 1.);
11342 
11343  h_AmplitudeHBrest->Fill(amplitude, 1.);
11344  h_AmplitudeHBrest1->Fill(amplitude, 1.);
11345  h_AmplitudeHBrest6->Fill(amplitude, 1.);
11346 
11347  if (amplitude < ADCAmplHBMin_ || amplitude > ADCAmplHBMax_) {
11348  if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 5)
11349  ++badchannels[sub - 1][mdepth - 1][ieta + 41][iphi]; // 0-neta ; 0-71
11350  if (mdepth == 1)
11351  h_mapDepth1ADCAmpl225_HB->Fill(double(ieta), double(iphi), 1.);
11352  if (mdepth == 2)
11353  h_mapDepth2ADCAmpl225_HB->Fill(double(ieta), double(iphi), 1.);
11354  if (mdepth == 3)
11355  h_mapDepth3ADCAmpl225_HB->Fill(double(ieta), double(iphi), 1.);
11356  if (mdepth == 4)
11357  h_mapDepth4ADCAmpl225_HB->Fill(double(ieta), double(iphi), 1.);
11358  } // if
11359  // if(amplitude >400.) averSIGNALoccupancy_HB += 1.;
11360  if (amplitude < 35.) {
11361  if (mdepth == 1)
11362  h_mapDepth1ADCAmpl225Copy_HB->Fill(double(ieta), double(iphi), 1.);
11363  if (mdepth == 2)
11364  h_mapDepth2ADCAmpl225Copy_HB->Fill(double(ieta), double(iphi), 1.);
11365  if (mdepth == 3)
11366  h_mapDepth3ADCAmpl225Copy_HB->Fill(double(ieta), double(iphi), 1.);
11367  if (mdepth == 4)
11368  h_mapDepth4ADCAmpl225Copy_HB->Fill(double(ieta), double(iphi), 1.);
11369  } // if
11370  // for averaged values:
11371  if (mdepth == 1)
11372  h_mapDepth1ADCAmpl_HB->Fill(double(ieta), double(iphi), amplitude);
11373  if (mdepth == 2)
11374  h_mapDepth2ADCAmpl_HB->Fill(double(ieta), double(iphi), amplitude);
11375  if (mdepth == 3)
11376  h_mapDepth3ADCAmpl_HB->Fill(double(ieta), double(iphi), amplitude);
11377  if (mdepth == 4)
11378  h_mapDepth4ADCAmpl_HB->Fill(double(ieta), double(iphi), amplitude);
11379  if (mdepth == 1)
11380  h_mapDepth1ADCAmpl12_HB->Fill(double(ieta), double(iphi), ampl);
11381  if (mdepth == 2)
11382  h_mapDepth2ADCAmpl12_HB->Fill(double(ieta), double(iphi), ampl);
11383  if (mdepth == 3)
11384  h_mapDepth3ADCAmpl12_HB->Fill(double(ieta), double(iphi), ampl);
11385  if (mdepth == 4)
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_)
11394  sumEstimator1[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude;
11395  } //if(studyADCAmplHist_
11397 
11398  // // // // // // // // // HB TSmean:
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]; // 0-neta ; 0-71
11404  if (mdepth == 1)
11405  h_mapDepth1TSmeanA225_HB->Fill(double(ieta), double(iphi), 1.);
11406  if (mdepth == 2)
11407  h_mapDepth2TSmeanA225_HB->Fill(double(ieta), double(iphi), 1.);
11408  if (mdepth == 3)
11409  h_mapDepth3TSmeanA225_HB->Fill(double(ieta), double(iphi), 1.);
11410  if (mdepth == 4)
11411  h_mapDepth4TSmeanA225_HB->Fill(double(ieta), double(iphi), 1.);
11412  } // if
11413  // for averaged values:
11414  if (mdepth == 1)
11415  h_mapDepth1TSmeanA_HB->Fill(double(ieta), double(iphi), aveamplitude1);
11416  if (mdepth == 2)
11417  h_mapDepth2TSmeanA_HB->Fill(double(ieta), double(iphi), aveamplitude1);
11418  if (mdepth == 3)
11419  h_mapDepth3TSmeanA_HB->Fill(double(ieta), double(iphi), aveamplitude1);
11420  if (mdepth == 4)
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;
11424  } //if(studyTSmeanShapeHist_
11426 
11427  // // // // // // // // // HB TSmax:
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]; // 0-neta ; 0-71
11433  if (mdepth == 1)
11434  h_mapDepth1TSmaxA225_HB->Fill(double(ieta), double(iphi), 1.);
11435  if (mdepth == 2)
11436  h_mapDepth2TSmaxA225_HB->Fill(double(ieta), double(iphi), 1.);
11437  if (mdepth == 3)
11438  h_mapDepth3TSmaxA225_HB->Fill(double(ieta), double(iphi), 1.);
11439  if (mdepth == 4)
11440  h_mapDepth4TSmaxA225_HB->Fill(double(ieta), double(iphi), 1.);
11441  } // if
11442  // for averaged values:
11443  if (mdepth == 1)
11444  h_mapDepth1TSmaxA_HB->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
11445  if (mdepth == 2)
11446  h_mapDepth2TSmaxA_HB->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
11447  if (mdepth == 3)
11448  h_mapDepth3TSmaxA_HB->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
11449  if (mdepth == 4)
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);
11453  } //if(studyTSmaxShapeHist_
11455 
11456  // // // // // // // // // HB RMS:
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]; // 0-neta ; 0-71
11462  if (mdepth == 1)
11463  h_mapDepth1Amplitude225_HB->Fill(double(ieta), double(iphi), 1.);
11464  if (mdepth == 2)
11465  h_mapDepth2Amplitude225_HB->Fill(double(ieta), double(iphi), 1.);
11466  if (mdepth == 3)
11467  h_mapDepth3Amplitude225_HB->Fill(double(ieta), double(iphi), 1.);
11468  if (mdepth == 4)
11469  h_mapDepth4Amplitude225_HB->Fill(double(ieta), double(iphi), 1.);
11470  } // if
11471  // for averaged values:
11472  if (mdepth == 1)
11473  h_mapDepth1Amplitude_HB->Fill(double(ieta), double(iphi), rmsamplitude);
11474  if (mdepth == 2)
11475  h_mapDepth2Amplitude_HB->Fill(double(ieta), double(iphi), rmsamplitude);
11476  if (mdepth == 3)
11477  h_mapDepth3Amplitude_HB->Fill(double(ieta), double(iphi), rmsamplitude);
11478  if (mdepth == 4)
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;
11482  } //if(studyRMSshapeHist_)
11484 
11485  // // // // // // // // // HB Ratio:
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]; // 0-neta ; 0-71
11491  if (mdepth == 1)
11492  h_mapDepth1Ampl047_HB->Fill(double(ieta), double(iphi), 1.);
11493  if (mdepth == 2)
11494  h_mapDepth2Ampl047_HB->Fill(double(ieta), double(iphi), 1.);
11495  if (mdepth == 3)
11496  h_mapDepth3Ampl047_HB->Fill(double(ieta), double(iphi), 1.);
11497  if (mdepth == 4)
11498  h_mapDepth4Ampl047_HB->Fill(double(ieta), double(iphi), 1.);
11499  // //
11500  } //if(ratio
11501  // for averaged values:
11502  if (mdepth == 1)
11503  h_mapDepth1Ampl_HB->Fill(double(ieta), double(iphi), ratio);
11504  if (mdepth == 2)
11505  h_mapDepth2Ampl_HB->Fill(double(ieta), double(iphi), ratio);
11506  if (mdepth == 3)
11507  h_mapDepth3Ampl_HB->Fill(double(ieta), double(iphi), ratio);
11508  if (mdepth == 4)
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;
11512  } //if(studyRatioShapeHist_)
11514 
11515  // // // // // // // // // HB DiffAmplitude:
11516  if (studyDiffAmplHist_) {
11517  if (mdepth == 1)
11518  h_mapDepth1AmplE34_HB->Fill(double(ieta), double(iphi), amplitude);
11519  if (mdepth == 2)
11520  h_mapDepth2AmplE34_HB->Fill(double(ieta), double(iphi), amplitude);
11521  if (mdepth == 3)
11522  h_mapDepth3AmplE34_HB->Fill(double(ieta), double(iphi), amplitude);
11523  if (mdepth == 4)
11524  h_mapDepth4AmplE34_HB->Fill(double(ieta), double(iphi), amplitude);
11525  } // if(studyDiffAmplHist_)
11526 
11528  if (mdepth == 1)
11529  h_mapDepth1_HB->Fill(double(ieta), double(iphi), 1.);
11530  if (mdepth == 2)
11531  h_mapDepth2_HB->Fill(double(ieta), double(iphi), 1.);
11532  if (mdepth == 3)
11533  h_mapDepth3_HB->Fill(double(ieta), double(iphi), 1.);
11534  if (mdepth == 4)
11535  h_mapDepth4_HB->Fill(double(ieta), double(iphi), 1.);
11536  } //if ( sub == 1 )
11537 
11538  // HE QIE11
11539  if (sub == 2) {
11540  // // // // // // // // // HE QIE11 PedestalCorrelations :
11541  if (studyPedestalCorrelations_) {
11542  // double mypedestal = pedestalaver9;
11543  // double mypedestalw = pedestalwaver9;
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.);
11552  } //
11553  // // // // // // // // // HE QIE11 Pedestals:
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.);
11567  // for averaged values:
11568  if (mdepth == 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);
11577  }
11578  if (mdepth == 2) {
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);
11587  }
11588  if (mdepth == 3) {
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);
11597  }
11598  if (pedestalw0 < pedestalwHEMax_ || pedestalw1 < pedestalwHEMax_ || pedestalw2 < pedestalwHEMax_ ||
11599  pedestalw3 < pedestalwHEMax_) {
11600  if (mdepth == 1)
11601  h_mapDepth1pedestalw_HE->Fill(double(ieta), double(iphi), 1.);
11602  if (mdepth == 2)
11603  h_mapDepth2pedestalw_HE->Fill(double(ieta), double(iphi), 1.);
11604  if (mdepth == 3)
11605  h_mapDepth3pedestalw_HE->Fill(double(ieta), double(iphi), 1.);
11606  if (mdepth == 4)
11607  h_mapDepth4pedestalw_HE->Fill(double(ieta), double(iphi), 1.);
11608  if (mdepth == 5)
11609  h_mapDepth5pedestalw_HE->Fill(double(ieta), double(iphi), 1.);
11610  if (mdepth == 6)
11611  h_mapDepth6pedestalw_HE->Fill(double(ieta), double(iphi), 1.);
11612  if (mdepth == 7)
11613  h_mapDepth7pedestalw_HE->Fill(double(ieta), double(iphi), 1.);
11614  }
11615  if (pedestal0 < pedestalHEMax_ || pedestal1 < pedestalHEMax_ || pedestal2 < pedestalHEMax_ ||
11616  pedestal3 < pedestalHEMax_) {
11617  if (mdepth == 1)
11618  h_mapDepth1pedestal_HE->Fill(double(ieta), double(iphi), 1.);
11619  if (mdepth == 2)
11620  h_mapDepth2pedestal_HE->Fill(double(ieta), double(iphi), 1.);
11621  if (mdepth == 3)
11622  h_mapDepth3pedestal_HE->Fill(double(ieta), double(iphi), 1.);
11623  if (mdepth == 4)
11624  h_mapDepth4pedestal_HE->Fill(double(ieta), double(iphi), 1.);
11625  if (mdepth == 5)
11626  h_mapDepth5pedestal_HE->Fill(double(ieta), double(iphi), 1.);
11627  if (mdepth == 6)
11628  h_mapDepth6pedestal_HE->Fill(double(ieta), double(iphi), 1.);
11629  if (mdepth == 7)
11630  h_mapDepth7pedestal_HE->Fill(double(ieta), double(iphi), 1.);
11631  }
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.);
11635  }
11636  h_respcorr_HE->Fill(respcorr->getValue(), 1.);
11637  h_timecorr_HE->Fill(timecorr->getValue(), 1.);
11638  h_lutcorr_HE->Fill(lutcorr->getValue(), 1.);
11639  } //
11640  // // // // // // // // // HE QIE11 ADCAmpl:
11641  if (studyADCAmplHist_) {
11642  h_ADCAmpl345_HE->Fill(amplitude345, 1.);
11643  h_ADCAmpl_HE->Fill(amplitude, 1.);
11644  // if( ieta <0) h_ADCAmpl_HEM->Fill(amplitude,1.);
11645  // if( ieta >0) h_ADCAmpl_HEP->Fill(amplitude,1.);
11646  h_ADCAmplrest_HE->Fill(amplitude, 1.);
11647  h_ADCAmplrest1_HE->Fill(amplitude, 1.);
11648  h_ADCAmplrest6_HE->Fill(amplitude, 1.);
11649 
11650  if (amplitude < ADCAmplHEMin_ || amplitude > ADCAmplHEMax_) {
11651  if (studyRunDependenceHist_ && flagtodefinebadchannel_ == 5)
11652  ++badchannels[sub - 1][mdepth - 1][ieta + 41][iphi]; // 0-neta ; 0-71
11653  if (mdepth == 1)
11654  h_mapDepth1ADCAmpl225_HE->Fill(double(ieta), double(iphi), 1.);
11655  if (mdepth == 2)
11656  h_mapDepth2ADCAmpl225_HE->Fill(double(ieta), double(iphi), 1.);
11657  if (mdepth == 3)
11658  h_mapDepth3ADCAmpl225_HE->Fill(double(ieta), double(iphi), 1.);
11659  if (mdepth == 4)
11660  h_mapDepth4ADCAmpl225_HE->Fill(double(ieta), double(iphi), 1.);
11661  if (mdepth == 5)
11662  h_mapDepth5ADCAmpl225_HE->Fill(double(ieta), double(iphi), 1.);
11663  if (mdepth == 6)
11664  h_mapDepth6ADCAmpl225_HE->Fill(double(ieta), double(iphi), 1.);
11665  if (mdepth == 7)
11666  h_mapDepth7ADCAmpl225_HE->Fill(double(ieta), double(iphi), 1.);
11667  } // if
11668  // if(amplitude > 700.) averSIGNALoccupancy_HE += 1.;
11669  if (amplitude < 500.) {
11670  if (mdepth == 1)
11671  h_mapDepth1ADCAmpl225Copy_HE->Fill(double(ieta), double(iphi), 1.);
11672  if (mdepth == 2)
11673  h_mapDepth2ADCAmpl225Copy_HE->Fill(double(ieta), double(iphi), 1.);
11674  if (mdepth == 3)
11675  h_mapDepth3ADCAmpl225Copy_HE->Fill(double(ieta), double(iphi), 1.);
11676  if (mdepth == 4)
11677  h_mapDepth4ADCAmpl225Copy_HE->Fill(double(ieta), double(iphi), 1.);
11678  if (mdepth == 5)
11679  h_mapDepth5ADCAmpl225Copy_HE->Fill(double(ieta), double(iphi), 1.);
11680  if (mdepth == 6)
11681  h_mapDepth6ADCAmpl225Copy_HE->Fill(double(ieta), double(iphi), 1.);
11682  if (mdepth == 7)
11683  h_mapDepth7ADCAmpl225Copy_HE->Fill(double(ieta), double(iphi), 1.);
11684  } // if
11685 
11686  h_ADCAmplZoom1_HE->Fill(amplitude, 1.); // for amplitude allTS
11687  h_ADCAmpl345Zoom1_HE->Fill(ampl3ts, 1.); // for ampl3ts 3TSs
11688  h_ADCAmpl345Zoom_HE->Fill(ampl, 1.); // for ampl 4TSs
11689 
11690  if (amplitude > 110 && amplitude < 150) {
11691  h_mapADCAmplfirstpeak_HE->Fill(double(ieta), double(iphi), amplitude);
11692  h_mapADCAmplfirstpeak0_HE->Fill(double(ieta), double(iphi), 1.);
11693  } else if (amplitude > 150 && amplitude < 190) {
11694  h_mapADCAmplsecondpeak_HE->Fill(double(ieta), double(iphi), amplitude);
11695  h_mapADCAmplsecondpeak0_HE->Fill(double(ieta), double(iphi), 1.);
11696  }
11697 
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.);
11704  }
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.);
11711  }
11712  // for averaged values of every channel:
11713  if (mdepth == 1)
11714  h_mapDepth1ADCAmpl_HE->Fill(double(ieta), double(iphi), amplitude);
11715  if (mdepth == 2)
11716  h_mapDepth2ADCAmpl_HE->Fill(double(ieta), double(iphi), amplitude);
11717  if (mdepth == 3)
11718  h_mapDepth3ADCAmpl_HE->Fill(double(ieta), double(iphi), amplitude);
11719  if (mdepth == 4)
11720  h_mapDepth4ADCAmpl_HE->Fill(double(ieta), double(iphi), amplitude);
11721  if (mdepth == 5)
11722  h_mapDepth5ADCAmpl_HE->Fill(double(ieta), double(iphi), amplitude);
11723  if (mdepth == 6)
11724  h_mapDepth6ADCAmpl_HE->Fill(double(ieta), double(iphi), amplitude);
11725  if (mdepth == 7)
11726  h_mapDepth7ADCAmpl_HE->Fill(double(ieta), double(iphi), amplitude);
11727  if (mdepth == 1)
11728  h_mapDepth1ADCAmpl12_HE->Fill(double(ieta), double(iphi), ampl);
11729  if (mdepth == 2)
11730  h_mapDepth2ADCAmpl12_HE->Fill(double(ieta), double(iphi), ampl);
11731  if (mdepth == 3)
11732  h_mapDepth3ADCAmpl12_HE->Fill(double(ieta), double(iphi), ampl);
11733  if (mdepth == 4)
11734  h_mapDepth4ADCAmpl12_HE->Fill(double(ieta), double(iphi), ampl);
11735  if (mdepth == 5)
11736  h_mapDepth5ADCAmpl12_HE->Fill(double(ieta), double(iphi), ampl);
11737  if (mdepth == 6)
11738  h_mapDepth6ADCAmpl12_HE->Fill(double(ieta), double(iphi), ampl);
11739  if (mdepth == 7)
11740  h_mapDepth7ADCAmpl12_HE->Fill(double(ieta), double(iphi), ampl);
11741  // for averaged values of SiPM channels only:
11742  if (mdepth == 1)
11743  h_mapDepth1ADCAmplSiPM_HE->Fill(double(ieta), double(iphi), amplitude);
11744  if (mdepth == 2)
11745  h_mapDepth2ADCAmplSiPM_HE->Fill(double(ieta), double(iphi), amplitude);
11746  if (mdepth == 3)
11747  h_mapDepth3ADCAmplSiPM_HE->Fill(double(ieta), double(iphi), amplitude);
11748  if (mdepth == 1)
11749  h_mapDepth1ADCAmpl12SiPM_HE->Fill(double(ieta), double(iphi), ampl);
11750  if (mdepth == 2)
11751  h_mapDepth2ADCAmpl12SiPM_HE->Fill(double(ieta), double(iphi), ampl);
11752  if (mdepth == 3)
11753  h_mapDepth3ADCAmpl12SiPM_HE->Fill(double(ieta), double(iphi), ampl);
11754  //
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_)
11762  sumEstimator1[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude;
11763  } //if(studyADCAmplHist_
11764  // // // // // // // // // HE QIE11 TSmean:
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]; // 0-neta ; 0-71
11770  if (mdepth == 1)
11771  h_mapDepth1TSmeanA225_HE->Fill(double(ieta), double(iphi), 1.);
11772  if (mdepth == 2)
11773  h_mapDepth2TSmeanA225_HE->Fill(double(ieta), double(iphi), 1.);
11774  if (mdepth == 3)
11775  h_mapDepth3TSmeanA225_HE->Fill(double(ieta), double(iphi), 1.);
11776  if (mdepth == 4)
11777  h_mapDepth4TSmeanA225_HE->Fill(double(ieta), double(iphi), 1.);
11778  if (mdepth == 5)
11779  h_mapDepth5TSmeanA225_HE->Fill(double(ieta), double(iphi), 1.);
11780  if (mdepth == 6)
11781  h_mapDepth6TSmeanA225_HE->Fill(double(ieta), double(iphi), 1.);
11782  if (mdepth == 7)
11783  h_mapDepth7TSmeanA225_HE->Fill(double(ieta), double(iphi), 1.);
11784  } // if
11785  // for averaged values:
11786  if (mdepth == 1)
11787  h_mapDepth1TSmeanA_HE->Fill(double(ieta), double(iphi), aveamplitude1);
11788  if (mdepth == 2)
11789  h_mapDepth2TSmeanA_HE->Fill(double(ieta), double(iphi), aveamplitude1);
11790  if (mdepth == 3)
11791  h_mapDepth3TSmeanA_HE->Fill(double(ieta), double(iphi), aveamplitude1);
11792  if (mdepth == 4)
11793  h_mapDepth4TSmeanA_HE->Fill(double(ieta), double(iphi), aveamplitude1);
11794  if (mdepth == 5)
11795  h_mapDepth5TSmeanA_HE->Fill(double(ieta), double(iphi), aveamplitude1);
11796  if (mdepth == 6)
11797  h_mapDepth6TSmeanA_HE->Fill(double(ieta), double(iphi), aveamplitude1);
11798  if (mdepth == 7)
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;
11802  } //if(studyTSmeanShapeHist_) {
11804  // // // // // // // // // HE QIE11 TSmax:
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]; // 0-neta ; 0-71
11810  if (mdepth == 1)
11811  h_mapDepth1TSmaxA225_HE->Fill(double(ieta), double(iphi), 1.);
11812  if (mdepth == 2)
11813  h_mapDepth2TSmaxA225_HE->Fill(double(ieta), double(iphi), 1.);
11814  if (mdepth == 3)
11815  h_mapDepth3TSmaxA225_HE->Fill(double(ieta), double(iphi), 1.);
11816  if (mdepth == 4)
11817  h_mapDepth4TSmaxA225_HE->Fill(double(ieta), double(iphi), 1.);
11818  if (mdepth == 5)
11819  h_mapDepth5TSmaxA225_HE->Fill(double(ieta), double(iphi), 1.);
11820  if (mdepth == 6)
11821  h_mapDepth6TSmaxA225_HE->Fill(double(ieta), double(iphi), 1.);
11822  if (mdepth == 7)
11823  h_mapDepth7TSmaxA225_HE->Fill(double(ieta), double(iphi), 1.);
11824  } // if
11825  // for averaged values:
11826  if (mdepth == 1)
11827  h_mapDepth1TSmaxA_HE->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
11828  if (mdepth == 2)
11829  h_mapDepth2TSmaxA_HE->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
11830  if (mdepth == 3)
11831  h_mapDepth3TSmaxA_HE->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
11832  if (mdepth == 4)
11833  h_mapDepth4TSmaxA_HE->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
11834  if (mdepth == 5)
11835  h_mapDepth5TSmaxA_HE->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
11836  if (mdepth == 6)
11837  h_mapDepth6TSmaxA_HE->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
11838  if (mdepth == 7)
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);
11842  } //if(studyTSmaxShapeHist_) {
11844  // // // // // // // // // HE QIE11 RMS:
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]; // 0-neta ; 0-71
11850  if (mdepth == 1)
11851  h_mapDepth1Amplitude225_HE->Fill(double(ieta), double(iphi), 1.);
11852  if (mdepth == 2)
11853  h_mapDepth2Amplitude225_HE->Fill(double(ieta), double(iphi), 1.);
11854  if (mdepth == 3)
11855  h_mapDepth3Amplitude225_HE->Fill(double(ieta), double(iphi), 1.);
11856  if (mdepth == 4)
11857  h_mapDepth4Amplitude225_HE->Fill(double(ieta), double(iphi), 1.);
11858  if (mdepth == 5)
11859  h_mapDepth5Amplitude225_HE->Fill(double(ieta), double(iphi), 1.);
11860  if (mdepth == 6)
11861  h_mapDepth6Amplitude225_HE->Fill(double(ieta), double(iphi), 1.);
11862  if (mdepth == 7)
11863  h_mapDepth7Amplitude225_HE->Fill(double(ieta), double(iphi), 1.);
11864  }
11865  // for averaged values:
11866  if (mdepth == 1)
11867  h_mapDepth1Amplitude_HE->Fill(double(ieta), double(iphi), rmsamplitude);
11868  if (mdepth == 2)
11869  h_mapDepth2Amplitude_HE->Fill(double(ieta), double(iphi), rmsamplitude);
11870  if (mdepth == 3)
11871  h_mapDepth3Amplitude_HE->Fill(double(ieta), double(iphi), rmsamplitude);
11872  if (mdepth == 4)
11873  h_mapDepth4Amplitude_HE->Fill(double(ieta), double(iphi), rmsamplitude);
11874  if (mdepth == 5)
11875  h_mapDepth5Amplitude_HE->Fill(double(ieta), double(iphi), rmsamplitude);
11876  if (mdepth == 6)
11877  h_mapDepth6Amplitude_HE->Fill(double(ieta), double(iphi), rmsamplitude);
11878  if (mdepth == 7)
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;
11882  } //if(studyRMSshapeHist_)
11884 
11885  // // // // // // // // // HE QIE11 Ratio:
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]; // 0-neta ; 0-71
11891  if (mdepth == 1)
11892  h_mapDepth1Ampl047_HE->Fill(double(ieta), double(iphi), 1.);
11893  if (mdepth == 2)
11894  h_mapDepth2Ampl047_HE->Fill(double(ieta), double(iphi), 1.);
11895  if (mdepth == 3)
11896  h_mapDepth3Ampl047_HE->Fill(double(ieta), double(iphi), 1.);
11897  if (mdepth == 4)
11898  h_mapDepth4Ampl047_HE->Fill(double(ieta), double(iphi), 1.);
11899  if (mdepth == 5)
11900  h_mapDepth5Ampl047_HE->Fill(double(ieta), double(iphi), 1.);
11901  if (mdepth == 6)
11902  h_mapDepth6Ampl047_HE->Fill(double(ieta), double(iphi), 1.);
11903  if (mdepth == 7)
11904  h_mapDepth7Ampl047_HE->Fill(double(ieta), double(iphi), 1.);
11905  }
11906  // for averaged values:
11907  if (mdepth == 1)
11908  h_mapDepth1Ampl_HE->Fill(double(ieta), double(iphi), ratio);
11909  if (mdepth == 2)
11910  h_mapDepth2Ampl_HE->Fill(double(ieta), double(iphi), ratio);
11911  if (mdepth == 3)
11912  h_mapDepth3Ampl_HE->Fill(double(ieta), double(iphi), ratio);
11913  if (mdepth == 4)
11914  h_mapDepth4Ampl_HE->Fill(double(ieta), double(iphi), ratio);
11915  if (mdepth == 5)
11916  h_mapDepth5Ampl_HE->Fill(double(ieta), double(iphi), ratio);
11917  if (mdepth == 6)
11918  h_mapDepth6Ampl_HE->Fill(double(ieta), double(iphi), ratio);
11919  if (mdepth == 7)
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;
11923  } //if(studyRatioShapeHist_)
11925  // // // // // // // // // HE QIE11 DiffAmplitude:
11926  if (studyDiffAmplHist_) {
11927  if (mdepth == 1)
11928  h_mapDepth1AmplE34_HE->Fill(double(ieta), double(iphi), amplitude);
11929  if (mdepth == 2)
11930  h_mapDepth2AmplE34_HE->Fill(double(ieta), double(iphi), amplitude);
11931  if (mdepth == 3)
11932  h_mapDepth3AmplE34_HE->Fill(double(ieta), double(iphi), amplitude);
11933  if (mdepth == 4)
11934  h_mapDepth4AmplE34_HE->Fill(double(ieta), double(iphi), amplitude);
11935  if (mdepth == 5)
11936  h_mapDepth5AmplE34_HE->Fill(double(ieta), double(iphi), amplitude);
11937  if (mdepth == 6)
11938  h_mapDepth6AmplE34_HE->Fill(double(ieta), double(iphi), amplitude);
11939  if (mdepth == 7)
11940  h_mapDepth7AmplE34_HE->Fill(double(ieta), double(iphi), amplitude);
11941  } // if(studyDiffAmplHist_)
11943  if (mdepth == 1)
11944  h_mapDepth1_HE->Fill(double(ieta), double(iphi), 1.);
11945  if (mdepth == 2)
11946  h_mapDepth2_HE->Fill(double(ieta), double(iphi), 1.);
11947  if (mdepth == 3)
11948  h_mapDepth3_HE->Fill(double(ieta), double(iphi), 1.);
11949  if (mdepth == 4)
11950  h_mapDepth4_HE->Fill(double(ieta), double(iphi), 1.);
11951  if (mdepth == 5)
11952  h_mapDepth5_HE->Fill(double(ieta), double(iphi), 1.);
11953  if (mdepth == 6)
11954  h_mapDepth6_HE->Fill(double(ieta), double(iphi), 1.);
11955  if (mdepth == 7)
11956  h_mapDepth7_HE->Fill(double(ieta), double(iphi), 1.);
11957  } //if ( sub == 2 )
11958  //
11959 }
11963  CaloSamples toolOriginal; // TS
11964  double tool[100];
11965  HcalDetId cell(digiItr->id());
11966  int mdepth = cell.depth();
11967  int iphi = cell.iphi() - 1; // 0-71
11968  int ieta = cell.ieta();
11969  if (ieta > 0)
11970  ieta -= 1; //-41 +41
11971  int sub = cell.subdet(); // (HFDigiCollection: 4-HF)
11972  const HcalPedestal* pedestal00 = conditions->getPedestal(cell);
11973  const HcalGain* gain = conditions->getGain(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);
11978  const HcalPedestalWidth* pedw = conditions->getPedestalWidth(cell);
11979  HcalCoderDb coder(*channelCoder, *shape);
11980  if (useADCfC_)
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.;
11994  double amplitude = 0.;
11995  double absamplitude = 0.;
11996  double ampl = 0.;
11997  double timew = 0.;
11998  double timeww = 0.;
11999  double max_signal = -100.;
12000  int ts_with_max_signal = -100;
12001  int c0 = 0;
12002  int c1 = 0;
12003  int c2 = 0;
12004  int c3 = 0;
12005  int c4 = 0;
12006  double errorBtype = 0.;
12007  int TSsize = 4;
12008  if ((*digiItr).size() != TSsize)
12009  errorBtype = 1.;
12010  TSsize = digiItr->size();
12011  for (int ii = 0; ii < TSsize; ii++) {
12012  // for (int ii=0; ii<digiItr->size(); ii++) {
12013  double ampldefault = 0.;
12014  double ampldefault0 = 0.;
12015  double ampldefault1 = 0.;
12016  double ampldefault2 = 0.;
12017  ampldefault0 = adc2fC[digiItr->sample(ii).adc()]; // massive
12018  if (useADCfC_)
12019  ampldefault1 = toolOriginal[ii]; //adcfC
12020  ampldefault2 = (*digiItr)[ii].adc(); //ADCcounts
12021  if (useADCmassive_) {
12022  ampldefault = ampldefault0;
12023  }
12024  if (useADCfC_) {
12025  ampldefault = ampldefault1;
12026  }
12027  if (useADCcounts_) {
12028  ampldefault = ampldefault2;
12029  }
12030 
12031  int capid = ((*digiItr)[ii]).capid();
12032  // double pedestal = calib.pedestal(capid);
12033  double pedestal = pedestal00->getValue(capid);
12034  double pedestalw = pedw->getSigma(capid, capid);
12035  if (usePedestalSubtraction_)
12036  ampldefault -= pedestal; // pedestal subtraction
12037 
12038  tool[ii] = ampldefault;
12039 
12040  pedestalaver9 += pedestal;
12041  pedestalwaver9 += pedestalw * pedestalw;
12042 
12043  if (capid == 0 && c0 == 0) {
12044  c0++;
12045  c4++;
12046  pedestalaver4 += pedestal;
12047  pedestal0 = pedestal;
12048  pedestalw0 = pedestalw;
12049  pedestalwaver4 += pedestalw * pedestalw;
12050  }
12051 
12052  if (capid == 1 && c1 == 0) {
12053  c1++;
12054  c4++;
12055  pedestalaver4 += pedestal;
12056  pedestal1 = pedestal;
12057  pedestalw1 = pedestalw;
12058  pedestalwaver4 += pedestalw * pedestalw;
12059  }
12060  if (capid == 2 && c2 == 0) {
12061  c2++;
12062  c4++;
12063  pedestalaver4 += pedestal;
12064  pedestal2 = pedestal;
12065  pedestalw2 = pedestalw;
12066  pedestalwaver4 += pedestalw * pedestalw;
12067  }
12068  if (capid == 3 && c3 == 0) {
12069  c3++;
12070  c4++;
12071  pedestalaver4 += pedestal;
12072  pedestal3 = pedestal;
12073  pedestalw3 = pedestalw;
12074  pedestalwaver4 += pedestalw * pedestalw;
12075  }
12076 
12077  if (max_signal < ampldefault) {
12078  max_signal = ampldefault;
12079  ts_with_max_signal = ii;
12080  }
12081  amplitude += ampldefault; //
12082  absamplitude += abs(ampldefault); //
12084 
12085  if (flagcpuoptimization_ == 0) {
12086  } // if(flagcpuoptimization_== 0
12087  timew += (ii + 1) * abs(ampldefault);
12088  timeww += (ii + 1) * ampldefault;
12089  } //for 1
12090  amplitudechannel0[sub - 1][mdepth - 1][ieta + 41][iphi] += 1.; // 0-neta ; 0-71 HF
12091  amplitudechannel[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude; // 0-neta ; 0-71 HF
12092  amplitudechannel2[sub - 1][mdepth - 1][ieta + 41][iphi] += pow(amplitude, 2); // 0-neta ; 0-71 HF
12093 
12094  pedestalaver9 /= TSsize;
12095  pedestalaver4 /= c4;
12096  pedestalwaver9 = sqrt(pedestalwaver9 / TSsize);
12097  pedestalwaver4 = sqrt(pedestalwaver4 / c4);
12098 
12099  // ------------ to get signal in TS: -2 max +1 ------------
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];
12108 
12109  double ratio = 0.;
12110  // if(amplallTS != 0.) ratio = ampl/amplallTS;
12111  if (amplitude != 0.)
12112  ratio = ampl / amplitude;
12113 
12114  if (ratio < 0. || ratio > 1.02)
12115  ratio = 0.;
12116 
12117  double aveamplitude = 0.;
12118  double aveamplitudew = 0.;
12119  if (absamplitude > 0 && timew > 0)
12120  aveamplitude = timew / absamplitude; // average_TS +1
12121  if (amplitude > 0 && timeww > 0)
12122  aveamplitudew = timeww / amplitude; // average_TS +1
12123 
12124  double rmsamp = 0.;
12125  // and CapIdErrors:
12126  int error = 0;
12127  bool anycapid = true;
12128  bool anyer = false;
12129  bool anydv = true;
12130  int lastcapid = 0;
12131  int capid = 0;
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); // fC
12137  capid = ((*digiItr)[ii]).capid();
12138  bool er = (*digiItr)[ii].er(); // error
12139  bool dv = (*digiItr)[ii].dv(); // valid data
12140  if (ii != 0 && ((lastcapid + 1) % 4) != capid) {
12141  anycapid = false;
12142  }
12143  // std::cout << " ii = " << ii << " capid = " << capid << " ((lastcapid+1)%4) = " << ((lastcapid+1)%4) << std::endl;
12144  lastcapid = capid;
12145  if (er) {
12146  anyer = true;
12147  }
12148  if (!dv) {
12149  anydv = false;
12150  }
12151  } //for 2
12152 
12153  if (!anycapid || anyer || !anydv)
12154  error = 1;
12155  double rmsamplitude = 0.;
12156  if ((amplitude > 0 && rmsamp > 0) || (amplitude < 0 && rmsamp < 0))
12157  rmsamplitude = sqrt(rmsamp / amplitude);
12158  double aveamplitude1 = aveamplitude - 1; // means iTS=0-9, so bad is iTS=0 and 9
12159  if (error == 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.);
12164  }
12165  if (error != 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.);
12170  }
12171 
12172  if (sub == 4) {
12173  // bad_channels with C,A,W,P,pW,
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_
12178 
12179  ) {
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.);
12184  }
12185  }
12186  // good_channels with C,A,W,P,pW,
12187  else {
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.);
12192  }
12193  }
12194  } // sub HF
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; // Pedestals
12199  // HF
12200  if (sub == 4) {
12201  // // // // // // // // // HF PedestalCorrelations :
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.);
12211  } //
12212  // // // // // // // // // HF Pedestals:
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.);
12226  // for averaged values:
12227  if (mdepth == 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);
12236  }
12237  if (mdepth == 2) {
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);
12246  }
12247 
12248  if (pedestalw0 < pedestalwHFMax_ || pedestalw1 < pedestalwHFMax_ || pedestalw2 < pedestalwHFMax_ ||
12249  pedestalw3 < pedestalwHFMax_) {
12250  if (mdepth == 1)
12251  h_mapDepth1pedestalw_HF->Fill(double(ieta), double(iphi), 1.);
12252  if (mdepth == 2)
12253  h_mapDepth2pedestalw_HF->Fill(double(ieta), double(iphi), 1.);
12254  }
12255 
12256  if (pedestal0 < pedestalHFMax_ || pedestal1 < pedestalHFMax_ || pedestal2 < pedestalHFMax_ ||
12257  pedestal3 < pedestalHFMax_) {
12258  if (mdepth == 1)
12259  h_mapDepth1pedestal_HF->Fill(double(ieta), double(iphi), 1.);
12260  if (mdepth == 2)
12261  h_mapDepth2pedestal_HF->Fill(double(ieta), double(iphi), 1.);
12262  }
12263 
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.);
12267  }
12268  h_respcorr_HF->Fill(respcorr->getValue(), 1.);
12269  h_timecorr_HF->Fill(timecorr->getValue(), 1.);
12270  h_lutcorr_HF->Fill(lutcorr->getValue(), 1.);
12271 
12272  } //
12273 
12274  // // // // // // // // // HF ADCAmpl:
12275  if (studyADCAmplHist_) {
12276  h_ADCAmpl_HF->Fill(amplitude, 1.);
12277  h_ADCAmplrest1_HF->Fill(amplitude, 1.);
12278  h_ADCAmplrest6_HF->Fill(amplitude, 1.);
12279 
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]; // 0-neta ; 0-71
12284  if (mdepth == 1)
12285  h_mapDepth1ADCAmpl225_HF->Fill(double(ieta), double(iphi), 1.);
12286  if (mdepth == 2)
12287  h_mapDepth2ADCAmpl225_HF->Fill(double(ieta), double(iphi), 1.);
12288  } // if
12289  // if(amplitude >1500.) averSIGNALoccupancy_HF += 1.;
12290  if (amplitude < 20.) {
12291  if (mdepth == 1)
12292  h_mapDepth1ADCAmpl225Copy_HF->Fill(double(ieta), double(iphi), 1.);
12293  if (mdepth == 2)
12294  h_mapDepth2ADCAmpl225Copy_HF->Fill(double(ieta), double(iphi), 1.);
12295  } // if
12296 
12297  // for averaged values:
12298  if (mdepth == 1)
12299  h_mapDepth1ADCAmpl_HF->Fill(double(ieta), double(iphi), amplitude);
12300  if (mdepth == 2)
12301  h_mapDepth2ADCAmpl_HF->Fill(double(ieta), double(iphi), amplitude);
12302  if (mdepth == 1)
12303  h_mapDepth1ADCAmpl12_HF->Fill(double(ieta), double(iphi), ampl);
12304  if (mdepth == 2)
12305  h_mapDepth2ADCAmpl12_HF->Fill(double(ieta), double(iphi), ampl);
12306 
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_)
12312  sumEstimator1[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude;
12313  } //if(studyADCAmplHist_
12315 
12316  // // // // // // // // // HF TSmean:
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]; // 0-neta ; 0-71
12322  if (mdepth == 1)
12323  h_mapDepth1TSmeanA225_HF->Fill(double(ieta), double(iphi), 1.);
12324  if (mdepth == 2)
12325  h_mapDepth2TSmeanA225_HF->Fill(double(ieta), double(iphi), 1.);
12326  } // if
12327  // for averaged values:
12328  if (mdepth == 1)
12329  h_mapDepth1TSmeanA_HF->Fill(double(ieta), double(iphi), aveamplitude1);
12330  if (mdepth == 2)
12331  h_mapDepth2TSmeanA_HF->Fill(double(ieta), double(iphi), aveamplitude1);
12332 
12333  if (amplitude > forallestimators_amplitude_bigger_)
12334  sumEstimator2[sub - 1][mdepth - 1][ieta + 41][iphi] += aveamplitude1;
12335  } //if(studyTSmeanShapeHist_
12337  // // // // // // // // // HF TSmax:
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]; // 0-neta ; 0-71
12343  if (mdepth == 1)
12344  h_mapDepth1TSmaxA225_HF->Fill(double(ieta), double(iphi), 1.);
12345  if (mdepth == 2)
12346  h_mapDepth2TSmaxA225_HF->Fill(double(ieta), double(iphi), 1.);
12347  } // if
12348  // for averaged values:
12349  if (mdepth == 1)
12350  h_mapDepth1TSmaxA_HF->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
12351  if (mdepth == 2)
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);
12355  } //if(studyTSmaxShapeHist_
12357  // // // // // // // // // HF RMS:
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]; // 0-neta ; 0-71
12363  if (mdepth == 1)
12364  h_mapDepth1Amplitude225_HF->Fill(double(ieta), double(iphi), 1.);
12365  if (mdepth == 2)
12366  h_mapDepth2Amplitude225_HF->Fill(double(ieta), double(iphi), 1.);
12367  } // if
12368  // for averaged values:
12369  if (mdepth == 1)
12370  h_mapDepth1Amplitude_HF->Fill(double(ieta), double(iphi), rmsamplitude);
12371  if (mdepth == 2)
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;
12375  } //if(studyRMSshapeHist_)
12377  // // // // // // // // // HF Ratio:
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]; // 0-neta ; 0-71
12383  if (mdepth == 1)
12384  h_mapDepth1Ampl047_HF->Fill(double(ieta), double(iphi), 1.);
12385  if (mdepth == 2)
12386  h_mapDepth2Ampl047_HF->Fill(double(ieta), double(iphi), 1.);
12387  } //if(ratio
12388  // for averaged values:
12389  if (mdepth == 1)
12390  h_mapDepth1Ampl_HF->Fill(double(ieta), double(iphi), ratio);
12391  if (mdepth == 2)
12392  h_mapDepth2Ampl_HF->Fill(double(ieta), double(iphi), ratio);
12393 
12394  if (amplitude > forallestimators_amplitude_bigger_)
12395  sumEstimator5[sub - 1][mdepth - 1][ieta + 41][iphi] += ratio;
12396  } //if(studyRatioShapeHist_)
12397 
12399  // // // // // // // // // HF DiffAmplitude:
12400  if (studyDiffAmplHist_) {
12401  if (mdepth == 1)
12402  h_mapDepth1AmplE34_HF->Fill(double(ieta), double(iphi), amplitude);
12403  if (mdepth == 2)
12404  h_mapDepth2AmplE34_HF->Fill(double(ieta), double(iphi), amplitude);
12405  } // if(studyDiffAmplHist_)
12406 
12408  if (mdepth == 1)
12409  h_mapDepth1_HF->Fill(double(ieta), double(iphi), 1.);
12410  if (mdepth == 2)
12411  h_mapDepth2_HF->Fill(double(ieta), double(iphi), 1.);
12412 
12413  } //if ( sub == 4 )
12414 
12415  //
12416 }
12417 
12420  CaloSamples toolOriginal; // TS
12421  double tool[100];
12422  DetId detid = qie10df.detid();
12423  HcalDetId hcaldetid = HcalDetId(detid);
12424  int ieta = hcaldetid.ieta();
12425  if (ieta > 0)
12426  ieta -= 1;
12427  int iphi = hcaldetid.iphi() - 1;
12428  int mdepth = hcaldetid.depth();
12429  int sub = hcaldetid.subdet(); // 1-HB, 2-HE (HFQIE10DigiCollection: 4-HF)
12430  nTS = qie10df.samples(); // ----------------------------!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12431  /*
12432  # flag HBHE8 HBHE11 HF8 HF10 comments:
12433  # 0 + + + + all
12434  # 1 + - + - old
12435  # 2 - + - + new (2018)
12436  # 3 - + - + new w/o high depthes
12437  # 4 + - + + 2016fall
12438  # 5 + - + + 2016fall w/o high depthes
12439  # 6 + + - + 2017begin
12440  # 7 + + - + 2017begin w/o high depthes in HEonly
12441  # 8 + + - + 2017begin w/o high depthes
12442  # 9 + + + + all w/o high depthes
12443 */
12444  if (mdepth == 0 || sub != 4)
12445  return;
12446  if (mdepth > 2 && flagupgradeqie1011_ == 3)
12447  return;
12448  if (mdepth > 2 && flagupgradeqie1011_ == 5)
12449  return;
12450  if (mdepth > 2 && flagupgradeqie1011_ == 8)
12451  return;
12452  if (mdepth > 2 && flagupgradeqie1011_ == 9)
12453  return;
12455  // HcalCalibrations calib = conditions->getHcalCalibrations(hcaldetid);
12456  const HcalPedestal* pedestal00 = conditions->getPedestal(hcaldetid);
12457  const HcalGain* gain = conditions->getGain(hcaldetid);
12458  // const HcalGainWidth* gainWidth = conditions->getGainWidth(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);
12463  const HcalPedestalWidth* pedw = conditions->getPedestalWidth(hcaldetid);
12464  HcalCoderDb coder(*channelCoder, *shape);
12465  if (useADCfC_)
12466  coder.adc2fC(qie10df, toolOriginal);
12467  // double noiseADC = qie10df[0].adc();
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.;
12481  double amplitude = 0.;
12482  double absamplitude = 0.;
12483  double ampl = 0.;
12484  double timew = 0.;
12485  double timeww = 0.;
12486  double max_signal = -100.;
12487  int ts_with_max_signal = -100;
12488  int c0 = 0;
12489  int c1 = 0;
12490  int c2 = 0;
12491  int c3 = 0;
12492  int c4 = 0;
12493  double errorBtype = 0.;
12494 
12495  int TSsize = 3;
12496  if (nTS != TSsize)
12497  errorBtype = 1.;
12498  TSsize = nTS; // ------------------------!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12499  for (int ii = 0; ii < TSsize; ii++) {
12500  double ampldefault = 0.;
12501  double ampldefault0 = 0.;
12502  double ampldefault1 = 0.;
12503  double ampldefault2 = 0.;
12504  ampldefault0 = adc2fC_QIE10[qie10df[ii].adc()]; // massive
12505  if (useADCfC_)
12506  ampldefault1 = toolOriginal[ii]; //adcfC
12507  ampldefault2 = qie10df[ii].adc(); //ADCcounts
12508  if (useADCmassive_) {
12509  ampldefault = ampldefault0;
12510  }
12511  if (useADCfC_) {
12512  ampldefault = ampldefault1;
12513  }
12514  if (useADCcounts_) {
12515  ampldefault = ampldefault2;
12516  }
12517 
12518  int capid = (qie10df[ii]).capid();
12519  double pedestal = pedestal00->getValue(capid);
12520  double pedestalw = pedw->getSigma(capid, capid);
12521 
12522  if (usePedestalSubtraction_)
12523  ampldefault -= pedestal; // pedestal subtraction
12524 
12525  tool[ii] = ampldefault;
12526 
12527  pedestalaver9 += pedestal;
12528  pedestalwaver9 += pedestalw * pedestalw;
12529 
12530  if (capid == 0 && c0 == 0) {
12531  c0++;
12532  c4++;
12533  pedestalaver4 += pedestal;
12534  pedestal0 = pedestal;
12535  pedestalw0 = pedestalw;
12536  pedestalwaver4 += pedestalw * pedestalw;
12537  }
12538 
12539  if (capid == 1 && c1 == 0) {
12540  c1++;
12541  c4++;
12542  pedestalaver4 += pedestal;
12543  pedestal1 = pedestal;
12544  pedestalw1 = pedestalw;
12545  pedestalwaver4 += pedestalw * pedestalw;
12546  }
12547  if (capid == 2 && c2 == 0) {
12548  c2++;
12549  c4++;
12550  pedestalaver4 += pedestal;
12551  pedestal2 = pedestal;
12552  pedestalw2 = pedestalw;
12553  pedestalwaver4 += pedestalw * pedestalw;
12554  }
12555  if (capid == 3 && c3 == 0) {
12556  c3++;
12557  c4++;
12558  pedestalaver4 += pedestal;
12559  pedestal3 = pedestal;
12560  pedestalw3 = pedestalw;
12561  pedestalwaver4 += pedestalw * pedestalw;
12562  }
12563 
12564  if (max_signal < ampldefault) {
12565  max_signal = ampldefault;
12566  ts_with_max_signal = ii;
12567  }
12568  amplitude += ampldefault; //
12569  absamplitude += abs(ampldefault); //
12571  timew += (ii + 1) * abs(ampldefault);
12572  timeww += (ii + 1) * ampldefault;
12573  } //for 1
12574  amplitudechannel[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude; // 0-neta ; 0-71 HF
12575 
12576  pedestalaver9 /= TSsize;
12577  pedestalaver4 /= c4;
12578  pedestalwaver9 = sqrt(pedestalwaver9 / TSsize);
12579  pedestalwaver4 = sqrt(pedestalwaver4 / c4);
12580 
12581  // ------------ to get signal in TS: -2 max +1 ------------
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];
12590 
12591  double ratio = 0.;
12592  // if(amplallTS != 0.) ratio = ampl/amplallTS;
12593  if (amplitude != 0.)
12594  ratio = ampl / amplitude;
12595  if (ratio < 0. || ratio > 1.02)
12596  ratio = 0.;
12597  double aveamplitude = 0.;
12598  double aveamplitudew = 0.;
12599  if (absamplitude > 0 && timew > 0)
12600  aveamplitude = timew / absamplitude; // average_TS +1
12601  if (amplitude > 0 && timeww > 0)
12602  aveamplitudew = timeww / amplitude; // average_TS +1
12603 
12604  double rmsamp = 0.;
12605  int error = 0;
12606  bool anycapid = true;
12607  int lastcapid = 0;
12608  int capid = 0;
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); // fC
12614  capid = (qie10df[ii]).capid();
12615  if (ii != 0 && ((lastcapid + 1) % 4) != capid) {
12616  anycapid = false;
12617  }
12618  lastcapid = capid;
12619  } //for 2
12620 
12621  if (!anycapid)
12622  error = 1;
12623  double rmsamplitude = 0.;
12624  if ((amplitude > 0 && rmsamp > 0) || (amplitude < 0 && rmsamp < 0))
12625  rmsamplitude = sqrt(rmsamp / amplitude);
12626  double aveamplitude1 = aveamplitude - 1; // means iTS=0-9, so bad is iTS=0 and 9
12627 
12628  // CapIdErrors end /////////////////////////////////////////////////////////
12629  // AZ 1.10.2015:
12630  if (error == 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.);
12635  }
12636  if (error != 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.);
12641  }
12642 
12643  if (sub == 4) {
12644  // bad_channels with C,A,W,P,pW,
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_
12649 
12650  ) {
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.);
12655  }
12656  }
12657  // good_channels with C,A,W,P,pW,
12658  else {
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.);
12663  }
12664  }
12665  } // sub HFQIE10
12667  sum0Estimator[sub - 1][mdepth - 1][ieta + 41][iphi] += 1.;
12668  // for Error B-type
12669  sumEstimator6[sub - 1][mdepth - 1][ieta + 41][iphi] += errorBtype;
12670  sumEstimator0[sub - 1][mdepth - 1][ieta + 41][iphi] += pedestal0; // Pedestals
12671  // HFQIE10
12672  if (sub == 4) {
12673  // // // // // // // // // HFQIE10 PedestalCorrelations :
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.);
12683  } //
12684  // // // // // // // // // HFQIE10 Pedestals:
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.);
12698  // for averaged values:
12699  if (mdepth == 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);
12708  }
12709  if (mdepth == 2) {
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);
12718  }
12719 
12720  if (pedestalw0 < pedestalwHFMax_ || pedestalw1 < pedestalwHFMax_ || pedestalw2 < pedestalwHFMax_ ||
12721  pedestalw3 < pedestalwHFMax_) {
12722  if (mdepth == 1)
12723  h_mapDepth1pedestalw_HF->Fill(double(ieta), double(iphi), 1.);
12724  if (mdepth == 2)
12725  h_mapDepth2pedestalw_HF->Fill(double(ieta), double(iphi), 1.);
12726  if (mdepth == 3)
12727  h_mapDepth3pedestalw_HF->Fill(double(ieta), double(iphi), 1.);
12728  if (mdepth == 4)
12729  h_mapDepth4pedestalw_HF->Fill(double(ieta), double(iphi), 1.);
12730  }
12731 
12732  if (pedestal0 < pedestalHFMax_ || pedestal1 < pedestalHFMax_ || pedestal2 < pedestalHFMax_ ||
12733  pedestal3 < pedestalHFMax_) {
12734  if (mdepth == 1)
12735  h_mapDepth1pedestal_HF->Fill(double(ieta), double(iphi), 1.);
12736  if (mdepth == 2)
12737  h_mapDepth2pedestal_HF->Fill(double(ieta), double(iphi), 1.);
12738  if (mdepth == 3)
12739  h_mapDepth3pedestal_HF->Fill(double(ieta), double(iphi), 1.);
12740  if (mdepth == 4)
12741  h_mapDepth4pedestal_HF->Fill(double(ieta), double(iphi), 1.);
12742  }
12743 
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.);
12747  }
12748  h_respcorr_HF->Fill(respcorr->getValue(), 1.);
12749  h_timecorr_HF->Fill(timecorr->getValue(), 1.);
12750  h_lutcorr_HF->Fill(lutcorr->getValue(), 1.);
12751 
12752  } //
12753 
12754  // // // // // // // // // HFQIE10 ADCAmpl:
12755  if (studyADCAmplHist_) {
12756  h_ADCAmpl_HF->Fill(amplitude, 1.);
12757  h_ADCAmplrest1_HF->Fill(amplitude, 1.);
12758  h_ADCAmplrest6_HF->Fill(amplitude, 1.);
12759 
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]; // 0-neta ; 0-71
12764  if (mdepth == 1)
12765  h_mapDepth1ADCAmpl225_HF->Fill(double(ieta), double(iphi), 1.);
12766  if (mdepth == 2)
12767  h_mapDepth2ADCAmpl225_HF->Fill(double(ieta), double(iphi), 1.);
12768  if (mdepth == 3)
12769  h_mapDepth3ADCAmpl225_HF->Fill(double(ieta), double(iphi), 1.);
12770  if (mdepth == 4)
12771  h_mapDepth4ADCAmpl225_HF->Fill(double(ieta), double(iphi), 1.);
12772  } // if
12773  // if(amplitude >1500.) averSIGNALoccupancy_HF += 1.;
12774  if (amplitude < 20.) {
12775  if (mdepth == 1)
12776  h_mapDepth1ADCAmpl225Copy_HF->Fill(double(ieta), double(iphi), 1.);
12777  if (mdepth == 2)
12778  h_mapDepth2ADCAmpl225Copy_HF->Fill(double(ieta), double(iphi), 1.);
12779  if (mdepth == 3)
12780  h_mapDepth3ADCAmpl225Copy_HF->Fill(double(ieta), double(iphi), 1.);
12781  if (mdepth == 4)
12782  h_mapDepth4ADCAmpl225Copy_HF->Fill(double(ieta), double(iphi), 1.);
12783  } // if
12784 
12785  // for averaged values:
12786  if (mdepth == 1)
12787  h_mapDepth1ADCAmpl_HF->Fill(double(ieta), double(iphi), amplitude);
12788  if (mdepth == 2)
12789  h_mapDepth2ADCAmpl_HF->Fill(double(ieta), double(iphi), amplitude);
12790  if (mdepth == 3)
12791  h_mapDepth3ADCAmpl_HF->Fill(double(ieta), double(iphi), amplitude);
12792  if (mdepth == 4)
12793  h_mapDepth4ADCAmpl_HF->Fill(double(ieta), double(iphi), amplitude);
12794  if (mdepth == 1)
12795  h_mapDepth1ADCAmpl12_HF->Fill(double(ieta), double(iphi), ampl);
12796  if (mdepth == 2)
12797  h_mapDepth2ADCAmpl12_HF->Fill(double(ieta), double(iphi), ampl);
12798  if (mdepth == 3)
12799  h_mapDepth3ADCAmpl12_HF->Fill(double(ieta), double(iphi), ampl);
12800  if (mdepth == 4)
12801  h_mapDepth4ADCAmpl12_HF->Fill(double(ieta), double(iphi), ampl);
12802 
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_)
12808  sumEstimator1[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude;
12809  } //if(studyADCAmplHist_
12810  // // // // // // // // // HFQIE10 TSmean:
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]; // 0-neta ; 0-71
12816  if (mdepth == 1)
12817  h_mapDepth1TSmeanA225_HF->Fill(double(ieta), double(iphi), 1.);
12818  if (mdepth == 2)
12819  h_mapDepth2TSmeanA225_HF->Fill(double(ieta), double(iphi), 1.);
12820  if (mdepth == 3)
12821  h_mapDepth3TSmeanA225_HF->Fill(double(ieta), double(iphi), 1.);
12822  if (mdepth == 4)
12823  h_mapDepth4TSmeanA225_HF->Fill(double(ieta), double(iphi), 1.);
12824  } // if
12825  // for averaged values:
12826  if (mdepth == 1)
12827  h_mapDepth1TSmeanA_HF->Fill(double(ieta), double(iphi), aveamplitude1);
12828  if (mdepth == 2)
12829  h_mapDepth2TSmeanA_HF->Fill(double(ieta), double(iphi), aveamplitude1);
12830  if (mdepth == 3)
12831  h_mapDepth3TSmeanA_HF->Fill(double(ieta), double(iphi), aveamplitude1);
12832  if (mdepth == 4)
12833  h_mapDepth4TSmeanA_HF->Fill(double(ieta), double(iphi), aveamplitude1);
12834 
12835  if (amplitude > forallestimators_amplitude_bigger_)
12836  sumEstimator2[sub - 1][mdepth - 1][ieta + 41][iphi] += aveamplitude1;
12837  } //if(studyTSmeanShapeHist_
12839  // // // // // // // // // HFQIE10 TSmax:
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]; // 0-neta ; 0-71
12845  if (mdepth == 1)
12846  h_mapDepth1TSmaxA225_HF->Fill(double(ieta), double(iphi), 1.);
12847  if (mdepth == 2)
12848  h_mapDepth2TSmaxA225_HF->Fill(double(ieta), double(iphi), 1.);
12849  if (mdepth == 3)
12850  h_mapDepth3TSmaxA225_HF->Fill(double(ieta), double(iphi), 1.);
12851  if (mdepth == 4)
12852  h_mapDepth4TSmaxA225_HF->Fill(double(ieta), double(iphi), 1.);
12853  } // if
12854  // for averaged values:
12855  if (mdepth == 1)
12856  h_mapDepth1TSmaxA_HF->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
12857  if (mdepth == 2)
12858  h_mapDepth2TSmaxA_HF->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
12859  if (mdepth == 3)
12860  h_mapDepth3TSmaxA_HF->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
12861  if (mdepth == 4)
12862  h_mapDepth4TSmaxA_HF->Fill(double(ieta), double(iphi), float(ts_with_max_signal));
12863 
12864  if (amplitude > forallestimators_amplitude_bigger_)
12865  sumEstimator3[sub - 1][mdepth - 1][ieta + 41][iphi] += float(ts_with_max_signal);
12866  } //if(studyTSmaxShapeHist_
12868  // // // // // // // // // HFQIE10 RMS:
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]; // 0-neta ; 0-71
12874  if (mdepth == 1)
12875  h_mapDepth1Amplitude225_HF->Fill(double(ieta), double(iphi), 1.);
12876  if (mdepth == 2)
12877  h_mapDepth2Amplitude225_HF->Fill(double(ieta), double(iphi), 1.);
12878  if (mdepth == 3)
12879  h_mapDepth3Amplitude225_HF->Fill(double(ieta), double(iphi), 1.);
12880  if (mdepth == 4)
12881  h_mapDepth4Amplitude225_HF->Fill(double(ieta), double(iphi), 1.);
12882  } // if
12883  // for averaged values:
12884 
12885  if (mdepth == 1)
12886  h_mapDepth1Amplitude_HF->Fill(double(ieta), double(iphi), rmsamplitude);
12887  if (mdepth == 2)
12888  h_mapDepth2Amplitude_HF->Fill(double(ieta), double(iphi), rmsamplitude);
12889  if (mdepth == 3)
12890  h_mapDepth3Amplitude_HF->Fill(double(ieta), double(iphi), rmsamplitude);
12891  if (mdepth == 4)
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;
12895  } //if(studyRMSshapeHist_)
12897  // // // // // // // // // HFQIE10 Ratio:
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]; // 0-neta ; 0-71
12903  if (mdepth == 1)
12904  h_mapDepth1Ampl047_HF->Fill(double(ieta), double(iphi), 1.);
12905  if (mdepth == 2)
12906  h_mapDepth2Ampl047_HF->Fill(double(ieta), double(iphi), 1.);
12907  if (mdepth == 3)
12908  h_mapDepth3Ampl047_HF->Fill(double(ieta), double(iphi), 1.);
12909  if (mdepth == 4)
12910  h_mapDepth4Ampl047_HF->Fill(double(ieta), double(iphi), 1.);
12911  } //if(ratio
12912  // for averaged values:
12913  if (mdepth == 1)
12914  h_mapDepth1Ampl_HF->Fill(double(ieta), double(iphi), ratio);
12915  if (mdepth == 2)
12916  h_mapDepth2Ampl_HF->Fill(double(ieta), double(iphi), ratio);
12917  if (mdepth == 3)
12918  h_mapDepth3Ampl_HF->Fill(double(ieta), double(iphi), ratio);
12919  if (mdepth == 4)
12920  h_mapDepth4Ampl_HF->Fill(double(ieta), double(iphi), ratio);
12921 
12922  if (amplitude > forallestimators_amplitude_bigger_)
12923  sumEstimator5[sub - 1][mdepth - 1][ieta + 41][iphi] += ratio;
12924  } //if(studyRatioShapeHist_)
12925 
12927  // // // // // // // // // HFQIE10 DiffAmplitude:
12928  if (studyDiffAmplHist_) {
12929  if (mdepth == 1)
12930  h_mapDepth1AmplE34_HF->Fill(double(ieta), double(iphi), amplitude);
12931  if (mdepth == 2)
12932  h_mapDepth2AmplE34_HF->Fill(double(ieta), double(iphi), amplitude);
12933  if (mdepth == 3)
12934  h_mapDepth3AmplE34_HF->Fill(double(ieta), double(iphi), amplitude);
12935  if (mdepth == 4)
12936  h_mapDepth4AmplE34_HF->Fill(double(ieta), double(iphi), amplitude);
12937  } // if(studyDiffAmplHist_)
12938 
12940  if (mdepth == 1)
12941  h_mapDepth1_HF->Fill(double(ieta), double(iphi), 1.);
12942  if (mdepth == 2)
12943  h_mapDepth2_HF->Fill(double(ieta), double(iphi), 1.);
12944  if (mdepth == 3)
12945  h_mapDepth3_HF->Fill(double(ieta), double(iphi), 1.);
12946  if (mdepth == 4)
12947  h_mapDepth4_HF->Fill(double(ieta), double(iphi), 1.);
12948 
12949  } //if ( sub == 4 )
12950 
12951  //
12952 }
12953 
12956  CaloSamples toolOriginal; // TS
12957  double tool[100];
12958  HcalDetId cell(digiItr->id());
12959  int mdepth = cell.depth();
12960  int iphi = cell.iphi() - 1; // 0-71
12961  int ieta = cell.ieta();
12962  if (ieta > 0)
12963  ieta -= 1; //-41 +41
12964  int sub = cell.subdet(); // (HODigiCollection: 3-HO)
12965  const HcalPedestal* pedestal00 = conditions->getPedestal(cell);
12966  const HcalGain* gain = conditions->getGain(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);
12971  const HcalPedestalWidth* pedw = conditions->getPedestalWidth(cell);
12972  HcalCoderDb coder(*channelCoder, *shape);
12973  if (useADCfC_)
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.;
12987  double amplitude = 0.;
12988  double absamplitude = 0.;
12989  double ampl = 0.;
12990  double timew = 0.;
12991  double timeww = 0.;
12992  double max_signal = -100.;
12993  int ts_with_max_signal = -100;
12994  int c0 = 0;
12995  int c1 = 0;
12996  int c2 = 0;
12997  int c3 = 0;
12998  int c4 = 0;
12999  double errorBtype = 0.;
13000  int TSsize = 10;
13001  if ((*digiItr).size() != TSsize)
13002  errorBtype = 1.;
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()]; // massive
13010  if (useADCfC_)
13011  ampldefault1 = toolOriginal[ii]; //adcfC
13012  ampldefault2 = (*digiItr)[ii].adc(); //ADCcounts
13013  if (useADCmassive_) {
13014  ampldefault = ampldefault0;
13015  }
13016  if (useADCfC_) {
13017  ampldefault = ampldefault1;
13018  }
13019  if (useADCcounts_) {
13020  ampldefault = ampldefault2;
13021  }
13022  int capid = ((*digiItr)[ii]).capid();
13023  double pedestal = pedestal00->getValue(capid);
13024  double pedestalw = pedw->getSigma(capid, capid);
13025  if (usePedestalSubtraction_)
13026  ampldefault -= pedestal; // pedestal subtraction
13027  tool[ii] = ampldefault;
13028  pedestalaver9 += pedestal;
13029  pedestalwaver9 += pedestalw * pedestalw;
13030  if (capid == 0 && c0 == 0) {
13031  c0++;
13032  c4++;
13033  pedestalaver4 += pedestal;
13034  pedestal0 = pedestal;
13035  pedestalw0 = pedestalw;
13036  pedestalwaver4 += pedestalw * pedestalw;
13037  }
13038  if (capid == 1 && c1 == 0) {
13039  c1++;
13040  c4++;
13041  pedestalaver4 += pedestal;
13042  pedestal1 = pedestal;
13043  pedestalw1 = pedestalw;
13044  pedestalwaver4 += pedestalw * pedestalw;
13045  }
13046  if (capid == 2 && c2 == 0) {
13047  c2++;
13048  c4++;
13049  pedestalaver4 += pedestal;
13050  pedestal2 = pedestal;
13051  pedestalw2 = pedestalw;
13052  pedestalwaver4 += pedestalw * pedestalw;
13053  }
13054  if (capid == 3 && c3 == 0) {
13055  c3++;
13056  c4++;
13057  pedestalaver4 += pedestal;
13058  pedestal3 = pedestal;
13059  pedestalw3 = pedestalw;
13060  pedestalwaver4 += pedestalw * pedestalw;
13061  }
13062 
13063  if (max_signal < ampldefault) {
13064  max_signal = ampldefault;
13065  ts_with_max_signal = ii;
13066  }
13067  amplitude += ampldefault;
13068  absamplitude += abs(ampldefault);
13070  if (flagcpuoptimization_ == 0) {
13071  }
13072  timew += (ii + 1) * abs(ampldefault);
13073  timeww += (ii + 1) * ampldefault;
13074  } //for 1
13075  amplitudechannel[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude; // 0-neta ; 0-71 HO
13076 
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];
13089  double ratio = 0.;
13090  if (amplitude != 0.)
13091  ratio = ampl / amplitude;
13092  if (ratio < 0. || ratio > 1.04)
13093  ratio = 0.;
13094  double aveamplitude = 0.;
13095  double aveamplitudew = 0.;
13096  if (absamplitude > 0 && timew > 0)
13097  aveamplitude = timew / absamplitude; // average_TS +1
13098  if (amplitude > 0 && timeww > 0)
13099  aveamplitudew = timeww / amplitude; // average_TS +1
13100  double rmsamp = 0.;
13101  int error = 0;
13102  bool anycapid = true;
13103  bool anyer = false;
13104  bool anydv = true;
13105  int lastcapid = 0;
13106  int capid = 0;
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); // fC
13112  capid = ((*digiItr)[ii]).capid();
13113  bool er = (*digiItr)[ii].er(); // error
13114  bool dv = (*digiItr)[ii].dv(); // valid data
13115  if (ii != 0 && ((lastcapid + 1) % 4) != capid) {
13116  anycapid = false;
13117  }
13118  lastcapid = capid;
13119  if (er) {
13120  anyer = true;
13121  }
13122  if (!dv) {
13123  anydv = false;
13124  }
13125  } //for 2
13126 
13127  if (!anycapid || anyer || !anydv)
13128  error = 1;
13129  double rmsamplitude = 0.;
13130  if ((amplitude > 0 && rmsamp > 0) || (amplitude < 0 && rmsamp < 0))
13131  rmsamplitude = sqrt(rmsamp / amplitude);
13132  double aveamplitude1 = aveamplitude - 1; // means iTS=0-9, so bad is iTS=0 and 9
13133  if (error == 1) {
13134  if (sub == 3 && mdepth == 4)
13135  h_Amplitude_forCapIdErrors_HO4->Fill(amplitude, 1.);
13136  }
13137  if (error != 1) {
13138  if (sub == 3 && mdepth == 4)
13139  h_Amplitude_notCapIdErrors_HO4->Fill(amplitude, 1.);
13140  }
13141 
13142  if (sub == 3) {
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_
13147 
13148  ) {
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.);
13153  }
13154  } else {
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.);
13159  }
13160  }
13161  } // sub HO
13163  sum0Estimator[sub - 1][mdepth - 1][ieta + 41][iphi] += 1.;
13164  // for Error B-type
13165  sumEstimator6[sub - 1][mdepth - 1][ieta + 41][iphi] += errorBtype;
13166  sumEstimator0[sub - 1][mdepth - 1][ieta + 41][iphi] += pedestal0; //Pedestals
13167  // HO
13168  if (sub == 3) {
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.);
13178  } //
13179  // // // // // // // // // HO Pedestals:
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.);
13193  // for averaged values:
13194  if (mdepth == 4) {
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);
13203  }
13204  if (pedestalw0 < pedestalwHOMax_ || pedestalw1 < pedestalwHOMax_ || pedestalw2 < pedestalwHOMax_ ||
13205  pedestalw3 < pedestalwHOMax_) {
13206  if (mdepth == 4)
13207  h_mapDepth4pedestalw_HO->Fill(double(ieta), double(iphi), 1.);
13208  }
13209  if (pedestal0 < pedestalHOMax_ || pedestal1 < pedestalHOMax_ || pedestal2 < pedestalHOMax_ ||
13210  pedestal3 < pedestalHOMax_) {
13211  if (mdepth == 4)
13212  h_mapDepth4pedestal_HO->Fill(double(ieta), double(iphi), 1.);
13213  }
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.);
13217  }
13218  h_respcorr_HO->Fill(respcorr->getValue(), 1.);
13219  h_timecorr_HO->Fill(timecorr->getValue(), 1.);
13220  h_lutcorr_HO->Fill(lutcorr->getValue(), 1.);
13221  } //
13222  // // // // // // // // // HO ADCAmpl:
13223  if (studyADCAmplHist_) {
13224  h_ADCAmpl_HO->Fill(amplitude, 1.);
13225  h_ADCAmplrest1_HO->Fill(amplitude, 1.);
13226  h_ADCAmplrest6_HO->Fill(amplitude, 1.);
13227 
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]; // 0-neta ; 0-71
13233  if (mdepth == 4)
13234  h_mapDepth4ADCAmpl225_HO->Fill(double(ieta), double(iphi), 1.);
13235  } // if
13236  // if(amplitude >2000.) averSIGNALoccupancy_HO += 1.;
13237 
13238  if (amplitude < 100.) {
13239  if (mdepth == 4)
13240  h_mapDepth4ADCAmpl225Copy_HO->Fill(double(ieta), double(iphi), 1.);
13241  } // if
13242  // for averaged values:
13243  if (mdepth == 4)
13244  h_mapDepth4ADCAmpl_HO->Fill(double(ieta), double(iphi), amplitude);
13245  if (mdepth == 4)
13246  h_mapDepth4ADCAmpl12_HO->Fill(double(ieta), double(iphi), ampl);
13247 
13248  h_bcnvsamplitude_HO->Fill(float(bcn), amplitude);
13249  h_bcnvsamplitude0_HO->Fill(float(bcn), 1.);
13250 
13251  h_orbitNumvsamplitude_HO->Fill(float(orbitNum), amplitude);
13252  h_orbitNumvsamplitude0_HO->Fill(float(orbitNum), 1.);
13253  if (amplitude > forallestimators_amplitude_bigger_)
13254  sumEstimator1[sub - 1][mdepth - 1][ieta + 41][iphi] += amplitude;
13255  } //if(studyADCAmplHist_
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]; // 0-neta ; 0-71
13261  if (mdepth == 4)
13262  h_mapDepth4TSmeanA225_HO->Fill(double(ieta), double(iphi), 1.);
13263  } // if
13264  if (mdepth == 4)
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;
13268  } //if(studyTSmeanShapeHist_
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]; // 0-neta ; 0-71
13274  if (mdepth == 4)
13275  h_mapDepth4TSmaxA225_HO->Fill(double(ieta), double(iphi), 1.);
13276  } // if
13277  // for averaged values:
13278  if (mdepth == 4)
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);
13282  } //if(studyTSmaxShapeHist_
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]; // 0-neta ; 0-71
13288  if (mdepth == 4)
13289  h_mapDepth4Amplitude225_HO->Fill(double(ieta), double(iphi), 1.);
13290  } // if
13291  if (mdepth == 4)
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;
13295  } //if(studyRMSshapeHist_)
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]; // 0-neta ; 0-71
13301  if (mdepth == 4)
13302  h_mapDepth4Ampl047_HO->Fill(double(ieta), double(iphi), 1.);
13303  } //if(ratio
13304  if (mdepth == 4)
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;
13308  } //if(studyRatioShapeHist_)
13309  if (studyDiffAmplHist_) {
13310  if (mdepth == 4)
13311  h_mapDepth4AmplE34_HO->Fill(double(ieta), double(iphi), amplitude);
13312  } // if(studyDiffAmplHist_)
13313  if (mdepth == 4)
13314  h_mapDepth4_HO->Fill(double(ieta), double(iphi), 1.);
13315  } //if ( sub == 3 )
13316 }
13317 int CMTRawAnalyzer::getRBX(int& kdet, int& keta, int& kphi) {
13318  int cal_RBX = 0;
13319  if (kdet == 1 || kdet == 2) {
13320  if (kphi == 71)
13321  cal_RBX = 0;
13322  else
13323  cal_RBX = (kphi + 1) / 4;
13324  cal_RBX = cal_RBX + 18 * (keta + 1) / 2;
13325  }
13326  if (kdet == 4) {
13327  cal_RBX = (int)(kphi / 18) + 1;
13328  }
13329  if (kdet == 3) {
13330  if (keta == -2) {
13331  if (kphi == 71)
13332  cal_RBX = 0;
13333  else
13334  cal_RBX = kphi / 12 + 1;
13335  }
13336  if (keta == -1) {
13337  if (kphi == 71)
13338  cal_RBX = 6;
13339  else
13340  cal_RBX = kphi / 12 + 1 + 6;
13341  }
13342  if (keta == 0) {
13343  if (kphi == 71)
13344  cal_RBX = 12;
13345  else
13346  cal_RBX = kphi / 6 + 1 + 12;
13347  }
13348  if (keta == 1) {
13349  if (kphi == 71)
13350  cal_RBX = 24;
13351  else
13352  cal_RBX = kphi / 12 + 1 + 24;
13353  }
13354  if (keta == 2) {
13355  if (kphi == 71)
13356  cal_RBX = 30;
13357  else
13358  cal_RBX = kphi / 12 + 1 + 30;
13359  }
13360  }
13361  return cal_RBX;
13362 }
13363 void CMTRawAnalyzer::beginRun(const edm::Run& r, const edm::EventSetup& iSetup) {}
13364 void CMTRawAnalyzer::endRun(const edm::Run& r, const edm::EventSetup& iSetup) {
13365  if (flagfitshunt1pedorledlowintensity_ != 0) {
13366  } // if flag...
13367  if (usecontinuousnumbering_) {
13368  lscounterM1 = lscounter - 1;
13369  } else {
13370  lscounterM1 = ls0;
13371  }
13372  if (ls0 != -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) {
13378  for (int k0 = 0; k0 < nsub; k0++) {
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.) {
13384  double bbbc = 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];
13389  double bbb1 = 1.;
13390  if (flagestimatornormalization_ == 2) {
13391  bbbc = sumEstimator0[k0][k1][k2][k3];
13392  bbb1 = sum0Estimator[k0][k1][k2][k3];
13393  }
13394  if (k0 == 0) {
13395  if (k1 + 1 == 1) {
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);
13401  }
13402  if (k1 + 1 == 2) {
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);
13408  }
13409  }
13410  // HE:
13411  if (k0 == 1) {
13412  // HEdepth1
13413  if (k1 + 1 == 1) {
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);
13419  }
13420  if (k1 + 1 == 2) {
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);
13426  }
13427  if (k1 + 1 == 3) {
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);
13433  }
13434  }
13435  // HF:
13436  if (k0 == 3) {
13437  // HFdepth1
13438  if (k1 + 1 == 1) {
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);
13444  }
13445  if (k1 + 1 == 2) {
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);
13451  }
13452  }
13453  // HO:
13454  if (k0 == 2) {
13455  // HOdepth1
13456  if (k1 + 1 == 4) {
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);
13462  }
13463  }
13464  } //if(sumEstimator0[k0][k1][k2][k3] != 0.
13465  if (sumEstimator1[k0][k1][k2][k3] != 0.) {
13466  double bbbc = 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];
13471  double bbb1 = 1.;
13472  if (flagestimatornormalization_ == 2) {
13473  bbbc = sumEstimator1[k0][k1][k2][k3];
13474  bbb1 = sum0Estimator[k0][k1][k2][k3];
13475  }
13476  if (lscounterM1 >= lsmin_ && lscounterM1 < lsmax_) {
13477  int kkkk2 = (k2 - 1) / 4;
13478  if (k2 == 0)
13479  kkkk2 = 1.;
13480  else
13481  kkkk2 += 2; //kkkk2= 1-22
13482  int kkkk3 = (k3) / 4 + 1; //kkkk3= 1-18
13483  int ietaphi = 0;
13484  ietaphi = ((kkkk2)-1) * znphi + (kkkk3);
13485  double bbb3 = 0.;
13486  if (bbb1 != 0.)
13487  bbb3 = bbbc / bbb1;
13488  if (k0 == 0) {
13489  h_2DsumADCAmplEtaPhiLs0->Fill(float(lscounterM1), float(ietaphi), bbbc); //HB
13490  h_2DsumADCAmplEtaPhiLs00->Fill(float(lscounterM1), float(ietaphi), bbb1); //HB
13491  }
13492  if (k0 == 1) {
13493  h_2DsumADCAmplEtaPhiLs1->Fill(float(lscounterM1), float(ietaphi), bbbc); //HE
13494  h_2DsumADCAmplEtaPhiLs10->Fill(float(lscounterM1), float(ietaphi), bbb1); //HE
13495  }
13496  if (k0 == 2) {
13497  h_2DsumADCAmplEtaPhiLs2->Fill(float(lscounterM1), float(ietaphi), bbbc); //HO
13498  h_2DsumADCAmplEtaPhiLs20->Fill(float(lscounterM1), float(ietaphi), bbb1); //HO
13499  }
13500  if (k0 == 3) {
13501  h_2DsumADCAmplEtaPhiLs3->Fill(float(lscounterM1), float(ietaphi), bbbc); //HF
13502  h_2DsumADCAmplEtaPhiLs30->Fill(float(lscounterM1), float(ietaphi), bbb1); //HF
13503  }
13504 
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));
13512  } // lscounterM1 >= lsmin_ && lscounterM1 < lsmax_
13513  if (k0 == 0) {
13514  if (k1 + 1 == 1) {
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);
13530  }
13531  if (k1 + 1 == 2) {
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);
13542  }
13543  if (k1 + 1 == 3) {
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);
13548 
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);
13552  } //if(k1+1 ==3)
13553  if (k1 + 1 == 4) {
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);
13558 
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);
13562  } //if(k1+1 ==4)
13563  }
13564  if (k0 == 1) {
13565  if (k1 + 1 == 1) {
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);
13576  }
13577  if (k1 + 1 == 2) {
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);
13588  }
13589  if (k1 + 1 == 3) {
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);
13600  }
13601  if (k1 + 1 == 4) {
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);
13609  } //if(k1+1 ==4)
13610  if (k1 + 1 == 5) {
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);
13618  } //if(k1+1 ==5)
13619 
13620  if (k1 + 1 == 6) {
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);
13628  } //if(k1+1 ==6)
13629  if (k1 + 1 == 7) {
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);
13637  } //if(k1+1 ==7)
13638 
13639  } // end HE
13640 
13641  if (k0 == 3) {
13642  if (k1 + 1 == 1) {
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);
13653  }
13654  if (k1 + 1 == 2) {
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);
13665  }
13666 
13667  if (k1 + 1 == 3) {
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);
13675  } //if(k1+1 ==3)
13676  if (k1 + 1 == 4) {
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);
13684  } //if(k1+1 ==4)
13685  }
13686  // HO:
13687  if (k0 == 2) {
13688  // HOdepth1
13689  if (k1 + 1 == 4) {
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);
13700  }
13701  }
13702  } //if(sumEstimator1[k0][k1][k2][k3] != 0.
13703  if (sumEstimator2[k0][k1][k2][k3] != 0.) {
13704  double bbbc = 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];
13709  double bbb1 = 1.;
13710  if (flagestimatornormalization_ == 2) {
13711  bbbc = sumEstimator2[k0][k1][k2][k3];
13712  bbb1 = sum0Estimator[k0][k1][k2][k3];
13713  }
13714 
13715  // HB:
13716  if (k0 == 0) {
13717  // HBdepth1
13718  if (k1 + 1 == 1) {
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);
13729  }
13730  if (k1 + 1 == 2) {
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);
13739  }
13740  }
13741  if (k0 == 1) {
13742  if (k1 + 1 == 1) {
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);
13751  }
13752  if (k1 + 1 == 2) {
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);
13761  }
13762  if (k1 + 1 == 3) {
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);
13771  }
13772  }
13773  // HF:
13774  if (k0 == 3) {
13775  // HFdepth1
13776  if (k1 + 1 == 1) {
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);
13785  }
13786  if (k1 + 1 == 2) {
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);
13795  }
13796  }
13797  // HO:
13798  if (k0 == 2) {
13799  // HOdepth1
13800  if (k1 + 1 == 4) {
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);
13809  }
13810  }
13811  } //if(sumEstimator2[k0][k1][k2][k3] != 0.
13812 
13813  // ------------------------------------------------------------------------------------------------------------------------sumEstimator3 Tx
13814  if (sumEstimator3[k0][k1][k2][k3] != 0.) {
13815  // fill histoes:
13816  double bbbc = 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];
13821  double bbb1 = 1.;
13822  if (flagestimatornormalization_ == 2) {
13823  bbbc = sumEstimator3[k0][k1][k2][k3];
13824  bbb1 = sum0Estimator[k0][k1][k2][k3];
13825  }
13826 
13827  // HB:
13828  if (k0 == 0) {
13829  // HBdepth1
13830  if (k1 + 1 == 1) {
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);
13841  }
13842  if (k1 + 1 == 2) {
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);
13851  }
13852  }
13853  // HE:
13854  if (k0 == 1) {
13855  // HEdepth1
13856  if (k1 + 1 == 1) {
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);
13865  }
13866  if (k1 + 1 == 2) {
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);
13875  }
13876  if (k1 + 1 == 3) {
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);
13885  }
13886  }
13887  // HF:
13888  if (k0 == 3) {
13889  // HFdepth1
13890  if (k1 + 1 == 1) {
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);
13899  }
13900  if (k1 + 1 == 2) {
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);
13909  }
13910  }
13911  // HO:
13912  if (k0 == 2) {
13913  // HOdepth1
13914  if (k1 + 1 == 4) {
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);
13923  }
13924  }
13925  } //if(sumEstimator3[k0][k1][k2][k3] != 0.
13926 
13927  // ------------------------------------------------------------------------------------------------------------------------sumEstimator4 W
13928  if (sumEstimator4[k0][k1][k2][k3] != 0.) {
13929  // fill histoes:
13930  double bbbc = 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];
13935  double bbb1 = 1.;
13936  if (flagestimatornormalization_ == 2) {
13937  bbbc = sumEstimator4[k0][k1][k2][k3];
13938  bbb1 = sum0Estimator[k0][k1][k2][k3];
13939  }
13940 
13941  // HB:
13942  if (k0 == 0) {
13943  // HBdepth1
13944  if (k1 + 1 == 1) {
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);
13955  }
13956  if (k1 + 1 == 2) {
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);
13965  }
13966  }
13967  // HE:
13968  if (k0 == 1) {
13969  // HEdepth1
13970  if (k1 + 1 == 1) {
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);
13979  }
13980  if (k1 + 1 == 2) {
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);
13989  }
13990  if (k1 + 1 == 3) {
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);
13999  }
14000  }
14001  // HF:
14002  if (k0 == 3) {
14003  // HFdepth1
14004  if (k1 + 1 == 1) {
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);
14013  }
14014  if (k1 + 1 == 2) {
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);
14023  }
14024  }
14025  // HO:
14026  if (k0 == 2) {
14027  // HOdepth1
14028  if (k1 + 1 == 4) {
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);
14037  }
14038  }
14039  } //if(sumEstimator4[k0][k1][k2][k3] != 0.
14040 
14041  // ------------------------------------------------------------------------------------------------------------------------sumEstimator5 R
14042  if (sumEstimator5[k0][k1][k2][k3] != 0.) {
14043  // fill histoes:
14044  double bbbc = 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];
14049  double bbb1 = 1.;
14050  if (flagestimatornormalization_ == 2) {
14051  bbbc = sumEstimator5[k0][k1][k2][k3];
14052  bbb1 = sum0Estimator[k0][k1][k2][k3];
14053  }
14054 
14055  // HB:
14056  if (k0 == 0) {
14057  // HBdepth1
14058  if (k1 + 1 == 1) {
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);
14069  }
14070  if (k1 + 1 == 2) {
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);
14079  }
14080  }
14081  // HE:
14082  if (k0 == 1) {
14083  // HEdepth1
14084  if (k1 + 1 == 1) {
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);
14093  }
14094  if (k1 + 1 == 2) {
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);
14103  }
14104  if (k1 + 1 == 3) {
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);
14113  }
14114  }
14115  // HF:
14116  if (k0 == 3) {
14117  // HFdepth1
14118  if (k1 + 1 == 1) {
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);
14127  }
14128  if (k1 + 1 == 2) {
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);
14137  }
14138  }
14139  // HO:
14140  if (k0 == 2) {
14141  // HOdepth1
14142  if (k1 + 1 == 4) {
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);
14151  }
14152  }
14153  } //if(sumEstimator5[k0][k1][k2][k3] != 0.
14154  // ------------------------------------------------------------------------------------------------------------------------sumEstimator6 (Error-B)
14155  if (sumEstimator6[k0][k1][k2][k3] != 0.) {
14156  // fill histoes:
14157  double bbbc = 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];
14162  double bbb1 = 1.;
14163  if (flagestimatornormalization_ == 2) {
14164  bbbc = sumEstimator6[k0][k1][k2][k3];
14165  bbb1 = sum0Estimator[k0][k1][k2][k3];
14166  }
14167 
14168  // HB:
14169  if (k0 == 0) {
14170  // HBdepth1
14171  if (k1 + 1 == 1) {
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);
14177  }
14178  if (k1 + 1 == 2) {
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);
14184  }
14185  }
14186  // HE:
14187  if (k0 == 1) {
14188  // HEdepth1
14189  if (k1 + 1 == 1) {
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);
14195  }
14196  if (k1 + 1 == 2) {
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);
14202  }
14203  if (k1 + 1 == 3) {
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);
14209  }
14210  }
14211  // HF:
14212  if (k0 == 3) {
14213  // HFdepth1
14214  if (k1 + 1 == 1) {
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);
14220  }
14221  if (k1 + 1 == 2) {
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);
14227  }
14228  }
14229  // HO:
14230  if (k0 == 2) {
14231  // HOdepth4
14232  if (k1 + 1 == 4) {
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);
14238  }
14239  }
14241  } //if(sumEstimator6[k0][k1][k2][k3] != 0.
14242 
14245  } //for
14246  } //for
14247  } //for
14248  } //for
14249 
14250  //------------------------------------------------------ averSIGNAL
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);
14259 
14260  averSIGNALoccupancy_HB = 0.;
14261  averSIGNALoccupancy_HE = 0.;
14262  averSIGNALoccupancy_HF = 0.;
14263  averSIGNALoccupancy_HO = 0.;
14264 
14265  //------------------------------------------------------
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);
14274 
14275  averSIGNALsumamplitude_HB = 0.;
14276  averSIGNALsumamplitude_HE = 0.;
14277  averSIGNALsumamplitude_HF = 0.;
14278  averSIGNALsumamplitude_HO = 0.;
14279 
14280  //------------------------------------------------------ averNOSIGNAL
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);
14289 
14290  averNOSIGNALoccupancy_HB = 0.;
14291  averNOSIGNALoccupancy_HE = 0.;
14292  averNOSIGNALoccupancy_HF = 0.;
14293  averNOSIGNALoccupancy_HO = 0.;
14294 
14295  //------------------------------------------------------
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);
14304 
14305  averNOSIGNALsumamplitude_HB = 0.;
14306  averNOSIGNALsumamplitude_HE = 0.;
14307  averNOSIGNALsumamplitude_HF = 0.;
14308  averNOSIGNALsumamplitude_HO = 0.;
14309 
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);
14314  maxxSUM1 = 0.;
14315  maxxSUM2 = 0.;
14316  maxxSUM3 = 0.;
14317  maxxSUM4 = 0.;
14318  //------------------------------------------------------
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);
14323  maxxOCCUP1 = 0.;
14324  maxxOCCUP2 = 0.;
14325  maxxOCCUP3 = 0.;
14326  maxxOCCUP4 = 0.;
14327 
14328  } //if( nevcounter0 != 0 )
14330 
14331  std::cout << " ==== Edn of run " << std::endl;
14332 }
14334 //
14336 //
14339  HcalLogicalMap lmap = gen.createMap(topo);
14340 
14341  // HcalElectronicsMap emap=lmap.generateHcalElectronicsMap();
14342 
14343  // const HcalElectronicsMap* emap=conditions->getHcalMapping();
14344  const HcalElectronicsMap* emap;
14345  emap = conditions->getHcalMapping();
14346 
14347  std::string subdet = "";
14348 
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;
14356 
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;
14376 
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;
14398 
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;
14405 
14406  MAPfile << "};" << std::endl;
14407  MAPfile << std::endl;
14408 
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 }"
14412  << std::endl;
14413 
14414  // HB
14415 
14416  for (int eta = -16; eta < 0; eta++) {
14417  for (int phi = 1; phi <= nphi; phi++) {
14418  for (int depth = 1; depth <= 2; depth++) {
14419  HcalDetId* detid = nullptr;
14420  detid = new HcalDetId(HcalBarrel, eta, phi, depth);
14421  subdet = "HB";
14422  HcalFrontEndId lmap_entry = lmap.getHcalFrontEndId(*detid);
14423  HcalElectronicsId emap_entry = emap->lookup(*detid);
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() << " , ";
14428  MAPfile << lmap_entry.fiberChannel() << " , " << lmap_entry.qieCard() << " , " << lmap_entry.adc()
14429  << " , ";
14430  MAPfile << emap_entry.readoutVMECrateId() << " , " << emap_entry.dccid() << " , " << emap_entry.spigot()
14431  << " , " << emap_entry.fiberIndex() << " , ";
14432  MAPfile << emap_entry.htrSlot() << " , " << emap_entry.htrTopBottom();
14433  MAPfile << "}," << std::endl;
14434  delete detid;
14435  } //Depth
14436  } //Phi
14437  } //Eta
14438  for (int eta = 1; eta <= 16; eta++) {
14439  for (int phi = 1; phi <= nphi; phi++) {
14440  for (int depth = 1; depth <= 2; depth++) {
14441  HcalDetId* detid = nullptr;
14442  detid = new HcalDetId(HcalBarrel, eta, phi, depth);
14443  subdet = "HB";
14444  HcalFrontEndId lmap_entry = lmap.getHcalFrontEndId(*detid);
14445  HcalElectronicsId emap_entry = emap->lookup(*detid);
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() << " , ";
14450  MAPfile << lmap_entry.fiberChannel() << " , " << lmap_entry.qieCard() << " , " << lmap_entry.adc()
14451  << " , ";
14452  MAPfile << emap_entry.readoutVMECrateId() << " , " << emap_entry.dccid() << " , " << emap_entry.spigot()
14453  << " , " << emap_entry.fiberIndex() << " , ";
14454  MAPfile << emap_entry.htrSlot() << " , " << emap_entry.htrTopBottom();
14455  MAPfile << "}," << std::endl;
14456  delete detid;
14457  } //Depth
14458  } //Phi
14459  } //Eta
14460 
14461  // HE
14462  for (int eta = -20; eta <= -20; eta++) {
14463  for (int phi = nphi; phi <= nphi; phi++) {
14464  for (int depth = 1; depth <= 2; depth++) {
14465  HcalDetId* detid = nullptr;
14466  detid = new HcalDetId(HcalEndcap, eta, phi, depth);
14467  subdet = "HE";
14468  HcalFrontEndId lmap_entry = lmap.getHcalFrontEndId(*detid);
14469  HcalElectronicsId emap_entry = emap->lookup(*detid);
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() << " , ";
14474  MAPfile << lmap_entry.fiberChannel() << " , " << lmap_entry.qieCard() << " , " << lmap_entry.adc()
14475  << " , ";
14476  MAPfile << emap_entry.readoutVMECrateId() << " , " << emap_entry.dccid() << " , " << emap_entry.spigot()
14477  << " , " << emap_entry.fiberIndex() << " , ";
14478  MAPfile << emap_entry.htrSlot() << " , " << emap_entry.htrTopBottom();
14479  MAPfile << "}," << std::endl;
14480  delete detid;
14481  } //Depth
14482  } //Phi
14483  } //Eta
14484 
14485  for (int eta = -19; eta <= -16; eta++) {
14486  for (int phi = nphi; phi <= nphi; phi++) {
14487  for (int depth = 1; depth <= 3; depth++) {
14488  HcalDetId* detid = nullptr;
14489  detid = new HcalDetId(HcalEndcap, eta, phi, depth);
14490  subdet = "HE";
14491  HcalFrontEndId lmap_entry = lmap.getHcalFrontEndId(*detid);
14492  HcalElectronicsId emap_entry = emap->lookup(*detid);
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() << " , ";
14497  MAPfile << lmap_entry.fiberChannel() << " , " << lmap_entry.qieCard() << " , " << lmap_entry.adc()
14498  << " , ";
14499  MAPfile << emap_entry.readoutVMECrateId() << " , " << emap_entry.dccid() << " , " << emap_entry.spigot()
14500  << " , " << emap_entry.fiberIndex() << " , ";
14501  MAPfile << emap_entry.htrSlot() << " , " << emap_entry.htrTopBottom();
14502  MAPfile << "}," << std::endl;
14503  delete detid;
14504  } //Depth
14505  } //Phi
14506  } //Eta
14507  for (int eta = -29; eta <= -16; eta++) {
14508  for (int phi = 1; phi <= 71; phi++) {
14509  for (int depth = 1; depth <= 3; depth++) {
14510  HcalDetId* detid = nullptr;
14511  detid = new HcalDetId(HcalEndcap, eta, phi, depth);
14512  subdet = "HE";
14513  HcalFrontEndId lmap_entry = lmap.getHcalFrontEndId(*detid);
14514  HcalElectronicsId emap_entry = emap->lookup(*detid);
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() << " , ";
14519  MAPfile << lmap_entry.fiberChannel() << " , " << lmap_entry.qieCard() << " , " << lmap_entry.adc()
14520  << " , ";
14521  MAPfile << emap_entry.readoutVMECrateId() << " , " << emap_entry.dccid() << " , " << emap_entry.spigot()
14522  << " , " << emap_entry.fiberIndex() << " , ";
14523  MAPfile << emap_entry.htrSlot() << " , " << emap_entry.htrTopBottom();
14524  MAPfile << "}," << std::endl;
14525  delete detid;
14526  } //Depth
14527  } //Phi
14528  } //Eta
14529  for (int eta = 16; eta <= 29; eta++) {
14530  for (int phi = 1; phi <= nphi; phi++) {
14531  for (int depth = 1; depth <= 3; depth++) {
14532  HcalDetId* detid = nullptr;
14533  detid = new HcalDetId(HcalEndcap, eta, phi, depth);
14534  subdet = "HE";
14535  HcalFrontEndId lmap_entry = lmap.getHcalFrontEndId(*detid);
14536  HcalElectronicsId emap_entry = emap->lookup(*detid);
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() << " , ";
14541  MAPfile << lmap_entry.fiberChannel() << " , " << lmap_entry.qieCard() << " , " << lmap_entry.adc()
14542  << " , ";
14543  MAPfile << emap_entry.readoutVMECrateId() << " , " << emap_entry.dccid() << " , " << emap_entry.spigot()
14544  << " , " << emap_entry.fiberIndex() << " , ";
14545  MAPfile << emap_entry.htrSlot() << " , " << emap_entry.htrTopBottom();
14546  MAPfile << "}," << std::endl;
14547  delete detid;
14548  } //Depth
14549  } //Phi
14550  } //Eta
14551 
14552  // HF
14553 
14554  for (int eta = -41; eta <= -29; eta++) {
14555  for (int phi = 1; phi <= nphi; phi += 2) {
14556  for (int depth = 1; depth <= 2; depth++) {
14557  HcalDetId* detid = nullptr;
14558  detid = new HcalDetId(HcalForward, eta, phi, depth);
14559  subdet = "HF";
14560  HcalFrontEndId lmap_entry = lmap.getHcalFrontEndId(*detid);
14561  HcalElectronicsId emap_entry = emap->lookup(*detid);
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() << " , ";
14566  MAPfile << lmap_entry.fiberChannel() << " , " << lmap_entry.qieCard() << " , " << lmap_entry.adc()
14567  << " , ";
14568  MAPfile << emap_entry.readoutVMECrateId() << " , " << emap_entry.dccid() << " , " << emap_entry.spigot()
14569  << " , " << emap_entry.fiberIndex() << " , ";
14570  MAPfile << emap_entry.htrSlot() << " , " << emap_entry.htrTopBottom();
14571  MAPfile << "}," << std::endl;
14572  delete detid;
14573  } //Depth
14574  } //Phi
14575  } //Eta
14576 
14577  for (int eta = 29; eta <= 41; eta++) {
14578  for (int phi = 1; phi <= nphi; phi += 2) {
14579  for (int depth = 1; depth <= 2; depth++) {
14580  HcalDetId* detid = nullptr;
14581  detid = new HcalDetId(HcalForward, eta, phi, depth);
14582  subdet = "HF";
14583  HcalFrontEndId lmap_entry = lmap.getHcalFrontEndId(*detid);
14584  HcalElectronicsId emap_entry = emap->lookup(*detid);
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() << " , ";
14589  MAPfile << lmap_entry.fiberChannel() << " , " << lmap_entry.qieCard() << " , " << lmap_entry.adc()
14590  << " , ";
14591  MAPfile << emap_entry.readoutVMECrateId() << " , " << emap_entry.dccid() << " , " << emap_entry.spigot()
14592  << " , " << emap_entry.fiberIndex() << " , ";
14593  MAPfile << emap_entry.htrSlot() << " , " << emap_entry.htrTopBottom();
14594  MAPfile << "}," << std::endl;
14595  delete detid;
14596  } //Depth
14597  } //Phi
14598  } //Eta
14599 
14600  // HO
14601 
14602  for (int eta = -15; eta < 0; eta++) {
14603  for (int phi = 1; phi <= nphi; phi++) {
14604  for (int depth = 4; depth <= 4; depth++) {
14605  HcalDetId* detid = nullptr;
14606  detid = new HcalDetId(HcalOuter, eta, phi, depth);
14607  subdet = "HO";
14608  HcalFrontEndId lmap_entry = lmap.getHcalFrontEndId(*detid);
14609  HcalElectronicsId emap_entry = emap->lookup(*detid);
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() << " , ";
14614  MAPfile << lmap_entry.fiberChannel() << " , " << lmap_entry.qieCard() << " , " << lmap_entry.adc()
14615  << " , ";
14616  MAPfile << emap_entry.readoutVMECrateId() << " , " << emap_entry.dccid() << " , " << emap_entry.spigot()
14617  << " , " << emap_entry.fiberIndex() << " , ";
14618  MAPfile << emap_entry.htrSlot() << " , " << emap_entry.htrTopBottom();
14619  MAPfile << "}," << std::endl;
14620  delete detid;
14621  } //Depth
14622  } //Phi
14623  } //Eta
14624 
14625  for (int eta = 1; eta <= 15; eta++) {
14626  for (int phi = 1; phi <= nphi; phi++) {
14627  for (int depth = 4; depth <= 4; depth++) {
14628  HcalDetId* detid = nullptr;
14629  detid = new HcalDetId(HcalOuter, eta, phi, depth);
14630  subdet = "HO";
14631  HcalFrontEndId lmap_entry = lmap.getHcalFrontEndId(*detid);
14632  HcalElectronicsId emap_entry = emap->lookup(*detid);
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() << " , ";
14637  MAPfile << lmap_entry.fiberChannel() << " , " << lmap_entry.qieCard() << " , " << lmap_entry.adc()
14638  << " , ";
14639  MAPfile << emap_entry.readoutVMECrateId() << " , " << emap_entry.dccid() << " , " << emap_entry.spigot()
14640  << " , " << emap_entry.fiberIndex() << " , ";
14641  MAPfile << emap_entry.htrSlot() << " , " << emap_entry.htrTopBottom();
14642  MAPfile << "}," << std::endl;
14643  delete detid;
14644  } //Depth
14645  } //Phi
14646  } //Eta
14647  MAPfile << "};" << std::endl;
14648  MAPfile << std::endl;
14649 
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;
14653 
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;
14661 
14662  MAPfile << "// return i-th cell" << std::endl;
14663  MAPfile << "Cell operator [] (int i) const {return cells[i];}" << std::endl;
14664 
14665  MAPfile << "// number of cells in database" << std::endl;
14666  MAPfile << "int size() const {return cells.size();}" << std::endl;
14667  MAPfile << std::endl;
14668 
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;
14686  MAPfile.close();
14687  std::cout << "===== Finish writing Channel MAP =====" << std::endl;
14688 }
14689 
14692 //define this as a plug-in
CMTRawAnalyzer::h_timecorr_HB
TH1F * h_timecorr_HB
Definition: CMTRawAnalyzer.cc:1352
CMTRawAnalyzer::h_mapDepth2Ampl047_HE
TH2F * h_mapDepth2Ampl047_HE
Definition: CMTRawAnalyzer.cc:778
CMTRawAnalyzer::h_mapDepth5TSmaxA_HE
TH2F * h_mapDepth5TSmaxA_HE
Definition: CMTRawAnalyzer.cc:751
CMTRawAnalyzer::h_mapDepth4ADCAmpl12_HE
TH2F * h_mapDepth4ADCAmpl12_HE
Definition: CMTRawAnalyzer.cc:511
CMTRawAnalyzer::ADCAmplHOMin_
double ADCAmplHOMin_
Definition: CMTRawAnalyzer.cc:202
CMTRawAnalyzer::h_mapDepth3Ampl_HB
TH2F * h_mapDepth3Ampl_HB
Definition: CMTRawAnalyzer.cc:498
HcalFrontEndId::rm
int rm() const
Definition: HcalFrontEndId.h:26
CMTRawAnalyzer::h_2DsumADCAmplLS6_LSselected
TH2F * h_2DsumADCAmplLS6_LSselected
Definition: CMTRawAnalyzer.cc:990
CMTRawAnalyzer::h_mapDepth2Pedw2_HF
TH2F * h_mapDepth2Pedw2_HF
Definition: CMTRawAnalyzer.cc:1512
CMTRawAnalyzer::h_sumADCAmplperLS5
TH1F * h_sumADCAmplperLS5
Definition: CMTRawAnalyzer.cc:984
CMTRawAnalyzer::h_sumAmplitudeperLS1_LSselected
TH1F * h_sumAmplitudeperLS1_LSselected
Definition: CMTRawAnalyzer.cc:1166
CMTRawAnalyzer::h_mapDepth4TSmaxA225_HO
TH2F * h_mapDepth4TSmaxA225_HO
Definition: CMTRawAnalyzer.cc:596
CMTRawAnalyzer::TSmeanHBMin_
double TSmeanHBMin_
Definition: CMTRawAnalyzer.cc:189
CMTRawAnalyzer::h_pedestalw2_HO
TH1F * h_pedestalw2_HO
Definition: CMTRawAnalyzer.cc:1313
CMTRawAnalyzer::h_nevents_per_LSzoom
TH1F * h_nevents_per_LSzoom
Definition: CMTRawAnalyzer.cc:888
CMTRawAnalyzer::h2_pedvsampl_HO
TH2F * h2_pedvsampl_HO
Definition: CMTRawAnalyzer.cc:1396
CMTRawAnalyzer::h_errorGeneral_HE
TH1F * h_errorGeneral_HE
Definition: CMTRawAnalyzer.cc:365
CMTRawAnalyzer::lsdep_estimator4_HBdepth2_
double lsdep_estimator4_HBdepth2_
Definition: CMTRawAnalyzer.cc:154
CMTRawAnalyzer::h_2DsumPedestalLS5
TH2F * h_2DsumPedestalLS5
Definition: CMTRawAnalyzer.cc:913
CMTRawAnalyzer::h_map0AiForLS_good_HE
TH2F * h_map0AiForLS_good_HE
Definition: CMTRawAnalyzer.cc:310
nevent
int nevent
Definition: AMPTWrapper.h:84
CMTRawAnalyzer::local_event
int local_event
Definition: CMTRawAnalyzer.cc:1920
CMTRawAnalyzer::beginRun
void beginRun(const edm::Run &r, const edm::EventSetup &iSetup) override
Definition: CMTRawAnalyzer.cc:13363
CMTRawAnalyzer::h_mapDepth1pedestalw_HB
TH2F * h_mapDepth1pedestalw_HB
Definition: CMTRawAnalyzer.cc:1317
CMTRawAnalyzer::h_runbadrateC_depth1_HE
TH1F * h_runbadrateC_depth1_HE
Definition: CMTRawAnalyzer.cc:622
CMTRawAnalyzer::h_amplitudechannel0_HE7
TH2F * h_amplitudechannel0_HE7
Definition: CMTRawAnalyzer.cc:1767
CMTRawAnalyzer::TSmeanHFMax_
double TSmeanHFMax_
Definition: CMTRawAnalyzer.cc:194
CMTRawAnalyzer::h_TSmeanA_HO
TH1F * h_TSmeanA_HO
Definition: CMTRawAnalyzer.cc:591
CMTRawAnalyzer::h_pedestal2_HB
TH1F * h_pedestal2_HB
Definition: CMTRawAnalyzer.cc:1271
CMTRawAnalyzer::h_mapDepth2TSmaxA_HB
TH2F * h_mapDepth2TSmaxA_HB
Definition: CMTRawAnalyzer.cc:471
HIPAlignmentAlgorithm_cfi.verbosity
verbosity
Definition: HIPAlignmentAlgorithm_cfi.py:7
CMTRawAnalyzer::lsdep_cut1_peak_HFdepth1_
int lsdep_cut1_peak_HFdepth1_
Definition: CMTRawAnalyzer.cc:103
CMTRawAnalyzer::h_runbadrate0_depth2_HF
TH1F * h_runbadrate0_depth2_HF
Definition: CMTRawAnalyzer.cc:653
CMTRawAnalyzer::tok_calib_
edm::EDGetTokenT< HcalCalibDigiCollection > tok_calib_
Definition: CMTRawAnalyzer.cc:25
CMTRawAnalyzer::h_sumADCAmplperLS1_P2
TH1F * h_sumADCAmplperLS1_P2
Definition: CMTRawAnalyzer.cc:1018
CMTRawAnalyzer::averSIGNALsumamplitude_HB
double averSIGNALsumamplitude_HB
Definition: CMTRawAnalyzer.cc:1882
CMTRawAnalyzer::h_averSIGNALsumamplitude_HF
TH1F * h_averSIGNALsumamplitude_HF
Definition: CMTRawAnalyzer.cc:1576
CMTRawAnalyzer::h_Amplitude_forCapIdErrors_HF2
TH1F * h_Amplitude_forCapIdErrors_HF2
Definition: CMTRawAnalyzer.cc:676
CMTRawAnalyzer::studyCalibCellsHist_
bool studyCalibCellsHist_
Definition: CMTRawAnalyzer.cc:63
CMTRawAnalyzer::h_mapDepth4ADCAmpl225_HF
TH2F * h_mapDepth4ADCAmpl225_HF
Definition: CMTRawAnalyzer.cc:538
CMTRawAnalyzer::h_RatioCalib_HB
TH1F * h_RatioCalib_HB
Definition: CMTRawAnalyzer.cc:821
Ecal2004TBTDCRanges_v1_cff.endRun
endRun
Definition: Ecal2004TBTDCRanges_v1_cff.py:4
CMTRawAnalyzer::h_lutcorr_HF
TH1F * h_lutcorr_HF
Definition: CMTRawAnalyzer.cc:1367
CMTRawAnalyzer::h_Amplitude_notCapIdErrors_HE1
TH1F * h_Amplitude_notCapIdErrors_HE1
Definition: CMTRawAnalyzer.cc:680
CMTRawAnalyzer::h_mapDepth1_HE
TH2F * h_mapDepth1_HE
Definition: CMTRawAnalyzer.cc:798
CMTRawAnalyzer::h_mapDepth3ADCAmpl12SiPM_HE
TH2F * h_mapDepth3ADCAmpl12SiPM_HE
Definition: CMTRawAnalyzer.cc:517
CMTRawAnalyzer::h_sumAmplitudeLS8
TH1F * h_sumAmplitudeLS8
Definition: CMTRawAnalyzer.cc:1206
CMTRawAnalyzer::h_TSmaxA_HB
TH1F * h_TSmaxA_HB
Definition: CMTRawAnalyzer.cc:469
CMTRawAnalyzer::h_mapDepth3Error_HB
TH2F * h_mapDepth3Error_HB
Definition: CMTRawAnalyzer.cc:359
CMTRawAnalyzer::h_sumTSmeanAperLS2
TH1F * h_sumTSmeanAperLS2
Definition: CMTRawAnalyzer.cc:1074
CMTRawAnalyzer::h_mapDepth4TSmaxA_HF
TH2F * h_mapDepth4TSmaxA_HF
Definition: CMTRawAnalyzer.cc:554
CMTRawAnalyzer::h2_pedwvsampl_HO
TH2F * h2_pedwvsampl_HO
Definition: CMTRawAnalyzer.cc:1397
CMTRawAnalyzer::h_recNoiseEnergy0_HF2
TH2F * h_recNoiseEnergy0_HF2
Definition: CMTRawAnalyzer.cc:1731
CMTRawAnalyzer::h_mapDepth3ADCAmpl12_HB
TH2F * h_mapDepth3ADCAmpl12_HB
Definition: CMTRawAnalyzer.cc:506
CMTRawAnalyzer::h_sumamplitudechannel_HO
TH1F * h_sumamplitudechannel_HO
Definition: CMTRawAnalyzer.cc:1597
CMTRawAnalyzer::h_ADCAmplZoom1_HO
TH1F * h_ADCAmplZoom1_HO
Definition: CMTRawAnalyzer.cc:587
CMTRawAnalyzer::h_runnbadchannels_depth2_HF
TH1F * h_runnbadchannels_depth2_HF
Definition: CMTRawAnalyzer.cc:649
CMTRawAnalyzer::h_mapenophinorm2_HE4
TH2F * h_mapenophinorm2_HE4
Definition: CMTRawAnalyzer.cc:1620
CMTRawAnalyzer::h_mapDepth4AmplE34_HE
TH2F * h_mapDepth4AmplE34_HE
Definition: CMTRawAnalyzer.cc:794
CMTRawAnalyzer::h_mapDepth3TSmeanA225_HB
TH2F * h_mapDepth3TSmeanA225_HB
Definition: CMTRawAnalyzer.cc:467
CMTRawAnalyzer::h_2D0sumPedestalLS5
TH2F * h_2D0sumPedestalLS5
Definition: CMTRawAnalyzer.cc:915
CMTRawAnalyzer::h_gsmdifferencefit5_HE
TH1F * h_gsmdifferencefit5_HE
Definition: CMTRawAnalyzer.cc:719
CMTRawAnalyzer::h_amplitudechannel2_HE7
TH2F * h_amplitudechannel2_HE7
Definition: CMTRawAnalyzer.cc:1769
bk::beginJob
void beginJob()
Definition: Breakpoints.cc:14
CMTRawAnalyzer::h_mapTSmeanCalib_HE
TH2F * h_mapTSmeanCalib_HE
Definition: CMTRawAnalyzer.cc:846
CMTRawAnalyzer::h_mapDepth7ADCAmpl225_HE
TH2F * h_mapDepth7ADCAmpl225_HE
Definition: CMTRawAnalyzer.cc:730
CMTRawAnalyzer::h_fiber2_HF
TH1F * h_fiber2_HF
Definition: CMTRawAnalyzer.cc:402
CMTRawAnalyzer::h_orbitNumvsamplitude_HB
TH1F * h_orbitNumvsamplitude_HB
Definition: CMTRawAnalyzer.cc:280
CMTRawAnalyzer::h_2D0sumErrorBLS7
TH2F * h_2D0sumErrorBLS7
Definition: CMTRawAnalyzer.cc:1560
CMTRawAnalyzer::h_mapDepth1TSmaxA225_HB
TH2F * h_mapDepth1TSmaxA225_HB
Definition: CMTRawAnalyzer.cc:472
CMTRawAnalyzer::h_totalAmplitudeHBperEvent
TH1F * h_totalAmplitudeHBperEvent
Definition: CMTRawAnalyzer.cc:335
CMTRawAnalyzer::h_sigLayer1RADDAM6_HE
TH1F * h_sigLayer1RADDAM6_HE
Definition: CMTRawAnalyzer.cc:1812
CMTRawAnalyzer::h_pedestal2_HO
TH1F * h_pedestal2_HO
Definition: CMTRawAnalyzer.cc:1307
CMTRawAnalyzer::h_error7_HO
TH1F * h_error7_HO
Definition: CMTRawAnalyzer.cc:411
CMTRawAnalyzer::calibrRatioHOMin_
double calibrRatioHOMin_
Definition: CMTRawAnalyzer.cc:218
CMTRawAnalyzer::TSpeakHEMax_
double TSpeakHEMax_
Definition: CMTRawAnalyzer.cc:184
CMTRawAnalyzer::h_mapGetRMSOverNormalizedSignal0_HB
TH2F * h_mapGetRMSOverNormalizedSignal0_HB
Definition: CMTRawAnalyzer.cc:1523
CMTRawAnalyzer::calibrADCHBMin_
double calibrADCHBMin_
Definition: CMTRawAnalyzer.cc:208
CMTRawAnalyzer::h_mapDepth1Ped1_HE
TH2F * h_mapDepth1Ped1_HE
Definition: CMTRawAnalyzer.cc:1475
CMTRawAnalyzer::h_2D0sumADCAmplLS7
TH2F * h_2D0sumADCAmplLS7
Definition: CMTRawAnalyzer.cc:1051
CMTRawAnalyzer::h_mapDepth2Amplitude_HB
TH2F * h_mapDepth2Amplitude_HB
Definition: CMTRawAnalyzer.cc:480
CMTRawAnalyzer::tok_hf_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
Definition: CMTRawAnalyzer.cc:28
neta
const int neta
Definition: CMTRawAnalyzer.h:423
CMTRawAnalyzer::lsdep_estimator5_HEdepth3_
double lsdep_estimator5_HEdepth3_
Definition: CMTRawAnalyzer.cc:166
CMTRawAnalyzer::h_sumAmplperLS1
TH1F * h_sumAmplperLS1
Definition: CMTRawAnalyzer.cc:1214
CMTRawAnalyzer::h_2D0sumAmplLS1
TH2F * h_2D0sumAmplLS1
Definition: CMTRawAnalyzer.cc:1217
CMTRawAnalyzer::h_2DsumAmplitudeLS2
TH2F * h_2DsumAmplitudeLS2
Definition: CMTRawAnalyzer.cc:1171
CMTRawAnalyzer::h_sigLayer2RADDAM6_HE
TH1F * h_sigLayer2RADDAM6_HE
Definition: CMTRawAnalyzer.cc:1813
CMTRawAnalyzer::h_sumADCAmplperLS1_M2
TH1F * h_sumADCAmplperLS1_M2
Definition: CMTRawAnalyzer.cc:1022
znphi
const int znphi
Definition: CMTRawAnalyzer.h:427
CMTRawAnalyzer::h_pedwvsampl0_HE
TH1F * h_pedwvsampl0_HE
Definition: CMTRawAnalyzer.cc:1389
CMTRawAnalyzer::h_amplitudechannel1_HE2
TH2F * h_amplitudechannel1_HE2
Definition: CMTRawAnalyzer.cc:1753
CMTRawAnalyzer::h_pedestal1_HE
TH1F * h_pedestal1_HE
Definition: CMTRawAnalyzer.cc:1282
CMTRawAnalyzer::h_fiber1_HO
TH1F * h_fiber1_HO
Definition: CMTRawAnalyzer.cc:416
CMTRawAnalyzer::h_TSmaxA_HE
TH1F * h_TSmaxA_HE
Definition: CMTRawAnalyzer.cc:746
CMTRawAnalyzer::h_sumAmplLS5
TH1F * h_sumAmplLS5
Definition: CMTRawAnalyzer.cc:1237
CMTRawAnalyzer::lsdep_cut1_peak_HBdepth2_
int lsdep_cut1_peak_HBdepth2_
Definition: CMTRawAnalyzer.cc:99
CMTRawAnalyzer::h_FullSignal3D_HF
TH2F * h_FullSignal3D_HF
Definition: CMTRawAnalyzer.cc:811
CMTRawAnalyzer::h_shape_Ahigh_HB3
TH1F * h_shape_Ahigh_HB3
Definition: CMTRawAnalyzer.cc:1414
CMTRawAnalyzer::h_pedestal0_HF
TH1F * h_pedestal0_HF
Definition: CMTRawAnalyzer.cc:1293
CMTRawAnalyzer::h_runbadrate_depth3_HE
TH1F * h_runbadrate_depth3_HE
Definition: CMTRawAnalyzer.cc:633
CMTRawAnalyzer::h_mapDepth4ADCAmpl12_HF
TH2F * h_mapDepth4ADCAmpl12_HF
Definition: CMTRawAnalyzer.cc:521
CMTRawAnalyzer::h_mapDepth4Ampl047_HF
TH2F * h_mapDepth4Ampl047_HF
Definition: CMTRawAnalyzer.cc:576
CMTRawAnalyzer::h_recNoiseEnergy1_HE5
TH2F * h_recNoiseEnergy1_HE5
Definition: CMTRawAnalyzer.cc:1713
CMTRawAnalyzer::h_sumAmplitudeLS1
TH1F * h_sumAmplitudeLS1
Definition: CMTRawAnalyzer.cc:1163
CMTRawAnalyzer::h_mapDepth3Error_HF
TH2F * h_mapDepth3Error_HF
Definition: CMTRawAnalyzer.cc:398
CMTRawAnalyzer::usecontinuousnumbering_
bool usecontinuousnumbering_
Definition: CMTRawAnalyzer.cc:71
CMTRawAnalyzer::h_FullSignal3D_HO
TH2F * h_FullSignal3D_HO
Definition: CMTRawAnalyzer.cc:809
CMTRawAnalyzer::h_recSignalEnergy0_HE3
TH2F * h_recSignalEnergy0_HE3
Definition: CMTRawAnalyzer.cc:1685
CMTRawAnalyzer::h_mapDepth4pedestal_HE
TH2F * h_mapDepth4pedestal_HE
Definition: CMTRawAnalyzer.cc:1340
mps_fire.i
i
Definition: mps_fire.py:428
CMTRawAnalyzer::h_mapWidthCalib_HO
TH2F * h_mapWidthCalib_HO
Definition: CMTRawAnalyzer.cc:866
CMTRawAnalyzer::h_mapDepth1_HB
TH2F * h_mapDepth1_HB
Definition: CMTRawAnalyzer.cc:494
CMTRawAnalyzer::h_recNoiseEnergy0_HB1
TH2F * h_recNoiseEnergy0_HB1
Definition: CMTRawAnalyzer.cc:1666
CMTRawAnalyzer::h_2DsumTSmeanALS5
TH2F * h_2DsumTSmeanALS5
Definition: CMTRawAnalyzer.cc:1091
CMTRawAnalyzer::lsdep_estimator1_HEdepth7_
double lsdep_estimator1_HEdepth7_
Definition: CMTRawAnalyzer.cc:127
CMTRawAnalyzer::h_sumCutTSmaxAperLS1
TH1F * h_sumCutTSmaxAperLS1
Definition: CMTRawAnalyzer.cc:1118
CMTRawAnalyzer::h_ADCAmpl_HBCapIdError
TH1F * h_ADCAmpl_HBCapIdError
Definition: CMTRawAnalyzer.cc:444
CMTRawAnalyzer::h_recNoiseEnergy2_HB3
TH2F * h_recNoiseEnergy2_HB3
Definition: CMTRawAnalyzer.cc:1674
CMTRawAnalyzer::h_recSignalEnergy1_HE7
TH2F * h_recSignalEnergy1_HE7
Definition: CMTRawAnalyzer.cc:1698
CMTRawAnalyzer::h_runnbadchannels_depth2_HE
TH1F * h_runnbadchannels_depth2_HE
Definition: CMTRawAnalyzer.cc:625
CMTRawAnalyzer::h_sumCutADCAmplperLSdepth4HEu
TH1F * h_sumCutADCAmplperLSdepth4HEu
Definition: CMTRawAnalyzer.cc:999
CMTRawAnalyzer::h_runbadrateC_depth1_HB
TH1F * h_runbadrateC_depth1_HB
Definition: CMTRawAnalyzer.cc:610
CMTRawAnalyzer::h_map_HE
TH2F * h_map_HE
Definition: CMTRawAnalyzer.cc:850
CMTRawAnalyzer::h_averNOSIGNALsumamplitude_HO
TH1F * h_averNOSIGNALsumamplitude_HO
Definition: CMTRawAnalyzer.cc:1585
CMTRawAnalyzer::h_Amplitude_notCapIdErrors_HF2
TH1F * h_Amplitude_notCapIdErrors_HF2
Definition: CMTRawAnalyzer.cc:684
CustomPhysics_cfi.amplitude
amplitude
Definition: CustomPhysics_cfi.py:12
edm::SortedCollection::const_iterator
std::vector< T >::const_iterator const_iterator
Definition: SortedCollection.h:80
CMTRawAnalyzer::h_sumCutADCAmplperLSdepth4HBu
TH1F * h_sumCutADCAmplperLSdepth4HBu
Definition: CMTRawAnalyzer.cc:1010
CMTRawAnalyzer::h_respcorr_HO
TH1F * h_respcorr_HO
Definition: CMTRawAnalyzer.cc:1370
CMTRawAnalyzer::h_2D0sumAmplLS2
TH2F * h_2D0sumAmplLS2
Definition: CMTRawAnalyzer.cc:1223
CMTRawAnalyzer::studyCapIDErrorsHist_
bool studyCapIDErrorsHist_
Definition: CMTRawAnalyzer.cc:57
CMTRawAnalyzer::h_error4_HO
TH1F * h_error4_HO
Definition: CMTRawAnalyzer.cc:408
CMTRawAnalyzer::h_runbadrate0_depth1_HE
TH1F * h_runbadrate0_depth1_HE
Definition: CMTRawAnalyzer.cc:623
CMTRawAnalyzer::getRBX
int getRBX(int &i, int &j, int &k)
Definition: CMTRawAnalyzer.cc:13317
CMTRawAnalyzer::h_mapDepth4_HB
TH2F * h_mapDepth4_HB
Definition: CMTRawAnalyzer.cc:503
CMTRawAnalyzer::h_2DsumADCAmplEtaPhiLs00
TH2F * h_2DsumADCAmplEtaPhiLs00
Definition: CMTRawAnalyzer.cc:292
CMTRawAnalyzer::h_WidthCalib_HO
TH1F * h_WidthCalib_HO
Definition: CMTRawAnalyzer.cc:864
CMTRawAnalyzer::h_mapDepth3Pedw1_HE
TH2F * h_mapDepth3Pedw1_HE
Definition: CMTRawAnalyzer.cc:1495
CMTRawAnalyzer::TSmeanHOMin_
double TSmeanHOMin_
Definition: CMTRawAnalyzer.cc:195
CMTRawAnalyzer::h_sumCutTSmeanAperLS6
TH1F * h_sumCutTSmeanAperLS6
Definition: CMTRawAnalyzer.cc:1099
CMTRawAnalyzer::h_runbadrate_depth1_HB
TH1F * h_runbadrate_depth1_HB
Definition: CMTRawAnalyzer.cc:609
CMTRawAnalyzer::h_error6_HO
TH1F * h_error6_HO
Definition: CMTRawAnalyzer.cc:410
CMTRawAnalyzer::h_sumADCAmplperLS8_M1
TH1F * h_sumADCAmplperLS8_M1
Definition: CMTRawAnalyzer.cc:1044
CMTRawAnalyzer::h_mapDepth2TSmaxA_HF
TH2F * h_mapDepth2TSmaxA_HF
Definition: CMTRawAnalyzer.cc:550
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
CMTRawAnalyzer::h_maprphinorm0_HE2
TH2F * h_maprphinorm0_HE2
Definition: CMTRawAnalyzer.cc:1639
CMTRawAnalyzer::h_mapDepth2Pedw1_HB
TH2F * h_mapDepth2Pedw1_HB
Definition: CMTRawAnalyzer.cc:1471
CMTRawAnalyzer::h_mapDepth5ADCAmpl12_HE
TH2F * h_mapDepth5ADCAmpl12_HE
Definition: CMTRawAnalyzer.cc:512
CMTRawAnalyzer::h_recNoiseEnergy2_HE5
TH2F * h_recNoiseEnergy2_HE5
Definition: CMTRawAnalyzer.cc:1714
CMTRawAnalyzer::h_shape0_Ahigh_HB2
TH1F * h_shape0_Ahigh_HB2
Definition: CMTRawAnalyzer.cc:1411
CMTRawAnalyzer::lsdep_cut3_max_HFdepth1_
int lsdep_cut3_max_HFdepth1_
Definition: CMTRawAnalyzer.cc:112
CMTRawAnalyzer::h_mapDepth1Pedw1_HE
TH2F * h_mapDepth1Pedw1_HE
Definition: CMTRawAnalyzer.cc:1479
CMTRawAnalyzer::h_maprphinorm0_HE4
TH2F * h_maprphinorm0_HE4
Definition: CMTRawAnalyzer.cc:1641
CMTRawAnalyzer::h_2DsumADCAmplLSdepth7HEu
TH2F * h_2DsumADCAmplLSdepth7HEu
Definition: CMTRawAnalyzer.cc:938
CMTRawAnalyzer::h_recSignalEnergy1_HE6
TH2F * h_recSignalEnergy1_HE6
Definition: CMTRawAnalyzer.cc:1695
CMTRawAnalyzer::h_mapDepth3pedestalw_HF
TH2F * h_mapDepth3pedestalw_HF
Definition: CMTRawAnalyzer.cc:1330
CMTRawAnalyzer::lsdep_estimator4_HEdepth2_
double lsdep_estimator4_HEdepth2_
Definition: CMTRawAnalyzer.cc:156
CMTRawAnalyzer::h_sumADCAmplperLS6_P1
TH1F * h_sumADCAmplperLS6_P1
Definition: CMTRawAnalyzer.cc:1032
CMTRawAnalyzer::h_mapDepth2ADCAmpl225_HB
TH2F * h_mapDepth2ADCAmpl225_HB
Definition: CMTRawAnalyzer.cc:455
CMTRawAnalyzer::h_Amplitude_forCapIdErrors_HB1
TH1F * h_Amplitude_forCapIdErrors_HB1
Definition: CMTRawAnalyzer.cc:670
CMTRawAnalyzer::h_maprphinorm0_HE5
TH2F * h_maprphinorm0_HE5
Definition: CMTRawAnalyzer.cc:1642
CMTRawAnalyzer::calibrRatioHBMax_
double calibrRatioHBMax_
Definition: CMTRawAnalyzer.cc:220
CMTRawAnalyzer::h_sumADCAmplperLS6_M2
TH1F * h_sumADCAmplperLS6_M2
Definition: CMTRawAnalyzer.cc:1038
CMTRawAnalyzer::h_difpedestal0_HB
TH1F * h_difpedestal0_HB
Definition: CMTRawAnalyzer.cc:1354
CMTRawAnalyzer::h_sumErrorBperLS4
TH1F * h_sumErrorBperLS4
Definition: CMTRawAnalyzer.cc:1548
CMTRawAnalyzer::h_sigLayer1RADDAM5_HED2
TH1F * h_sigLayer1RADDAM5_HED2
Definition: CMTRawAnalyzer.cc:1814
CMTRawAnalyzer::h_mapDepth4Amplitude_HB
TH2F * h_mapDepth4Amplitude_HB
Definition: CMTRawAnalyzer.cc:484
CMTRawAnalyzer::h_sumCutTSmeanAperLS4
TH1F * h_sumCutTSmeanAperLS4
Definition: CMTRawAnalyzer.cc:1087
CMTRawAnalyzer::h_map_HF
TH2F * h_map_HF
Definition: CMTRawAnalyzer.cc:884
CMTRawAnalyzer::h_mapDepth6_HE
TH2F * h_mapDepth6_HE
Definition: CMTRawAnalyzer.cc:803
CMTRawAnalyzer::h_pedestalw3_HB
TH1F * h_pedestalw3_HB
Definition: CMTRawAnalyzer.cc:1278
CMTRawAnalyzer::h_sum0ErrorBperLS8
TH1F * h_sum0ErrorBperLS8
Definition: CMTRawAnalyzer.cc:1569
CMTRawAnalyzer::h_sum0ADCAmplperLS3_P1
TH1F * h_sum0ADCAmplperLS3_P1
Definition: CMTRawAnalyzer.cc:1025
CaloRecHit::energy
constexpr float energy() const
Definition: CaloRecHit.h:29
HcalDataFrameContainer
Definition: HcalDigiCollections.h:35
CMTRawAnalyzer::h_mapDepth3Ped1_HE
TH2F * h_mapDepth3Ped1_HE
Definition: CMTRawAnalyzer.cc:1491
CMTRawAnalyzer::h_mapDepth3pedestal_HE
TH2F * h_mapDepth3pedestal_HE
Definition: CMTRawAnalyzer.cc:1339
CMTRawAnalyzer::h_amplitudechannel2_HE6
TH2F * h_amplitudechannel2_HE6
Definition: CMTRawAnalyzer.cc:1766
CMTRawAnalyzer::h_sum0AmplperLS8
TH1F * h_sum0AmplperLS8
Definition: CMTRawAnalyzer.cc:1268
CMTRawAnalyzer::h_sum0AmplitudeperLS6
TH1F * h_sum0AmplitudeperLS6
Definition: CMTRawAnalyzer.cc:1199
CMTRawAnalyzer::h_orbitNumvsamplitude0_HO
TH1F * h_orbitNumvsamplitude0_HO
Definition: CMTRawAnalyzer.cc:287
CMTRawAnalyzer::h_orbitNumvsamplitude_HO
TH1F * h_orbitNumvsamplitude_HO
Definition: CMTRawAnalyzer.cc:286
CMTRawAnalyzer::h_sumADCAmplEtaPhiLs_bbb1
TH1F * h_sumADCAmplEtaPhiLs_bbb1
Definition: CMTRawAnalyzer.cc:298
CMTRawAnalyzer::h_amplitudechannel2_HE2
TH2F * h_amplitudechannel2_HE2
Definition: CMTRawAnalyzer.cc:1754
CMTRawAnalyzer::h_recSignalEnergy2_HE4
TH2F * h_recSignalEnergy2_HE4
Definition: CMTRawAnalyzer.cc:1690
CMTRawAnalyzer::h_mapDepth2Pedw1_HE
TH2F * h_mapDepth2Pedw1_HE
Definition: CMTRawAnalyzer.cc:1487
CMTRawAnalyzer::h2_amplvspedw_HB
TH2F * h2_amplvspedw_HB
Definition: CMTRawAnalyzer.cc:1380
CMTRawAnalyzer::h_mapDepth3pedestal_HF
TH2F * h_mapDepth3pedestal_HF
Definition: CMTRawAnalyzer.cc:1346
CMTRawAnalyzer::h_sumamplitudechannel_HE
TH1F * h_sumamplitudechannel_HE
Definition: CMTRawAnalyzer.cc:1595
HcalElectronicsId::readoutVMECrateId
constexpr int readoutVMECrateId() const
get the readout VME crate number
Definition: HcalElectronicsId.h:105
CMTRawAnalyzer::h_mapDepth3ADCAmpl_HB
TH2F * h_mapDepth3ADCAmpl_HB
Definition: CMTRawAnalyzer.cc:456
CMTRawAnalyzer::h_mapDepth2TSmaxA225_HB
TH2F * h_mapDepth2TSmaxA225_HB
Definition: CMTRawAnalyzer.cc:473
CMTRawAnalyzer::h_mapDepth7ADCAmpl_HE
TH2F * h_mapDepth7ADCAmpl_HE
Definition: CMTRawAnalyzer.cc:702
reco::ParticleMasses::k0
const double k0
Definition: ParticleMasses.h:7
CMTRawAnalyzer::h_nbadchannels_depth4_HO
TH1F * h_nbadchannels_depth4_HO
Definition: CMTRawAnalyzer.cc:636
CMTRawAnalyzer::CMTRawAnalyzer
CMTRawAnalyzer(const edm::ParameterSet &)
Definition: CMTRawAnalyzer.cc:3682
CMTRawAnalyzer::h_bcnvsamplitude_HE
TH1F * h_bcnvsamplitude_HE
Definition: CMTRawAnalyzer.cc:274
CMTRawAnalyzer::h_eventamplitude_HE
TH1F * h_eventamplitude_HE
Definition: CMTRawAnalyzer.cc:1599
CMTRawAnalyzer::h_amplitudechannel1_HB4
TH2F * h_amplitudechannel1_HB4
Definition: CMTRawAnalyzer.cc:1746
CMTRawAnalyzer::h_recSignalEnergy0_HE6
TH2F * h_recSignalEnergy0_HE6
Definition: CMTRawAnalyzer.cc:1694
CMTRawAnalyzer::h_mapDepth4TSmeanA_HB
TH2F * h_mapDepth4TSmeanA_HB
Definition: CMTRawAnalyzer.cc:466
CMTRawAnalyzer::h_maxxSUMAmpl_HO
TH1F * h_maxxSUMAmpl_HO
Definition: CMTRawAnalyzer.cc:1589
CMTRawAnalyzer::h_2D0sumADCAmplLSdepth5HEu
TH2F * h_2D0sumADCAmplLSdepth5HEu
Definition: CMTRawAnalyzer.cc:935
CMTRawAnalyzer::h_sum0ADCAmplperLS2
TH1F * h_sum0ADCAmplperLS2
Definition: CMTRawAnalyzer.cc:966
CMTRawAnalyzer::h_2DsumAmplitudeLS6
TH2F * h_2DsumAmplitudeLS6
Definition: CMTRawAnalyzer.cc:1195
CMTRawAnalyzer::h_averSIGNALoccupancy_HB
TH1F * h_averSIGNALoccupancy_HB
Definition: CMTRawAnalyzer.cc:1570
CMTRawAnalyzer::h_runbadrateC_depth2_HE
TH1F * h_runbadrateC_depth2_HE
Definition: CMTRawAnalyzer.cc:628
CMTRawAnalyzer::h_sumCutAmplperLS4
TH1F * h_sumCutAmplperLS4
Definition: CMTRawAnalyzer.cc:1234
CMTRawAnalyzer::h_2DsumTSmeanALS7
TH2F * h_2DsumTSmeanALS7
Definition: CMTRawAnalyzer.cc:1103
CMTRawAnalyzer::h_Ampl_HE
TH1F * h_Ampl_HE
Definition: CMTRawAnalyzer.cc:776
CMTRawAnalyzer::nnnnnnhbhe
int nnnnnnhbhe
Definition: CMTRawAnalyzer.cc:252
CMTRawAnalyzer::MAPOutputFileName
std::string MAPOutputFileName
Definition: CMTRawAnalyzer.cc:42
CMTRawAnalyzer::h_sumamplitude_depth2_HE1
TH1F * h_sumamplitude_depth2_HE1
Definition: CMTRawAnalyzer.cc:1453
CMTRawAnalyzer::h_error2_HE
TH1F * h_error2_HE
Definition: CMTRawAnalyzer.cc:367
CMTRawAnalyzer::h_sum0PedestalperLS6
TH1F * h_sum0PedestalperLS6
Definition: CMTRawAnalyzer.cc:921
CMTRawAnalyzer::h_mapDepth2ADCAmpl_HE
TH2F * h_mapDepth2ADCAmpl_HE
Definition: CMTRawAnalyzer.cc:697
CMTRawAnalyzer::h_2DsumTSmaxALS1
TH2F * h_2DsumTSmaxALS1
Definition: CMTRawAnalyzer.cc:1115
CMTRawAnalyzer::h_sum0PedestalperLS1
TH1F * h_sum0PedestalperLS1
Definition: CMTRawAnalyzer.cc:896
CMTRawAnalyzer::h_amplitudechannel2_HB1
TH2F * h_amplitudechannel2_HB1
Definition: CMTRawAnalyzer.cc:1738
CMTRawAnalyzer::calibrRatioHEMin_
double calibrRatioHEMin_
Definition: CMTRawAnalyzer.cc:217
CMTRawAnalyzer::h_mapDepth1Amplitude_HB
TH2F * h_mapDepth1Amplitude_HB
Definition: CMTRawAnalyzer.cc:479
CMTRawAnalyzer::h_mapDepth4Amplitude225_HF
TH2F * h_mapDepth4Amplitude225_HF
Definition: CMTRawAnalyzer.cc:565
CMTRawAnalyzer::h_error4_HB
TH1F * h_error4_HB
Definition: CMTRawAnalyzer.cc:351
CMTRawAnalyzer::h_2D0sumPedestalLS6
TH2F * h_2D0sumPedestalLS6
Definition: CMTRawAnalyzer.cc:920
HcalDetId::iphi
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
CMTRawAnalyzer::h_sumADCAmplLS2
TH1F * h_sumADCAmplLS2
Definition: CMTRawAnalyzer.cc:960
CMTRawAnalyzer::h_RatioOccupancy_HBP
TH1F * h_RatioOccupancy_HBP
Definition: CMTRawAnalyzer.cc:1249
CMTRawAnalyzer::Nevent
long int Nevent
Definition: CMTRawAnalyzer.cc:1861
CMTRawAnalyzer::h_error6_HF
TH1F * h_error6_HF
Definition: CMTRawAnalyzer.cc:392
CMTRawAnalyzer::h_mapDepth3ADCAmpl_HF
TH2F * h_mapDepth3ADCAmpl_HF
Definition: CMTRawAnalyzer.cc:535
CMTRawAnalyzer::h_pedwvsampl0_HB
TH1F * h_pedwvsampl0_HB
Definition: CMTRawAnalyzer.cc:1378
CMTRawAnalyzer::h_recSignalEnergy0_HF1
TH2F * h_recSignalEnergy0_HF1
Definition: CMTRawAnalyzer.cc:1722
CMTRawAnalyzer::h_amplFine_HE
TH1F * h_amplFine_HE
Definition: CMTRawAnalyzer.cc:374
CMTRawAnalyzer::h_recSignalEnergy1_HB3
TH2F * h_recSignalEnergy1_HB3
Definition: CMTRawAnalyzer.cc:1661
HcalRespCorr
Definition: HcalRespCorr.h:12
QIE10DataFrame::samples
constexpr int samples() const
total number of samples in the digi
Definition: QIE10DataFrame.h:86
CMTRawAnalyzer::h_ADCCalib1_HE
TH1F * h_ADCCalib1_HE
Definition: CMTRawAnalyzer.cc:835
CMTRawAnalyzer::h_2D0sumAmplLS4
TH2F * h_2D0sumAmplLS4
Definition: CMTRawAnalyzer.cc:1235
CMTRawAnalyzer::h_shape0_Alow_HB2
TH1F * h_shape0_Alow_HB2
Definition: CMTRawAnalyzer.cc:1413
CMTRawAnalyzer::h_2D0sumTSmeanALS6
TH2F * h_2D0sumTSmeanALS6
Definition: CMTRawAnalyzer.cc:1100
CMTRawAnalyzer::h_runnbadchannelsC_depth1_HF
TH1F * h_runnbadchannelsC_depth1_HF
Definition: CMTRawAnalyzer.cc:644
CMTRawAnalyzer::h_2D0sumAmplitudeLS5
TH2F * h_2D0sumAmplitudeLS5
Definition: CMTRawAnalyzer.cc:1192
CMTRawAnalyzer::h_mapDepth4Amplitude225_HO
TH2F * h_mapDepth4Amplitude225_HO
Definition: CMTRawAnalyzer.cc:599
CMTRawAnalyzer::maxxSUM1
double maxxSUM1
Definition: CMTRawAnalyzer.cc:1894
CMTRawAnalyzer::h_AmplitudeHBtest
TH1F * h_AmplitudeHBtest
Definition: CMTRawAnalyzer.cc:323
CMTRawAnalyzer::h_sumADCAmplLS4
TH1F * h_sumADCAmplLS4
Definition: CMTRawAnalyzer.cc:974
CMTRawAnalyzer::h_Amplitude_forCapIdErrors_HO4
TH1F * h_Amplitude_forCapIdErrors_HO4
Definition: CMTRawAnalyzer.cc:677
CMTRawAnalyzer::h_Amplitude_HF
TH1F * h_Amplitude_HF
Definition: CMTRawAnalyzer.cc:557
CMTRawAnalyzer::h_corrforxaADDI0_HE
TH1F * h_corrforxaADDI0_HE
Definition: CMTRawAnalyzer.cc:690
edm::Run
Definition: Run.h:45
CMTRawAnalyzer::h_mapDepth4Ampl_HE
TH2F * h_mapDepth4Ampl_HE
Definition: CMTRawAnalyzer.cc:787
CMTRawAnalyzer::h_sumamplitude_depth2_HB1
TH1F * h_sumamplitude_depth2_HB1
Definition: CMTRawAnalyzer.cc:1451
CMTRawAnalyzer::h_WidthCalib_HF
TH1F * h_WidthCalib_HF
Definition: CMTRawAnalyzer.cc:881
CMTRawAnalyzer::h_mapDepth3Ampl047_HE
TH2F * h_mapDepth3Ampl047_HE
Definition: CMTRawAnalyzer.cc:779
CMTRawAnalyzer::h_gain_HF
TH1F * h_gain_HF
Definition: CMTRawAnalyzer.cc:1364
CMTRawAnalyzer::h_amplError_HO
TH1F * h_amplError_HO
Definition: CMTRawAnalyzer.cc:412
CMTRawAnalyzer::h_2D0sumPedestalLS1
TH2F * h_2D0sumPedestalLS1
Definition: CMTRawAnalyzer.cc:895
CMTRawAnalyzer::h_mapDepth1Error_HE
TH2F * h_mapDepth1Error_HE
Definition: CMTRawAnalyzer.cc:375
CMTRawAnalyzer::h_sumCutAmplperLS3
TH1F * h_sumCutAmplperLS3
Definition: CMTRawAnalyzer.cc:1228
CMTRawAnalyzer::rmsHBMin_
double rmsHBMin_
Definition: CMTRawAnalyzer.cc:172
CMTRawAnalyzer::h_2DsumErrorBLS1
TH2F * h_2DsumErrorBLS1
Definition: CMTRawAnalyzer.cc:1531
CMTRawAnalyzer::h_pedestalwaver4_HF
TH1F * h_pedestalwaver4_HF
Definition: CMTRawAnalyzer.cc:1303
CMTRawAnalyzer::calibrTSmeanHOMax_
double calibrTSmeanHOMax_
Definition: CMTRawAnalyzer.cc:238
edm::EDGetTokenT
Definition: EDGetToken.h:33
CMTRawAnalyzer::h_mapDepth4TSmaxA225_HF
TH2F * h_mapDepth4TSmaxA225_HF
Definition: CMTRawAnalyzer.cc:556
CMTRawAnalyzer::h_mapDepth1Ped0_HB
TH2F * h_mapDepth1Ped0_HB
Definition: CMTRawAnalyzer.cc:1458
CMTRawAnalyzer::h_runnbadchannels_depth4_HO
TH1F * h_runnbadchannels_depth4_HO
Definition: CMTRawAnalyzer.cc:637
CMTRawAnalyzer::studyTSmeanShapeHist_
bool studyTSmeanShapeHist_
Definition: CMTRawAnalyzer.cc:61
CMTRawAnalyzer::h_sum0TSmeanAperLS3
TH1F * h_sum0TSmeanAperLS3
Definition: CMTRawAnalyzer.cc:1083
CMTRawAnalyzer::h_pedestalaver4_HF
TH1F * h_pedestalaver4_HF
Definition: CMTRawAnalyzer.cc:1297
CMTRawAnalyzer::h_mapDepth4ADCAmpl_HE
TH2F * h_mapDepth4ADCAmpl_HE
Definition: CMTRawAnalyzer.cc:699
CMTRawAnalyzer::h_mapDepth2Ped0_HF
TH2F * h_mapDepth2Ped0_HF
Definition: CMTRawAnalyzer.cc:1506
CMTRawAnalyzer::h_pedwvsampl0_HO
TH1F * h_pedwvsampl0_HO
Definition: CMTRawAnalyzer.cc:1401
CMTRawAnalyzer::h_sum0ADCAmplperLS8_P2
TH1F * h_sum0ADCAmplperLS8_P2
Definition: CMTRawAnalyzer.cc:1043
CMTRawAnalyzer::h_nevents_per_eachLS
TH1F * h_nevents_per_eachLS
Definition: CMTRawAnalyzer.cc:889
CMTRawAnalyzer::h_shape0_Alow_HB0
TH1F * h_shape0_Alow_HB0
Definition: CMTRawAnalyzer.cc:1405
CMTRawAnalyzer::h_sumErrorBLS7
TH1F * h_sumErrorBLS7
Definition: CMTRawAnalyzer.cc:1562
CMTRawAnalyzer::h_runnbadchannelsC_depth2_HB
TH1F * h_runnbadchannelsC_depth2_HB
Definition: CMTRawAnalyzer.cc:614
edm
HLT enums.
Definition: AlignableModifier.h:19
CMTRawAnalyzer::h_mapDepth2Amplitude225_HF
TH2F * h_mapDepth2Amplitude225_HF
Definition: CMTRawAnalyzer.cc:561
CMTRawAnalyzer::h_mapDepth2Ampl047_HF
TH2F * h_mapDepth2Ampl047_HF
Definition: CMTRawAnalyzer.cc:568
CMTRawAnalyzer::maxxSUM4
double maxxSUM4
Definition: CMTRawAnalyzer.cc:1897
CMTRawAnalyzer::h_amplitudechannel2_HB2
TH2F * h_amplitudechannel2_HB2
Definition: CMTRawAnalyzer.cc:1741
CMTRawAnalyzer::lscounterM1
int lscounterM1
Definition: CMTRawAnalyzer.cc:1871
CMTRawAnalyzer::h2_pedvsampl_HB
TH2F * h2_pedvsampl_HB
Definition: CMTRawAnalyzer.cc:1373
CMTRawAnalyzer::h_errorGeneral_HF
TH1F * h_errorGeneral_HF
Definition: CMTRawAnalyzer.cc:386
CMTRawAnalyzer::flagfitshunt1pedorledlowintensity_
int flagfitshunt1pedorledlowintensity_
Definition: CMTRawAnalyzer.cc:82
CMTRawAnalyzer::h_mapTSmaxCalib047_HE
TH2F * h_mapTSmaxCalib047_HE
Definition: CMTRawAnalyzer.cc:842
CMTRawAnalyzer::h_pedvsampl0_HF
TH1F * h_pedvsampl0_HF
Definition: CMTRawAnalyzer.cc:1394
CMTRawAnalyzer::tok_hbheNoise_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNoise_
Definition: CMTRawAnalyzer.cc:33
CMTRawAnalyzer::lsdep_estimator1_HEdepth2_
double lsdep_estimator1_HEdepth2_
Definition: CMTRawAnalyzer.cc:118
CMTRawAnalyzer::h_fiber2_HE
TH1F * h_fiber2_HE
Definition: CMTRawAnalyzer.cc:384
CMTRawAnalyzer::h_2D0sumAmplLS3
TH2F * h_2D0sumAmplLS3
Definition: CMTRawAnalyzer.cc:1229
CMTRawAnalyzer::calibrTSmeanHOMin_
double calibrTSmeanHOMin_
Definition: CMTRawAnalyzer.cc:234
CMTRawAnalyzer::h_TSmeanCalib_HE
TH1F * h_TSmeanCalib_HE
Definition: CMTRawAnalyzer.cc:844
HcalLUTCorr::getValue
float getValue() const
Definition: HcalLUTCorr.h:22
CMTRawAnalyzer::nevcounter
int nevcounter
Definition: CMTRawAnalyzer.cc:1873
CMTRawAnalyzer::h_sumTSmaxALS3
TH1F * h_sumTSmaxALS3
Definition: CMTRawAnalyzer.cc:1127
CMTRawAnalyzer::h_ADCAmpl345Zoom_HB
TH1F * h_ADCAmpl345Zoom_HB
Definition: CMTRawAnalyzer.cc:439
CMTRawAnalyzer::calibrRatioHOMax_
double calibrRatioHOMax_
Definition: CMTRawAnalyzer.cc:222
CMTRawAnalyzer::h_totalAmplitudeHE
TH1F * h_totalAmplitudeHE
Definition: CMTRawAnalyzer.cc:332
HBHERecHit
Definition: HBHERecHit.h:13
CMTRawAnalyzer::h_sumCutADCAmplperLS3
TH1F * h_sumCutADCAmplperLS3
Definition: CMTRawAnalyzer.cc:971
CMTRawAnalyzer::h_2DsumADCAmplEtaPhiLs0
TH2F * h_2DsumADCAmplEtaPhiLs0
Definition: CMTRawAnalyzer.cc:288
CMTRawAnalyzer::h_mapRatioCalib_HO
TH2F * h_mapRatioCalib_HO
Definition: CMTRawAnalyzer.cc:857
CMTRawAnalyzer::h_2DsumADCAmplLS4
TH2F * h_2DsumADCAmplLS4
Definition: CMTRawAnalyzer.cc:975
CMTRawAnalyzer::h_sumAmplitudeLS3
TH1F * h_sumAmplitudeLS3
Definition: CMTRawAnalyzer.cc:1176
CMTRawAnalyzer::h_sum0TSmeanAperLS2
TH1F * h_sum0TSmeanAperLS2
Definition: CMTRawAnalyzer.cc:1077
CMTRawAnalyzer::h_sum0ADCAmplperLS7
TH1F * h_sum0ADCAmplperLS7
Definition: CMTRawAnalyzer.cc:1054
CMTRawAnalyzer::h_mapGetRMSOverNormalizedSignal0_HE
TH2F * h_mapGetRMSOverNormalizedSignal0_HE
Definition: CMTRawAnalyzer.cc:1525
CMTRawAnalyzer::h_mapDepth2linADCAmpl12_HE
TH2F * h_mapDepth2linADCAmpl12_HE
Definition: CMTRawAnalyzer.cc:524
CMTRawAnalyzer::h_pedvsampl0_HB
TH1F * h_pedvsampl0_HB
Definition: CMTRawAnalyzer.cc:1377
CMTRawAnalyzer::h_recSignalEnergy2_HB2
TH2F * h_recSignalEnergy2_HB2
Definition: CMTRawAnalyzer.cc:1659
CMTRawAnalyzer::h_recSignalEnergy0_HB1
TH2F * h_recSignalEnergy0_HB1
Definition: CMTRawAnalyzer.cc:1654
CMTRawAnalyzer::h_mapDepth4AmplE34_HO
TH2F * h_mapDepth4AmplE34_HO
Definition: CMTRawAnalyzer.cc:603
gather_cfg.cout
cout
Definition: gather_cfg.py:144
CMTRawAnalyzer::h_sum0ADCAmplperLS7u
TH1F * h_sum0ADCAmplperLS7u
Definition: CMTRawAnalyzer.cc:1057
CMTRawAnalyzer::h_2DsumTSmeanALS4
TH2F * h_2DsumTSmeanALS4
Definition: CMTRawAnalyzer.cc:1085
CMTRawAnalyzer::h_sum0AmplitudeperLS7
TH1F * h_sum0AmplitudeperLS7
Definition: CMTRawAnalyzer.cc:1205
CMTRawAnalyzer::lsdep_estimator3_HFdepth1_
double lsdep_estimator3_HFdepth1_
Definition: CMTRawAnalyzer.cc:149
CMTRawAnalyzer::lsdep_cut1_peak_HFdepth2_
int lsdep_cut1_peak_HFdepth2_
Definition: CMTRawAnalyzer.cc:104
CMTRawAnalyzer::h_RatioCalib_HE
TH1F * h_RatioCalib_HE
Definition: CMTRawAnalyzer.cc:838
CMTRawAnalyzer::h_2D0Ataildepth2_HB
TH2F * h_2D0Ataildepth2_HB
Definition: CMTRawAnalyzer.cc:1609
CMTRawAnalyzer::h_sum0ErrorBperLS2
TH1F * h_sum0ErrorBperLS2
Definition: CMTRawAnalyzer.cc:1539
HcalTopology
Definition: HcalTopology.h:26
HcalTimeCorr
Definition: HcalTimeCorr.h:12
CMTRawAnalyzer::h_mapDepth4pedestal_HO
TH2F * h_mapDepth4pedestal_HO
Definition: CMTRawAnalyzer.cc:1348
CMTRawAnalyzer::h_mapDepth1ADCAmpl225_HE
TH2F * h_mapDepth1ADCAmpl225_HE
Definition: CMTRawAnalyzer.cc:724
CMTRawAnalyzer::h_mapDepth1TSmaxA_HB
TH2F * h_mapDepth1TSmaxA_HB
Definition: CMTRawAnalyzer.cc:470
CMTRawAnalyzer::h_recNoiseEnergy1_HE2
TH2F * h_recNoiseEnergy1_HE2
Definition: CMTRawAnalyzer.cc:1704
CMTRawAnalyzer::h_maprphinorm0_HE1
TH2F * h_maprphinorm0_HE1
Definition: CMTRawAnalyzer.cc:1638
CMTRawAnalyzer::h_sumTSmeanAperLS7
TH1F * h_sumTSmeanAperLS7
Definition: CMTRawAnalyzer.cc:1104
CMTRawAnalyzer::run0
int run0
Definition: CMTRawAnalyzer.cc:1863
CMTRawAnalyzer::h_maprphinorm2_HE3
TH2F * h_maprphinorm2_HE3
Definition: CMTRawAnalyzer.cc:1633
CMTRawAnalyzer::h_mapDepth1TSmeanA_HB
TH2F * h_mapDepth1TSmeanA_HB
Definition: CMTRawAnalyzer.cc:461
CMTRawAnalyzer::h_mapDepth1ADCAmpl225_HF
TH2F * h_mapDepth1ADCAmpl225_HF
Definition: CMTRawAnalyzer.cc:533
CMTRawAnalyzer::h_mapDepth4TSmeanA_HO
TH2F * h_mapDepth4TSmeanA_HO
Definition: CMTRawAnalyzer.cc:592
CMTRawAnalyzer::lsdep_estimator3_HBdepth1_
double lsdep_estimator3_HBdepth1_
Definition: CMTRawAnalyzer.cc:144
CMTRawAnalyzer::geometry
edm::ESHandle< CaloGeometry > geometry
Definition: CMTRawAnalyzer.cc:44
CMTRawAnalyzer::h_2D0sumTSmaxALS4
TH2F * h_2D0sumTSmaxALS4
Definition: CMTRawAnalyzer.cc:1137
CMTRawAnalyzer::h_sumAmplperLS2
TH1F * h_sumAmplperLS2
Definition: CMTRawAnalyzer.cc:1221
CMTRawAnalyzer::h_2DsumPedestalLS7
TH2F * h_2DsumPedestalLS7
Definition: CMTRawAnalyzer.cc:923
CMTRawAnalyzer::h_sum0AmplperLS1
TH1F * h_sum0AmplperLS1
Definition: CMTRawAnalyzer.cc:1218
CMTRawAnalyzer::h_respcorr_HE
TH1F * h_respcorr_HE
Definition: CMTRawAnalyzer.cc:1360
CMTRawAnalyzer::h_nbadchannels_depth2_HE
TH1F * h_nbadchannels_depth2_HE
Definition: CMTRawAnalyzer.cc:624
CMTRawAnalyzer::h_mapRatioCalib047_HB
TH2F * h_mapRatioCalib047_HB
Definition: CMTRawAnalyzer.cc:822
CMTRawAnalyzer::h_mapDepth1Ampl_HE
TH2F * h_mapDepth1Ampl_HE
Definition: CMTRawAnalyzer.cc:784
CMTRawAnalyzer::lsdep_estimator4_HFdepth2_
double lsdep_estimator4_HFdepth2_
Definition: CMTRawAnalyzer.cc:159
CMTRawAnalyzer::h_sum0ErrorBperLS1
TH1F * h_sum0ErrorBperLS1
Definition: CMTRawAnalyzer.cc:1534
CMTRawAnalyzer::forallestimators_amplitude_bigger_
double forallestimators_amplitude_bigger_
Definition: CMTRawAnalyzer.cc:170
CMTRawAnalyzer::lsdep_estimator4_HEdepth3_
double lsdep_estimator4_HEdepth3_
Definition: CMTRawAnalyzer.cc:157
CMTRawAnalyzer::h_mapDepth7Amplitude_HE
TH2F * h_mapDepth7Amplitude_HE
Definition: CMTRawAnalyzer.cc:768
CMTRawAnalyzer::h_2D0sumAmplLS6
TH2F * h_2D0sumAmplLS6
Definition: CMTRawAnalyzer.cc:1247
CMTRawAnalyzer::h_sumTSmaxALS2
TH1F * h_sumTSmaxALS2
Definition: CMTRawAnalyzer.cc:1121
CMTRawAnalyzer::h_corrforxaMAIN0_HE
TH1F * h_corrforxaMAIN0_HE
Definition: CMTRawAnalyzer.cc:688
CMTRawAnalyzer::h_mapDepth4pedestalw_HO
TH2F * h_mapDepth4pedestalw_HO
Definition: CMTRawAnalyzer.cc:1332
CMTRawAnalyzer::h_maxxSUMAmpl_HE
TH1F * h_maxxSUMAmpl_HE
Definition: CMTRawAnalyzer.cc:1587
CMTRawAnalyzer::h_lsnumber_per_eachLS
TH1F * h_lsnumber_per_eachLS
Definition: CMTRawAnalyzer.cc:891
CMTRawAnalyzer::h_mapDepth7pedestal_HE
TH2F * h_mapDepth7pedestal_HE
Definition: CMTRawAnalyzer.cc:1343
CMTRawAnalyzer::h_mapTSmaxCalib047_HO
TH2F * h_mapTSmaxCalib047_HO
Definition: CMTRawAnalyzer.cc:859
CMTRawAnalyzer::ADCAmplHFMax_
double ADCAmplHFMax_
Definition: CMTRawAnalyzer.cc:207
CMTRawAnalyzer::h_runbadrate_depth4_HO
TH1F * h_runbadrate_depth4_HO
Definition: CMTRawAnalyzer.cc:639
CMTRawAnalyzer::lsdep_estimator4_HFdepth1_
double lsdep_estimator4_HFdepth1_
Definition: CMTRawAnalyzer.cc:158
CMTRawAnalyzer::h_2DsumADCAmplEtaPhiLs30
TH2F * h_2DsumADCAmplEtaPhiLs30
Definition: CMTRawAnalyzer.cc:295
CMTRawAnalyzer::h_sumamplitude_depth2_HF1
TH1F * h_sumamplitude_depth2_HF1
Definition: CMTRawAnalyzer.cc:1456
CMTRawAnalyzer::conditions
edm::ESHandle< HcalDbService > conditions
Definition: CMTRawAnalyzer.cc:45
CMTRawAnalyzer::h_mapenophinorm_HE3
TH2F * h_mapenophinorm_HE3
Definition: CMTRawAnalyzer.cc:1612
CMTRawAnalyzer::h_eventamplitude_HO
TH1F * h_eventamplitude_HO
Definition: CMTRawAnalyzer.cc:1601
CMTRawAnalyzer::lsdep_estimator1_HBdepth2_
double lsdep_estimator1_HBdepth2_
Definition: CMTRawAnalyzer.cc:116
hcaldqm::utilities::getRBX
int getRBX(uint32_t iphi)
Definition: Utilities.cc:233
CMTRawAnalyzer::h_errorGeneral
TH1F * h_errorGeneral
Definition: CMTRawAnalyzer.cc:341
CMTRawAnalyzer::TSpeakHFMin_
double TSpeakHFMin_
Definition: CMTRawAnalyzer.cc:185
CMTRawAnalyzer::h_2D0sumPedestalLS4
TH2F * h_2D0sumPedestalLS4
Definition: CMTRawAnalyzer.cc:910
CMTRawAnalyzer::TSpeakHOMin_
double TSpeakHOMin_
Definition: CMTRawAnalyzer.cc:187
CMTRawAnalyzer::h_recNoiseEnergy0_HB2
TH2F * h_recNoiseEnergy0_HB2
Definition: CMTRawAnalyzer.cc:1669
CMTRawAnalyzer::h_sumamplitude_depth1_HF0
TH1F * h_sumamplitude_depth1_HF0
Definition: CMTRawAnalyzer.cc:1447
CMTRawAnalyzer::h_amplitudechannel0_HE4
TH2F * h_amplitudechannel0_HE4
Definition: CMTRawAnalyzer.cc:1758
CMTRawAnalyzer::h_sumADCAmplLS1copy5
TH1F * h_sumADCAmplLS1copy5
Definition: CMTRawAnalyzer.cc:952
CMTRawAnalyzer::h_mapDepth2ADCAmpl12_HB
TH2F * h_mapDepth2ADCAmpl12_HB
Definition: CMTRawAnalyzer.cc:505
CMTRawAnalyzer::h_mapGetRMSOverNormalizedSignal_HB
TH2F * h_mapGetRMSOverNormalizedSignal_HB
Definition: CMTRawAnalyzer.cc:1522
CMTRawAnalyzer::h_runnbadchannels_depth1_HB
TH1F * h_runnbadchannels_depth1_HB
Definition: CMTRawAnalyzer.cc:607
CMTRawAnalyzer::h_mapDepth4TSmeanA_HF
TH2F * h_mapDepth4TSmeanA_HF
Definition: CMTRawAnalyzer.cc:545
CMTRawAnalyzer::lsdep_estimator2_HEdepth1_
double lsdep_estimator2_HEdepth1_
Definition: CMTRawAnalyzer.cc:137
CMTRawAnalyzer::fOutputFileName
std::string fOutputFileName
Definition: CMTRawAnalyzer.cc:41
CMTRawAnalyzer::h_sumCutAmplperLS5
TH1F * h_sumCutAmplperLS5
Definition: CMTRawAnalyzer.cc:1240
CMTRawAnalyzer::h_runbadrateC_depth3_HE
TH1F * h_runbadrateC_depth3_HE
Definition: CMTRawAnalyzer.cc:634
CMTRawAnalyzer::averNOSIGNALoccupancy_HE
double averNOSIGNALoccupancy_HE
Definition: CMTRawAnalyzer.cc:1887
CMTRawAnalyzer::lsdep_cut3_max_HFdepth2_
int lsdep_cut3_max_HFdepth2_
Definition: CMTRawAnalyzer.cc:113
CMTRawAnalyzer::h_mapDepth2ADCAmpl225Copy_HF
TH2F * h_mapDepth2ADCAmpl225Copy_HF
Definition: CMTRawAnalyzer.cc:432
CMTRawAnalyzer::h_nbadchannels_depth1_HB
TH1F * h_nbadchannels_depth1_HB
Definition: CMTRawAnalyzer.cc:606
CMTRawAnalyzer::h_runnbadchannelsC_depth2_HF
TH1F * h_runnbadchannelsC_depth2_HF
Definition: CMTRawAnalyzer.cc:650
CMTRawAnalyzer::h_ADCAmpl_HO_copy
TH1F * h_ADCAmpl_HO_copy
Definition: CMTRawAnalyzer.cc:588
CMTRawAnalyzer::h_averNOSIGNALsumamplitude_HF
TH1F * h_averNOSIGNALsumamplitude_HF
Definition: CMTRawAnalyzer.cc:1584
CMTRawAnalyzer::h_sumTSmaxALS6
TH1F * h_sumTSmaxALS6
Definition: CMTRawAnalyzer.cc:1145
CMTRawAnalyzer::h_difpedestal3_HB
TH1F * h_difpedestal3_HB
Definition: CMTRawAnalyzer.cc:1357
CMTRawAnalyzer::h_error7_HE
TH1F * h_error7_HE
Definition: CMTRawAnalyzer.cc:372
CMTRawAnalyzer::h_respcorr_HB
TH1F * h_respcorr_HB
Definition: CMTRawAnalyzer.cc:1351
CMTRawAnalyzer::h_2DsumPedestalLS8
TH2F * h_2DsumPedestalLS8
Definition: CMTRawAnalyzer.cc:928
CMTRawAnalyzer::h_sumADCAmplperLS8_P2
TH1F * h_sumADCAmplperLS8_P2
Definition: CMTRawAnalyzer.cc:1042
CMTRawAnalyzer::h_sum0ADCAmplperLS1_P2
TH1F * h_sum0ADCAmplperLS1_P2
Definition: CMTRawAnalyzer.cc:1019
CMTRawAnalyzer::h_2DAtaildepth2_HB
TH2F * h_2DAtaildepth2_HB
Definition: CMTRawAnalyzer.cc:1608
CMTRawAnalyzer::h_2DsumAmplLS5
TH2F * h_2DsumAmplLS5
Definition: CMTRawAnalyzer.cc:1238
CMTRawAnalyzer::h_2DsumADCAmplLS3_LSselected
TH2F * h_2DsumADCAmplLS3_LSselected
Definition: CMTRawAnalyzer.cc:969
CMTRawAnalyzer::h_sum0TSmeanAperLS8
TH1F * h_sum0TSmeanAperLS8
Definition: CMTRawAnalyzer.cc:1113
CMTRawAnalyzer::lsdep_estimator2_HFdepth1_
double lsdep_estimator2_HFdepth1_
Definition: CMTRawAnalyzer.cc:140
CMTRawAnalyzer::h_sumAmplLS8
TH1F * h_sumAmplLS8
Definition: CMTRawAnalyzer.cc:1263
CMTRawAnalyzer::h_pedestal00_HE
TH1F * h_pedestal00_HE
Definition: CMTRawAnalyzer.cc:1358
CMTRawAnalyzer::hOutputFile
TFile * hOutputFile
Definition: CMTRawAnalyzer.cc:1903
CMTRawAnalyzer::h_mapDepth2Ped1_HE
TH2F * h_mapDepth2Ped1_HE
Definition: CMTRawAnalyzer.cc:1483
CMTRawAnalyzer::h_mapenophinorm_HE7
TH2F * h_mapenophinorm_HE7
Definition: CMTRawAnalyzer.cc:1616
CMTRawAnalyzer::h_map0AiForLS_bad_HB
TH2F * h_map0AiForLS_bad_HB
Definition: CMTRawAnalyzer.cc:304
CMTRawAnalyzer::h_2D0sumPedestalLS2
TH2F * h_2D0sumPedestalLS2
Definition: CMTRawAnalyzer.cc:900
CMTRawAnalyzer::h_mapDepth2Ampl_HE
TH2F * h_mapDepth2Ampl_HE
Definition: CMTRawAnalyzer.cc:785
CMTRawAnalyzer::h_sumamplitude_depth2_HF
TH1F * h_sumamplitude_depth2_HF
Definition: CMTRawAnalyzer.cc:1440
CMTRawAnalyzer::h_sumAmplperLS4
TH1F * h_sumAmplperLS4
Definition: CMTRawAnalyzer.cc:1233
CMTRawAnalyzer::h_mapDepth3Amplitude225_HB
TH2F * h_mapDepth3Amplitude225_HB
Definition: CMTRawAnalyzer.cc:485
CMTRawAnalyzer::h_sumErrorBLS6
TH1F * h_sumErrorBLS6
Definition: CMTRawAnalyzer.cc:1557
CMTRawAnalyzer::h_sumamplitude_depth1_HB
TH1F * h_sumamplitude_depth1_HB
Definition: CMTRawAnalyzer.cc:1434
CMTRawAnalyzer::h_mapADCCalib047_HF
TH2F * h_mapADCCalib047_HF
Definition: CMTRawAnalyzer.cc:870
CMTRawAnalyzer::h_sumCutTSmaxAperLS6
TH1F * h_sumCutTSmaxAperLS6
Definition: CMTRawAnalyzer.cc:1148
CMTRawAnalyzer::h_sumCutAmplperLS1
TH1F * h_sumCutAmplperLS1
Definition: CMTRawAnalyzer.cc:1216
CMTRawAnalyzer::nnnnnn2
int nnnnnn2
Definition: CMTRawAnalyzer.cc:258
HcalDetId::depth
constexpr int depth() const
get the tower depth
Definition: HcalDetId.h:164
CMTRawAnalyzer::h_pedestalaver4_HB
TH1F * h_pedestalaver4_HB
Definition: CMTRawAnalyzer.cc:1273
npfit
const int npfit
Definition: CMTRawAnalyzer.h:429
CMTRawAnalyzer::h_mapDepth1Ped0_HE
TH2F * h_mapDepth1Ped0_HE
Definition: CMTRawAnalyzer.cc:1474
CMTRawAnalyzer::h_mapDepth4pedestalw_HB
TH2F * h_mapDepth4pedestalw_HB
Definition: CMTRawAnalyzer.cc:1320
CMTRawAnalyzer::h_timecorr_HO
TH1F * h_timecorr_HO
Definition: CMTRawAnalyzer.cc:1371
CMTRawAnalyzer::h_recNoiseEnergy2_HB2
TH2F * h_recNoiseEnergy2_HB2
Definition: CMTRawAnalyzer.cc:1671
HcalElectronicsId::htrSlot
constexpr int htrSlot() const
get the htr slot
Definition: HcalElectronicsId.h:97
CMTRawAnalyzer::h_Amplitude_forCapIdErrors_HE2
TH1F * h_Amplitude_forCapIdErrors_HE2
Definition: CMTRawAnalyzer.cc:673
CMTRawAnalyzer::tok_ho_
edm::EDGetTokenT< HODigiCollection > tok_ho_
Definition: CMTRawAnalyzer.cc:27
CMTRawAnalyzer::tok_hfNoise_
edm::EDGetTokenT< HFRecHitCollection > tok_hfNoise_
Definition: CMTRawAnalyzer.cc:35
HcalCoderDb::adc2fC
void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const override
Definition: HcalCoderDb.cc:73
CMTRawAnalyzer::h_amplFine_HO
TH1F * h_amplFine_HO
Definition: CMTRawAnalyzer.cc:413
CMTRawAnalyzer::h_recNoiseEnergy2_HF1
TH2F * h_recNoiseEnergy2_HF1
Definition: CMTRawAnalyzer.cc:1730
CMTRawAnalyzer::h_bcnbadrate0_depth1_HB
TH1F * h_bcnbadrate0_depth1_HB
Definition: CMTRawAnalyzer.cc:662
CMTRawAnalyzer::h_mapDepth6TSmeanA_HE
TH2F * h_mapDepth6TSmeanA_HE
Definition: CMTRawAnalyzer.cc:737
CMTRawAnalyzer::h_mapDepth3Amplitude225_HE
TH2F * h_mapDepth3Amplitude225_HE
Definition: CMTRawAnalyzer.cc:771
CMTRawAnalyzer::h_mapGetRMSOverNormalizedSignal_HO
TH2F * h_mapGetRMSOverNormalizedSignal_HO
Definition: CMTRawAnalyzer.cc:1528
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
CMTRawAnalyzer::h_sumCutADCAmplperLS4
TH1F * h_sumCutADCAmplperLS4
Definition: CMTRawAnalyzer.cc:978
CMTRawAnalyzer::h_mapDepth2Pedw0_HE
TH2F * h_mapDepth2Pedw0_HE
Definition: CMTRawAnalyzer.cc:1486
CMTRawAnalyzer::h_2DsumPedestalLS4
TH2F * h_2DsumPedestalLS4
Definition: CMTRawAnalyzer.cc:908
CMTRawAnalyzer::h_ADCAmpl345_HB
TH1F * h_ADCAmpl345_HB
Definition: CMTRawAnalyzer.cc:441
CMTRawAnalyzer::h_sumAmplperLS1_LSselected
TH1F * h_sumAmplperLS1_LSselected
Definition: CMTRawAnalyzer.cc:1215
CMTRawAnalyzer::h_mapDepth4ADCAmpl225Copy_HF
TH2F * h_mapDepth4ADCAmpl225Copy_HF
Definition: CMTRawAnalyzer.cc:434
CMTRawAnalyzer::h_amplitudechannel2_HB3
TH2F * h_amplitudechannel2_HB3
Definition: CMTRawAnalyzer.cc:1744
CMTRawAnalyzer::h_ADCAmpl345_HBCapIdNoError
TH1F * h_ADCAmpl345_HBCapIdNoError
Definition: CMTRawAnalyzer.cc:443
CMTRawAnalyzer::h_mapDepth2_HF
TH2F * h_mapDepth2_HF
Definition: CMTRawAnalyzer.cc:574
CMTRawAnalyzer::h_mapDepth2ADCAmplSiPM_HE
TH2F * h_mapDepth2ADCAmplSiPM_HE
Definition: CMTRawAnalyzer.cc:722
CMTRawAnalyzer::h_sum0TSmaxAperLS3
TH1F * h_sum0TSmaxAperLS3
Definition: CMTRawAnalyzer.cc:1132
CMTRawAnalyzer::h_shape_good_channels_HE
TH1F * h_shape_good_channels_HE
Definition: CMTRawAnalyzer.cc:1424
CMTRawAnalyzer::h_sumADCAmplperLS3_M2
TH1F * h_sumADCAmplperLS3_M2
Definition: CMTRawAnalyzer.cc:1030
CMTRawAnalyzer::h_mapDepth4pedestalw_HF
TH2F * h_mapDepth4pedestalw_HF
Definition: CMTRawAnalyzer.cc:1331
CMTRawAnalyzer::h_mapDepth1Error_HF
TH2F * h_mapDepth1Error_HF
Definition: CMTRawAnalyzer.cc:396
CMTRawAnalyzer::h_mapDepth3TSmaxA_HF
TH2F * h_mapDepth3TSmaxA_HF
Definition: CMTRawAnalyzer.cc:553
CMTRawAnalyzer::h_sumADCAmplperLS1_M1
TH1F * h_sumADCAmplperLS1_M1
Definition: CMTRawAnalyzer.cc:1020
CMTRawAnalyzer::h_mapDepth6Ampl047_HE
TH2F * h_mapDepth6Ampl047_HE
Definition: CMTRawAnalyzer.cc:782
CMTRawAnalyzer::h_sum0PedestalperLS7
TH1F * h_sum0PedestalperLS7
Definition: CMTRawAnalyzer.cc:926
CMTRawAnalyzer::h_TSmeanCalib_HF
TH1F * h_TSmeanCalib_HF
Definition: CMTRawAnalyzer.cc:878
CMTRawAnalyzer::h_2D0sumTSmaxALS3
TH2F * h_2D0sumTSmaxALS3
Definition: CMTRawAnalyzer.cc:1131
CMTRawAnalyzer::h_2DsumADCAmplEtaPhiLs3
TH2F * h_2DsumADCAmplEtaPhiLs3
Definition: CMTRawAnalyzer.cc:291
CMTRawAnalyzer::h_mapDepth4Ampl047_HB
TH2F * h_mapDepth4Ampl047_HB
Definition: CMTRawAnalyzer.cc:497
CMTRawAnalyzer::h_AmplitudeHBrest
TH1F * h_AmplitudeHBrest
Definition: CMTRawAnalyzer.cc:449
CMTRawAnalyzer::h_nbadchannels_depth1_HE
TH1F * h_nbadchannels_depth1_HE
Definition: CMTRawAnalyzer.cc:618
CMTRawAnalyzer::h_Amplitude_HO
TH1F * h_Amplitude_HO
Definition: CMTRawAnalyzer.cc:597
CMTRawAnalyzer::h_amplitudechannel1_HE4
TH2F * h_amplitudechannel1_HE4
Definition: CMTRawAnalyzer.cc:1759
CMTRawAnalyzer::h_mapAiForLS_bad_HO
TH2F * h_mapAiForLS_bad_HO
Definition: CMTRawAnalyzer.cc:311
CMTRawAnalyzer::h_recNoiseEnergy0_HE7
TH2F * h_recNoiseEnergy0_HE7
Definition: CMTRawAnalyzer.cc:1718
CMTRawAnalyzer::h_sumErrorBperLS6
TH1F * h_sumErrorBperLS6
Definition: CMTRawAnalyzer.cc:1558
CMTRawAnalyzer::h_sumamplitude_depth1_HE
TH1F * h_sumamplitude_depth1_HE
Definition: CMTRawAnalyzer.cc:1436
CMTRawAnalyzer::h_shape_bad_channels_HO
TH1F * h_shape_bad_channels_HO
Definition: CMTRawAnalyzer.cc:1430
CMTRawAnalyzer::h_sumADCAmplperLSdepth4HBu
TH1F * h_sumADCAmplperLSdepth4HBu
Definition: CMTRawAnalyzer.cc:1008
CMTRawAnalyzer::h_sum0ADCAmplperLSdepth5HEu
TH1F * h_sum0ADCAmplperLSdepth5HEu
Definition: CMTRawAnalyzer.cc:1004
HcalBarrel
Definition: HcalAssistant.h:33
CMTRawAnalyzer::lsdep_estimator3_HEdepth3_
double lsdep_estimator3_HEdepth3_
Definition: CMTRawAnalyzer.cc:148
CMTRawAnalyzer::lsdep_estimator4_HBdepth1_
double lsdep_estimator4_HBdepth1_
Definition: CMTRawAnalyzer.cc:153
CMTRawAnalyzer::h_mapADCAmpl11secondpeak_HE
TH2F * h_mapADCAmpl11secondpeak_HE
Definition: CMTRawAnalyzer.cc:709
CMTRawAnalyzer::h_mapDepth2Pedw2_HE
TH2F * h_mapDepth2Pedw2_HE
Definition: CMTRawAnalyzer.cc:1488
CMTRawAnalyzer::h_mapWidthCalib047_HB
TH2F * h_mapWidthCalib047_HB
Definition: CMTRawAnalyzer.cc:831
CMTRawAnalyzer::h_recSignalEnergy2_HE7
TH2F * h_recSignalEnergy2_HE7
Definition: CMTRawAnalyzer.cc:1699
CMTRawAnalyzer::h_mapDepth6ADCAmpl12_HE
TH2F * h_mapDepth6ADCAmpl12_HE
Definition: CMTRawAnalyzer.cc:513
CMTRawAnalyzer::h_recSignalEnergy2_HE6
TH2F * h_recSignalEnergy2_HE6
Definition: CMTRawAnalyzer.cc:1696
CMTRawAnalyzer::h_runbadrate0_depth1_HB
TH1F * h_runbadrate0_depth1_HB
Definition: CMTRawAnalyzer.cc:611
CMTRawAnalyzer::h_maprphinorm_HE2
TH2F * h_maprphinorm_HE2
Definition: CMTRawAnalyzer.cc:1625
CMTRawAnalyzer::h_AamplitudewithPedSubtr_RADDAM_HEzoom1
TH1F * h_AamplitudewithPedSubtr_RADDAM_HEzoom1
Definition: CMTRawAnalyzer.cc:1797
CMTRawAnalyzer::h_mapAiForLS_good_HO
TH2F * h_mapAiForLS_good_HO
Definition: CMTRawAnalyzer.cc:313
CMTRawAnalyzer::h_sumAmplLS3
TH1F * h_sumAmplLS3
Definition: CMTRawAnalyzer.cc:1225
CMTRawAnalyzer::h_fiber1_HF
TH1F * h_fiber1_HF
Definition: CMTRawAnalyzer.cc:401
CMTRawAnalyzer::h_mapDepth1pedestalw_HE
TH2F * h_mapDepth1pedestalw_HE
Definition: CMTRawAnalyzer.cc:1321
CMTRawAnalyzer::h_ADCCalib1_HO
TH1F * h_ADCCalib1_HO
Definition: CMTRawAnalyzer.cc:852
CMTRawAnalyzer::h_Amplitude_notCapIdErrors_HE3
TH1F * h_Amplitude_notCapIdErrors_HE3
Definition: CMTRawAnalyzer.cc:682
CMTRawAnalyzer::h_mapDepth3ADCAmpl12_HF
TH2F * h_mapDepth3ADCAmpl12_HF
Definition: CMTRawAnalyzer.cc:520
CMTRawAnalyzer::h_orbitNumvsamplitude0_HE
TH1F * h_orbitNumvsamplitude0_HE
Definition: CMTRawAnalyzer.cc:283
CMTRawAnalyzer::h_sumADCAmplLS1
TH1F * h_sumADCAmplLS1
Definition: CMTRawAnalyzer.cc:953
CMTRawAnalyzer::h_mapDepth7_HE
TH2F * h_mapDepth7_HE
Definition: CMTRawAnalyzer.cc:804
CMTRawAnalyzer::h_pedvsampl0_HE
TH1F * h_pedvsampl0_HE
Definition: CMTRawAnalyzer.cc:1388
CMTRawAnalyzer::lsdep_estimator1_HBdepth1_
double lsdep_estimator1_HBdepth1_
Definition: CMTRawAnalyzer.cc:115
CMTRawAnalyzer::h_averNOSIGNALsumamplitude_HE
TH1F * h_averNOSIGNALsumamplitude_HE
Definition: CMTRawAnalyzer.cc:1583
CMTRawAnalyzer::h_recSignalEnergy0_HB2
TH2F * h_recSignalEnergy0_HB2
Definition: CMTRawAnalyzer.cc:1657
CMTRawAnalyzer::h_NphiForEta16Depth3RADDAM_HED2P
TH1F * h_NphiForEta16Depth3RADDAM_HED2P
Definition: CMTRawAnalyzer.cc:1806
CMTRawAnalyzer::h_pedestal3_HO
TH1F * h_pedestal3_HO
Definition: CMTRawAnalyzer.cc:1308
edm::Handle
Definition: AssociativeIterator.h:50
CMTRawAnalyzer::h_totalAmplitudeHF
TH1F * h_totalAmplitudeHF
Definition: CMTRawAnalyzer.cc:333
CMTRawAnalyzer::h_amplitudechannel1_HE3
TH2F * h_amplitudechannel1_HE3
Definition: CMTRawAnalyzer.cc:1756
relativeConstraints.error
error
Definition: relativeConstraints.py:53
CMTRawAnalyzer::h_shape0_good_channels_HE
TH1F * h_shape0_good_channels_HE
Definition: CMTRawAnalyzer.cc:1425
CMTRawAnalyzer::h_sumTSmeanAperLS3
TH1F * h_sumTSmeanAperLS3
Definition: CMTRawAnalyzer.cc:1080
CMTRawAnalyzer::calibrWidthHFMax_
double calibrWidthHFMax_
Definition: CMTRawAnalyzer.cc:247
CMTRawAnalyzer::h_Amplitude_HE
TH1F * h_Amplitude_HE
Definition: CMTRawAnalyzer.cc:761
CMTRawAnalyzer::h_shape_Alow_HB2
TH1F * h_shape_Alow_HB2
Definition: CMTRawAnalyzer.cc:1412
CMTRawAnalyzer::h_sumAmplitudeLS7
TH1F * h_sumAmplitudeLS7
Definition: CMTRawAnalyzer.cc:1200
CMTRawAnalyzer::h_maxxSUMAmpl_HB
TH1F * h_maxxSUMAmpl_HB
Definition: CMTRawAnalyzer.cc:1586
CMTRawAnalyzer::h_averNOSIGNALoccupancy_HF
TH1F * h_averNOSIGNALoccupancy_HF
Definition: CMTRawAnalyzer.cc:1580
CMTRawAnalyzer::calibrWidthHOMin_
double calibrWidthHOMin_
Definition: CMTRawAnalyzer.cc:242
CMTRawAnalyzer::lscounterrun
int lscounterrun
Definition: CMTRawAnalyzer.cc:1874
CMTRawAnalyzer::h_recSignalEnergy1_HF2
TH2F * h_recSignalEnergy1_HF2
Definition: CMTRawAnalyzer.cc:1726
CMTRawAnalyzer::h_sumCutAmplitudeperLS5
TH1F * h_sumCutAmplitudeperLS5
Definition: CMTRawAnalyzer.cc:1191
CMTRawAnalyzer::h_corrforxaADDI_HE
TH1F * h_corrforxaADDI_HE
Definition: CMTRawAnalyzer.cc:689
CMTRawAnalyzer::h_sumADCAmplperLSdepth7HEu
TH1F * h_sumADCAmplperLSdepth7HEu
Definition: CMTRawAnalyzer.cc:998
CMTRawAnalyzer::h_recNoiseEnergy0_HE3
TH2F * h_recNoiseEnergy0_HE3
Definition: CMTRawAnalyzer.cc:1706
adc2fC
static const float adc2fC[128]
Definition: CMTRawAnalyzer.h:410
CMTRawAnalyzer::h_2DsumTSmeanALS2
TH2F * h_2DsumTSmeanALS2
Definition: CMTRawAnalyzer.cc:1073
CMTRawAnalyzer::h_amplitudechannel2_HF2
TH2F * h_amplitudechannel2_HF2
Definition: CMTRawAnalyzer.cc:1776
CMTRawAnalyzer::h_sumamplitudechannel_HB
TH1F * h_sumamplitudechannel_HB
Definition: CMTRawAnalyzer.cc:1594
CMTRawAnalyzer::h_runnbadchannelsC_depth4_HO
TH1F * h_runnbadchannelsC_depth4_HO
Definition: CMTRawAnalyzer.cc:638
CMTRawAnalyzer::h_2D0sumTSmaxALS2
TH2F * h_2D0sumTSmaxALS2
Definition: CMTRawAnalyzer.cc:1125
CMTRawAnalyzer::verbosity
int verbosity
Definition: CMTRawAnalyzer.cc:50
CMTRawAnalyzer::h_mapDepth1Ped1_HF
TH2F * h_mapDepth1Ped1_HF
Definition: CMTRawAnalyzer.cc:1499
CMTRawAnalyzer::h_mapDepth2Ampl_HF
TH2F * h_mapDepth2Ampl_HF
Definition: CMTRawAnalyzer.cc:570
CMTRawAnalyzer::lsdep_cut3_max_HBdepth1_
int lsdep_cut3_max_HBdepth1_
Definition: CMTRawAnalyzer.cc:107
CMTRawAnalyzer::h_orbitNumvsamplitude0_HB
TH1F * h_orbitNumvsamplitude0_HB
Definition: CMTRawAnalyzer.cc:281
CMTRawAnalyzer::h_bcnnbadchannels_depth2_HF
TH1F * h_bcnnbadchannels_depth2_HF
Definition: CMTRawAnalyzer.cc:661
CMTRawAnalyzer::h_amplitudechannel2_HE1
TH2F * h_amplitudechannel2_HE1
Definition: CMTRawAnalyzer.cc:1751
CMTRawAnalyzer::h_AmplitudeHBtest6
TH1F * h_AmplitudeHBtest6
Definition: CMTRawAnalyzer.cc:325
CMTRawAnalyzer::ADCAmplHBMax_
double ADCAmplHBMax_
Definition: CMTRawAnalyzer.cc:204
CMTRawAnalyzer::h_2DsumAmplLS3
TH2F * h_2DsumAmplLS3
Definition: CMTRawAnalyzer.cc:1226
CMTRawAnalyzer::h_sum0ErrorBperLS5
TH1F * h_sum0ErrorBperLS5
Definition: CMTRawAnalyzer.cc:1554
CMTRawAnalyzer::h_mapDepth3Pedw0_HE
TH2F * h_mapDepth3Pedw0_HE
Definition: CMTRawAnalyzer.cc:1494
CMTRawAnalyzer::averNOSIGNALsumamplitude_HF
double averNOSIGNALsumamplitude_HF
Definition: CMTRawAnalyzer.cc:1892
CMTRawAnalyzer::averNOSIGNALoccupancy_HB
double averNOSIGNALoccupancy_HB
Definition: CMTRawAnalyzer.cc:1886
CMTRawAnalyzer::h_WidthCalib_HE
TH1F * h_WidthCalib_HE
Definition: CMTRawAnalyzer.cc:847
CMTRawAnalyzer::h_mapDepth3Ped3_HE
TH2F * h_mapDepth3Ped3_HE
Definition: CMTRawAnalyzer.cc:1493
CMTRawAnalyzer::h_mapDepth1Ped2_HB
TH2F * h_mapDepth1Ped2_HB
Definition: CMTRawAnalyzer.cc:1460
CMTRawAnalyzer::lsdep_estimator3_HBdepth2_
double lsdep_estimator3_HBdepth2_
Definition: CMTRawAnalyzer.cc:145
CMTRawAnalyzer::h_NphiForEta16Depth3RADDAM_HED2ALL
TH1F * h_NphiForEta16Depth3RADDAM_HED2ALL
Definition: CMTRawAnalyzer.cc:1809
CMTRawAnalyzer::h_sumamplitude_depth2_HB0
TH1F * h_sumamplitude_depth2_HB0
Definition: CMTRawAnalyzer.cc:1443
CMTRawAnalyzer::h_amplitudechannel0_HE1
TH2F * h_amplitudechannel0_HE1
Definition: CMTRawAnalyzer.cc:1749
CMTRawAnalyzer::MAPcreation
int MAPcreation
Definition: CMTRawAnalyzer.cc:51
CMTRawAnalyzer::h_averSIGNALsumamplitude_HB
TH1F * h_averSIGNALsumamplitude_HB
Definition: CMTRawAnalyzer.cc:1574
CMTRawAnalyzer::h_sumCutAmplitudeperLS8
TH1F * h_sumCutAmplitudeperLS8
Definition: CMTRawAnalyzer.cc:1209
CMTRawAnalyzer::h_2DsumAmplLS7
TH2F * h_2DsumAmplLS7
Definition: CMTRawAnalyzer.cc:1258
CMTRawAnalyzer::h_runnbadchannels_depth1_HF
TH1F * h_runnbadchannels_depth1_HF
Definition: CMTRawAnalyzer.cc:643
CMTRawAnalyzer::h_amplFine
TH1F * h_amplFine
Definition: CMTRawAnalyzer.cc:346
CMTRawAnalyzer::h_sigLayer2RADDAM6_HED2
TH1F * h_sigLayer2RADDAM6_HED2
Definition: CMTRawAnalyzer.cc:1817
CMTRawAnalyzer::h_mapDepth7TSmeanA225_HE
TH2F * h_mapDepth7TSmeanA225_HE
Definition: CMTRawAnalyzer.cc:745
CMTRawAnalyzer::nnnnnn
int nnnnnn
Definition: CMTRawAnalyzer.cc:251
CMTRawAnalyzer::h_averSIGNALoccupancy_HE
TH1F * h_averSIGNALoccupancy_HE
Definition: CMTRawAnalyzer.cc:1571
CMTRawAnalyzer::h_gain_HE
TH1F * h_gain_HE
Definition: CMTRawAnalyzer.cc:1359
CMTRawAnalyzer::h_mapDepth4ADCAmpl_HB
TH2F * h_mapDepth4ADCAmpl_HB
Definition: CMTRawAnalyzer.cc:457
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
CMTRawAnalyzer::h_mapDepth3_HE
TH2F * h_mapDepth3_HE
Definition: CMTRawAnalyzer.cc:800
CMTRawAnalyzer::h_pedestalaver4_HO
TH1F * h_pedestalaver4_HO
Definition: CMTRawAnalyzer.cc:1309
CMTRawAnalyzer::h_2DsumPedestalLS6
TH2F * h_2DsumPedestalLS6
Definition: CMTRawAnalyzer.cc:918
CMTRawAnalyzer::h_2DsumADCAmplLSdepth3HFu
TH2F * h_2DsumADCAmplLSdepth3HFu
Definition: CMTRawAnalyzer.cc:940
CMTRawAnalyzer::h_eventoccupancy_HE
TH1F * h_eventoccupancy_HE
Definition: CMTRawAnalyzer.cc:1603
CMTRawAnalyzer::h_mapADCAmpl12secondpeak0_HE
TH2F * h_mapADCAmpl12secondpeak0_HE
Definition: CMTRawAnalyzer.cc:714
testProducerWithPsetDescEmpty_cfi.a2
a2
Definition: testProducerWithPsetDescEmpty_cfi.py:35
CMTRawAnalyzer::h_mapDepth1Amplitude225_HB
TH2F * h_mapDepth1Amplitude225_HB
Definition: CMTRawAnalyzer.cc:481
CMTRawAnalyzer::h_sumADCAmplperLS3_P2
TH1F * h_sumADCAmplperLS3_P2
Definition: CMTRawAnalyzer.cc:1026
CMTRawAnalyzer::h_sum0ADCAmplperLSdepth4HBu
TH1F * h_sum0ADCAmplperLSdepth4HBu
Definition: CMTRawAnalyzer.cc:1012
CMTRawAnalyzer::h_mapDepth1ADCAmpl12_HE
TH2F * h_mapDepth1ADCAmpl12_HE
Definition: CMTRawAnalyzer.cc:508
HcalElectronicsId::fiberIndex
constexpr int fiberIndex() const
get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zer...
Definition: HcalElectronicsId.h:78
CMTRawAnalyzer::h_2D0sumErrorBLS1
TH2F * h_2D0sumErrorBLS1
Definition: CMTRawAnalyzer.cc:1530
CMTRawAnalyzer::h_sumADCAmplperLSdepth5HEu
TH1F * h_sumADCAmplperLSdepth5HEu
Definition: CMTRawAnalyzer.cc:996
CMTRawAnalyzer::h_pedestalw0_HE
TH1F * h_pedestalw0_HE
Definition: CMTRawAnalyzer.cc:1287
CMTRawAnalyzer::h_TSmaxA_HF
TH1F * h_TSmaxA_HF
Definition: CMTRawAnalyzer.cc:548
CMTRawAnalyzer::h_AmplitudeHEtest1
TH1F * h_AmplitudeHEtest1
Definition: CMTRawAnalyzer.cc:327
CMTRawAnalyzer::h_Eta16Depth3RADDAM_HED2
TH1F * h_Eta16Depth3RADDAM_HED2
Definition: CMTRawAnalyzer.cc:1802
CMTRawAnalyzer::h_shape0_Alow_HB3
TH1F * h_shape0_Alow_HB3
Definition: CMTRawAnalyzer.cc:1417
CMTRawAnalyzer::h_mapDepth4TSmeanA225_HE
TH2F * h_mapDepth4TSmeanA225_HE
Definition: CMTRawAnalyzer.cc:742
CMTRawAnalyzer::nlsminmax
int nlsminmax
Definition: CMTRawAnalyzer.cc:1927
CMTRawAnalyzer::h_sumPedestalperLS3
TH1F * h_sumPedestalperLS3
Definition: CMTRawAnalyzer.cc:904
CMTRawAnalyzer::h_sumPedestalperLS1
TH1F * h_sumPedestalperLS1
Definition: CMTRawAnalyzer.cc:894
CMTRawAnalyzer::h_recSignalEnergy0_HB4
TH2F * h_recSignalEnergy0_HB4
Definition: CMTRawAnalyzer.cc:1663
CMTRawAnalyzer::h_pedwvsampl_HO
TH1F * h_pedwvsampl_HO
Definition: CMTRawAnalyzer.cc:1399
CMTRawAnalyzer::h_ADCAmpl_HF
TH1F * h_ADCAmpl_HF
Definition: CMTRawAnalyzer.cc:527
CMTRawAnalyzer::h_amplitudechannel0_HE2
TH2F * h_amplitudechannel0_HE2
Definition: CMTRawAnalyzer.cc:1752
CMTRawAnalyzer::h_TSmeanA_HF
TH1F * h_TSmeanA_HF
Definition: CMTRawAnalyzer.cc:539
CMTRawAnalyzer::h_mapDepth4pedestal_HB
TH2F * h_mapDepth4pedestal_HB
Definition: CMTRawAnalyzer.cc:1336
CMTRawAnalyzer::h_nbadchannels_depth2_HB
TH1F * h_nbadchannels_depth2_HB
Definition: CMTRawAnalyzer.cc:612
CMTRawAnalyzer::h_sumCutTSmeanAperLS1
TH1F * h_sumCutTSmeanAperLS1
Definition: CMTRawAnalyzer.cc:1069
CMTRawAnalyzer::h_shape0_bad_channels_HF
TH1F * h_shape0_bad_channels_HF
Definition: CMTRawAnalyzer.cc:1427
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
CMTRawAnalyzer::h_mapDepth4TSmeanA225_HF
TH2F * h_mapDepth4TSmeanA225_HF
Definition: CMTRawAnalyzer.cc:547
ecalLiteDTU::adc
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
Definition: EcalLiteDTUSample.h:12
CMTRawAnalyzer::useADCfC_
bool useADCfC_
Definition: CMTRawAnalyzer.cc:69
CMTRawAnalyzer::TSmeanHEMin_
double TSmeanHEMin_
Definition: CMTRawAnalyzer.cc:191
CMTRawAnalyzer::h_ADCCalib1_HF
TH1F * h_ADCCalib1_HF
Definition: CMTRawAnalyzer.cc:869
CMTRawAnalyzer::h_mapDepth5ADCAmpl_HE
TH2F * h_mapDepth5ADCAmpl_HE
Definition: CMTRawAnalyzer.cc:700
CMTRawAnalyzer::TSpeakHEMin_
double TSpeakHEMin_
Definition: CMTRawAnalyzer.cc:183
CMTRawAnalyzer::h_pedestalw1_HF
TH1F * h_pedestalw1_HF
Definition: CMTRawAnalyzer.cc:1300
CMTRawAnalyzer::h_mapDepth4Error_HE
TH2F * h_mapDepth4Error_HE
Definition: CMTRawAnalyzer.cc:378
CMTRawAnalyzer::h_2DsumADCAmplLSdepth6HEu
TH2F * h_2DsumADCAmplLSdepth6HEu
Definition: CMTRawAnalyzer.cc:936
CMTRawAnalyzer::h_pedestalwaver4_HE
TH1F * h_pedestalwaver4_HE
Definition: CMTRawAnalyzer.cc:1291
CMTRawAnalyzer::h_mapADCAmpl12firstpeak0_HE
TH2F * h_mapADCAmpl12firstpeak0_HE
Definition: CMTRawAnalyzer.cc:712
CMTRawAnalyzer::h_AmplitudeHBtest1
TH1F * h_AmplitudeHBtest1
Definition: CMTRawAnalyzer.cc:324
CMTRawAnalyzer::h_2D0sumErrorBLS6
TH2F * h_2D0sumErrorBLS6
Definition: CMTRawAnalyzer.cc:1555
CMTRawAnalyzer::~CMTRawAnalyzer
~CMTRawAnalyzer() override
Definition: CMTRawAnalyzer.cc:3957
CMTRawAnalyzer::h_sum0TSmaxAperLS7
TH1F * h_sum0TSmaxAperLS7
Definition: CMTRawAnalyzer.cc:1156
CMTRawAnalyzer::h_pedestalwaver9_HF
TH1F * h_pedestalwaver9_HF
Definition: CMTRawAnalyzer.cc:1304
CMTRawAnalyzer::h_mapDepth1TSmeanA225_HF
TH2F * h_mapDepth1TSmeanA225_HF
Definition: CMTRawAnalyzer.cc:542
CMTRawAnalyzer::h_sumAmplitudeperLS3
TH1F * h_sumAmplitudeperLS3
Definition: CMTRawAnalyzer.cc:1178
CMTRawAnalyzer::h_shape_Alow_HB1
TH1F * h_shape_Alow_HB1
Definition: CMTRawAnalyzer.cc:1408
CMTRawAnalyzer::h_mapDepth2Amplitude_HF
TH2F * h_mapDepth2Amplitude_HF
Definition: CMTRawAnalyzer.cc:559
CMTRawAnalyzer::h_sumAmplitudeperLS6
TH1F * h_sumAmplitudeperLS6
Definition: CMTRawAnalyzer.cc:1196
CMTRawAnalyzer::h_shape_Alow_HB0
TH1F * h_shape_Alow_HB0
Definition: CMTRawAnalyzer.cc:1404
CMTRawAnalyzer::h_bcnnbadchannels_depth2_HB
TH1F * h_bcnnbadchannels_depth2_HB
Definition: CMTRawAnalyzer.cc:655
CMTRawAnalyzer::h_mapDepth1Pedw2_HB
TH2F * h_mapDepth1Pedw2_HB
Definition: CMTRawAnalyzer.cc:1464
CMTRawAnalyzer::pedestalwHBMax_
double pedestalwHBMax_
Definition: CMTRawAnalyzer.cc:263
CMTRawAnalyzer::h_recSignalEnergy1_HB4
TH2F * h_recSignalEnergy1_HB4
Definition: CMTRawAnalyzer.cc:1664
CMTRawAnalyzer::h_2DsumADCAmplLS2
TH2F * h_2DsumADCAmplLS2
Definition: CMTRawAnalyzer.cc:961
CMTRawAnalyzer::h_mapDepth1_HF
TH2F * h_mapDepth1_HF
Definition: CMTRawAnalyzer.cc:573
CMTRawAnalyzer::h_mapDepth5AmplE34_HE
TH2F * h_mapDepth5AmplE34_HE
Definition: CMTRawAnalyzer.cc:795
CMTRawAnalyzer::h_RatioOccupancy_HOM
TH1F * h_RatioOccupancy_HOM
Definition: CMTRawAnalyzer.cc:1254
CMTRawAnalyzer::recordHistoes_
bool recordHistoes_
Definition: CMTRawAnalyzer.cc:55
CMTRawAnalyzer::calibrADCHEMin_
double calibrADCHEMin_
Definition: CMTRawAnalyzer.cc:209
CMTRawAnalyzer::h_mapAiForLS_good_HF
TH2F * h_mapAiForLS_good_HF
Definition: CMTRawAnalyzer.cc:317
CMTRawAnalyzer::h_sum0TSmaxAperLS2
TH1F * h_sum0TSmaxAperLS2
Definition: CMTRawAnalyzer.cc:1126
CMTRawAnalyzer::h_mapDepth1Pedw3_HE
TH2F * h_mapDepth1Pedw3_HE
Definition: CMTRawAnalyzer.cc:1481
CMTRawAnalyzer::h_mapAiForLS_bad_HB
TH2F * h_mapAiForLS_bad_HB
Definition: CMTRawAnalyzer.cc:303
CMTRawAnalyzer::h_recSignalEnergy2_HE5
TH2F * h_recSignalEnergy2_HE5
Definition: CMTRawAnalyzer.cc:1693
CMTRawAnalyzer::h_recSignalEnergy0_HE1
TH2F * h_recSignalEnergy0_HE1
Definition: CMTRawAnalyzer.cc:1679
CMTRawAnalyzer::h_sumErrorBperLS2
TH1F * h_sumErrorBperLS2
Definition: CMTRawAnalyzer.cc:1538
DetId
Definition: DetId.h:17
CMTRawAnalyzer::h_amplitudechannel0_HB4
TH2F * h_amplitudechannel0_HB4
Definition: CMTRawAnalyzer.cc:1745
CMTRawAnalyzer::h_mapDepth3ADCAmplSiPM_HE
TH2F * h_mapDepth3ADCAmplSiPM_HE
Definition: CMTRawAnalyzer.cc:723
b1
static constexpr float b1
Definition: L1EGammaCrystalsEmulatorProducer.cc:82
CMTRawAnalyzer::h_mapDepth1Ped2_HF
TH2F * h_mapDepth1Ped2_HF
Definition: CMTRawAnalyzer.cc:1500
CMTRawAnalyzer::h_mapDepth2pedestal_HE
TH2F * h_mapDepth2pedestal_HE
Definition: CMTRawAnalyzer.cc:1338
nphi
const int nphi
Definition: CMTRawAnalyzer.h:424
CMTRawAnalyzer::h_sumAmplLS4
TH1F * h_sumAmplLS4
Definition: CMTRawAnalyzer.cc:1231
CMTRawAnalyzer::h_mapADCCalib047_HE
TH2F * h_mapADCCalib047_HE
Definition: CMTRawAnalyzer.cc:836
CMTRawAnalyzer::h_map0AiForLS_good_HO
TH2F * h_map0AiForLS_good_HO
Definition: CMTRawAnalyzer.cc:314
CMTRawAnalyzer::h_ADCCalib_HE
TH1F * h_ADCCalib_HE
Definition: CMTRawAnalyzer.cc:834
CMTRawAnalyzer::phi
int phi
Definition: CMTRawAnalyzer.cc:1921
CMTRawAnalyzer::h_2DsumErrorBLS3
TH2F * h_2DsumErrorBLS3
Definition: CMTRawAnalyzer.cc:1541
CMTRawAnalyzer::ADCAmplHEMin_
double ADCAmplHEMin_
Definition: CMTRawAnalyzer.cc:201
CMTRawAnalyzer::h_2DsumADCAmplLSdepth4HFu
TH2F * h_2DsumADCAmplLSdepth4HFu
Definition: CMTRawAnalyzer.cc:942
CMTRawAnalyzer::h_TSmeanCalib_HB
TH1F * h_TSmeanCalib_HB
Definition: CMTRawAnalyzer.cc:827
CMTRawAnalyzer::lsdep_estimator5_HEdepth1_
double lsdep_estimator5_HEdepth1_
Definition: CMTRawAnalyzer.cc:164
CMTRawAnalyzer::TSmeanHOMax_
double TSmeanHOMax_
Definition: CMTRawAnalyzer.cc:196
BXlumiParameters_cfi.lumi
lumi
Definition: BXlumiParameters_cfi.py:6
CMTRawAnalyzer::h_Amplitude_forCapIdErrors_HB2
TH1F * h_Amplitude_forCapIdErrors_HB2
Definition: CMTRawAnalyzer.cc:671
CMTRawAnalyzer::studyADCAmplHist_
bool studyADCAmplHist_
Definition: CMTRawAnalyzer.cc:64
CMTRawAnalyzer::h_mapDepth2Ped0_HE
TH2F * h_mapDepth2Ped0_HE
Definition: CMTRawAnalyzer.cc:1482
CMTRawAnalyzer::h_maprphinorm0_HE7
TH2F * h_maprphinorm0_HE7
Definition: CMTRawAnalyzer.cc:1644
CMTRawAnalyzer::h_maxxOCCUP_HE
TH1F * h_maxxOCCUP_HE
Definition: CMTRawAnalyzer.cc:1591
CMTRawAnalyzer::h_sum0ADCAmplperLS6_P1
TH1F * h_sum0ADCAmplperLS6_P1
Definition: CMTRawAnalyzer.cc:1033
CMTRawAnalyzer::h_mapDepth4Error_HB
TH2F * h_mapDepth4Error_HB
Definition: CMTRawAnalyzer.cc:360
CMTRawAnalyzer::lscounter
int lscounter
Definition: CMTRawAnalyzer.cc:1870
CMTRawAnalyzer::h_2D0Ataildepth1_HB
TH2F * h_2D0Ataildepth1_HB
Definition: CMTRawAnalyzer.cc:1607
CMTRawAnalyzer::h_AamplitudewithPedSubtr_RADDAM_HE
TH1F * h_AamplitudewithPedSubtr_RADDAM_HE
Definition: CMTRawAnalyzer.cc:1795
CMTRawAnalyzer::h_error1
TH1F * h_error1
Definition: CMTRawAnalyzer.cc:342
CMTRawAnalyzer::h_mapDepth1Ampl047_HE
TH2F * h_mapDepth1Ampl047_HE
Definition: CMTRawAnalyzer.cc:777
CMTRawAnalyzer::h_mapRatioCalib047_HO
TH2F * h_mapRatioCalib047_HO
Definition: CMTRawAnalyzer.cc:856
CMTRawAnalyzer::h_mapDepth4TSmaxA225_HE
TH2F * h_mapDepth4TSmaxA225_HE
Definition: CMTRawAnalyzer.cc:757
CMTRawAnalyzer::h_sumCutAmplperLS7
TH1F * h_sumCutAmplperLS7
Definition: CMTRawAnalyzer.cc:1260
CMTRawAnalyzer::h_mapDepth3pedestalw_HB
TH2F * h_mapDepth3pedestalw_HB
Definition: CMTRawAnalyzer.cc:1319
CMTRawAnalyzer::h_2DsumTSmaxALS8
TH2F * h_2DsumTSmaxALS8
Definition: CMTRawAnalyzer.cc:1158
CMTRawAnalyzer::h_sumADCAmplperLS8_P1
TH1F * h_sumADCAmplperLS8_P1
Definition: CMTRawAnalyzer.cc:1040
CMTRawAnalyzer::h_sigLayer1RADDAM0_HE
TH1F * h_sigLayer1RADDAM0_HE
Definition: CMTRawAnalyzer.cc:1789
CMTRawAnalyzer::h_2D0sumADCAmplLS4
TH2F * h_2D0sumADCAmplLS4
Definition: CMTRawAnalyzer.cc:979
CMTRawAnalyzer::numOfLaserEv
int numOfLaserEv
Definition: CMTRawAnalyzer.cc:1923
CMTRawAnalyzer::h_sum0ErrorBperLS6
TH1F * h_sum0ErrorBperLS6
Definition: CMTRawAnalyzer.cc:1559
CMTRawAnalyzer::h_sumTSmeanALS8
TH1F * h_sumTSmeanALS8
Definition: CMTRawAnalyzer.cc:1108
CMTRawAnalyzer::h_amplvsped_HB
TH1F * h_amplvsped_HB
Definition: CMTRawAnalyzer.cc:1381
CMTRawAnalyzer::lsdep_cut1_peak_HEdepth2_
int lsdep_cut1_peak_HEdepth2_
Definition: CMTRawAnalyzer.cc:101
CMTRawAnalyzer::h_mapDepth4Ped2_HO
TH2F * h_mapDepth4Ped2_HO
Definition: CMTRawAnalyzer.cc:1516
CMTRawAnalyzer::h_mapDepth1AmplE34_HB
TH2F * h_mapDepth1AmplE34_HB
Definition: CMTRawAnalyzer.cc:492
CMTRawAnalyzer::h_bcnvsamplitude_HF
TH1F * h_bcnvsamplitude_HF
Definition: CMTRawAnalyzer.cc:276
CMTRawAnalyzer::h_mapDepth1RADDAM0_HE
TH2F * h_mapDepth1RADDAM0_HE
Definition: CMTRawAnalyzer.cc:1792
CMTRawAnalyzer::h_recNoiseEnergy1_HE3
TH2F * h_recNoiseEnergy1_HE3
Definition: CMTRawAnalyzer.cc:1707
CMTRawAnalyzer::h_sum0AmplitudeperLS4
TH1F * h_sum0AmplitudeperLS4
Definition: CMTRawAnalyzer.cc:1187
CMTRawAnalyzer::h_pedestal2_HF
TH1F * h_pedestal2_HF
Definition: CMTRawAnalyzer.cc:1295
CMTRawAnalyzer::tok_qie10_
edm::EDGetTokenT< QIE10DigiCollection > tok_qie10_
Definition: CMTRawAnalyzer.cc:30
CMTRawAnalyzer::h_mapTSmeanCalib047_HB
TH2F * h_mapTSmeanCalib047_HB
Definition: CMTRawAnalyzer.cc:828
CMTRawAnalyzer::h_nls_per_run
TH1F * h_nls_per_run
Definition: CMTRawAnalyzer.cc:885
CMTRawAnalyzer::h_mapDepth7Error_HE
TH2F * h_mapDepth7Error_HE
Definition: CMTRawAnalyzer.cc:381
CMTRawAnalyzer::lsdep_estimator3_HOdepth4_
double lsdep_estimator3_HOdepth4_
Definition: CMTRawAnalyzer.cc:151
CMTRawAnalyzer::h_recNoiseEnergy0_HE1
TH2F * h_recNoiseEnergy0_HE1
Definition: CMTRawAnalyzer.cc:1700
CMTRawAnalyzer::h_mapDepth1ADCAmplSiPM_HE
TH2F * h_mapDepth1ADCAmplSiPM_HE
Definition: CMTRawAnalyzer.cc:721
CMTRawAnalyzer::calibrTSmeanHEMin_
double calibrTSmeanHEMin_
Definition: CMTRawAnalyzer.cc:233
CMTRawAnalyzer::h_mapRatioCalib_HB
TH2F * h_mapRatioCalib_HB
Definition: CMTRawAnalyzer.cc:823
CMTRawAnalyzer::h_sum0PedestalperLS3
TH1F * h_sum0PedestalperLS3
Definition: CMTRawAnalyzer.cc:906
CMTRawAnalyzer::h_runbadrate_depth2_HE
TH1F * h_runbadrate_depth2_HE
Definition: CMTRawAnalyzer.cc:627
CMTRawAnalyzer::TSmeanHBMax_
double TSmeanHBMax_
Definition: CMTRawAnalyzer.cc:190
CMTRawAnalyzer::h_2D0sumADCAmplLS3
TH2F * h_2D0sumADCAmplLS3
Definition: CMTRawAnalyzer.cc:972
CMTRawAnalyzer::h_mapDepth1Ped1_HB
TH2F * h_mapDepth1Ped1_HB
Definition: CMTRawAnalyzer.cc:1459
photonIsolationHIProducer_cfi.hf
hf
Definition: photonIsolationHIProducer_cfi.py:9
CMTRawAnalyzer::h_error5_HE
TH1F * h_error5_HE
Definition: CMTRawAnalyzer.cc:370
CMTRawAnalyzer::h_Amplitude_forCapIdErrors_HE1
TH1F * h_Amplitude_forCapIdErrors_HE1
Definition: CMTRawAnalyzer.cc:672
CMTRawAnalyzer::h_sumADCAmplperLS1
TH1F * h_sumADCAmplperLS1
Definition: CMTRawAnalyzer.cc:956
CMTRawAnalyzer::h_2DsumPedestalLS3
TH2F * h_2DsumPedestalLS3
Definition: CMTRawAnalyzer.cc:903
CMTRawAnalyzer::h_ADCAmplZoom_HB
TH1F * h_ADCAmplZoom_HB
Definition: CMTRawAnalyzer.cc:446
CMTRawAnalyzer::h_RatioOccupancy_HFM
TH1F * h_RatioOccupancy_HFM
Definition: CMTRawAnalyzer.cc:1256
CMTRawAnalyzer::h_sum0AmplperLS2
TH1F * h_sum0AmplperLS2
Definition: CMTRawAnalyzer.cc:1224
CMTRawAnalyzer::h_mapDepth3ADCAmpl225Copy_HB
TH2F * h_mapDepth3ADCAmpl225Copy_HB
Definition: CMTRawAnalyzer.cc:422
HFRecHit
Definition: HFRecHit.h:11
CMTRawAnalyzer::lsdep_estimator4_HOdepth4_
double lsdep_estimator4_HOdepth4_
Definition: CMTRawAnalyzer.cc:160
CMTRawAnalyzer::averSIGNALoccupancy_HO
double averSIGNALoccupancy_HO
Definition: CMTRawAnalyzer.cc:1881
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
CMTRawAnalyzer::h_error6_HE
TH1F * h_error6_HE
Definition: CMTRawAnalyzer.cc:371
CMTRawAnalyzer::h_sumAmplLS6
TH1F * h_sumAmplLS6
Definition: CMTRawAnalyzer.cc:1243
CMTRawAnalyzer::h_error6_HB
TH1F * h_error6_HB
Definition: CMTRawAnalyzer.cc:353
CMTRawAnalyzer::h_map_HB
TH2F * h_map_HB
Definition: CMTRawAnalyzer.cc:833
CMTRawAnalyzer::h_2D0sumADCAmplLSdepth7HEu
TH2F * h_2D0sumADCAmplLSdepth7HEu
Definition: CMTRawAnalyzer.cc:939
CMTRawAnalyzer::h_runbadrateC_depth2_HF
TH1F * h_runbadrateC_depth2_HF
Definition: CMTRawAnalyzer.cc:652
CMTRawAnalyzer::h_mapDepth7TSmaxA225_HE
TH2F * h_mapDepth7TSmaxA225_HE
Definition: CMTRawAnalyzer.cc:760
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
CMTRawAnalyzer::calibrTSmeanHFMin_
double calibrTSmeanHFMin_
Definition: CMTRawAnalyzer.cc:235
CMTRawAnalyzer::h_respcorr_HF
TH1F * h_respcorr_HF
Definition: CMTRawAnalyzer.cc:1365
CMTRawAnalyzer::h_mapDepth3Amplitude_HF
TH2F * h_mapDepth3Amplitude_HF
Definition: CMTRawAnalyzer.cc:562
CMTRawAnalyzer::lsdep_estimator1_HFdepth4_
double lsdep_estimator1_HFdepth4_
Definition: CMTRawAnalyzer.cc:130
CMTRawAnalyzer::h_sum0TSmaxAperLS5
TH1F * h_sum0TSmaxAperLS5
Definition: CMTRawAnalyzer.cc:1144
CMTRawAnalyzer::h_2D0sumAmplLS7
TH2F * h_2D0sumAmplLS7
Definition: CMTRawAnalyzer.cc:1261
CMTRawAnalyzer::h_2D0sumTSmeanALS2
TH2F * h_2D0sumTSmeanALS2
Definition: CMTRawAnalyzer.cc:1076
CMTRawAnalyzer::h_2DsumADCAmplLS2_LSselected
TH2F * h_2DsumADCAmplLS2_LSselected
Definition: CMTRawAnalyzer.cc:962
CMTRawAnalyzer::fillDigiErrorsHF
void fillDigiErrorsHF(HFDigiCollection::const_iterator &digiItr)
Definition: CMTRawAnalyzer.cc:9506
CMTRawAnalyzer::h_2D0sumTSmeanALS5
TH2F * h_2D0sumTSmeanALS5
Definition: CMTRawAnalyzer.cc:1094
CMTRawAnalyzer::h_2DsumTSmeanALS1
TH2F * h_2DsumTSmeanALS1
Definition: CMTRawAnalyzer.cc:1066
CMTRawAnalyzer::h_amplitudechannel0_HE5
TH2F * h_amplitudechannel0_HE5
Definition: CMTRawAnalyzer.cc:1761
CMTRawAnalyzer::h_2DsumADCAmplLSdepth4HEu
TH2F * h_2DsumADCAmplLSdepth4HEu
Definition: CMTRawAnalyzer.cc:932
CMTRawAnalyzer::h_sumADCAmplperLS6u
TH1F * h_sumADCAmplperLS6u
Definition: CMTRawAnalyzer.cc:1013
CMTRawAnalyzer::h_ADCAmpl_HO
TH1F * h_ADCAmpl_HO
Definition: CMTRawAnalyzer.cc:584
CMTRawAnalyzer::h_mapDepth1AmplE34_HF
TH2F * h_mapDepth1AmplE34_HF
Definition: CMTRawAnalyzer.cc:571
CMTRawAnalyzer::h_2D0sumAmplLS5
TH2F * h_2D0sumAmplLS5
Definition: CMTRawAnalyzer.cc:1241
CMTRawAnalyzer::h_mapDepth1Ped3_HE
TH2F * h_mapDepth1Ped3_HE
Definition: CMTRawAnalyzer.cc:1477
CMTRawAnalyzer::h_ADCAmplrest1_HF
TH1F * h_ADCAmplrest1_HF
Definition: CMTRawAnalyzer.cc:528
QIE10DataFrame::detid
constexpr DetId detid() const
Get the detector id.
Definition: QIE10DataFrame.h:76
CMTRawAnalyzer::h_mapDepth1ADCAmpl225Copy_HE
TH2F * h_mapDepth1ADCAmpl225Copy_HE
Definition: CMTRawAnalyzer.cc:424
CMTRawAnalyzer::maxxOCCUP3
double maxxOCCUP3
Definition: CMTRawAnalyzer.cc:1900
CMTRawAnalyzer::h_mapDepth2ADCAmpl12SiPM_HE
TH2F * h_mapDepth2ADCAmpl12SiPM_HE
Definition: CMTRawAnalyzer.cc:516
CMTRawAnalyzer::lsdep_estimator2_HOdepth4_
double lsdep_estimator2_HOdepth4_
Definition: CMTRawAnalyzer.cc:142
CMTRawAnalyzer::tok_hbheSignal_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheSignal_
Definition: CMTRawAnalyzer.cc:32
CMTRawAnalyzer::calibrADCHBMax_
double calibrADCHBMax_
Definition: CMTRawAnalyzer.cc:212
CMTRawAnalyzer::inputTag_
edm::InputTag inputTag_
Definition: CMTRawAnalyzer.cc:43
CMTRawAnalyzer::h_mapDepth2Ped2_HF
TH2F * h_mapDepth2Ped2_HF
Definition: CMTRawAnalyzer.cc:1508
CMTRawAnalyzer::h_pedestalaver9_HB
TH1F * h_pedestalaver9_HB
Definition: CMTRawAnalyzer.cc:1274
CMTRawAnalyzer::h2_pedvsampl_HF
TH2F * h2_pedvsampl_HF
Definition: CMTRawAnalyzer.cc:1390
CMTRawAnalyzer::h_shape0_good_channels_HF
TH1F * h_shape0_good_channels_HF
Definition: CMTRawAnalyzer.cc:1429
CMTRawAnalyzer::h_mapDepth4TSmaxA225_HB
TH2F * h_mapDepth4TSmaxA225_HB
Definition: CMTRawAnalyzer.cc:477
CMTRawAnalyzer::h_mapDepth3TSmaxA225_HB
TH2F * h_mapDepth3TSmaxA225_HB
Definition: CMTRawAnalyzer.cc:476
CMTRawAnalyzer::h_sum0TSmaxAperLS8
TH1F * h_sum0TSmaxAperLS8
Definition: CMTRawAnalyzer.cc:1162
CMTRawAnalyzer::h_map0AiForLS_bad_HF
TH2F * h_map0AiForLS_bad_HF
Definition: CMTRawAnalyzer.cc:316
CMTRawAnalyzer::h_pedestalw1_HE
TH1F * h_pedestalw1_HE
Definition: CMTRawAnalyzer.cc:1288
CMTRawAnalyzer::averSIGNALsumamplitude_HF
double averSIGNALsumamplitude_HF
Definition: CMTRawAnalyzer.cc:1884
CMTRawAnalyzer::h_sumADCAmplLS1copy2
TH1F * h_sumADCAmplLS1copy2
Definition: CMTRawAnalyzer.cc:949
CMTRawAnalyzer::h_recNoiseEnergy2_HB4
TH2F * h_recNoiseEnergy2_HB4
Definition: CMTRawAnalyzer.cc:1677
CMTRawAnalyzer::h_mapDepth6Amplitude_HE
TH2F * h_mapDepth6Amplitude_HE
Definition: CMTRawAnalyzer.cc:767
CMTRawAnalyzer::h_repetedcapid_HF
TH1F * h_repetedcapid_HF
Definition: CMTRawAnalyzer.cc:403
CMTRawAnalyzer::TSmeanHEMax_
double TSmeanHEMax_
Definition: CMTRawAnalyzer.cc:192
CMTRawAnalyzer::h_mapDepth5Ampl047_HE
TH2F * h_mapDepth5Ampl047_HE
Definition: CMTRawAnalyzer.cc:781
CMTRawAnalyzer::h_mapDepth4TSmeanA225_HB
TH2F * h_mapDepth4TSmeanA225_HB
Definition: CMTRawAnalyzer.cc:468
CMTRawAnalyzer::h_mapDepth2ADCAmpl_HF
TH2F * h_mapDepth2ADCAmpl_HF
Definition: CMTRawAnalyzer.cc:532
CMTRawAnalyzer::h_sumCutADCAmplperLS5
TH1F * h_sumCutADCAmplperLS5
Definition: CMTRawAnalyzer.cc:985
CMTRawAnalyzer::lsdep_estimator2_HEdepth2_
double lsdep_estimator2_HEdepth2_
Definition: CMTRawAnalyzer.cc:138
CMTRawAnalyzer::lsdep_estimator1_HBdepth4_
double lsdep_estimator1_HBdepth4_
Definition: CMTRawAnalyzer.cc:133
CMTRawAnalyzer::h_recSignalEnergy2_HB4
TH2F * h_recSignalEnergy2_HB4
Definition: CMTRawAnalyzer.cc:1665
zneta
const int zneta
Definition: CMTRawAnalyzer.h:426
CMTRawAnalyzer::h_sumADCAmplLS1copy3
TH1F * h_sumADCAmplLS1copy3
Definition: CMTRawAnalyzer.cc:950
CMTRawAnalyzer::h_mapDepth2TSmeanA_HB
TH2F * h_mapDepth2TSmeanA_HB
Definition: CMTRawAnalyzer.cc:462
CMTRawAnalyzer::h_mapDepth2ADCAmpl225Copy_HE
TH2F * h_mapDepth2ADCAmpl225Copy_HE
Definition: CMTRawAnalyzer.cc:425
edm::SortedCollection::begin
const_iterator begin() const
Definition: SortedCollection.h:262
CMTRawAnalyzer::lsdep_cut3_max_HBdepth2_
int lsdep_cut3_max_HBdepth2_
Definition: CMTRawAnalyzer.cc:108
CMTRawAnalyzer::h_mapDepth2ADCAmpl_HB
TH2F * h_mapDepth2ADCAmpl_HB
Definition: CMTRawAnalyzer.cc:453
CMTRawAnalyzer::usePedestalSubtraction_
bool usePedestalSubtraction_
Definition: CMTRawAnalyzer.cc:67
CMTRawAnalyzer::h_mapDepth3ADCAmpl225_HF
TH2F * h_mapDepth3ADCAmpl225_HF
Definition: CMTRawAnalyzer.cc:537
CMTRawAnalyzer::h_mapDepth7ADCAmpl12_HE
TH2F * h_mapDepth7ADCAmpl12_HE
Definition: CMTRawAnalyzer.cc:514
CMTRawAnalyzer::h_mapDepth1TSmaxA225_HF
TH2F * h_mapDepth1TSmaxA225_HF
Definition: CMTRawAnalyzer.cc:551
CMTRawAnalyzer::h_sumADCAmplEtaPhiLs
TH1F * h_sumADCAmplEtaPhiLs
Definition: CMTRawAnalyzer.cc:296
PVValHelper::eta
Definition: PVValidationHelpers.h:69
CMTRawAnalyzer::h_mapTSmeanCalib047_HF
TH2F * h_mapTSmeanCalib047_HF
Definition: CMTRawAnalyzer.cc:879
CMTRawAnalyzer::h_sum0AmplitudeperLS1
TH1F * h_sum0AmplitudeperLS1
Definition: CMTRawAnalyzer.cc:1169
CMTRawAnalyzer::h_numberofhitsHFtest
TH1F * h_numberofhitsHFtest
Definition: CMTRawAnalyzer.cc:321
CMTRawAnalyzer::h_recSignalEnergy1_HE3
TH2F * h_recSignalEnergy1_HE3
Definition: CMTRawAnalyzer.cc:1686
CMTRawAnalyzer::h_error2_HF
TH1F * h_error2_HF
Definition: CMTRawAnalyzer.cc:388
CMTRawAnalyzer::h_sum0ADCAmplperLS3_M2
TH1F * h_sum0ADCAmplperLS3_M2
Definition: CMTRawAnalyzer.cc:1031
nsub
const int nsub
Definition: CMTRawAnalyzer.h:421
CMTRawAnalyzer::h_shape0_Ahigh_HB1
TH1F * h_shape0_Ahigh_HB1
Definition: CMTRawAnalyzer.cc:1407
HcalPedestalWidth::getSigma
float getSigma(int fCapId1, int fCapId2) const
get correlation element for capId1/2 = 0..3
Definition: HcalPedestalWidth.cc:33
CMTRawAnalyzer::h_error1_HO
TH1F * h_error1_HO
Definition: CMTRawAnalyzer.cc:405
CMTRawAnalyzer::h_mapADCCalib047_HO
TH2F * h_mapADCCalib047_HO
Definition: CMTRawAnalyzer.cc:853
CMTRawAnalyzer::h_ADCAmpl_HBCapIdNoError
TH1F * h_ADCAmpl_HBCapIdNoError
Definition: CMTRawAnalyzer.cc:442
CMTRawAnalyzer::h_2DsumTSmaxALS7
TH2F * h_2DsumTSmaxALS7
Definition: CMTRawAnalyzer.cc:1152
CMTRawAnalyzer::h_sumADCAmplEtaPhiLs_ietaphi
TH1F * h_sumADCAmplEtaPhiLs_ietaphi
Definition: CMTRawAnalyzer.cc:300
CMTRawAnalyzer::runcounter
int runcounter
Definition: CMTRawAnalyzer.cc:1864
CMTRawAnalyzer::h_shape_Ahigh_HB1
TH1F * h_shape_Ahigh_HB1
Definition: CMTRawAnalyzer.cc:1406
CMTRawAnalyzer::h_2D0sumADCAmplLS6
TH2F * h_2D0sumADCAmplLS6
Definition: CMTRawAnalyzer.cc:991
CMTRawAnalyzer::h_ADCAmplrest6_HF
TH1F * h_ADCAmplrest6_HF
Definition: CMTRawAnalyzer.cc:529
CMTRawAnalyzer::h_mapDepth6ADCAmpl225_HE
TH2F * h_mapDepth6ADCAmpl225_HE
Definition: CMTRawAnalyzer.cc:729
CMTRawAnalyzer::h_sumCutADCAmplperLS6
TH1F * h_sumCutADCAmplperLS6
Definition: CMTRawAnalyzer.cc:993
CMTRawAnalyzer::h_shape0_bad_channels_HO
TH1F * h_shape0_bad_channels_HO
Definition: CMTRawAnalyzer.cc:1431
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
CMTRawAnalyzer::recordNtuples_
bool recordNtuples_
Definition: CMTRawAnalyzer.cc:53
CMTRawAnalyzer::numOfTS
int numOfTS
Definition: CMTRawAnalyzer.cc:1922
CMTRawAnalyzer::h_mapDepth3TSmaxA225_HE
TH2F * h_mapDepth3TSmaxA225_HE
Definition: CMTRawAnalyzer.cc:756
CMTRawAnalyzer::h_sumAmplitudeperLS1
TH1F * h_sumAmplitudeperLS1
Definition: CMTRawAnalyzer.cc:1165
CMTRawAnalyzer::h_mapDepth1Ampl047_HB
TH2F * h_mapDepth1Ampl047_HB
Definition: CMTRawAnalyzer.cc:488
CMTRawAnalyzer::h_sumErrorBLS4
TH1F * h_sumErrorBLS4
Definition: CMTRawAnalyzer.cc:1547
CMTRawAnalyzer::averSIGNALoccupancy_HE
double averSIGNALoccupancy_HE
Definition: CMTRawAnalyzer.cc:1879
CMTRawAnalyzer::h_sigLayer2RADDAM5_HE
TH1F * h_sigLayer2RADDAM5_HE
Definition: CMTRawAnalyzer.cc:1811
CMTRawAnalyzer::h_error2
TH1F * h_error2
Definition: CMTRawAnalyzer.cc:343
CMTRawAnalyzer::h_gain_HO
TH1F * h_gain_HO
Definition: CMTRawAnalyzer.cc:1369
CMTRawAnalyzer::rmsHEMin_
double rmsHEMin_
Definition: CMTRawAnalyzer.cc:174
CMTRawAnalyzer::h_mapDepth4AmplE34_HF
TH2F * h_mapDepth4AmplE34_HF
Definition: CMTRawAnalyzer.cc:580
CMTRawAnalyzer::h_RatioOccupancy_HEP
TH1F * h_RatioOccupancy_HEP
Definition: CMTRawAnalyzer.cc:1251
CMTRawAnalyzer::h_runbadrate_depth1_HF
TH1F * h_runbadrate_depth1_HF
Definition: CMTRawAnalyzer.cc:645
CMTRawAnalyzer::lsdep_cut1_peak_HEdepth1_
int lsdep_cut1_peak_HEdepth1_
Definition: CMTRawAnalyzer.cc:100
CMTRawAnalyzer::h_mapDepth1Ampl_HB
TH2F * h_mapDepth1Ampl_HB
Definition: CMTRawAnalyzer.cc:490
CMTRawAnalyzer::rmsHFMin_
double rmsHFMin_
Definition: CMTRawAnalyzer.cc:176
CMTRawAnalyzer::h_sumCutTSmaxAperLS8
TH1F * h_sumCutTSmaxAperLS8
Definition: CMTRawAnalyzer.cc:1160
CMTRawAnalyzer::h_mapDepth4TSmaxA_HB
TH2F * h_mapDepth4TSmaxA_HB
Definition: CMTRawAnalyzer.cc:475
CMTRawAnalyzer::h_AmplitudeHEtest
TH1F * h_AmplitudeHEtest
Definition: CMTRawAnalyzer.cc:326
CMTRawAnalyzer::h_sumTSmeanALS3
TH1F * h_sumTSmeanALS3
Definition: CMTRawAnalyzer.cc:1078
CMTRawAnalyzer::nevcounter0
int nevcounter0
Definition: CMTRawAnalyzer.cc:1876
CMTRawAnalyzer::h_maprphinorm2_HE4
TH2F * h_maprphinorm2_HE4
Definition: CMTRawAnalyzer.cc:1634
CMTRawAnalyzer.h
CMTRawAnalyzer::h_maprphinorm2_HE7
TH2F * h_maprphinorm2_HE7
Definition: CMTRawAnalyzer.cc:1637
CMTRawAnalyzer::h_orbitNumvsamplitude0_HF
TH1F * h_orbitNumvsamplitude0_HF
Definition: CMTRawAnalyzer.cc:285
CMTRawAnalyzer::h_sumamplitude_depth3_HE0
TH1F * h_sumamplitude_depth3_HE0
Definition: CMTRawAnalyzer.cc:1446
CMTRawAnalyzer::h_shape0_good_channels_HO
TH1F * h_shape0_good_channels_HO
Definition: CMTRawAnalyzer.cc:1433
CMTRawAnalyzer::h_maprphinorm2_HE5
TH2F * h_maprphinorm2_HE5
Definition: CMTRawAnalyzer.cc:1635
HcalFrontEndId::fiberChannel
int fiberChannel() const
Definition: HcalFrontEndId.h:29
CMTRawAnalyzer::nnnnnn4
int nnnnnn4
Definition: CMTRawAnalyzer.cc:260
CMTRawAnalyzer::ADCAmplHOMax_
double ADCAmplHOMax_
Definition: CMTRawAnalyzer.cc:206
CMTRawAnalyzer::h_sum0ADCAmplperLS6_M2
TH1F * h_sum0ADCAmplperLS6_M2
Definition: CMTRawAnalyzer.cc:1039
CMTRawAnalyzer::h_mapDepth3Amplitude225_HF
TH2F * h_mapDepth3Amplitude225_HF
Definition: CMTRawAnalyzer.cc:564
CMTRawAnalyzer::h_averNOSIGNALoccupancy_HE
TH1F * h_averNOSIGNALoccupancy_HE
Definition: CMTRawAnalyzer.cc:1579
CMTRawAnalyzer::h_sum0TSmaxAperLS4
TH1F * h_sum0TSmaxAperLS4
Definition: CMTRawAnalyzer.cc:1138
CMTRawAnalyzer::h_2DsumPedestalLS1
TH2F * h_2DsumPedestalLS1
Definition: CMTRawAnalyzer.cc:893
CMTRawAnalyzer::h_mapDepth3Pedw3_HE
TH2F * h_mapDepth3Pedw3_HE
Definition: CMTRawAnalyzer.cc:1497
CMTRawAnalyzer::h_2D0sumAmplitudeLS6
TH2F * h_2D0sumAmplitudeLS6
Definition: CMTRawAnalyzer.cc:1198
CMTRawAnalyzer::lsdep_estimator1_HBdepth3_
double lsdep_estimator1_HBdepth3_
Definition: CMTRawAnalyzer.cc:132
CMTRawAnalyzer::h_error2_HB
TH1F * h_error2_HB
Definition: CMTRawAnalyzer.cc:349
CMTRawAnalyzer::h_error5_HO
TH1F * h_error5_HO
Definition: CMTRawAnalyzer.cc:409
CMTRawAnalyzer::h_sumTSmeanALS6
TH1F * h_sumTSmeanALS6
Definition: CMTRawAnalyzer.cc:1096
edm::ESHandle< CaloGeometry >
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
CMTRawAnalyzer::calibrADCHOMin_
double calibrADCHOMin_
Definition: CMTRawAnalyzer.cc:210
CMTRawAnalyzer::h_mapDepth1TSmeanA225_HB
TH2F * h_mapDepth1TSmeanA225_HB
Definition: CMTRawAnalyzer.cc:463
CMTRawAnalyzer::h_sumADCAmplperLSdepth4HEu
TH1F * h_sumADCAmplperLSdepth4HEu
Definition: CMTRawAnalyzer.cc:995
CMTRawAnalyzer::h_recNoiseEnergy0_HE4
TH2F * h_recNoiseEnergy0_HE4
Definition: CMTRawAnalyzer.cc:1709
CMTRawAnalyzer::h_mapDepth6Error_HE
TH2F * h_mapDepth6Error_HE
Definition: CMTRawAnalyzer.cc:380
CMTRawAnalyzer::h_pedestalwaver4_HO
TH1F * h_pedestalwaver4_HO
Definition: CMTRawAnalyzer.cc:1315
CMTRawAnalyzer::h_mapWidthCalib_HE
TH2F * h_mapWidthCalib_HE
Definition: CMTRawAnalyzer.cc:849
CMTRawAnalyzer::h_pedwvsampl0_HF
TH1F * h_pedwvsampl0_HF
Definition: CMTRawAnalyzer.cc:1395
CMTRawAnalyzer::h_runnbadchannels_depth2_HB
TH1F * h_runnbadchannels_depth2_HB
Definition: CMTRawAnalyzer.cc:613
CMTRawAnalyzer::h_sum0ADCAmplperLS4
TH1F * h_sum0ADCAmplperLS4
Definition: CMTRawAnalyzer.cc:980
CMTRawAnalyzer::fillDigiAmplitudeHFQIE10
void fillDigiAmplitudeHFQIE10(QIE10DataFrame qie10df)
Definition: CMTRawAnalyzer.cc:12419
CMTRawAnalyzer::lsdep_estimator5_HFdepth2_
double lsdep_estimator5_HFdepth2_
Definition: CMTRawAnalyzer.cc:168
CMTRawAnalyzer::h_sumADCAmplperLS1_P1
TH1F * h_sumADCAmplperLS1_P1
Definition: CMTRawAnalyzer.cc:1016
CMTRawAnalyzer::h_sum0AmplperLS7
TH1F * h_sum0AmplperLS7
Definition: CMTRawAnalyzer.cc:1262
CMTRawAnalyzer::h_mapDepth4ADCAmpl225Copy_HO
TH2F * h_mapDepth4ADCAmpl225Copy_HO
Definition: CMTRawAnalyzer.cc:435
CMTRawAnalyzer::h_FullSignal3D0_HE
TH2F * h_FullSignal3D0_HE
Definition: CMTRawAnalyzer.cc:808
HcalFrontEndId::pixel
int pixel() const
Definition: HcalFrontEndId.h:27
CMTRawAnalyzer::h_maxxOCCUP_HO
TH1F * h_maxxOCCUP_HO
Definition: CMTRawAnalyzer.cc:1593
CMTRawAnalyzer::bcnrejectedlow_
int bcnrejectedlow_
Definition: CMTRawAnalyzer.cc:91
CMTRawAnalyzer::h_mapADCAmpl12firstpeak_HE
TH2F * h_mapADCAmpl12firstpeak_HE
Definition: CMTRawAnalyzer.cc:711
CMTRawAnalyzer::h_amplitudechannel1_HB3
TH2F * h_amplitudechannel1_HB3
Definition: CMTRawAnalyzer.cc:1743
CMTRawAnalyzer::h_WidthCalib_HB
TH1F * h_WidthCalib_HB
Definition: CMTRawAnalyzer.cc:830
CMTRawAnalyzer::h_mapDepth3ADCAmpl225_HB
TH2F * h_mapDepth3ADCAmpl225_HB
Definition: CMTRawAnalyzer.cc:458
CMTRawAnalyzer::h_mapDepth6ADCAmpl_HE
TH2F * h_mapDepth6ADCAmpl_HE
Definition: CMTRawAnalyzer.cc:701
CMTRawAnalyzer::h_sumAmplLS2
TH1F * h_sumAmplLS2
Definition: CMTRawAnalyzer.cc:1219
CMTRawAnalyzer::h_fiber0_HB
TH1F * h_fiber0_HB
Definition: CMTRawAnalyzer.cc:361
CMTRawAnalyzer::lsdep_cut1_peak_HBdepth1_
int lsdep_cut1_peak_HBdepth1_
Definition: CMTRawAnalyzer.cc:98
CMTRawAnalyzer::h_ADCAmpl_HE
TH1F * h_ADCAmpl_HE
Definition: CMTRawAnalyzer.cc:691
CMTRawAnalyzer::h_2DsumAmplLS4
TH2F * h_2DsumAmplLS4
Definition: CMTRawAnalyzer.cc:1232
CMTRawAnalyzer::h_repetedcapid_HB
TH1F * h_repetedcapid_HB
Definition: CMTRawAnalyzer.cc:364
CMTRawAnalyzer::h_ADCCalib_HO
TH1F * h_ADCCalib_HO
Definition: CMTRawAnalyzer.cc:851
CMTRawAnalyzer::h_numberofhitsHBtest
TH1F * h_numberofhitsHBtest
Definition: CMTRawAnalyzer.cc:319
CMTRawAnalyzer::h_ADCAmpl345Zoom_HE
TH1F * h_ADCAmpl345Zoom_HE
Definition: CMTRawAnalyzer.cc:436
HcalFrontEndId
Definition: HcalFrontEndId.h:8
CMTRawAnalyzer::h_mapDepth2TSmeanA225_HB
TH2F * h_mapDepth2TSmeanA225_HB
Definition: CMTRawAnalyzer.cc:464
CMTRawAnalyzer::h_sumADCAmplLS8
TH1F * h_sumADCAmplLS8
Definition: CMTRawAnalyzer.cc:1058
CMTRawAnalyzer::lumi
int lumi
Definition: CMTRawAnalyzer.cc:1868
CMTRawAnalyzer::h_mapDepth4_HE
TH2F * h_mapDepth4_HE
Definition: CMTRawAnalyzer.cc:801
HcalOuter
Definition: HcalAssistant.h:35
CMTRawAnalyzer::h_mapDepth1Pedw2_HF
TH2F * h_mapDepth1Pedw2_HF
Definition: CMTRawAnalyzer.cc:1504
CMTRawAnalyzer::h_sumADCAmplperLSdepth3HBu
TH1F * h_sumADCAmplperLSdepth3HBu
Definition: CMTRawAnalyzer.cc:1007
CMTRawAnalyzer::h_recSignalEnergy2_HB1
TH2F * h_recSignalEnergy2_HB1
Definition: CMTRawAnalyzer.cc:1656
CMTRawAnalyzer::h_mapenophinorm2_HE3
TH2F * h_mapenophinorm2_HE3
Definition: CMTRawAnalyzer.cc:1619
CMTRawAnalyzer::h_mapTSmaxCalib047_HB
TH2F * h_mapTSmaxCalib047_HB
Definition: CMTRawAnalyzer.cc:825
CMTRawAnalyzer::studyTSmaxShapeHist_
bool studyTSmaxShapeHist_
Definition: CMTRawAnalyzer.cc:60
CMTRawAnalyzer::h_amplFine_HF
TH1F * h_amplFine_HF
Definition: CMTRawAnalyzer.cc:395
CMTRawAnalyzer::h_shape0_good_channels_HB
TH1F * h_shape0_good_channels_HB
Definition: CMTRawAnalyzer.cc:1421
CMTRawAnalyzer::h_ADCCalib_HB
TH1F * h_ADCCalib_HB
Definition: CMTRawAnalyzer.cc:817
CMTRawAnalyzer::maxxSUM3
double maxxSUM3
Definition: CMTRawAnalyzer.cc:1896
CMTRawAnalyzer::lsdep_estimator4_HEdepth1_
double lsdep_estimator4_HEdepth1_
Definition: CMTRawAnalyzer.cc:155
CMTRawAnalyzer::h_averNOSIGNALoccupancy_HO
TH1F * h_averNOSIGNALoccupancy_HO
Definition: CMTRawAnalyzer.cc:1581
CMTRawAnalyzer::h_map0AiForLS_bad_HE
TH2F * h_map0AiForLS_bad_HE
Definition: CMTRawAnalyzer.cc:308
CMTRawAnalyzer::h_recSignalEnergy2_HE2
TH2F * h_recSignalEnergy2_HE2
Definition: CMTRawAnalyzer.cc:1684
CMTRawAnalyzer::h_gsmdifferencefit2_HE
TH1F * h_gsmdifferencefit2_HE
Definition: CMTRawAnalyzer.cc:716
CMTRawAnalyzer::h_averSIGNALoccupancy_HF
TH1F * h_averSIGNALoccupancy_HF
Definition: CMTRawAnalyzer.cc:1572
CMTRawAnalyzer::h_sumAmplperLS8
TH1F * h_sumAmplperLS8
Definition: CMTRawAnalyzer.cc:1265
CMTRawAnalyzer::h_pedestalw2_HB
TH1F * h_pedestalw2_HB
Definition: CMTRawAnalyzer.cc:1277
CMTRawAnalyzer::h_mapDepth4Amplitude_HF
TH2F * h_mapDepth4Amplitude_HF
Definition: CMTRawAnalyzer.cc:563
CMTRawAnalyzer::h_mapDepth3TSmeanA_HE
TH2F * h_mapDepth3TSmeanA_HE
Definition: CMTRawAnalyzer.cc:734
CMTRawAnalyzer::fillDigiErrorsHFQIE10
void fillDigiErrorsHFQIE10(QIE10DataFrame qie10df)
Definition: CMTRawAnalyzer.cc:9639
CMTRawAnalyzer::h_sum0ErrorBperLS4
TH1F * h_sum0ErrorBperLS4
Definition: CMTRawAnalyzer.cc:1549
QIE11DataFrame::samples
constexpr int samples() const
total number of samples in the digi
Definition: QIE11DataFrame.h:77
CMTRawAnalyzer::calibrWidthHBMax_
double calibrWidthHBMax_
Definition: CMTRawAnalyzer.cc:244
CMTRawAnalyzer::h_2D0sumAmplitudeLS3
TH2F * h_2D0sumAmplitudeLS3
Definition: CMTRawAnalyzer.cc:1180
CMTRawAnalyzer::h_mapDepth5ADCAmpl225_HE
TH2F * h_mapDepth5ADCAmpl225_HE
Definition: CMTRawAnalyzer.cc:728
CMTRawAnalyzer::flagIterativeMethodCalibrationGroupReco_
int flagIterativeMethodCalibrationGroupReco_
Definition: CMTRawAnalyzer.cc:85
CMTRawAnalyzer::h_2DsumAmplitudeLS8
TH2F * h_2DsumAmplitudeLS8
Definition: CMTRawAnalyzer.cc:1207
CMTRawAnalyzer::h_sumAmplLS1
TH1F * h_sumAmplLS1
Definition: CMTRawAnalyzer.cc:1212
CMTRawAnalyzer::h_mapDepth2Error_HF
TH2F * h_mapDepth2Error_HF
Definition: CMTRawAnalyzer.cc:397
CMTRawAnalyzer::calibrADCHFMin_
double calibrADCHFMin_
Definition: CMTRawAnalyzer.cc:211
CMTRawAnalyzer::h_sigLayer1RADDAM_HE
TH1F * h_sigLayer1RADDAM_HE
Definition: CMTRawAnalyzer.cc:1787
CMTRawAnalyzer::h_sumamplitude_depth1_HE1
TH1F * h_sumamplitude_depth1_HE1
Definition: CMTRawAnalyzer.cc:1452
HcalPedestal
Definition: HcalPedestal.h:15
CMTRawAnalyzer::h_sumADCAmplperLS3_M1
TH1F * h_sumADCAmplperLS3_M1
Definition: CMTRawAnalyzer.cc:1028
dqmdumpme.k
k
Definition: dqmdumpme.py:60
CMTRawAnalyzer::h_2D0sumPedestalLS7
TH2F * h_2D0sumPedestalLS7
Definition: CMTRawAnalyzer.cc:925
CMTRawAnalyzer::h_mapDepth6Amplitude225_HE
TH2F * h_mapDepth6Amplitude225_HE
Definition: CMTRawAnalyzer.cc:774
CMTRawAnalyzer::h_mapDepth1Amplitude225_HE
TH2F * h_mapDepth1Amplitude225_HE
Definition: CMTRawAnalyzer.cc:769
CMTRawAnalyzer::h_ADCCalib1_HB
TH1F * h_ADCCalib1_HB
Definition: CMTRawAnalyzer.cc:818
CMTRawAnalyzer::ratioHFMin_
double ratioHFMin_
Definition: CMTRawAnalyzer.cc:77
CMTRawAnalyzer::h_sum0AmplperLS3
TH1F * h_sum0AmplperLS3
Definition: CMTRawAnalyzer.cc:1230
CMTRawAnalyzer::h_mapDepth4ADCAmpl225_HB
TH2F * h_mapDepth4ADCAmpl225_HB
Definition: CMTRawAnalyzer.cc:459
CMTRawAnalyzer::h_mapDepth2Ped2_HE
TH2F * h_mapDepth2Ped2_HE
Definition: CMTRawAnalyzer.cc:1484
CMTRawAnalyzer::h_sumCutAmplitudeperLS7
TH1F * h_sumCutAmplitudeperLS7
Definition: CMTRawAnalyzer.cc:1203
CMTRawAnalyzer::calibrRatioHFMax_
double calibrRatioHFMax_
Definition: CMTRawAnalyzer.cc:223
CMTRawAnalyzer::h_sum0ADCAmplperLS6
TH1F * h_sum0ADCAmplperLS6
Definition: CMTRawAnalyzer.cc:994
gen
Definition: PythiaDecays.h:13
CMTRawAnalyzer::h_2D0sumADCAmplLSdepth4HEu
TH2F * h_2D0sumADCAmplLSdepth4HEu
Definition: CMTRawAnalyzer.cc:933
CMTRawAnalyzer::averSIGNALoccupancy_HF
double averSIGNALoccupancy_HF
Definition: CMTRawAnalyzer.cc:1880
CMTRawAnalyzer::h_gsmdifferencefit3_HE
TH1F * h_gsmdifferencefit3_HE
Definition: CMTRawAnalyzer.cc:717
CMTRawAnalyzer::h_sumamplitude_depth2_HE
TH1F * h_sumamplitude_depth2_HE
Definition: CMTRawAnalyzer.cc:1437
CMTRawAnalyzer::h_mapDepth3pedestal_HB
TH2F * h_mapDepth3pedestal_HB
Definition: CMTRawAnalyzer.cc:1335
CMTRawAnalyzer::h_sumTSmaxAperLS7
TH1F * h_sumTSmaxAperLS7
Definition: CMTRawAnalyzer.cc:1153
CMTRawAnalyzer::calibrWidthHEMin_
double calibrWidthHEMin_
Definition: CMTRawAnalyzer.cc:241
CMTRawAnalyzer::h_amplitudechannel2_HE3
TH2F * h_amplitudechannel2_HE3
Definition: CMTRawAnalyzer.cc:1757
CMTRawAnalyzer::calibrTSmeanHFMax_
double calibrTSmeanHFMax_
Definition: CMTRawAnalyzer.cc:239
CMTRawAnalyzer::lsdep_estimator5_HFdepth1_
double lsdep_estimator5_HFdepth1_
Definition: CMTRawAnalyzer.cc:167
CMTRawAnalyzer::h_2DsumTSmaxALS3
TH2F * h_2DsumTSmaxALS3
Definition: CMTRawAnalyzer.cc:1128
anpfit
float anpfit
Definition: CMTRawAnalyzer.h:430
CMTRawAnalyzer::h_recNoiseEnergy2_HE4
TH2F * h_recNoiseEnergy2_HE4
Definition: CMTRawAnalyzer.cc:1711
CMTRawAnalyzer::h_mapDepth3ADCAmpl225Copy_HF
TH2F * h_mapDepth3ADCAmpl225Copy_HF
Definition: CMTRawAnalyzer.cc:433
CMTRawAnalyzer::h_Eta16Depth3RADDAM_HED2ALL
TH1F * h_Eta16Depth3RADDAM_HED2ALL
Definition: CMTRawAnalyzer.cc:1808
CMTRawAnalyzer::h_mapDepth1TSmaxA_HF
TH2F * h_mapDepth1TSmaxA_HF
Definition: CMTRawAnalyzer.cc:549
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
CMTRawAnalyzer::calibrWidthHEMax_
double calibrWidthHEMax_
Definition: CMTRawAnalyzer.cc:245
HcalRecNumberingRecord
Definition: HcalRecNumberingRecord.h:23
CMTRawAnalyzer::h_mapDepth2Ampl_HB
TH2F * h_mapDepth2Ampl_HB
Definition: CMTRawAnalyzer.cc:491
ntuplemaker.run0
run0
Definition: ntuplemaker.py:84
bphi
float bphi
Definition: CMTRawAnalyzer.h:425
CMTRawAnalyzer::testmetka
int testmetka
Definition: CMTRawAnalyzer.cc:1924
CMTRawAnalyzer::h_2D0sumAmplitudeLS7
TH2F * h_2D0sumAmplitudeLS7
Definition: CMTRawAnalyzer.cc:1204
CMTRawAnalyzer::h_runbadrateC_depth2_HB
TH1F * h_runbadrateC_depth2_HB
Definition: CMTRawAnalyzer.cc:616
CMTRawAnalyzer::h_mapDepth1ADCAmpl12SiPM_HE
TH2F * h_mapDepth1ADCAmpl12SiPM_HE
Definition: CMTRawAnalyzer.cc:515
CMTRawAnalyzer::h_maprphinorm0_HE6
TH2F * h_maprphinorm0_HE6
Definition: CMTRawAnalyzer.cc:1643
CMTRawAnalyzer::h_sumErrorBLS5
TH1F * h_sumErrorBLS5
Definition: CMTRawAnalyzer.cc:1552
CMTRawAnalyzer::h_mapADCAmpl11firstpeak0_HE
TH2F * h_mapADCAmpl11firstpeak0_HE
Definition: CMTRawAnalyzer.cc:708
particleFlowDisplacedVertex_cfi.ratio
ratio
Definition: particleFlowDisplacedVertex_cfi.py:93
CMTRawAnalyzer::h_sumTSmeanALS5
TH1F * h_sumTSmeanALS5
Definition: CMTRawAnalyzer.cc:1090
CMTRawAnalyzer::flagLaserRaddam_
int flagLaserRaddam_
Definition: CMTRawAnalyzer.cc:83
CMTRawAnalyzer::h_mapADCAmplsecondpeak0_HE
TH2F * h_mapADCAmplsecondpeak0_HE
Definition: CMTRawAnalyzer.cc:706
CMTRawAnalyzer::h_mapCapCalib047_HB
TH2F * h_mapCapCalib047_HB
Definition: CMTRawAnalyzer.cc:813
CMTRawAnalyzer::h_recNoiseEnergy2_HF2
TH2F * h_recNoiseEnergy2_HF2
Definition: CMTRawAnalyzer.cc:1733
CMTRawAnalyzer::splashesUpperLimit_
int splashesUpperLimit_
Definition: CMTRawAnalyzer.cc:89
CMTRawAnalyzer::h_2DsumErrorBLS5
TH2F * h_2DsumErrorBLS5
Definition: CMTRawAnalyzer.cc:1551
CMTRawAnalyzer::h_sum0AmplitudeperLS8
TH1F * h_sum0AmplitudeperLS8
Definition: CMTRawAnalyzer.cc:1211
CMTRawAnalyzer::h_bcnvsamplitude0_HF
TH1F * h_bcnvsamplitude0_HF
Definition: CMTRawAnalyzer.cc:277
CMTRawAnalyzer::calibrTSmeanHEMax_
double calibrTSmeanHEMax_
Definition: CMTRawAnalyzer.cc:237
CMTRawAnalyzer::h_ADCAmpl345_HBCapIdError
TH1F * h_ADCAmpl345_HBCapIdError
Definition: CMTRawAnalyzer.cc:445
CMTRawAnalyzer::h_sumphiEta16Depth3RADDAM_HED2ALL
TH1F * h_sumphiEta16Depth3RADDAM_HED2ALL
Definition: CMTRawAnalyzer.cc:1807
CMTRawAnalyzer::h_mapAiForLS_bad_HF
TH2F * h_mapAiForLS_bad_HF
Definition: CMTRawAnalyzer.cc:315
CMTRawAnalyzer::h_amplitudechannel1_HE6
TH2F * h_amplitudechannel1_HE6
Definition: CMTRawAnalyzer.cc:1765
CMTRawAnalyzer::h_sum0AmplitudeperLS5
TH1F * h_sum0AmplitudeperLS5
Definition: CMTRawAnalyzer.cc:1193
CMTRawAnalyzer::h_mapDepth3TSmaxA_HB
TH2F * h_mapDepth3TSmaxA_HB
Definition: CMTRawAnalyzer.cc:474
CMTRawAnalyzer::h_2D0sumTSmeanALS1
TH2F * h_2D0sumTSmeanALS1
Definition: CMTRawAnalyzer.cc:1070
CMTRawAnalyzer::averNOSIGNALoccupancy_HO
double averNOSIGNALoccupancy_HO
Definition: CMTRawAnalyzer.cc:1889
CMTRawAnalyzer::topo_
edm::ESHandle< HcalTopology > topo_
Definition: CMTRawAnalyzer.cc:47
CMTRawAnalyzer::h_sumADCAmplperLS4
TH1F * h_sumADCAmplperLS4
Definition: CMTRawAnalyzer.cc:977
CMTRawAnalyzer::h_bcnvsamplitude0_HO
TH1F * h_bcnvsamplitude0_HO
Definition: CMTRawAnalyzer.cc:279
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CMTRawAnalyzer::h_2D0sumAmplitudeLS1
TH2F * h_2D0sumAmplitudeLS1
Definition: CMTRawAnalyzer.cc:1168
HcalGain
Definition: HcalGain.h:16
calib
Definition: CalibElectron.h:12
CMTRawAnalyzer::h_sumCutTSmeanAperLS8
TH1F * h_sumCutTSmeanAperLS8
Definition: CMTRawAnalyzer.cc:1111
CMTRawAnalyzer::h_mapTSmeanCalib047_HE
TH2F * h_mapTSmeanCalib047_HE
Definition: CMTRawAnalyzer.cc:845
CMTRawAnalyzer::h_2DsumAmplLS6
TH2F * h_2DsumAmplLS6
Definition: CMTRawAnalyzer.cc:1244
CMTRawAnalyzer::h_2DsumAmplitudeLS5
TH2F * h_2DsumAmplitudeLS5
Definition: CMTRawAnalyzer.cc:1189
CMTRawAnalyzer::h_mapDepth2RADDAM0_HE
TH2F * h_mapDepth2RADDAM0_HE
Definition: CMTRawAnalyzer.cc:1793
CMTRawAnalyzer::h_pedestalwaver4_HB
TH1F * h_pedestalwaver4_HB
Definition: CMTRawAnalyzer.cc:1279
CMTRawAnalyzer::h_shape_Ahigh_HB2
TH1F * h_shape_Ahigh_HB2
Definition: CMTRawAnalyzer.cc:1410
CMTRawAnalyzer::h_2DsumErrorBLS6
TH2F * h_2DsumErrorBLS6
Definition: CMTRawAnalyzer.cc:1556
CMTRawAnalyzer::h_amplitudechannel1_HF2
TH2F * h_amplitudechannel1_HF2
Definition: CMTRawAnalyzer.cc:1775
HcalFrontEndId::rmFiber
int rmFiber() const
Definition: HcalFrontEndId.h:28
CMTRawAnalyzer::h_sumAmplperLS7
TH1F * h_sumAmplperLS7
Definition: CMTRawAnalyzer.cc:1259
CMTRawAnalyzer::h_recSignalEnergy0_HB3
TH2F * h_recSignalEnergy0_HB3
Definition: CMTRawAnalyzer.cc:1660
CMTRawAnalyzer::TSmeanHFMin_
double TSmeanHFMin_
Definition: CMTRawAnalyzer.cc:193
CMTRawAnalyzer::h_recSignalEnergy2_HE1
TH2F * h_recSignalEnergy2_HE1
Definition: CMTRawAnalyzer.cc:1681
CMTRawAnalyzer::myTree
TTree * myTree
Definition: CMTRawAnalyzer.cc:1902
CMTRawAnalyzer::h_amplitudechannel2_HB4
TH2F * h_amplitudechannel2_HB4
Definition: CMTRawAnalyzer.cc:1747
CMTRawAnalyzer::h_mapDepth5pedestalw_HE
TH2F * h_mapDepth5pedestalw_HE
Definition: CMTRawAnalyzer.cc:1325
CMTRawAnalyzer::h_amplitudechannel2_HE5
TH2F * h_amplitudechannel2_HE5
Definition: CMTRawAnalyzer.cc:1763
CMTRawAnalyzer::h_sumCutTSmaxAperLS3
TH1F * h_sumCutTSmaxAperLS3
Definition: CMTRawAnalyzer.cc:1130
CMTRawAnalyzer::h_bcnbadrate0_depth1_HE
TH1F * h_bcnbadrate0_depth1_HE
Definition: CMTRawAnalyzer.cc:664
CMTRawAnalyzer::h_recSignalEnergy1_HB1
TH2F * h_recSignalEnergy1_HB1
Definition: CMTRawAnalyzer.cc:1655
CMTRawAnalyzer::flagtodefinebadchannel_
int flagtodefinebadchannel_
Definition: CMTRawAnalyzer.cc:87
CMTRawAnalyzer::h_sumPedestalperLS5
TH1F * h_sumPedestalperLS5
Definition: CMTRawAnalyzer.cc:914
CMTRawAnalyzer::alsmin
float alsmin
Definition: CMTRawAnalyzer.cc:1925
CMTRawAnalyzer::h_sumCutTSmaxAperLS5
TH1F * h_sumCutTSmaxAperLS5
Definition: CMTRawAnalyzer.cc:1142
CMTRawAnalyzer::h_recSignalEnergy0_HE2
TH2F * h_recSignalEnergy0_HE2
Definition: CMTRawAnalyzer.cc:1682
CMTRawAnalyzer::h_mapDepth4ADCAmpl12_HO
TH2F * h_mapDepth4ADCAmpl12_HO
Definition: CMTRawAnalyzer.cc:522
CMTRawAnalyzer::nnnnnn5
int nnnnnn5
Definition: CMTRawAnalyzer.cc:261
CMTRawAnalyzer::h_recNoiseEnergy1_HF2
TH2F * h_recNoiseEnergy1_HF2
Definition: CMTRawAnalyzer.cc:1732
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
CMTRawAnalyzer::h_sumTSmeanALS4
TH1F * h_sumTSmeanALS4
Definition: CMTRawAnalyzer.cc:1084
CMTRawAnalyzer::h_ndepthesperamplitudebins_HE
TH1F * h_ndepthesperamplitudebins_HE
Definition: CMTRawAnalyzer.cc:340
CMTRawAnalyzer::tok_hfSignal_
edm::EDGetTokenT< HFRecHitCollection > tok_hfSignal_
Definition: CMTRawAnalyzer.cc:34
CMTRawAnalyzer::h_AmplitudeHEtest6
TH1F * h_AmplitudeHEtest6
Definition: CMTRawAnalyzer.cc:328
CMTRawAnalyzer::h_mapDepth2TSmaxA225_HF
TH2F * h_mapDepth2TSmaxA225_HF
Definition: CMTRawAnalyzer.cc:552
CMTRawAnalyzer::h_recSignalEnergy1_HB2
TH2F * h_recSignalEnergy1_HB2
Definition: CMTRawAnalyzer.cc:1658
CMTRawAnalyzer::h_mapDepth4TSmaxA_HE
TH2F * h_mapDepth4TSmaxA_HE
Definition: CMTRawAnalyzer.cc:750
CMTRawAnalyzer::h_sum0ADCAmplperLS1
TH1F * h_sum0ADCAmplperLS1
Definition: CMTRawAnalyzer.cc:959
CMTRawAnalyzer::calibrTSmaxHOMax_
double calibrTSmaxHOMax_
Definition: CMTRawAnalyzer.cc:230
CMTRawAnalyzer::h_mapWidthCalib_HB
TH2F * h_mapWidthCalib_HB
Definition: CMTRawAnalyzer.cc:832
CMTRawAnalyzer::h_pedestalwaver9_HE
TH1F * h_pedestalwaver9_HE
Definition: CMTRawAnalyzer.cc:1292
CMTRawAnalyzer::pedestalwHFMax_
double pedestalwHFMax_
Definition: CMTRawAnalyzer.cc:265
CMTRawAnalyzer::h_shape0_Ahigh_HB0
TH1F * h_shape0_Ahigh_HB0
Definition: CMTRawAnalyzer.cc:1403
CMTRawAnalyzer::h_sumPedestalLS3
TH1F * h_sumPedestalLS3
Definition: CMTRawAnalyzer.cc:902
CMTRawAnalyzer::h_sumADCAmplEtaPhiLs_orbitNum
TH1F * h_sumADCAmplEtaPhiLs_orbitNum
Definition: CMTRawAnalyzer.cc:302
CMTRawAnalyzer::h_mapDepth1Amplitude_HF
TH2F * h_mapDepth1Amplitude_HF
Definition: CMTRawAnalyzer.cc:558
CMTRawAnalyzer::h_sum0ADCAmplperLSdepth4HEu
TH1F * h_sum0ADCAmplperLSdepth4HEu
Definition: CMTRawAnalyzer.cc:1003
CMTRawAnalyzer::h_FullSignal3D0_HO
TH2F * h_FullSignal3D0_HO
Definition: CMTRawAnalyzer.cc:810
CMTRawAnalyzer::h_shape_Ahigh_HB0
TH1F * h_shape_Ahigh_HB0
Definition: CMTRawAnalyzer.cc:1402
CMTRawAnalyzer::h_FullSignal3D0_HF
TH2F * h_FullSignal3D0_HF
Definition: CMTRawAnalyzer.cc:812
CMTRawAnalyzer::h_maprphinorm_HE7
TH2F * h_maprphinorm_HE7
Definition: CMTRawAnalyzer.cc:1630
CMTRawAnalyzer::h_mapDepth1Ampl_HF
TH2F * h_mapDepth1Ampl_HF
Definition: CMTRawAnalyzer.cc:569
CMTRawAnalyzer::lsdep_cut3_max_HOdepth4_
int lsdep_cut3_max_HOdepth4_
Definition: CMTRawAnalyzer.cc:114
HcalRespCorr::getValue
float getValue() const
Definition: HcalRespCorr.h:19
CMTRawAnalyzer::h_mapDepth1pedestal_HF
TH2F * h_mapDepth1pedestal_HF
Definition: CMTRawAnalyzer.cc:1344
CMTRawAnalyzer::rmsHBMax_
double rmsHBMax_
Definition: CMTRawAnalyzer.cc:173
CMTRawAnalyzer::h_recSignalEnergy1_HE2
TH2F * h_recSignalEnergy1_HE2
Definition: CMTRawAnalyzer.cc:1683
CMTRawAnalyzer::fillDigiAmplitudeQIE11
void fillDigiAmplitudeQIE11(QIE11DataFrame qie11df)
Definition: CMTRawAnalyzer.cc:10821
CMTRawAnalyzer::h_mapDepth5pedestal_HE
TH2F * h_mapDepth5pedestal_HE
Definition: CMTRawAnalyzer.cc:1341
CMTRawAnalyzer::topo
const HcalTopology * topo
Definition: CMTRawAnalyzer.cc:48
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
CMTRawAnalyzer::averNOSIGNALsumamplitude_HB
double averNOSIGNALsumamplitude_HB
Definition: CMTRawAnalyzer.cc:1890
CMTRawAnalyzer::h_sum0ErrorBperLS7
TH1F * h_sum0ErrorBperLS7
Definition: CMTRawAnalyzer.cc:1564
CMTRawAnalyzer::h_recSignalEnergy0_HF2
TH2F * h_recSignalEnergy0_HF2
Definition: CMTRawAnalyzer.cc:1725
CMTRawAnalyzer::h_mapADCCalib_HO
TH2F * h_mapADCCalib_HO
Definition: CMTRawAnalyzer.cc:854
CMTRawAnalyzer::h_mapDepth4TSmaxA_HO
TH2F * h_mapDepth4TSmaxA_HO
Definition: CMTRawAnalyzer.cc:595
CMTRawAnalyzer::h_sumCutADCAmplperLS8
TH1F * h_sumCutADCAmplperLS8
Definition: CMTRawAnalyzer.cc:1062
CMTRawAnalyzer::h_sumamplitude_depth1_HB0
TH1F * h_sumamplitude_depth1_HB0
Definition: CMTRawAnalyzer.cc:1442
CMTRawAnalyzer::h_AmplitudeHBrest6
TH1F * h_AmplitudeHBrest6
Definition: CMTRawAnalyzer.cc:451
CMTRawAnalyzer::h_mapDepth7Amplitude225_HE
TH2F * h_mapDepth7Amplitude225_HE
Definition: CMTRawAnalyzer.cc:775
CMTRawAnalyzer::h_gsmdifferencefit1_HE
TH1F * h_gsmdifferencefit1_HE
Definition: CMTRawAnalyzer.cc:715
CMTRawAnalyzer::h_sum0ADCAmplperLS8_M1
TH1F * h_sum0ADCAmplperLS8_M1
Definition: CMTRawAnalyzer.cc:1045
HcalDetId::ieta
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
CMTRawAnalyzer::h_2DsumADCAmplLS7
TH2F * h_2DsumADCAmplLS7
Definition: CMTRawAnalyzer.cc:1049
CMTRawAnalyzer::h_amplError_HF
TH1F * h_amplError_HF
Definition: CMTRawAnalyzer.cc:394
CMTRawAnalyzer::h_sumCutAmplitudeperLS1
TH1F * h_sumCutAmplitudeperLS1
Definition: CMTRawAnalyzer.cc:1167
CMTRawAnalyzer::h_mapDepth6Ampl_HE
TH2F * h_mapDepth6Ampl_HE
Definition: CMTRawAnalyzer.cc:789
CMTRawAnalyzer::h_sum0TSmaxAperLS1
TH1F * h_sum0TSmaxAperLS1
Definition: CMTRawAnalyzer.cc:1120
CMTRawAnalyzer::h_sumCutADCAmplperLSdepth5HEu
TH1F * h_sumCutADCAmplperLSdepth5HEu
Definition: CMTRawAnalyzer.cc:1000
CMTRawAnalyzer::averSIGNALsumamplitude_HE
double averSIGNALsumamplitude_HE
Definition: CMTRawAnalyzer.cc:1883
CMTRawAnalyzer::counterhfqie10
int counterhfqie10
Definition: CMTRawAnalyzer.cc:255
CMTRawAnalyzer::h_shape_good_channels_HF
TH1F * h_shape_good_channels_HF
Definition: CMTRawAnalyzer.cc:1428
CMTRawAnalyzer::h_mapenophinorm_HE6
TH2F * h_mapenophinorm_HE6
Definition: CMTRawAnalyzer.cc:1615
CMTRawAnalyzer::h_mapDepth1Pedw0_HE
TH2F * h_mapDepth1Pedw0_HE
Definition: CMTRawAnalyzer.cc:1478
CMTRawAnalyzer::h_sumADCAmplperLS6_M1
TH1F * h_sumADCAmplperLS6_M1
Definition: CMTRawAnalyzer.cc:1036
CMTRawAnalyzer::h_mapADCAmplfirstpeak0_HE
TH2F * h_mapADCAmplfirstpeak0_HE
Definition: CMTRawAnalyzer.cc:704
CMTRawAnalyzer::h_mapDepth4AmplE34_HB
TH2F * h_mapDepth4AmplE34_HB
Definition: CMTRawAnalyzer.cc:501
CMTRawAnalyzer::h_sumCutADCAmplperLSdepth3HBu
TH1F * h_sumCutADCAmplperLSdepth3HBu
Definition: CMTRawAnalyzer.cc:1009
CMTRawAnalyzer::h_mapDepth1Pedw1_HF
TH2F * h_mapDepth1Pedw1_HF
Definition: CMTRawAnalyzer.cc:1503
CMTRawAnalyzer::h_2D0sumADCAmplLSdepth3HBu
TH2F * h_2D0sumADCAmplLSdepth3HBu
Definition: CMTRawAnalyzer.cc:945
edm::ParameterSet
Definition: ParameterSet.h:47
CMTRawAnalyzer::nnnnnn6
int nnnnnn6
Definition: CMTRawAnalyzer.cc:262
CMTRawAnalyzer::h_sumPedestalperLS2
TH1F * h_sumPedestalperLS2
Definition: CMTRawAnalyzer.cc:899
CMTRawAnalyzer::h_error4_HE
TH1F * h_error4_HE
Definition: CMTRawAnalyzer.cc:369
CMTRawAnalyzer::h_mapDepth7pedestalw_HE
TH2F * h_mapDepth7pedestalw_HE
Definition: CMTRawAnalyzer.cc:1327
CMTRawAnalyzer::h_recNoiseEnergy2_HE3
TH2F * h_recNoiseEnergy2_HE3
Definition: CMTRawAnalyzer.cc:1708
CMTRawAnalyzer::h_mapDepth1Amplitude_HE
TH2F * h_mapDepth1Amplitude_HE
Definition: CMTRawAnalyzer.cc:762
CMTRawAnalyzer::h_mapDepth3Ampl_HF
TH2F * h_mapDepth3Ampl_HF
Definition: CMTRawAnalyzer.cc:577
CMTRawAnalyzer::h_amplError_HE
TH1F * h_amplError_HE
Definition: CMTRawAnalyzer.cc:373
CMTRawAnalyzer::ratioHEMax_
double ratioHEMax_
Definition: CMTRawAnalyzer.cc:76
CMTRawAnalyzer::h_sum0TSmeanAperLS5
TH1F * h_sum0TSmeanAperLS5
Definition: CMTRawAnalyzer.cc:1095
CMTRawAnalyzer::h_mapTSmeanCalib_HF
TH2F * h_mapTSmeanCalib_HF
Definition: CMTRawAnalyzer.cc:880
CMTRawAnalyzer::h_energyhitSignal_HF
TH1F * h_energyhitSignal_HF
Definition: CMTRawAnalyzer.cc:1649
CMTRawAnalyzer::h_mapDepth2Pedw1_HF
TH2F * h_mapDepth2Pedw1_HF
Definition: CMTRawAnalyzer.cc:1511
CMTRawAnalyzer::h_runbadrate0_depth4_HO
TH1F * h_runbadrate0_depth4_HO
Definition: CMTRawAnalyzer.cc:641
CMTRawAnalyzer::ratioHOMin_
double ratioHOMin_
Definition: CMTRawAnalyzer.cc:79
CMTRawAnalyzer::h_runbadrateC_depth1_HF
TH1F * h_runbadrateC_depth1_HF
Definition: CMTRawAnalyzer.cc:646
CMTRawAnalyzer::h_mapDepth1RADDAM_HE
TH2F * h_mapDepth1RADDAM_HE
Definition: CMTRawAnalyzer.cc:1784
CMTRawAnalyzer::h_shape0_Ahigh_HB3
TH1F * h_shape0_Ahigh_HB3
Definition: CMTRawAnalyzer.cc:1415
CMTRawAnalyzer::h_sumCutADCAmplperLS7u
TH1F * h_sumCutADCAmplperLS7u
Definition: CMTRawAnalyzer.cc:1056
CMTRawAnalyzer::h_sumADCAmplperLSdepth6HEu
TH1F * h_sumADCAmplperLSdepth6HEu
Definition: CMTRawAnalyzer.cc:997
CMTRawAnalyzer::h_error4_HF
TH1F * h_error4_HF
Definition: CMTRawAnalyzer.cc:390
CMTRawAnalyzer::h_TSmeanA_HE
TH1F * h_TSmeanA_HE
Definition: CMTRawAnalyzer.cc:731
CMTRawAnalyzer::h_mapDepth1AmplE34_HE
TH2F * h_mapDepth1AmplE34_HE
Definition: CMTRawAnalyzer.cc:791
CMTRawAnalyzer::h_sumAmplitudeperLS8
TH1F * h_sumAmplitudeperLS8
Definition: CMTRawAnalyzer.cc:1208
CMTRawAnalyzer::h_mapDepth3linADCAmpl12_HE
TH2F * h_mapDepth3linADCAmpl12_HE
Definition: CMTRawAnalyzer.cc:525
CMTRawAnalyzer::h_mapDepth2_HE
TH2F * h_mapDepth2_HE
Definition: CMTRawAnalyzer.cc:799
CMTRawAnalyzer::h_mapDepth4_HF
TH2F * h_mapDepth4_HF
Definition: CMTRawAnalyzer.cc:582
CMTRawAnalyzer::h_sumErrorBperLS3
TH1F * h_sumErrorBperLS3
Definition: CMTRawAnalyzer.cc:1543
CMTRawAnalyzer::h_2DsumADCAmplLS1_LSselected
TH2F * h_2DsumADCAmplLS1_LSselected
Definition: CMTRawAnalyzer.cc:955
CMTRawAnalyzer::calibrRatioHEMax_
double calibrRatioHEMax_
Definition: CMTRawAnalyzer.cc:221
CMTRawAnalyzer::calibrTSmeanHBMin_
double calibrTSmeanHBMin_
Definition: CMTRawAnalyzer.cc:232
CMTRawAnalyzer::h_pedestalaver4_HE
TH1F * h_pedestalaver4_HE
Definition: CMTRawAnalyzer.cc:1285
CMTRawAnalyzer::lsmax_
int lsmax_
Definition: CMTRawAnalyzer.cc:198
CMTRawAnalyzer::h_mapDepth3AmplE34_HF
TH2F * h_mapDepth3AmplE34_HF
Definition: CMTRawAnalyzer.cc:579
CMTRawAnalyzer::h_mapADCAmplsecondpeak_HE
TH2F * h_mapADCAmplsecondpeak_HE
Definition: CMTRawAnalyzer.cc:705
CMTRawAnalyzer::h_mapDepth2Pedw3_HF
TH2F * h_mapDepth2Pedw3_HF
Definition: CMTRawAnalyzer.cc:1513
CMTRawAnalyzer::h_sigLayer2RADDAM5_HED2
TH1F * h_sigLayer2RADDAM5_HED2
Definition: CMTRawAnalyzer.cc:1816
CMTRawAnalyzer::h_bcnnbadchannels_depth1_HB
TH1F * h_bcnnbadchannels_depth1_HB
Definition: CMTRawAnalyzer.cc:654
CMTRawAnalyzer::h_pedvsampl_HB
TH1F * h_pedvsampl_HB
Definition: CMTRawAnalyzer.cc:1375
CMTRawAnalyzer::h_mapDepth1TSmeanA_HE
TH2F * h_mapDepth1TSmeanA_HE
Definition: CMTRawAnalyzer.cc:732
CMTRawAnalyzer::h_amplitudechannel0_HF3
TH2F * h_amplitudechannel0_HF3
Definition: CMTRawAnalyzer.cc:1777
CMTRawAnalyzer::h_mapDepth1TSmeanA_HF
TH2F * h_mapDepth1TSmeanA_HF
Definition: CMTRawAnalyzer.cc:540
CMTRawAnalyzer::h_mapDepth3RADDAM16_HE
TH1F * h_mapDepth3RADDAM16_HE
Definition: CMTRawAnalyzer.cc:1791
CMTRawAnalyzer::h_mapenophinorm2_HE6
TH2F * h_mapenophinorm2_HE6
Definition: CMTRawAnalyzer.cc:1622
CMTRawAnalyzer::h_mapDepth3Ampl047_HF
TH2F * h_mapDepth3Ampl047_HF
Definition: CMTRawAnalyzer.cc:575
CMTRawAnalyzer::h_mapDepth1TSmaxA225_HE
TH2F * h_mapDepth1TSmaxA225_HE
Definition: CMTRawAnalyzer.cc:754
CMTRawAnalyzer::calibrWidthHFMin_
double calibrWidthHFMin_
Definition: CMTRawAnalyzer.cc:243
CMTRawAnalyzer::h_gsmdifferencefit4_HE
TH1F * h_gsmdifferencefit4_HE
Definition: CMTRawAnalyzer.cc:718
CMTRawAnalyzer::h_2DsumAmplLS8
TH2F * h_2DsumAmplLS8
Definition: CMTRawAnalyzer.cc:1264
CMTRawAnalyzer::h_nevents_per_LS
TH1F * h_nevents_per_LS
Definition: CMTRawAnalyzer.cc:887
CMTRawAnalyzer::h_error5_HB
TH1F * h_error5_HB
Definition: CMTRawAnalyzer.cc:352
CMTRawAnalyzer::tok_qie11_
edm::EDGetTokenT< QIE11DigiCollection > tok_qie11_
Definition: CMTRawAnalyzer.cc:29
CMTRawAnalyzer::h_mapDepth3AmplE34_HE
TH2F * h_mapDepth3AmplE34_HE
Definition: CMTRawAnalyzer.cc:793
CMTRawAnalyzer::lsdep_estimator1_HEdepth6_
double lsdep_estimator1_HEdepth6_
Definition: CMTRawAnalyzer.cc:126
CMTRawAnalyzer::fillDigiAmplitude
void fillDigiAmplitude(HBHEDigiCollection::const_iterator &digiItr)
Definition: CMTRawAnalyzer.cc:9861
CMTRawAnalyzer::h_pedestalw0_HO
TH1F * h_pedestalw0_HO
Definition: CMTRawAnalyzer.cc:1311
CMTRawAnalyzer::h_amplitudechannel0_HB2
TH2F * h_amplitudechannel0_HB2
Definition: CMTRawAnalyzer.cc:1739
CMTRawAnalyzer::lsdep_cut1_peak_HOdepth4_
int lsdep_cut1_peak_HOdepth4_
Definition: CMTRawAnalyzer.cc:105
CMTRawAnalyzer::h_pedvsampl_HF
TH1F * h_pedvsampl_HF
Definition: CMTRawAnalyzer.cc:1392
CMTRawAnalyzer::h_pedestal00_HB
TH1F * h_pedestal00_HB
Definition: CMTRawAnalyzer.cc:1349
CMTRawAnalyzer::pedestalHOMax_
double pedestalHOMax_
Definition: CMTRawAnalyzer.cc:270
CMTRawAnalyzer::h_sum0TSmeanAperLS6
TH1F * h_sum0TSmeanAperLS6
Definition: CMTRawAnalyzer.cc:1101
CMTRawAnalyzer::h_amplitudechannel2_HF1
TH2F * h_amplitudechannel2_HF1
Definition: CMTRawAnalyzer.cc:1773
edm::SortedCollection::end
const_iterator end() const
Definition: SortedCollection.h:267
CMTRawAnalyzer::h_recNoiseEnergy1_HB3
TH2F * h_recNoiseEnergy1_HB3
Definition: CMTRawAnalyzer.cc:1673
CMTRawAnalyzer::h_mapDepth3Amplitude_HB
TH2F * h_mapDepth3Amplitude_HB
Definition: CMTRawAnalyzer.cc:483
CMTRawAnalyzer::h_2DAtaildepth1_HB
TH2F * h_2DAtaildepth1_HB
Definition: CMTRawAnalyzer.cc:1606
CMTRawAnalyzer::h_2D0sumTSmaxALS1
TH2F * h_2D0sumTSmaxALS1
Definition: CMTRawAnalyzer.cc:1119
CMTRawAnalyzer::h_ADCAmplrest6_HE
TH1F * h_ADCAmplrest6_HE
Definition: CMTRawAnalyzer.cc:694
CMTRawAnalyzer::h_mapDepth1TSmaxA_HE
TH2F * h_mapDepth1TSmaxA_HE
Definition: CMTRawAnalyzer.cc:747
ndepth
const int ndepth
Definition: CMTRawAnalyzer.h:422
CMTRawAnalyzer::lsdep_estimator2_HFdepth2_
double lsdep_estimator2_HFdepth2_
Definition: CMTRawAnalyzer.cc:141
CMTRawAnalyzer::h_sigLayer1RADDAM6_HED2
TH1F * h_sigLayer1RADDAM6_HED2
Definition: CMTRawAnalyzer.cc:1815
CMTRawAnalyzer::h_sum0ADCAmplperLS6u
TH1F * h_sum0ADCAmplperLS6u
Definition: CMTRawAnalyzer.cc:1015
CMTRawAnalyzer::h_mapDepth4_HO
TH2F * h_mapDepth4_HO
Definition: CMTRawAnalyzer.cc:604
CMTRawAnalyzer::h_pedwvsampl_HB
TH1F * h_pedwvsampl_HB
Definition: CMTRawAnalyzer.cc:1376
CMTRawAnalyzer::h_runnbadchannelsC_depth1_HE
TH1F * h_runnbadchannelsC_depth1_HE
Definition: CMTRawAnalyzer.cc:620
CMTRawAnalyzer::h_mapDepth3TSmaxA_HE
TH2F * h_mapDepth3TSmaxA_HE
Definition: CMTRawAnalyzer.cc:749
CMTRawAnalyzer::h_amplitudechannel1_HE7
TH2F * h_amplitudechannel1_HE7
Definition: CMTRawAnalyzer.cc:1768
CMTRawAnalyzer::h_sumAmplitudeLS6
TH1F * h_sumAmplitudeLS6
Definition: CMTRawAnalyzer.cc:1194
CMTRawAnalyzer::h_AamplitudewithPedSubtr_RADDAM_HEzoom0
TH1F * h_AamplitudewithPedSubtr_RADDAM_HEzoom0
Definition: CMTRawAnalyzer.cc:1796
CMTRawAnalyzer::h_mapDepth2Amplitude_HE
TH2F * h_mapDepth2Amplitude_HE
Definition: CMTRawAnalyzer.cc:763
CMTRawAnalyzer::h_2DsumADCAmplLS8
TH2F * h_2DsumADCAmplLS8
Definition: CMTRawAnalyzer.cc:1059
CMTRawAnalyzer::h_amplitudechannel2_HF3
TH2F * h_amplitudechannel2_HF3
Definition: CMTRawAnalyzer.cc:1779
CMTRawAnalyzer::h_nbadchannels_depth3_HE
TH1F * h_nbadchannels_depth3_HE
Definition: CMTRawAnalyzer.cc:630
CMTRawAnalyzer::h_2DsumAmplLS1
TH2F * h_2DsumAmplLS1
Definition: CMTRawAnalyzer.cc:1213
CMTRawAnalyzer::h_mapDepth3Error_HE
TH2F * h_mapDepth3Error_HE
Definition: CMTRawAnalyzer.cc:377
CMTRawAnalyzer::h_errorGeneral_HO
TH1F * h_errorGeneral_HO
Definition: CMTRawAnalyzer.cc:404
CMTRawAnalyzer::h_sumamplitude_depth2_HB
TH1F * h_sumamplitude_depth2_HB
Definition: CMTRawAnalyzer.cc:1435
CMTRawAnalyzer::h_runnbadchannels_depth1_HE
TH1F * h_runnbadchannels_depth1_HE
Definition: CMTRawAnalyzer.cc:619
CMTRawAnalyzer::h_shape_Alow_HB3
TH1F * h_shape_Alow_HB3
Definition: CMTRawAnalyzer.cc:1416
CMTRawAnalyzer::studyRMSshapeHist_
bool studyRMSshapeHist_
Definition: CMTRawAnalyzer.cc:58
CMTRawAnalyzer::h_mapenophinorm_HE1
TH2F * h_mapenophinorm_HE1
Definition: CMTRawAnalyzer.cc:1610
CMTRawAnalyzer::lsdep_cut3_max_HEdepth1_
int lsdep_cut3_max_HEdepth1_
Definition: CMTRawAnalyzer.cc:109
CMTRawAnalyzer::h_Amplitude_notCapIdErrors_HO4
TH1F * h_Amplitude_notCapIdErrors_HO4
Definition: CMTRawAnalyzer.cc:685
CMTRawAnalyzer::h_bcnnbadchannels_depth2_HE
TH1F * h_bcnnbadchannels_depth2_HE
Definition: CMTRawAnalyzer.cc:657
CMTRawAnalyzer::h_mapGetRMSOverNormalizedSignal_HF
TH2F * h_mapGetRMSOverNormalizedSignal_HF
Definition: CMTRawAnalyzer.cc:1526
CMTRawAnalyzer::h_sumAmplLS7
TH1F * h_sumAmplLS7
Definition: CMTRawAnalyzer.cc:1257
CMTRawAnalyzer::h_nbadchannels_depth2_HF
TH1F * h_nbadchannels_depth2_HF
Definition: CMTRawAnalyzer.cc:648
CMTRawAnalyzer::h_2D0sumErrorBLS4
TH2F * h_2D0sumErrorBLS4
Definition: CMTRawAnalyzer.cc:1545
CMTRawAnalyzer::h_energyhitNoise_HF
TH1F * h_energyhitNoise_HF
Definition: CMTRawAnalyzer.cc:1652
CMTRawAnalyzer::h_energyhitNoise_HE
TH1F * h_energyhitNoise_HE
Definition: CMTRawAnalyzer.cc:1651
CMTRawAnalyzer::h_mapDepth4Ped1_HO
TH2F * h_mapDepth4Ped1_HO
Definition: CMTRawAnalyzer.cc:1515
CMTRawAnalyzer::h_TSmeanCalib_HO
TH1F * h_TSmeanCalib_HO
Definition: CMTRawAnalyzer.cc:861
CMTRawAnalyzer::h_orbitNumvsamplitude_HF
TH1F * h_orbitNumvsamplitude_HF
Definition: CMTRawAnalyzer.cc:284
CMTRawAnalyzer::h_2D0sumTSmaxALS7
TH2F * h_2D0sumTSmaxALS7
Definition: CMTRawAnalyzer.cc:1155
CMTRawAnalyzer::h_fiber0_HE
TH1F * h_fiber0_HE
Definition: CMTRawAnalyzer.cc:382
CMTRawAnalyzer::calibrTSmeanHBMax_
double calibrTSmeanHBMax_
Definition: CMTRawAnalyzer.cc:236
CMTRawAnalyzer::h_runbadrate0_depth2_HE
TH1F * h_runbadrate0_depth2_HE
Definition: CMTRawAnalyzer.cc:629
CMTRawAnalyzer::h_mapDepth7AmplE34_HE
TH2F * h_mapDepth7AmplE34_HE
Definition: CMTRawAnalyzer.cc:797
CMTRawAnalyzer::h_RatioCalib_HF
TH1F * h_RatioCalib_HF
Definition: CMTRawAnalyzer.cc:872
CMTRawAnalyzer::h_Eta16Depth3RADDAM_HED2P
TH1F * h_Eta16Depth3RADDAM_HED2P
Definition: CMTRawAnalyzer.cc:1805
CMTRawAnalyzer::h_AmplitudeHOtest
TH1F * h_AmplitudeHOtest
Definition: CMTRawAnalyzer.cc:330
CMTRawAnalyzer::averSIGNALsumamplitude_HO
double averSIGNALsumamplitude_HO
Definition: CMTRawAnalyzer.cc:1885
CMTRawAnalyzer::h_sumPedestalLS1
TH1F * h_sumPedestalLS1
Definition: CMTRawAnalyzer.cc:892
CMTRawAnalyzer::h_totalAmplitudeHEperEvent
TH1F * h_totalAmplitudeHEperEvent
Definition: CMTRawAnalyzer.cc:336
CMTRawAnalyzer::h_sumAmplitudeperLS2
TH1F * h_sumAmplitudeperLS2
Definition: CMTRawAnalyzer.cc:1172
CMTRawAnalyzer::h_numberofhitsHEtest
TH1F * h_numberofhitsHEtest
Definition: CMTRawAnalyzer.cc:320
CMTRawAnalyzer::h_2D0sumTSmaxALS5
TH2F * h_2D0sumTSmaxALS5
Definition: CMTRawAnalyzer.cc:1143
CMTRawAnalyzer::h_sumPedestalLS7
TH1F * h_sumPedestalLS7
Definition: CMTRawAnalyzer.cc:922
CMTRawAnalyzer::h_bcnnbadchannels_depth3_HE
TH1F * h_bcnnbadchannels_depth3_HE
Definition: CMTRawAnalyzer.cc:658
CMTRawAnalyzer::h_2DsumTSmaxALS5
TH2F * h_2DsumTSmaxALS5
Definition: CMTRawAnalyzer.cc:1140
CMTRawAnalyzer::h_bcnbadrate0_depth3_HE
TH1F * h_bcnbadrate0_depth3_HE
Definition: CMTRawAnalyzer.cc:666
CMTRawAnalyzer::h_2D0sumAmplitudeLS8
TH2F * h_2D0sumAmplitudeLS8
Definition: CMTRawAnalyzer.cc:1210
CMTRawAnalyzer::flagupgradeqie1011_
int flagupgradeqie1011_
Definition: CMTRawAnalyzer.cc:95
HcalDetId::subdet
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
CMTRawAnalyzer::h_mapTSmaxCalib_HB
TH2F * h_mapTSmaxCalib_HB
Definition: CMTRawAnalyzer.cc:826
CMTRawAnalyzer::h_2DsumErrorBLS7
TH2F * h_2DsumErrorBLS7
Definition: CMTRawAnalyzer.cc:1561
CMTRawAnalyzer::h_mapDepth1Error_HB
TH2F * h_mapDepth1Error_HB
Definition: CMTRawAnalyzer.cc:357
CMTRawAnalyzer::nnnnnnhbheqie11
int nnnnnnhbheqie11
Definition: CMTRawAnalyzer.cc:253
CMTRawAnalyzer::TSpeakHBMax_
double TSpeakHBMax_
Definition: CMTRawAnalyzer.cc:182
CMTRawAnalyzer
Definition: CMTRawAnalyzer.cc:13
CMTRawAnalyzer::h_mapADCCalib047_HB
TH2F * h_mapADCCalib047_HB
Definition: CMTRawAnalyzer.cc:819
CMTRawAnalyzer::h_mapDepth1Ped2_HE
TH2F * h_mapDepth1Ped2_HE
Definition: CMTRawAnalyzer.cc:1476
CMTRawAnalyzer::h_sum0ADCAmplperLS3_M1
TH1F * h_sum0ADCAmplperLS3_M1
Definition: CMTRawAnalyzer.cc:1029
CMTRawAnalyzer::h_repetedcapid_HE
TH1F * h_repetedcapid_HE
Definition: CMTRawAnalyzer.cc:385
CMTRawAnalyzer::h_fiber0_HO
TH1F * h_fiber0_HO
Definition: CMTRawAnalyzer.cc:415
CMTRawAnalyzer::h_mapWidthCalib047_HF
TH2F * h_mapWidthCalib047_HF
Definition: CMTRawAnalyzer.cc:882
CMTRawAnalyzer::h_mapenophinorm2_HE7
TH2F * h_mapenophinorm2_HE7
Definition: CMTRawAnalyzer.cc:1623
CMTRawAnalyzer::h_2DsumADCAmplLS1
TH2F * h_2DsumADCAmplLS1
Definition: CMTRawAnalyzer.cc:954
CMTRawAnalyzer::h_2D0sumErrorBLS2
TH2F * h_2D0sumErrorBLS2
Definition: CMTRawAnalyzer.cc:1535
HcalDetId
Definition: HcalDetId.h:12
CMTRawAnalyzer::h_runbadrate0_depth2_HB
TH1F * h_runbadrate0_depth2_HB
Definition: CMTRawAnalyzer.cc:617
createfilelist.int
int
Definition: createfilelist.py:10
CMTRawAnalyzer::counterho
int counterho
Definition: CMTRawAnalyzer.cc:256
CMTRawAnalyzer::h_amplitudechannel0_HE6
TH2F * h_amplitudechannel0_HE6
Definition: CMTRawAnalyzer.cc:1764
CMTRawAnalyzer::calibrTSmaxHOMin_
double calibrTSmaxHOMin_
Definition: CMTRawAnalyzer.cc:226
iEvent
int iEvent
Definition: GenABIO.cc:224
CMTRawAnalyzer::h_recNoiseEnergy0_HB4
TH2F * h_recNoiseEnergy0_HB4
Definition: CMTRawAnalyzer.cc:1675
CMTRawAnalyzer::h_mapDepth3Ampl047_HB
TH2F * h_mapDepth3Ampl047_HB
Definition: CMTRawAnalyzer.cc:496
CMTRawAnalyzer::h_sum0PedestalperLS5
TH1F * h_sum0PedestalperLS5
Definition: CMTRawAnalyzer.cc:916
CMTRawAnalyzer::h_fiber2_HB
TH1F * h_fiber2_HB
Definition: CMTRawAnalyzer.cc:363
CMTRawAnalyzer::h_2DsumADCAmplEtaPhiLs2
TH2F * h_2DsumADCAmplEtaPhiLs2
Definition: CMTRawAnalyzer.cc:290
CMTRawAnalyzer::h_error3_HF
TH1F * h_error3_HF
Definition: CMTRawAnalyzer.cc:389
CMTRawAnalyzer::pedestalHBMax_
double pedestalHBMax_
Definition: CMTRawAnalyzer.cc:267
CMTRawAnalyzer::h_recNoiseEnergy2_HE6
TH2F * h_recNoiseEnergy2_HE6
Definition: CMTRawAnalyzer.cc:1717
CMTRawAnalyzer::studyRatioShapeHist_
bool studyRatioShapeHist_
Definition: CMTRawAnalyzer.cc:59
CMTRawAnalyzer::h_mapDepth4Ampl047_HO
TH2F * h_mapDepth4Ampl047_HO
Definition: CMTRawAnalyzer.cc:601
CMTRawAnalyzer::h_TSmaxA_HO
TH1F * h_TSmaxA_HO
Definition: CMTRawAnalyzer.cc:594
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
CMTRawAnalyzer::h_bcnnbadchannels_depth1_HF
TH1F * h_bcnnbadchannels_depth1_HF
Definition: CMTRawAnalyzer.cc:660
CMTRawAnalyzer::h_Amplitude_notCapIdErrors_HB1
TH1F * h_Amplitude_notCapIdErrors_HB1
Definition: CMTRawAnalyzer.cc:678
CMTRawAnalyzer::averSIGNALoccupancy_HB
double averSIGNALoccupancy_HB
Definition: CMTRawAnalyzer.cc:1878
CMTRawAnalyzer::h_error3_HE
TH1F * h_error3_HE
Definition: CMTRawAnalyzer.cc:368
CMTRawAnalyzer::h_mapDepth2Ped1_HB
TH2F * h_mapDepth2Ped1_HB
Definition: CMTRawAnalyzer.cc:1467
CMTRawAnalyzer::h2_pedwvsampl_HE
TH2F * h2_pedwvsampl_HE
Definition: CMTRawAnalyzer.cc:1385
CMTRawAnalyzer::h_sumADCAmplperLS2
TH1F * h_sumADCAmplperLS2
Definition: CMTRawAnalyzer.cc:963
CMTRawAnalyzer::h_mapDepth2Ped3_HB
TH2F * h_mapDepth2Ped3_HB
Definition: CMTRawAnalyzer.cc:1469
CMTRawAnalyzer::h_AmplitudeHBrest1
TH1F * h_AmplitudeHBrest1
Definition: CMTRawAnalyzer.cc:450
CMTRawAnalyzer::h_bcnvsamplitude0_HE
TH1F * h_bcnvsamplitude0_HE
Definition: CMTRawAnalyzer.cc:275
CMTRawAnalyzer::lsdep_cut3_max_HEdepth3_
int lsdep_cut3_max_HEdepth3_
Definition: CMTRawAnalyzer.cc:111
CMTRawAnalyzer::h_sumTSmeanAperLS6
TH1F * h_sumTSmeanAperLS6
Definition: CMTRawAnalyzer.cc:1098
CMTRawAnalyzer::h_sum0ADCAmplperLS6_P2
TH1F * h_sum0ADCAmplperLS6_P2
Definition: CMTRawAnalyzer.cc:1035
CMTRawAnalyzer::h_2D0sumAmplLS8
TH2F * h_2D0sumAmplLS8
Definition: CMTRawAnalyzer.cc:1267
CMTRawAnalyzer::h_mapDepth6pedestalw_HE
TH2F * h_mapDepth6pedestalw_HE
Definition: CMTRawAnalyzer.cc:1326
CMTRawAnalyzer::h_sumADCAmplperLS3_P1
TH1F * h_sumADCAmplperLS3_P1
Definition: CMTRawAnalyzer.cc:1024
CMTRawAnalyzer::h_sumCutTSmaxAperLS4
TH1F * h_sumCutTSmaxAperLS4
Definition: CMTRawAnalyzer.cc:1136
CMTRawAnalyzer::h_sumCutTSmeanAperLS3
TH1F * h_sumCutTSmeanAperLS3
Definition: CMTRawAnalyzer.cc:1081
CMTRawAnalyzer::h_mapDepth1ADCAmpl12_HF
TH2F * h_mapDepth1ADCAmpl12_HF
Definition: CMTRawAnalyzer.cc:518
CMTRawAnalyzer::h_totalAmplitudeHO
TH1F * h_totalAmplitudeHO
Definition: CMTRawAnalyzer.cc:334
CMTRawAnalyzer::h_mapDepth4Amplitude_HO
TH2F * h_mapDepth4Amplitude_HO
Definition: CMTRawAnalyzer.cc:598
CMTRawAnalyzer::h_shape0_bad_channels_HB
TH1F * h_shape0_bad_channels_HB
Definition: CMTRawAnalyzer.cc:1419
CMTRawAnalyzer::h_mapDepth1Ped3_HB
TH2F * h_mapDepth1Ped3_HB
Definition: CMTRawAnalyzer.cc:1461
CMTRawAnalyzer::h_ADCAmplZoom1_HB
TH1F * h_ADCAmplZoom1_HB
Definition: CMTRawAnalyzer.cc:447
HcalElectronicsId::htrTopBottom
constexpr int htrTopBottom() const
get the htr top/bottom (1=top/0=bottom), valid for VME
Definition: HcalElectronicsId.h:103
CMTRawAnalyzer::h_nbadchannels_depth1_HF
TH1F * h_nbadchannels_depth1_HF
Definition: CMTRawAnalyzer.cc:642
CMTRawAnalyzer::h_mapDepth3_HB
TH2F * h_mapDepth3_HB
Definition: CMTRawAnalyzer.cc:502
photonIsolationHIProducer_cfi.ho
ho
Definition: photonIsolationHIProducer_cfi.py:10
CMTRawAnalyzer::h_sum0TSmeanAperLS4
TH1F * h_sum0TSmeanAperLS4
Definition: CMTRawAnalyzer.cc:1089
CMTRawAnalyzer::h_mapDepth4ADCAmpl_HO
TH2F * h_mapDepth4ADCAmpl_HO
Definition: CMTRawAnalyzer.cc:589
CMTRawAnalyzer::h_sumCutTSmeanAperLS7
TH1F * h_sumCutTSmeanAperLS7
Definition: CMTRawAnalyzer.cc:1105
CMTRawAnalyzer::h_Ampl_HF
TH1F * h_Ampl_HF
Definition: CMTRawAnalyzer.cc:566
CMTRawAnalyzer::h_sumamplitude_depth4_HO1
TH1F * h_sumamplitude_depth4_HO1
Definition: CMTRawAnalyzer.cc:1457
CMTRawAnalyzer::h_pedwvsampl_HE
TH1F * h_pedwvsampl_HE
Definition: CMTRawAnalyzer.cc:1387
CMTRawAnalyzer::h_sumCutADCAmplperLS7
TH1F * h_sumCutADCAmplperLS7
Definition: CMTRawAnalyzer.cc:1053
CMTRawAnalyzer::h_totalAmplitudeHOperEvent
TH1F * h_totalAmplitudeHOperEvent
Definition: CMTRawAnalyzer.cc:338
CMTRawAnalyzer::h_mapDepth4Ampl_HB
TH2F * h_mapDepth4Ampl_HB
Definition: CMTRawAnalyzer.cc:499
CMTRawAnalyzer::h_mapDepth1ADCAmpl225Copy_HB
TH2F * h_mapDepth1ADCAmpl225Copy_HB
Definition: CMTRawAnalyzer.cc:420
CMTRawAnalyzer::h_mapDepth2AmplE34_HE
TH2F * h_mapDepth2AmplE34_HE
Definition: CMTRawAnalyzer.cc:792
CMTRawAnalyzer::h_ADCAmpl345Zoom1_HE
TH1F * h_ADCAmpl345Zoom1_HE
Definition: CMTRawAnalyzer.cc:437
CMTRawAnalyzer::nevcounter00
int nevcounter00
Definition: CMTRawAnalyzer.cc:1877
CMTRawAnalyzer::h_ADCAmpl345_HE
TH1F * h_ADCAmpl345_HE
Definition: CMTRawAnalyzer.cc:438
CMTRawAnalyzer::rmsHFMax_
double rmsHFMax_
Definition: CMTRawAnalyzer.cc:177
CMTRawAnalyzer::h_error3
TH1F * h_error3
Definition: CMTRawAnalyzer.cc:344
CMTRawAnalyzer::h_sumAmplitudeLS5
TH1F * h_sumAmplitudeLS5
Definition: CMTRawAnalyzer.cc:1188
CMTRawAnalyzer::h_sumTSmeanALS7
TH1F * h_sumTSmeanALS7
Definition: CMTRawAnalyzer.cc:1102
analyze
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
CMTRawAnalyzer::h_pedvsampl0_HO
TH1F * h_pedvsampl0_HO
Definition: CMTRawAnalyzer.cc:1400
CMTRawAnalyzer::h_FullSignal3D_HB
TH2F * h_FullSignal3D_HB
Definition: CMTRawAnalyzer.cc:805
CMTRawAnalyzer::h_2DsumAmplitudeLS4
TH2F * h_2DsumAmplitudeLS4
Definition: CMTRawAnalyzer.cc:1183
CMTRawAnalyzer::h_sumPedestalperLS4
TH1F * h_sumPedestalperLS4
Definition: CMTRawAnalyzer.cc:909
CMTRawAnalyzer::h_timecorr_HF
TH1F * h_timecorr_HF
Definition: CMTRawAnalyzer.cc:1366
CMTRawAnalyzer::h_mapDepth6ADCAmpl225Copy_HE
TH2F * h_mapDepth6ADCAmpl225Copy_HE
Definition: CMTRawAnalyzer.cc:429
CMTRawAnalyzer::h_recNoiseEnergy0_HE5
TH2F * h_recNoiseEnergy0_HE5
Definition: CMTRawAnalyzer.cc:1712
CMTRawAnalyzer::h_mapDepth2TSmaxA225_HE
TH2F * h_mapDepth2TSmaxA225_HE
Definition: CMTRawAnalyzer.cc:755
CMTRawAnalyzer::h_error7_HF
TH1F * h_error7_HF
Definition: CMTRawAnalyzer.cc:393
CMTRawAnalyzer::h_mapDepth4ADCAmpl_HF
TH2F * h_mapDepth4ADCAmpl_HF
Definition: CMTRawAnalyzer.cc:536
CMTRawAnalyzer::h_amplitudechannel0_HF4
TH2F * h_amplitudechannel0_HF4
Definition: CMTRawAnalyzer.cc:1780
HcalTimeCorr::getValue
float getValue() const
Definition: HcalTimeCorr.h:19
CMTRawAnalyzer::TSpeakHFMax_
double TSpeakHFMax_
Definition: CMTRawAnalyzer.cc:186
CMTRawAnalyzer::h_error7_HB
TH1F * h_error7_HB
Definition: CMTRawAnalyzer.cc:354
CMTRawAnalyzer::h_mapDepth4Pedw2_HO
TH2F * h_mapDepth4Pedw2_HO
Definition: CMTRawAnalyzer.cc:1520
CMTRawAnalyzer::h_Amplitude_notCapIdErrors_HB2
TH1F * h_Amplitude_notCapIdErrors_HB2
Definition: CMTRawAnalyzer.cc:679
CMTRawAnalyzer::h_mapDepth3pedestalw_HE
TH2F * h_mapDepth3pedestalw_HE
Definition: CMTRawAnalyzer.cc:1323
CMTRawAnalyzer::h_sumADCAmplEtaPhiLs_lscounterM1
TH1F * h_sumADCAmplEtaPhiLs_lscounterM1
Definition: CMTRawAnalyzer.cc:299
CMTRawAnalyzer::h_sumPedestalLS5
TH1F * h_sumPedestalLS5
Definition: CMTRawAnalyzer.cc:912
adc2fC_QIE10
double adc2fC_QIE10[256]
Definition: CMTRawAnalyzer.h:72
EcalCondDBWriter_cfi.pedestal
pedestal
Definition: EcalCondDBWriter_cfi.py:49
edm::EventSetup
Definition: EventSetup.h:57
CMTRawAnalyzer::h_sumCutAmplitudeperLS6
TH1F * h_sumCutAmplitudeperLS6
Definition: CMTRawAnalyzer.cc:1197
CMTRawAnalyzer::h_sumTSmaxAperLS8
TH1F * h_sumTSmaxAperLS8
Definition: CMTRawAnalyzer.cc:1159
CMTRawAnalyzer::h_mapWidthCalib047_HE
TH2F * h_mapWidthCalib047_HE
Definition: CMTRawAnalyzer.cc:848
CaloSamples
Definition: CaloSamples.h:14
CMTRawAnalyzer::h_error2_HO
TH1F * h_error2_HO
Definition: CMTRawAnalyzer.cc:406
CMTRawAnalyzer::h_maxxOCCUP_HB
TH1F * h_maxxOCCUP_HB
Definition: CMTRawAnalyzer.cc:1590
CMTRawAnalyzer::h_2DsumADCAmplLS6
TH2F * h_2DsumADCAmplLS6
Definition: CMTRawAnalyzer.cc:989
CMTRawAnalyzer::h_error3_HO
TH1F * h_error3_HO
Definition: CMTRawAnalyzer.cc:407
CMTRawAnalyzer::h_2DsumADCAmplLS8_LSselected
TH2F * h_2DsumADCAmplLS8_LSselected
Definition: CMTRawAnalyzer.cc:1060
CMTRawAnalyzer::h_runbadrate_depth2_HB
TH1F * h_runbadrate_depth2_HB
Definition: CMTRawAnalyzer.cc:615
CMTRawAnalyzer::h_pedestal1_HB
TH1F * h_pedestal1_HB
Definition: CMTRawAnalyzer.cc:1270
CMTRawAnalyzer::h_averSIGNALoccupancy_HO
TH1F * h_averSIGNALoccupancy_HO
Definition: CMTRawAnalyzer.cc:1573
CMTRawAnalyzer::flagIterativeMethodCalibrationGroupDigi_
int flagIterativeMethodCalibrationGroupDigi_
Definition: CMTRawAnalyzer.cc:84
CMTRawAnalyzer::h2_pedvsampl_HE
TH2F * h2_pedvsampl_HE
Definition: CMTRawAnalyzer.cc:1384
CMTRawAnalyzer::studyRunDependenceHist_
bool studyRunDependenceHist_
Definition: CMTRawAnalyzer.cc:56
CMTRawAnalyzer::h_sum0AmplperLS4
TH1F * h_sum0AmplperLS4
Definition: CMTRawAnalyzer.cc:1236
CMTRawAnalyzer::h_sumADCAmplperLS3
TH1F * h_sumADCAmplperLS3
Definition: CMTRawAnalyzer.cc:970
CMTRawAnalyzer::h_mapCapCalib047_HE
TH2F * h_mapCapCalib047_HE
Definition: CMTRawAnalyzer.cc:814
CMTRawAnalyzer::h_mapRatioCalib_HF
TH2F * h_mapRatioCalib_HF
Definition: CMTRawAnalyzer.cc:874
CMTRawAnalyzer::h_orbitNumvsamplitude_HE
TH1F * h_orbitNumvsamplitude_HE
Definition: CMTRawAnalyzer.cc:282
CMTRawAnalyzer::h_shape_bad_channels_HB
TH1F * h_shape_bad_channels_HB
Definition: CMTRawAnalyzer.cc:1418
CMTRawAnalyzer::h_mapDepth1Ampl047_HF
TH2F * h_mapDepth1Ampl047_HF
Definition: CMTRawAnalyzer.cc:567
CMTRawAnalyzer::h_Amplitude_notCapIdErrors_HF1
TH1F * h_Amplitude_notCapIdErrors_HF1
Definition: CMTRawAnalyzer.cc:683
CMTRawAnalyzer::h_mapADCAmpl11secondpeak0_HE
TH2F * h_mapADCAmpl11secondpeak0_HE
Definition: CMTRawAnalyzer.cc:710
HcalLUTCorr
Definition: HcalLUTCorr.h:15
CMTRawAnalyzer::h_mapDepth2Amplitude225_HB
TH2F * h_mapDepth2Amplitude225_HB
Definition: CMTRawAnalyzer.cc:482
CMTRawAnalyzer::h_sumamplitude_depth1_HB1
TH1F * h_sumamplitude_depth1_HB1
Definition: CMTRawAnalyzer.cc:1450
CMTRawAnalyzer::lsmin_
int lsmin_
Definition: CMTRawAnalyzer.cc:197
CMTRawAnalyzer::h_mapDepth3TSmaxA225_HF
TH2F * h_mapDepth3TSmaxA225_HF
Definition: CMTRawAnalyzer.cc:555
CMTRawAnalyzer::h_energyhitSignal_HE
TH1F * h_energyhitSignal_HE
Definition: CMTRawAnalyzer.cc:1648
CMTRawAnalyzer::pedestalwHEMax_
double pedestalwHEMax_
Definition: CMTRawAnalyzer.cc:264
CMTRawAnalyzer::h_mapDepth4Pedw0_HO
TH2F * h_mapDepth4Pedw0_HO
Definition: CMTRawAnalyzer.cc:1518
CMTRawAnalyzer::averNOSIGNALoccupancy_HF
double averNOSIGNALoccupancy_HF
Definition: CMTRawAnalyzer.cc:1888
QIE11DataFrame::detid
constexpr DetId detid() const
Get the detector id.
Definition: QIE11DataFrame.h:67
get
#define get
CMTRawAnalyzer::h_2DsumADCAmplLS7_LSselected
TH2F * h_2DsumADCAmplLS7_LSselected
Definition: CMTRawAnalyzer.cc:1050
CMTRawAnalyzer::h_sumADCAmplLS5
TH1F * h_sumADCAmplLS5
Definition: CMTRawAnalyzer.cc:981
CMTRawAnalyzer::h_sumTSmeanAperLS8
TH1F * h_sumTSmeanAperLS8
Definition: CMTRawAnalyzer.cc:1110
CMTRawAnalyzer::ratioHBMax_
double ratioHBMax_
Definition: CMTRawAnalyzer.cc:74
CMTRawAnalyzer::h_eventoccupancy_HO
TH1F * h_eventoccupancy_HO
Definition: CMTRawAnalyzer.cc:1605
CMTRawAnalyzer::h_amplError_HB
TH1F * h_amplError_HB
Definition: CMTRawAnalyzer.cc:355
CMTRawAnalyzer::h_sumTSmaxAperLS3
TH1F * h_sumTSmaxAperLS3
Definition: CMTRawAnalyzer.cc:1129
CMTRawAnalyzer::nevent50
int nevent50
Definition: CMTRawAnalyzer.cc:250
CMTRawAnalyzer::h_sumCutADCAmplperLS2
TH1F * h_sumCutADCAmplperLS2
Definition: CMTRawAnalyzer.cc:964
CMTRawAnalyzer::pedestalwHOMax_
double pedestalwHOMax_
Definition: CMTRawAnalyzer.cc:266
CMTRawAnalyzer::h_RatioOccupancy_HBM
TH1F * h_RatioOccupancy_HBM
Definition: CMTRawAnalyzer.cc:1250
CMTRawAnalyzer::h_mapDepth7Ampl_HE
TH2F * h_mapDepth7Ampl_HE
Definition: CMTRawAnalyzer.cc:790
CMTRawAnalyzer::h_sum0ADCAmplperLS3
TH1F * h_sum0ADCAmplperLS3
Definition: CMTRawAnalyzer.cc:973
CMTRawAnalyzer::h_sumTSmaxALS1
TH1F * h_sumTSmaxALS1
Definition: CMTRawAnalyzer.cc:1114
CMTRawAnalyzer::lsdep_estimator3_HEdepth2_
double lsdep_estimator3_HEdepth2_
Definition: CMTRawAnalyzer.cc:147
CMTRawAnalyzer::h_sumTSmeanALS2
TH1F * h_sumTSmeanALS2
Definition: CMTRawAnalyzer.cc:1072
CMTRawAnalyzer::h_pedestal3_HE
TH1F * h_pedestal3_HE
Definition: CMTRawAnalyzer.cc:1284
CMTRawAnalyzer::h_pedestalw2_HE
TH1F * h_pedestalw2_HE
Definition: CMTRawAnalyzer.cc:1289
CMTRawAnalyzer::h_mapTSmeanCalib_HO
TH2F * h_mapTSmeanCalib_HO
Definition: CMTRawAnalyzer.cc:863
CMTRawAnalyzer::h_NphiForEta16Depth3RADDAM_HED2
TH1F * h_NphiForEta16Depth3RADDAM_HED2
Definition: CMTRawAnalyzer.cc:1803
CMTRawAnalyzer::h_2D0sumAmplitudeLS2
TH2F * h_2D0sumAmplitudeLS2
Definition: CMTRawAnalyzer.cc:1174
CMTRawAnalyzer::h_sumTSmeanAperLS1_LSselected
TH1F * h_sumTSmeanAperLS1_LSselected
Definition: CMTRawAnalyzer.cc:1068
CMTRawAnalyzer::h_recNoiseEnergy1_HE1
TH2F * h_recNoiseEnergy1_HE1
Definition: CMTRawAnalyzer.cc:1701
CMTRawAnalyzer::h_sumphiEta16Depth3RADDAM_HED2P
TH1F * h_sumphiEta16Depth3RADDAM_HED2P
Definition: CMTRawAnalyzer.cc:1804
CMTRawAnalyzer::h_mapTSmaxCalib_HE
TH2F * h_mapTSmaxCalib_HE
Definition: CMTRawAnalyzer.cc:843
CMTRawAnalyzer::h_amplitudechannel2_HF4
TH2F * h_amplitudechannel2_HF4
Definition: CMTRawAnalyzer.cc:1782
CMTRawAnalyzer::lsdep_estimator5_HOdepth4_
double lsdep_estimator5_HOdepth4_
Definition: CMTRawAnalyzer.cc:169
CMTRawAnalyzer::h_2D0sumErrorBLS8
TH2F * h_2D0sumErrorBLS8
Definition: CMTRawAnalyzer.cc:1565
CMTRawAnalyzer::h_ADCAmplrest6_HO
TH1F * h_ADCAmplrest6_HO
Definition: CMTRawAnalyzer.cc:586
CMTRawAnalyzer::h_mapDepth4Pedw3_HO
TH2F * h_mapDepth4Pedw3_HO
Definition: CMTRawAnalyzer.cc:1521
CMTRawAnalyzer::h_FullSignal3D_HE
TH2F * h_FullSignal3D_HE
Definition: CMTRawAnalyzer.cc:807
HcalQIECoder
Definition: HcalQIECoder.h:20
CMTRawAnalyzer::fillDigiAmplitudeHO
void fillDigiAmplitudeHO(HODigiCollection::const_iterator &digiItr)
Definition: CMTRawAnalyzer.cc:12955
CMTRawAnalyzer::h_runbadrate0_depth1_HF
TH1F * h_runbadrate0_depth1_HF
Definition: CMTRawAnalyzer.cc:647
CMTRawAnalyzer::h_mapDepth2Pedw0_HF
TH2F * h_mapDepth2Pedw0_HF
Definition: CMTRawAnalyzer.cc:1510
CMTRawAnalyzer::h_sumPedestalLS6
TH1F * h_sumPedestalLS6
Definition: CMTRawAnalyzer.cc:917
CMTRawAnalyzer::h_bcnnbadchannels_depth4_HO
TH1F * h_bcnnbadchannels_depth4_HO
Definition: CMTRawAnalyzer.cc:659
CMTRawAnalyzer::h_averNOSIGNALoccupancy_HB
TH1F * h_averNOSIGNALoccupancy_HB
Definition: CMTRawAnalyzer.cc:1578
CMTRawAnalyzer::h_mapDepth4ADCAmpl225Copy_HB
TH2F * h_mapDepth4ADCAmpl225Copy_HB
Definition: CMTRawAnalyzer.cc:423
CMTRawAnalyzer::h_recNoiseEnergy1_HE6
TH2F * h_recNoiseEnergy1_HE6
Definition: CMTRawAnalyzer.cc:1716
CMTRawAnalyzer::h_2DsumADCAmplLS3
TH2F * h_2DsumADCAmplLS3
Definition: CMTRawAnalyzer.cc:968
CMTRawAnalyzer::lsdep_estimator1_HFdepth2_
double lsdep_estimator1_HFdepth2_
Definition: CMTRawAnalyzer.cc:121
CMTRawAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CMTRawAnalyzer.cc:3958
CMTRawAnalyzer::h_pedvsampl_HO
TH1F * h_pedvsampl_HO
Definition: CMTRawAnalyzer.cc:1398
CMTRawAnalyzer::h_averNOSIGNALsumamplitude_HB
TH1F * h_averNOSIGNALsumamplitude_HB
Definition: CMTRawAnalyzer.cc:1582
CMTRawAnalyzer::h_2DsumADCAmplEtaPhiLs1
TH2F * h_2DsumADCAmplEtaPhiLs1
Definition: CMTRawAnalyzer.cc:289
CMTRawAnalyzer::h_sumTSmaxALS8
TH1F * h_sumTSmaxALS8
Definition: CMTRawAnalyzer.cc:1157
CMTRawAnalyzer::h_mapDepth2Ped3_HF
TH2F * h_mapDepth2Ped3_HF
Definition: CMTRawAnalyzer.cc:1509
adc2fC_QIE11_shunt1
const double adc2fC_QIE11_shunt1[256]
Definition: CMTRawAnalyzer.h:356
CMTRawAnalyzer::h_TSmaxCalib_HF
TH1F * h_TSmaxCalib_HF
Definition: CMTRawAnalyzer.cc:875
CMTRawAnalyzer::h_runnbadchannelsC_depth1_HB
TH1F * h_runnbadchannelsC_depth1_HB
Definition: CMTRawAnalyzer.cc:608
CMTRawAnalyzer::h_bcnbadrate0_depth1_HF
TH1F * h_bcnbadrate0_depth1_HF
Definition: CMTRawAnalyzer.cc:668
CMTRawAnalyzer::h_bcnbadrate0_depth2_HE
TH1F * h_bcnbadrate0_depth2_HE
Definition: CMTRawAnalyzer.cc:665
CMTRawAnalyzer::h_2D0sumADCAmplLSdepth6HEu
TH2F * h_2D0sumADCAmplLSdepth6HEu
Definition: CMTRawAnalyzer.cc:937
CMTRawAnalyzer::h_2DsumADCAmplLSdepth5HEu
TH2F * h_2DsumADCAmplLSdepth5HEu
Definition: CMTRawAnalyzer.cc:934
HcalLogicalMap::getHcalFrontEndId
const HcalFrontEndId getHcalFrontEndId(const DetId &)
Definition: HcalLogicalMap.cc:269
CMTRawAnalyzer::h_recNoiseEnergy0_HB3
TH2F * h_recNoiseEnergy0_HB3
Definition: CMTRawAnalyzer.cc:1672
CMTRawAnalyzer::h_mapADCAmpl11firstpeak_HE
TH2F * h_mapADCAmpl11firstpeak_HE
Definition: CMTRawAnalyzer.cc:707
CMTRawAnalyzer::h_mapDepth4Error_HO
TH2F * h_mapDepth4Error_HO
Definition: CMTRawAnalyzer.cc:414
alignCSCRings.r
r
Definition: alignCSCRings.py:93
CMTRawAnalyzer::h_corrforxaMAIN_HE
TH1F * h_corrforxaMAIN_HE
Definition: CMTRawAnalyzer.cc:687
CMTRawAnalyzer::h_bcnbadrate0_depth2_HF
TH1F * h_bcnbadrate0_depth2_HF
Definition: CMTRawAnalyzer.cc:669
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
CMTRawAnalyzer::calibrTSmaxHEMax_
double calibrTSmaxHEMax_
Definition: CMTRawAnalyzer.cc:229
CMTRawAnalyzer::h_2D0sumTSmaxALS6
TH2F * h_2D0sumTSmaxALS6
Definition: CMTRawAnalyzer.cc:1149
CMTRawAnalyzer::h_sum0PedestalperLS8
TH1F * h_sum0PedestalperLS8
Definition: CMTRawAnalyzer.cc:931
CMTRawAnalyzer::h_pedestal2_HE
TH1F * h_pedestal2_HE
Definition: CMTRawAnalyzer.cc:1283
PedestalClient_cfi.gain
gain
Definition: PedestalClient_cfi.py:37
CMTRawAnalyzer::h_repetedcapid_HO
TH1F * h_repetedcapid_HO
Definition: CMTRawAnalyzer.cc:418
photonIsolationHIProducer_cfi.hbhe
hbhe
Definition: photonIsolationHIProducer_cfi.py:8
CMTRawAnalyzer::h_recNoiseEnergy1_HB1
TH2F * h_recNoiseEnergy1_HB1
Definition: CMTRawAnalyzer.cc:1667
CMTRawAnalyzer::h_2D0sumErrorBLS3
TH2F * h_2D0sumErrorBLS3
Definition: CMTRawAnalyzer.cc:1540
CMTRawAnalyzer::h_sum0PedestalperLS2
TH1F * h_sum0PedestalperLS2
Definition: CMTRawAnalyzer.cc:901
CMTRawAnalyzer::h_mapDepth2TSmeanA_HE
TH2F * h_mapDepth2TSmeanA_HE
Definition: CMTRawAnalyzer.cc:733
CMTRawAnalyzer::flaguseshunt_
int flaguseshunt_
Definition: CMTRawAnalyzer.cc:97
CMTRawAnalyzer::h_sum0ADCAmplperLS6_M1
TH1F * h_sum0ADCAmplperLS6_M1
Definition: CMTRawAnalyzer.cc:1037
CMTRawAnalyzer::h_mapDepth2Amplitude225_HE
TH2F * h_mapDepth2Amplitude225_HE
Definition: CMTRawAnalyzer.cc:770
CMTRawAnalyzer::h_TSmaxCalib_HO
TH1F * h_TSmaxCalib_HO
Definition: CMTRawAnalyzer.cc:858
CMTRawAnalyzer::pedestalHEMax_
double pedestalHEMax_
Definition: CMTRawAnalyzer.cc:268
CMTRawAnalyzer::h_2DsumTSmaxALS2
TH2F * h_2DsumTSmaxALS2
Definition: CMTRawAnalyzer.cc:1122
HcalForward
Definition: HcalAssistant.h:36
CMTRawAnalyzer::h_mapDepth3TSmeanA225_HE
TH2F * h_mapDepth3TSmeanA225_HE
Definition: CMTRawAnalyzer.cc:741
CMTRawAnalyzer::fillDigiAmplitudeHF
void fillDigiAmplitudeHF(HFDigiCollection::const_iterator &digiItr)
Definition: CMTRawAnalyzer.cc:11962
CMTRawAnalyzer::h_recNoiseEnergy1_HE4
TH2F * h_recNoiseEnergy1_HE4
Definition: CMTRawAnalyzer.cc:1710
CMTRawAnalyzer::h_ADCAmplZoom1_HF
TH1F * h_ADCAmplZoom1_HF
Definition: CMTRawAnalyzer.cc:530
CMTRawAnalyzer::h_sumCutADCAmplperLS1
TH1F * h_sumCutADCAmplperLS1
Definition: CMTRawAnalyzer.cc:957
CMTRawAnalyzer::fillDigiErrorsQIE11
void fillDigiErrorsQIE11(QIE11DataFrame qie11df)
Definition: CMTRawAnalyzer.cc:9400
CMTRawAnalyzer::h_mapADCCalib_HE
TH2F * h_mapADCCalib_HE
Definition: CMTRawAnalyzer.cc:837
CMTRawAnalyzer::maxxOCCUP4
double maxxOCCUP4
Definition: CMTRawAnalyzer.cc:1901
CMTRawAnalyzer::h_sumADCAmplLS1copy4
TH1F * h_sumADCAmplLS1copy4
Definition: CMTRawAnalyzer.cc:951
CMTRawAnalyzer::lsdep_estimator1_HEdepth5_
double lsdep_estimator1_HEdepth5_
Definition: CMTRawAnalyzer.cc:125
CMTRawAnalyzer::h_sum0AmplitudeperLS3
TH1F * h_sum0AmplitudeperLS3
Definition: CMTRawAnalyzer.cc:1181
CMTRawAnalyzer::h_mapDepth3Ampl_HE
TH2F * h_mapDepth3Ampl_HE
Definition: CMTRawAnalyzer.cc:786
CMTRawAnalyzer::h_ADCAmpl345Zoom1_HB
TH1F * h_ADCAmpl345Zoom1_HB
Definition: CMTRawAnalyzer.cc:440
CMTRawAnalyzer::h_mapAiForLS_good_HB
TH2F * h_mapAiForLS_good_HB
Definition: CMTRawAnalyzer.cc:305
CMTRawAnalyzer::h_TSmaxCalib_HB
TH1F * h_TSmaxCalib_HB
Definition: CMTRawAnalyzer.cc:824
CMTRawAnalyzer::h_2DsumErrorBLS8
TH2F * h_2DsumErrorBLS8
Definition: CMTRawAnalyzer.cc:1566
CMTRawAnalyzer::h_sum0ADCAmplperLS5
TH1F * h_sum0ADCAmplperLS5
Definition: CMTRawAnalyzer.cc:987
CMTRawAnalyzer::flagcpuoptimization_
int flagcpuoptimization_
Definition: CMTRawAnalyzer.cc:94
CMTRawAnalyzer::h_pedestalw2_HF
TH1F * h_pedestalw2_HF
Definition: CMTRawAnalyzer.cc:1301
CMTRawAnalyzer::h_RatioOccupancy_HFP
TH1F * h_RatioOccupancy_HFP
Definition: CMTRawAnalyzer.cc:1255
CMTRawAnalyzer::h_mapWidthCalib_HF
TH2F * h_mapWidthCalib_HF
Definition: CMTRawAnalyzer.cc:883
CMTRawAnalyzer::h_pedestal0_HB
TH1F * h_pedestal0_HB
Definition: CMTRawAnalyzer.cc:1269
CMTRawAnalyzer::h_bcnbadrate0_depth4_HO
TH1F * h_bcnbadrate0_depth4_HO
Definition: CMTRawAnalyzer.cc:667
CMTRawAnalyzer::rmsHOMax_
double rmsHOMax_
Definition: CMTRawAnalyzer.cc:179
CMTRawAnalyzer::h_pedestalw3_HO
TH1F * h_pedestalw3_HO
Definition: CMTRawAnalyzer.cc:1314
CMTRawAnalyzer::h_mapDepth3TSmeanA_HF
TH2F * h_mapDepth3TSmeanA_HF
Definition: CMTRawAnalyzer.cc:544
L1EGammaCrystalsEmulatorProducer_cfi.calib
calib
Definition: L1EGammaCrystalsEmulatorProducer_cfi.py:6
CMTRawAnalyzer::h_pedestalwaver9_HB
TH1F * h_pedestalwaver9_HB
Definition: CMTRawAnalyzer.cc:1280
CMTRawAnalyzer::h_mapDepth4pedestalw_HE
TH2F * h_mapDepth4pedestalw_HE
Definition: CMTRawAnalyzer.cc:1324
CMTRawAnalyzer::h_mapDepth2ADCAmpl225_HE
TH2F * h_mapDepth2ADCAmpl225_HE
Definition: CMTRawAnalyzer.cc:725
CMTRawAnalyzer::h_2DsumADCAmplLS5
TH2F * h_2DsumADCAmplLS5
Definition: CMTRawAnalyzer.cc:982
CMTRawAnalyzer::h_sumAmplperLS5
TH1F * h_sumAmplperLS5
Definition: CMTRawAnalyzer.cc:1239
CMTRawAnalyzer::h_mapAiForLS_good_HE
TH2F * h_mapAiForLS_good_HE
Definition: CMTRawAnalyzer.cc:309
CMTRawAnalyzer::h_maprphinorm_HE3
TH2F * h_maprphinorm_HE3
Definition: CMTRawAnalyzer.cc:1626
CMTRawAnalyzer::calibrADCHOMax_
double calibrADCHOMax_
Definition: CMTRawAnalyzer.cc:214
CMTRawAnalyzer::h_runbadrateC_depth4_HO
TH1F * h_runbadrateC_depth4_HO
Definition: CMTRawAnalyzer.cc:640
CMTRawAnalyzer::h_mapDepth2ADCAmpl12_HE
TH2F * h_mapDepth2ADCAmpl12_HE
Definition: CMTRawAnalyzer.cc:509
CMTRawAnalyzer::h_sumTSmaxAperLS1
TH1F * h_sumTSmaxAperLS1
Definition: CMTRawAnalyzer.cc:1116
CMTRawAnalyzer::h_difpedestal2_HB
TH1F * h_difpedestal2_HB
Definition: CMTRawAnalyzer.cc:1356
CMTRawAnalyzer::h_sumCutADCAmplperLS6u
TH1F * h_sumCutADCAmplperLS6u
Definition: CMTRawAnalyzer.cc:1014
CMTRawAnalyzer::ADCAmplHFMin_
double ADCAmplHFMin_
Definition: CMTRawAnalyzer.cc:203
CMTRawAnalyzer::TSpeakHOMax_
double TSpeakHOMax_
Definition: CMTRawAnalyzer.cc:188
CMTRawAnalyzer::h_sum0AmplitudeperLS2
TH1F * h_sum0AmplitudeperLS2
Definition: CMTRawAnalyzer.cc:1175
CMTRawAnalyzer::h_map0AiForLS_bad_HO
TH2F * h_map0AiForLS_bad_HO
Definition: CMTRawAnalyzer.cc:312
CMTRawAnalyzer::h_mapDepth5TSmaxA225_HE
TH2F * h_mapDepth5TSmaxA225_HE
Definition: CMTRawAnalyzer.cc:758
CMTRawAnalyzer::h_pedestal0_HE
TH1F * h_pedestal0_HE
Definition: CMTRawAnalyzer.cc:1281
CMTRawAnalyzer::h_mapDepth1Pedw0_HB
TH2F * h_mapDepth1Pedw0_HB
Definition: CMTRawAnalyzer.cc:1462
CMTRawAnalyzer::h_sumErrorBperLS8
TH1F * h_sumErrorBperLS8
Definition: CMTRawAnalyzer.cc:1568
submitPVValidationJobs.conditions
list conditions
Definition: submitPVValidationJobs.py:674
CMTRawAnalyzer::h_mapDepth2pedestal_HF
TH2F * h_mapDepth2pedestal_HF
Definition: CMTRawAnalyzer.cc:1345
CMTRawAnalyzer::h_amplitudechannel0_HE3
TH2F * h_amplitudechannel0_HE3
Definition: CMTRawAnalyzer.cc:1755
CMTRawAnalyzer::h_sumTSmeanAperLS5
TH1F * h_sumTSmeanAperLS5
Definition: CMTRawAnalyzer.cc:1092
CMTRawAnalyzer::h_mapDepth7TSmaxA_HE
TH2F * h_mapDepth7TSmaxA_HE
Definition: CMTRawAnalyzer.cc:753
CMTRawAnalyzer::h_2DsumAmplLS2
TH2F * h_2DsumAmplLS2
Definition: CMTRawAnalyzer.cc:1220
std
Definition: JetResolutionObject.h:76
CMTRawAnalyzer::h_fiber1_HB
TH1F * h_fiber1_HB
Definition: CMTRawAnalyzer.cc:362
CMTRawAnalyzer::h_amplvspedw_HB
TH1F * h_amplvspedw_HB
Definition: CMTRawAnalyzer.cc:1382
CMTRawAnalyzer::h_mapDepth2ADCAmpl12_HF
TH2F * h_mapDepth2ADCAmpl12_HF
Definition: CMTRawAnalyzer.cc:519
CMTRawAnalyzer::h_mapDepth1Pedw3_HF
TH2F * h_mapDepth1Pedw3_HF
Definition: CMTRawAnalyzer.cc:1505
CMTRawAnalyzer::ADCAmplHBMin_
double ADCAmplHBMin_
Definition: CMTRawAnalyzer.cc:200
CMTRawAnalyzer::lsdep_estimator3_HFdepth2_
double lsdep_estimator3_HFdepth2_
Definition: CMTRawAnalyzer.cc:150
CMTRawAnalyzer::h_bcnvsamplitude_HB
TH1F * h_bcnvsamplitude_HB
Definition: CMTRawAnalyzer.cc:272
CMTRawAnalyzer::h_2DsumAmplitudeLS3
TH2F * h_2DsumAmplitudeLS3
Definition: CMTRawAnalyzer.cc:1177
CMTRawAnalyzer::h_sumamplitude_depth3_HE
TH1F * h_sumamplitude_depth3_HE
Definition: CMTRawAnalyzer.cc:1438
CMTRawAnalyzer::tok_hbhe_
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
Definition: CMTRawAnalyzer.cc:26
CMTRawAnalyzer::h_sumErrorBperLS7
TH1F * h_sumErrorBperLS7
Definition: CMTRawAnalyzer.cc:1563
CMTRawAnalyzer::h_pedestalw1_HO
TH1F * h_pedestalw1_HO
Definition: CMTRawAnalyzer.cc:1312
CMTRawAnalyzer::h_2D0sumADCAmplLS2
TH2F * h_2D0sumADCAmplLS2
Definition: CMTRawAnalyzer.cc:965
CMTRawAnalyzer::h_mapDepth2ADCAmpl225Copy_HB
TH2F * h_mapDepth2ADCAmpl225Copy_HB
Definition: CMTRawAnalyzer.cc:421
CMTRawAnalyzer::h_shape_bad_channels_HE
TH1F * h_shape_bad_channels_HE
Definition: CMTRawAnalyzer.cc:1422
CMTRawAnalyzer::h_sumphiEta16Depth3RADDAM_HED2
TH1F * h_sumphiEta16Depth3RADDAM_HED2
Definition: CMTRawAnalyzer.cc:1801
CMTRawAnalyzer::h_mapDepth3Amplitude_HE
TH2F * h_mapDepth3Amplitude_HE
Definition: CMTRawAnalyzer.cc:764
CMTRawAnalyzer::h_mapDepth1pedestal_HE
TH2F * h_mapDepth1pedestal_HE
Definition: CMTRawAnalyzer.cc:1337
CMTRawAnalyzer::h_maprphinorm_HE1
TH2F * h_maprphinorm_HE1
Definition: CMTRawAnalyzer.cc:1624
CMTRawAnalyzer::h_2DsumTSmeanALS6
TH2F * h_2DsumTSmeanALS6
Definition: CMTRawAnalyzer.cc:1097
CMTRawAnalyzer::h_Amplitude_HB
TH1F * h_Amplitude_HB
Definition: CMTRawAnalyzer.cc:478
CMTRawAnalyzer::h_2DsumADCAmplLS4_LSselected
TH2F * h_2DsumADCAmplLS4_LSselected
Definition: CMTRawAnalyzer.cc:976
CMTRawAnalyzer::h_2DsumErrorBLS2
TH2F * h_2DsumErrorBLS2
Definition: CMTRawAnalyzer.cc:1536
CMTRawAnalyzer::h_sumAmplperLS3
TH1F * h_sumAmplperLS3
Definition: CMTRawAnalyzer.cc:1227
CMTRawAnalyzer::h_mapDepth1ADCAmpl225Copy_HF
TH2F * h_mapDepth1ADCAmpl225Copy_HF
Definition: CMTRawAnalyzer.cc:431
CMTRawAnalyzer::h_mapDepth2Ped0_HB
TH2F * h_mapDepth2Ped0_HB
Definition: CMTRawAnalyzer.cc:1466
HcalElectronicsMap::lookup
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
Definition: HcalElectronicsMap.cc:70
CMTRawAnalyzer::h2_pedwvsampl_HF
TH2F * h2_pedwvsampl_HF
Definition: CMTRawAnalyzer.cc:1391
CMTRawAnalyzer::h_mapDepth6TSmeanA225_HE
TH2F * h_mapDepth6TSmeanA225_HE
Definition: CMTRawAnalyzer.cc:744
CMTRawAnalyzer::maxxSUM2
double maxxSUM2
Definition: CMTRawAnalyzer.cc:1895
CMTRawAnalyzer::h_runnbadchannels_depth3_HE
TH1F * h_runnbadchannels_depth3_HE
Definition: CMTRawAnalyzer.cc:631
CMTRawAnalyzer::h_sigLayer2RADDAM0_HE
TH1F * h_sigLayer2RADDAM0_HE
Definition: CMTRawAnalyzer.cc:1790
CMTRawAnalyzer::h_recSignalEnergy1_HE4
TH2F * h_recSignalEnergy1_HE4
Definition: CMTRawAnalyzer.cc:1689
CMTRawAnalyzer::h_sum0AmplperLS5
TH1F * h_sum0AmplperLS5
Definition: CMTRawAnalyzer.cc:1242
CMTRawAnalyzer::h_sumADCAmplperLS8_M2
TH1F * h_sumADCAmplperLS8_M2
Definition: CMTRawAnalyzer.cc:1046
CMTRawAnalyzer::rmsHOMin_
double rmsHOMin_
Definition: CMTRawAnalyzer.cc:178
CMTRawAnalyzer::h_mapDepth2pedestalw_HB
TH2F * h_mapDepth2pedestalw_HB
Definition: CMTRawAnalyzer.cc:1318
QIE10DataFrame
Definition: QIE10DataFrame.h:11
CMTRawAnalyzer::h_mapDepth3ADCAmpl12_HE
TH2F * h_mapDepth3ADCAmpl12_HE
Definition: CMTRawAnalyzer.cc:510
CMTRawAnalyzer::h_mapRatioCalib_HE
TH2F * h_mapRatioCalib_HE
Definition: CMTRawAnalyzer.cc:840
CMTRawAnalyzer::h_pedestal3_HB
TH1F * h_pedestal3_HB
Definition: CMTRawAnalyzer.cc:1272
CMTRawAnalyzer::flagestimatornormalization_
int flagestimatornormalization_
Definition: CMTRawAnalyzer.cc:93
HcalEndcap
Definition: HcalAssistant.h:34
CMTRawAnalyzer::h_sumAmplitudeperLS7
TH1F * h_sumAmplitudeperLS7
Definition: CMTRawAnalyzer.cc:1202
CMTRawAnalyzer::h_recSignalEnergy0_HE7
TH2F * h_recSignalEnergy0_HE7
Definition: CMTRawAnalyzer.cc:1697
CMTRawAnalyzer::h_mapTSmaxCalib047_HF
TH2F * h_mapTSmaxCalib047_HF
Definition: CMTRawAnalyzer.cc:876
CMTRawAnalyzer::h_sumADCAmplEtaPhiLs_bbbc
TH1F * h_sumADCAmplEtaPhiLs_bbbc
Definition: CMTRawAnalyzer.cc:297
CMTRawAnalyzer::h_maxxSUMAmpl_HF
TH1F * h_maxxSUMAmpl_HF
Definition: CMTRawAnalyzer.cc:1588
CMTRawAnalyzer::orbitNum
long int orbitNum
Definition: CMTRawAnalyzer.cc:1866
CMTRawAnalyzer::h_mapDepth1ADCAmpl12_HB
TH2F * h_mapDepth1ADCAmpl12_HB
Definition: CMTRawAnalyzer.cc:504
CMTRawAnalyzer::h_recNoiseEnergy2_HE1
TH2F * h_recNoiseEnergy2_HE1
Definition: CMTRawAnalyzer.cc:1702
CMTRawAnalyzer::h_mapDepth2pedestal_HB
TH2F * h_mapDepth2pedestal_HB
Definition: CMTRawAnalyzer.cc:1334
CMTRawAnalyzer::h_nls_per_run10
TH1F * h_nls_per_run10
Definition: CMTRawAnalyzer.cc:886
CMTRawAnalyzer::h_sum0TSmeanAperLS1
TH1F * h_sum0TSmeanAperLS1
Definition: CMTRawAnalyzer.cc:1071
CMTRawAnalyzer::h_2DsumADCAmplEtaPhiLs10
TH2F * h_2DsumADCAmplEtaPhiLs10
Definition: CMTRawAnalyzer.cc:293
CMTRawAnalyzer::h_mapDepth2AmplE34_HB
TH2F * h_mapDepth2AmplE34_HB
Definition: CMTRawAnalyzer.cc:493
CMTRawAnalyzer::h_recSignalEnergy2_HB3
TH2F * h_recSignalEnergy2_HB3
Definition: CMTRawAnalyzer.cc:1662
CMTRawAnalyzer::h_mapADCAmpl12secondpeak_HE
TH2F * h_mapADCAmpl12secondpeak_HE
Definition: CMTRawAnalyzer.cc:713
CMTRawAnalyzer::h_mapDepth2Pedw0_HB
TH2F * h_mapDepth2Pedw0_HB
Definition: CMTRawAnalyzer.cc:1470
CMTRawAnalyzer::h_2D0sumADCAmplLSdepth4HFu
TH2F * h_2D0sumADCAmplLSdepth4HFu
Definition: CMTRawAnalyzer.cc:943
CMTRawAnalyzer::h_errorGeneral_HB
TH1F * h_errorGeneral_HB
Definition: CMTRawAnalyzer.cc:347
CMTRawAnalyzer::h_error1_HE
TH1F * h_error1_HE
Definition: CMTRawAnalyzer.cc:366
CMTRawAnalyzer::calibrRatioHBMin_
double calibrRatioHBMin_
Definition: CMTRawAnalyzer.cc:216
CMTRawAnalyzer::h_shape0_Alow_HB1
TH1F * h_shape0_Alow_HB1
Definition: CMTRawAnalyzer.cc:1409
CMTRawAnalyzer::h_sumamplitude_depth2_HE0
TH1F * h_sumamplitude_depth2_HE0
Definition: CMTRawAnalyzer.cc:1445
CMTRawAnalyzer::h_pedestal00_HO
TH1F * h_pedestal00_HO
Definition: CMTRawAnalyzer.cc:1368
CMTRawAnalyzer::h_mapDepth1Ped0_HF
TH2F * h_mapDepth1Ped0_HF
Definition: CMTRawAnalyzer.cc:1498
CMTRawAnalyzer::h_maprphinorm_HE4
TH2F * h_maprphinorm_HE4
Definition: CMTRawAnalyzer.cc:1627
CMTRawAnalyzer::h_2D0sumPedestalLS3
TH2F * h_2D0sumPedestalLS3
Definition: CMTRawAnalyzer.cc:905
CMTRawAnalyzer::h_mapDepth4TSmeanA225_HO
TH2F * h_mapDepth4TSmeanA225_HO
Definition: CMTRawAnalyzer.cc:593
CMTRawAnalyzer::studyDiffAmplHist_
bool studyDiffAmplHist_
Definition: CMTRawAnalyzer.cc:62
CMTRawAnalyzer::h_shape_good_channels_HO
TH1F * h_shape_good_channels_HO
Definition: CMTRawAnalyzer.cc:1432
CMTRawAnalyzer::h_sum0ADCAmplperLS8
TH1F * h_sum0ADCAmplperLS8
Definition: CMTRawAnalyzer.cc:1064
CMTRawAnalyzer::h_sumCutTSmeanAperLS5
TH1F * h_sumCutTSmeanAperLS5
Definition: CMTRawAnalyzer.cc:1093
CMTRawAnalyzer::lscounterrun10
int lscounterrun10
Definition: CMTRawAnalyzer.cc:1875
CMTRawAnalyzer::h_sumamplitude_depth1_HF1
TH1F * h_sumamplitude_depth1_HF1
Definition: CMTRawAnalyzer.cc:1455
CMTRawAnalyzer::h_eventamplitude_HF
TH1F * h_eventamplitude_HF
Definition: CMTRawAnalyzer.cc:1600
CMTRawAnalyzer::h_mapDepth2TSmeanA_HF
TH2F * h_mapDepth2TSmeanA_HF
Definition: CMTRawAnalyzer.cc:541
CMTRawAnalyzer::h_sumamplitude_depth4_HO0
TH1F * h_sumamplitude_depth4_HO0
Definition: CMTRawAnalyzer.cc:1449
CMTRawAnalyzer::TSpeakHBMin_
double TSpeakHBMin_
Definition: CMTRawAnalyzer.cc:181
CMTRawAnalyzer::h_mapDepth3_HF
TH2F * h_mapDepth3_HF
Definition: CMTRawAnalyzer.cc:581
CMTRawAnalyzer::h_sumCutAmplitudeperLS3
TH1F * h_sumCutAmplitudeperLS3
Definition: CMTRawAnalyzer.cc:1179
CMTRawAnalyzer::h_ADCAmplrest1_HO
TH1F * h_ADCAmplrest1_HO
Definition: CMTRawAnalyzer.cc:585
CMTRawAnalyzer::h_amplitudechannel1_HB2
TH2F * h_amplitudechannel1_HB2
Definition: CMTRawAnalyzer.cc:1740
CMTRawAnalyzer::h_energyhitNoise_HB
TH1F * h_energyhitNoise_HB
Definition: CMTRawAnalyzer.cc:1650
adc2fC_QIE11_shunt6
const double adc2fC_QIE11_shunt6[256]
Definition: CMTRawAnalyzer.h:382
CMTRawAnalyzer::h_AmplitudeHFtest
TH1F * h_AmplitudeHFtest
Definition: CMTRawAnalyzer.cc:329
CMTRawAnalyzer::h_difpedestal1_HB
TH1F * h_difpedestal1_HB
Definition: CMTRawAnalyzer.cc:1355
CMTRawAnalyzer::h_mapenophinorm_HE2
TH2F * h_mapenophinorm_HE2
Definition: CMTRawAnalyzer.cc:1611
CMTRawAnalyzer::lsdep_estimator5_HBdepth1_
double lsdep_estimator5_HBdepth1_
Definition: CMTRawAnalyzer.cc:162
CMTRawAnalyzer::h_amplError
TH1F * h_amplError
Definition: CMTRawAnalyzer.cc:345
CMTRawAnalyzer::h_sumTSmaxAperLS4
TH1F * h_sumTSmaxAperLS4
Definition: CMTRawAnalyzer.cc:1135
CMTRawAnalyzer::lsdep_estimator1_HFdepth1_
double lsdep_estimator1_HFdepth1_
Definition: CMTRawAnalyzer.cc:120
CMTRawAnalyzer::h_2DsumTSmeanALS8
TH2F * h_2DsumTSmeanALS8
Definition: CMTRawAnalyzer.cc:1109
CMTRawAnalyzer::ratioHFMax_
double ratioHFMax_
Definition: CMTRawAnalyzer.cc:78
CMTRawAnalyzer::h_mapDepth4ADCAmpl225_HO
TH2F * h_mapDepth4ADCAmpl225_HO
Definition: CMTRawAnalyzer.cc:590
QIE11DataFrame
Definition: QIE11DataFrame.h:11
CMTRawAnalyzer::h_mapTSmaxCalib_HF
TH2F * h_mapTSmaxCalib_HF
Definition: CMTRawAnalyzer.cc:877
CMTRawAnalyzer::h_ADCAmplZoom1_HE
TH1F * h_ADCAmplZoom1_HE
Definition: CMTRawAnalyzer.cc:695
CMTRawAnalyzer::h_recNoiseEnergy0_HE6
TH2F * h_recNoiseEnergy0_HE6
Definition: CMTRawAnalyzer.cc:1715
CMTRawAnalyzer::h_recSignalEnergy1_HE5
TH2F * h_recSignalEnergy1_HE5
Definition: CMTRawAnalyzer.cc:1692
CMTRawAnalyzer::h_sumTSmaxAperLS1_LSselected
TH1F * h_sumTSmaxAperLS1_LSselected
Definition: CMTRawAnalyzer.cc:1117
CMTRawAnalyzer::h_sumErrorBLS1
TH1F * h_sumErrorBLS1
Definition: CMTRawAnalyzer.cc:1532
CMTRawAnalyzer::howmanybinsonplots_
int howmanybinsonplots_
Definition: CMTRawAnalyzer.cc:88
CMTRawAnalyzer::h_2D0sumTSmeanALS4
TH2F * h_2D0sumTSmeanALS4
Definition: CMTRawAnalyzer.cc:1088
CMTRawAnalyzer::h_recNoiseEnergy1_HB4
TH2F * h_recNoiseEnergy1_HB4
Definition: CMTRawAnalyzer.cc:1676
CMTRawAnalyzer::h_sumPedestalLS8
TH1F * h_sumPedestalLS8
Definition: CMTRawAnalyzer.cc:927
CMTRawAnalyzer::useADCmassive_
bool useADCmassive_
Definition: CMTRawAnalyzer.cc:68
CMTRawAnalyzer::h_ADCAmplrest_HE
TH1F * h_ADCAmplrest_HE
Definition: CMTRawAnalyzer.cc:692
CMTRawAnalyzer::h_mapDepth1linADCAmpl12_HE
TH2F * h_mapDepth1linADCAmpl12_HE
Definition: CMTRawAnalyzer.cc:523
CMTRawAnalyzer::h_pedestalw3_HF
TH1F * h_pedestalw3_HF
Definition: CMTRawAnalyzer.cc:1302
CMTRawAnalyzer::h_2D0sumPedestalLS8
TH2F * h_2D0sumPedestalLS8
Definition: CMTRawAnalyzer.cc:930
CMTRawAnalyzer::h_mapDepth2TSmeanA225_HF
TH2F * h_mapDepth2TSmeanA225_HF
Definition: CMTRawAnalyzer.cc:543
HcalFrontEndId::rbx
std::string rbx() const
Definition: HcalFrontEndId.cc:63
CMTRawAnalyzer::calibrADCHEMax_
double calibrADCHEMax_
Definition: CMTRawAnalyzer.cc:213
HcalFrontEndId::qieCard
int qieCard() const
Definition: HcalFrontEndId.h:30
CMTRawAnalyzer::h_A_Depth3RADDAM_HE
TH1F * h_A_Depth3RADDAM_HE
Definition: CMTRawAnalyzer.cc:1800
CMTRawAnalyzer::h_pedestal00_HF
TH1F * h_pedestal00_HF
Definition: CMTRawAnalyzer.cc:1363
CMTRawAnalyzer::h_recNoiseEnergy1_HB2
TH2F * h_recNoiseEnergy1_HB2
Definition: CMTRawAnalyzer.cc:1670
CMTRawAnalyzer::h_Amplitude_notCapIdErrors_HE2
TH1F * h_Amplitude_notCapIdErrors_HE2
Definition: CMTRawAnalyzer.cc:681
CMTRawAnalyzer::averNOSIGNALsumamplitude_HE
double averNOSIGNALsumamplitude_HE
Definition: CMTRawAnalyzer.cc:1891
CMTRawAnalyzer::h_pedwvsampl_HF
TH1F * h_pedwvsampl_HF
Definition: CMTRawAnalyzer.cc:1393
CMTRawAnalyzer::h_mapDepth1Pedw0_HF
TH2F * h_mapDepth1Pedw0_HF
Definition: CMTRawAnalyzer.cc:1502
CMTRawAnalyzer::calibrADCHFMax_
double calibrADCHFMax_
Definition: CMTRawAnalyzer.cc:215
CMTRawAnalyzer::h_mapDepth5ADCAmpl225Copy_HE
TH2F * h_mapDepth5ADCAmpl225Copy_HE
Definition: CMTRawAnalyzer.cc:428
CMTRawAnalyzer::fillMAP
virtual void fillMAP()
Definition: CMTRawAnalyzer.cc:14337
CMTRawAnalyzer::h_recSignalEnergy2_HE3
TH2F * h_recSignalEnergy2_HE3
Definition: CMTRawAnalyzer.cc:1687
CMTRawAnalyzer::h_maprphinorm2_HE6
TH2F * h_maprphinorm2_HE6
Definition: CMTRawAnalyzer.cc:1636
CMTRawAnalyzer::h_recSignalEnergy0_HE5
TH2F * h_recSignalEnergy0_HE5
Definition: CMTRawAnalyzer.cc:1691
CMTRawAnalyzer::lscounter10
int lscounter10
Definition: CMTRawAnalyzer.cc:1872
CMTRawAnalyzer::h_mapDepth2Pedw3_HB
TH2F * h_mapDepth2Pedw3_HB
Definition: CMTRawAnalyzer.cc:1473
CMTRawAnalyzer::h_maprphinorm_HE5
TH2F * h_maprphinorm_HE5
Definition: CMTRawAnalyzer.cc:1628
CMTRawAnalyzer::h_mapDepth3Ped0_HE
TH2F * h_mapDepth3Ped0_HE
Definition: CMTRawAnalyzer.cc:1490
CMTRawAnalyzer::h_RatioOccupancy_HEM
TH1F * h_RatioOccupancy_HEM
Definition: CMTRawAnalyzer.cc:1252
CMTRawAnalyzer::h_sigLayer2RADDAM_HE
TH1F * h_sigLayer2RADDAM_HE
Definition: CMTRawAnalyzer.cc:1788
CMTRawAnalyzer::ls0
int ls0
Definition: CMTRawAnalyzer.cc:1869
CMTRawAnalyzer::lsdep_estimator1_HOdepth4_
double lsdep_estimator1_HOdepth4_
Definition: CMTRawAnalyzer.cc:122
CMTRawAnalyzer::h_mapDepth2pedestalw_HE
TH2F * h_mapDepth2pedestalw_HE
Definition: CMTRawAnalyzer.cc:1322
CMTRawAnalyzer::h_error1_HF
TH1F * h_error1_HF
Definition: CMTRawAnalyzer.cc:387
CMTRawAnalyzer::h_error3_HB
TH1F * h_error3_HB
Definition: CMTRawAnalyzer.cc:350
CMTRawAnalyzer::h_mapDepth6pedestal_HE
TH2F * h_mapDepth6pedestal_HE
Definition: CMTRawAnalyzer.cc:1342
CMTRawAnalyzer::h_mapAiForLS_bad_HE
TH2F * h_mapAiForLS_bad_HE
Definition: CMTRawAnalyzer.cc:307
CMTRawAnalyzer::h_bcnbadrate0_depth2_HB
TH1F * h_bcnbadrate0_depth2_HB
Definition: CMTRawAnalyzer.cc:663
CMTRawAnalyzer::h_mapDepth3Pedw2_HE
TH2F * h_mapDepth3Pedw2_HE
Definition: CMTRawAnalyzer.cc:1496
CMTRawAnalyzer::h_sumADCAmplLS1copy1
TH1F * h_sumADCAmplLS1copy1
Definition: CMTRawAnalyzer.cc:948
CMTRawAnalyzer::nevent
int nevent
Definition: CMTRawAnalyzer.cc:249
CMTRawAnalyzer::h_mapWidthCalib047_HO
TH2F * h_mapWidthCalib047_HO
Definition: CMTRawAnalyzer.cc:865
CMTRawAnalyzer::h_mapDepth2ADCAmpl225_HF
TH2F * h_mapDepth2ADCAmpl225_HF
Definition: CMTRawAnalyzer.cc:534
CMTRawAnalyzer::h_runnbadchannelsC_depth3_HE
TH1F * h_runnbadchannelsC_depth3_HE
Definition: CMTRawAnalyzer.cc:632
CMTRawAnalyzer::h_mapDepth3Ped2_HE
TH2F * h_mapDepth3Ped2_HE
Definition: CMTRawAnalyzer.cc:1492
CMTRawAnalyzer::h_mapTSmeanCalib047_HO
TH2F * h_mapTSmeanCalib047_HO
Definition: CMTRawAnalyzer.cc:862
CMTRawAnalyzer::h_A_Depth1RADDAM_HE
TH1F * h_A_Depth1RADDAM_HE
Definition: CMTRawAnalyzer.cc:1798
CMTRawAnalyzer::h_2DsumTSmaxALS6
TH2F * h_2DsumTSmaxALS6
Definition: CMTRawAnalyzer.cc:1146
CMTRawAnalyzer::h_amplitudechannel1_HF3
TH2F * h_amplitudechannel1_HF3
Definition: CMTRawAnalyzer.cc:1778
CMTRawAnalyzer::h_2D0sumTSmeanALS7
TH2F * h_2D0sumTSmeanALS7
Definition: CMTRawAnalyzer.cc:1106
CMTRawAnalyzer::h_mapDepth2Pedw3_HE
TH2F * h_mapDepth2Pedw3_HE
Definition: CMTRawAnalyzer.cc:1489
CMTRawAnalyzer::h_pedestal0_HO
TH1F * h_pedestal0_HO
Definition: CMTRawAnalyzer.cc:1305
CMTRawAnalyzer::studyPedestalsHist_
bool studyPedestalsHist_
Definition: CMTRawAnalyzer.cc:65
CMTRawAnalyzer::h_recNoiseEnergy2_HE2
TH2F * h_recNoiseEnergy2_HE2
Definition: CMTRawAnalyzer.cc:1705
CMTRawAnalyzer::h_numberofhitsHOtest
TH1F * h_numberofhitsHOtest
Definition: CMTRawAnalyzer.cc:322
CMTRawAnalyzer::h_mapDepth4Error_HF
TH2F * h_mapDepth4Error_HF
Definition: CMTRawAnalyzer.cc:399
CMTRawAnalyzer::h_sumADCAmplLS3
TH1F * h_sumADCAmplLS3
Definition: CMTRawAnalyzer.cc:967
CMTRawAnalyzer::h_mapDepth4TSmeanA_HE
TH2F * h_mapDepth4TSmeanA_HE
Definition: CMTRawAnalyzer.cc:735
CMTRawAnalyzer::h_mapDepth4ADCAmpl225_HE
TH2F * h_mapDepth4ADCAmpl225_HE
Definition: CMTRawAnalyzer.cc:727
CMTRawAnalyzer::h2_amplvsped_HB
TH2F * h2_amplvsped_HB
Definition: CMTRawAnalyzer.cc:1379
CMTRawAnalyzer::h_mapDepth5Amplitude_HE
TH2F * h_mapDepth5Amplitude_HE
Definition: CMTRawAnalyzer.cc:766
CMTRawAnalyzer::h_bcnnbadchannels_depth1_HE
TH1F * h_bcnnbadchannels_depth1_HE
Definition: CMTRawAnalyzer.cc:656
CMTRawAnalyzer::h_ADCCalib_HF
TH1F * h_ADCCalib_HF
Definition: CMTRawAnalyzer.cc:868
CMTRawAnalyzer::h_mapDepth2Ampl047_HB
TH2F * h_mapDepth2Ampl047_HB
Definition: CMTRawAnalyzer.cc:489
CMTRawAnalyzer::h_map0AiForLS_good_HB
TH2F * h_map0AiForLS_good_HB
Definition: CMTRawAnalyzer.cc:306
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
CMTRawAnalyzer::h_runbadrate_depth1_HE
TH1F * h_runbadrate_depth1_HE
Definition: CMTRawAnalyzer.cc:621
CMTRawAnalyzer::h_fiber1_HE
TH1F * h_fiber1_HE
Definition: CMTRawAnalyzer.cc:383
CMTRawAnalyzer::h_amplitudechannel0_HB1
TH2F * h_amplitudechannel0_HB1
Definition: CMTRawAnalyzer.cc:1736
CMTRawAnalyzer::h_FullSignal3D0_HB
TH2F * h_FullSignal3D0_HB
Definition: CMTRawAnalyzer.cc:806
CMTRawAnalyzer::h_lutcorr_HB
TH1F * h_lutcorr_HB
Definition: CMTRawAnalyzer.cc:1353
CMTRawAnalyzer::h_2DsumPedestalLS2
TH2F * h_2DsumPedestalLS2
Definition: CMTRawAnalyzer.cc:898
CMTRawAnalyzer::h_sum0ADCAmplperLSdepth3HBu
TH1F * h_sum0ADCAmplperLSdepth3HBu
Definition: CMTRawAnalyzer.cc:1011
CMTRawAnalyzer::h_mapenophinorm2_HE5
TH2F * h_mapenophinorm2_HE5
Definition: CMTRawAnalyzer.cc:1621
CMTRawAnalyzer::h_bcnvsamplitude_HO
TH1F * h_bcnvsamplitude_HO
Definition: CMTRawAnalyzer.cc:278
CMTRawAnalyzer::h_sumTSmaxALS7
TH1F * h_sumTSmaxALS7
Definition: CMTRawAnalyzer.cc:1151
CMTRawAnalyzer::h_2DsumAmplitudeLS7
TH2F * h_2DsumAmplitudeLS7
Definition: CMTRawAnalyzer.cc:1201
CMTRawAnalyzer::h_sum0ADCAmplperLS8_M2
TH1F * h_sum0ADCAmplperLS8_M2
Definition: CMTRawAnalyzer.cc:1047
CMTRawAnalyzer::h_recNoiseEnergy2_HB1
TH2F * h_recNoiseEnergy2_HB1
Definition: CMTRawAnalyzer.cc:1668
CMTRawAnalyzer::h_sumErrorBLS3
TH1F * h_sumErrorBLS3
Definition: CMTRawAnalyzer.cc:1542
CMTRawAnalyzer::h_mapDepth4Amplitude225_HE
TH2F * h_mapDepth4Amplitude225_HE
Definition: CMTRawAnalyzer.cc:772
CMTRawAnalyzer::lsdep_estimator1_HEdepth1_
double lsdep_estimator1_HEdepth1_
Definition: CMTRawAnalyzer.cc:117
relval_steps.gen
def gen(fragment, howMuch)
Production test section ####.
Definition: relval_steps.py:509
CMTRawAnalyzer::h_maprphinorm0_HE3
TH2F * h_maprphinorm0_HE3
Definition: CMTRawAnalyzer.cc:1640
CMTRawAnalyzer::h_mapenophinorm_HE5
TH2F * h_mapenophinorm_HE5
Definition: CMTRawAnalyzer.cc:1614
fftjetpileupestimator_calo_uncalib_cfi.c0
c0
Definition: fftjetpileupestimator_calo_uncalib_cfi.py:8
CMTRawAnalyzer::h_mapDepth2Error_HB
TH2F * h_mapDepth2Error_HB
Definition: CMTRawAnalyzer.cc:358
CMTRawAnalyzer::h_mapADCAmplfirstpeak_HE
TH2F * h_mapADCAmplfirstpeak_HE
Definition: CMTRawAnalyzer.cc:703
CMTRawAnalyzer::lsdep_estimator3_HEdepth1_
double lsdep_estimator3_HEdepth1_
Definition: CMTRawAnalyzer.cc:146
HcalQIEShape
Definition: HcalQIEShape.h:17
CMTRawAnalyzer::h_2D0sumADCAmplLS1
TH2F * h_2D0sumADCAmplLS1
Definition: CMTRawAnalyzer.cc:958
CMTRawAnalyzer::h_recSignalEnergy1_HE1
TH2F * h_recSignalEnergy1_HE1
Definition: CMTRawAnalyzer.cc:1680
CMTRawAnalyzer::lsdep_cut1_peak_HEdepth3_
int lsdep_cut1_peak_HEdepth3_
Definition: CMTRawAnalyzer.cc:102
CMTRawAnalyzer::h_sumAmplperLS6
TH1F * h_sumAmplperLS6
Definition: CMTRawAnalyzer.cc:1245
CMTRawAnalyzer::h_sum0PedestalperLS4
TH1F * h_sum0PedestalperLS4
Definition: CMTRawAnalyzer.cc:911
CMTRawAnalyzer::h_mapDepth7TSmeanA_HE
TH2F * h_mapDepth7TSmeanA_HE
Definition: CMTRawAnalyzer.cc:738
CMTRawAnalyzer::h_mapGetRMSOverNormalizedSignal_HE
TH2F * h_mapGetRMSOverNormalizedSignal_HE
Definition: CMTRawAnalyzer.cc:1524
CMTRawAnalyzer::h_sumCutAmplitudeperLS2
TH1F * h_sumCutAmplitudeperLS2
Definition: CMTRawAnalyzer.cc:1173
CMTRawAnalyzer::h_mapenophinorm_HE4
TH2F * h_mapenophinorm_HE4
Definition: CMTRawAnalyzer.cc:1613
CMTRawAnalyzer::h_sumADCAmplLS7
TH1F * h_sumADCAmplLS7
Definition: CMTRawAnalyzer.cc:1048
CMTRawAnalyzer::h_sumErrorBLS2
TH1F * h_sumErrorBLS2
Definition: CMTRawAnalyzer.cc:1537
CMTRawAnalyzer::h_pedestalw0_HB
TH1F * h_pedestalw0_HB
Definition: CMTRawAnalyzer.cc:1275
CMTRawAnalyzer::h_mapDepth6TSmaxA_HE
TH2F * h_mapDepth6TSmaxA_HE
Definition: CMTRawAnalyzer.cc:752
CMTRawAnalyzer::h_Amplitude_forCapIdErrors_HF1
TH1F * h_Amplitude_forCapIdErrors_HF1
Definition: CMTRawAnalyzer.cc:675
CMTRawAnalyzer::h_amplitudechannel0_HF2
TH2F * h_amplitudechannel0_HF2
Definition: CMTRawAnalyzer.cc:1774
CMTRawAnalyzer::h_Ampl_HO
TH1F * h_Ampl_HO
Definition: CMTRawAnalyzer.cc:600
CMTRawAnalyzer::h_energyhitSignal_HB
TH1F * h_energyhitSignal_HB
Definition: CMTRawAnalyzer.cc:1647
CMTRawAnalyzer::h_mapenophinorm2_HE2
TH2F * h_mapenophinorm2_HE2
Definition: CMTRawAnalyzer.cc:1618
CMTRawAnalyzer::h_sum0ADCAmplperLS3_P2
TH1F * h_sum0ADCAmplperLS3_P2
Definition: CMTRawAnalyzer.cc:1027
CMTRawAnalyzer::h_sumTSmeanAperLS4
TH1F * h_sumTSmeanAperLS4
Definition: CMTRawAnalyzer.cc:1086
CMTRawAnalyzer::calibrWidthHBMin_
double calibrWidthHBMin_
Definition: CMTRawAnalyzer.cc:240
CMTRawAnalyzer::h_Ampl_HB
TH1F * h_Ampl_HB
Definition: CMTRawAnalyzer.cc:487
CMTRawAnalyzer::h_mapDepth1TSmeanA225_HE
TH2F * h_mapDepth1TSmeanA225_HE
Definition: CMTRawAnalyzer.cc:739
CMTRawAnalyzer::fillDigiErrors
void fillDigiErrors(HBHEDigiCollection::const_iterator &digiItr)
Definition: CMTRawAnalyzer.cc:9227
CMTRawAnalyzer::h_sumTSmeanALS1
TH1F * h_sumTSmeanALS1
Definition: CMTRawAnalyzer.cc:1065
HcalCoderDb
Definition: HcalCoderDb.h:15
CMTRawAnalyzer::h_2D0sumAmplitudeLS4
TH2F * h_2D0sumAmplitudeLS4
Definition: CMTRawAnalyzer.cc:1186
CMTRawAnalyzer::h_sumCutADCAmplperLSdepth7HEu
TH1F * h_sumCutADCAmplperLSdepth7HEu
Definition: CMTRawAnalyzer.cc:1002
CMTRawAnalyzer::h_mapADCCalib_HF
TH2F * h_mapADCCalib_HF
Definition: CMTRawAnalyzer.cc:871
CMTRawAnalyzer::h_totalAmplitudeHFperEvent
TH1F * h_totalAmplitudeHFperEvent
Definition: CMTRawAnalyzer.cc:337
CMTRawAnalyzer::h_lutcorr_HE
TH1F * h_lutcorr_HE
Definition: CMTRawAnalyzer.cc:1362
CMTRawAnalyzer::h_mapRatioCalib047_HF
TH2F * h_mapRatioCalib047_HF
Definition: CMTRawAnalyzer.cc:873
CMTRawAnalyzer::h_mapDepth4ADCAmpl225Copy_HE
TH2F * h_mapDepth4ADCAmpl225Copy_HE
Definition: CMTRawAnalyzer.cc:427
CMTRawAnalyzer::h_TSmaxCalib_HE
TH1F * h_TSmaxCalib_HE
Definition: CMTRawAnalyzer.cc:841
CMTRawAnalyzer::h_mapDepth4Ampl_HF
TH2F * h_mapDepth4Ampl_HF
Definition: CMTRawAnalyzer.cc:578
CMTRawAnalyzer::h_sumAmplitudeLS2
TH1F * h_sumAmplitudeLS2
Definition: CMTRawAnalyzer.cc:1170
CMTRawAnalyzer::flagabortgaprejected_
int flagabortgaprejected_
Definition: CMTRawAnalyzer.cc:90
CMTRawAnalyzer::h_pedestal1_HF
TH1F * h_pedestal1_HF
Definition: CMTRawAnalyzer.cc:1294
CMTRawAnalyzer::h_sumamplitude_depth1_HE0
TH1F * h_sumamplitude_depth1_HE0
Definition: CMTRawAnalyzer.cc:1444
CMTRawAnalyzer::h_sumCutAmplitudeperLS4
TH1F * h_sumCutAmplitudeperLS4
Definition: CMTRawAnalyzer.cc:1185
CMTRawAnalyzer::h_sumCutAmplperLS2
TH1F * h_sumCutAmplperLS2
Definition: CMTRawAnalyzer.cc:1222
CMTRawAnalyzer::h_mapDepth5Error_HE
TH2F * h_mapDepth5Error_HE
Definition: CMTRawAnalyzer.cc:379
CMTRawAnalyzer::h_sumamplitude_depth4_HO
TH1F * h_sumamplitude_depth4_HO
Definition: CMTRawAnalyzer.cc:1441
CMTRawAnalyzer::h_mapGetRMSOverNormalizedSignal0_HO
TH2F * h_mapGetRMSOverNormalizedSignal0_HO
Definition: CMTRawAnalyzer.cc:1529
CMTRawAnalyzer::h_mapDepth1ADCAmpl225_HB
TH2F * h_mapDepth1ADCAmpl225_HB
Definition: CMTRawAnalyzer.cc:454
CMTRawAnalyzer::h_2D0sumTSmeanALS3
TH2F * h_2D0sumTSmeanALS3
Definition: CMTRawAnalyzer.cc:1082
CMTRawAnalyzer::Run
int Run
Definition: CMTRawAnalyzer.cc:1862
CMTRawAnalyzer::h_pedestalaver9_HO
TH1F * h_pedestalaver9_HO
Definition: CMTRawAnalyzer.cc:1310
CMTRawAnalyzer::h_sumTSmaxAperLS6
TH1F * h_sumTSmaxAperLS6
Definition: CMTRawAnalyzer.cc:1147
CMTRawAnalyzer::h_mapDepth1Ped3_HF
TH2F * h_mapDepth1Ped3_HF
Definition: CMTRawAnalyzer.cc:1501
CMTRawAnalyzer::h_mapDepth2Error_HE
TH2F * h_mapDepth2Error_HE
Definition: CMTRawAnalyzer.cc:376
CMTRawAnalyzer::h_pedestalw1_HB
TH1F * h_pedestalw1_HB
Definition: CMTRawAnalyzer.cc:1276
CMTRawAnalyzer::nnnnnn3
int nnnnnn3
Definition: CMTRawAnalyzer.cc:259
CMTRawAnalyzer::h_recNoiseEnergy0_HE2
TH2F * h_recNoiseEnergy0_HE2
Definition: CMTRawAnalyzer.cc:1703
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
CMTRawAnalyzer::h_mapDepth2TSmeanA225_HE
TH2F * h_mapDepth2TSmeanA225_HE
Definition: CMTRawAnalyzer.cc:740
CMTRawAnalyzer::h_sum0ADCAmplperLS1_M2
TH1F * h_sum0ADCAmplperLS1_M2
Definition: CMTRawAnalyzer.cc:1023
CMTRawAnalyzer::h_mapDepth1Pedw3_HB
TH2F * h_mapDepth1Pedw3_HB
Definition: CMTRawAnalyzer.cc:1465
CMTRawAnalyzer::h_mapDepth2Ped2_HB
TH2F * h_mapDepth2Ped2_HB
Definition: CMTRawAnalyzer.cc:1468
CMTRawAnalyzer::h_pedestalwaver9_HO
TH1F * h_pedestalwaver9_HO
Definition: CMTRawAnalyzer.cc:1316
CMTRawAnalyzer::h_pedestalaver9_HF
TH1F * h_pedestalaver9_HF
Definition: CMTRawAnalyzer.cc:1298
CMTRawAnalyzer::lsdep_estimator1_HEdepth3_
double lsdep_estimator1_HEdepth3_
Definition: CMTRawAnalyzer.cc:119
CMTRawAnalyzer::h_2D0sumErrorBLS5
TH2F * h_2D0sumErrorBLS5
Definition: CMTRawAnalyzer.cc:1550
HcalElectronicsId::spigot
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
Definition: HcalElectronicsId.h:93
HcalElectronicsId::dccid
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
Definition: HcalElectronicsId.h:95
CMTRawAnalyzer::h_2D0sumTSmaxALS8
TH2F * h_2D0sumTSmaxALS8
Definition: CMTRawAnalyzer.cc:1161
CMTRawAnalyzer::h_sum0ADCAmplperLS1_M1
TH1F * h_sum0ADCAmplperLS1_M1
Definition: CMTRawAnalyzer.cc:1021
CMTRawAnalyzer::h_recSignalEnergy1_HF1
TH2F * h_recSignalEnergy1_HF1
Definition: CMTRawAnalyzer.cc:1723
CMTRawAnalyzer::h_sumamplitude_depth2_HF0
TH1F * h_sumamplitude_depth2_HF0
Definition: CMTRawAnalyzer.cc:1448
CMTRawAnalyzer::h_recSignalEnergy2_HF1
TH2F * h_recSignalEnergy2_HF1
Definition: CMTRawAnalyzer.cc:1724
CMTRawAnalyzer::rmsHEMax_
double rmsHEMax_
Definition: CMTRawAnalyzer.cc:175
CMTRawAnalyzer::h_mapDepth2Ped1_HF
TH2F * h_mapDepth2Ped1_HF
Definition: CMTRawAnalyzer.cc:1507
CMTRawAnalyzer::h_sumPedestalperLS8
TH1F * h_sumPedestalperLS8
Definition: CMTRawAnalyzer.cc:929
CMTRawAnalyzer::h_mapDepth4ADCAmpl12_HB
TH2F * h_mapDepth4ADCAmpl12_HB
Definition: CMTRawAnalyzer.cc:507
CMTRawAnalyzer::h_averSIGNALsumamplitude_HE
TH1F * h_averSIGNALsumamplitude_HE
Definition: CMTRawAnalyzer.cc:1575
CMTRawAnalyzer::h_sumErrorBLS8
TH1F * h_sumErrorBLS8
Definition: CMTRawAnalyzer.cc:1567
CMTRawAnalyzer::h_amplitudeaveragedbydepthes_HE
TH1F * h_amplitudeaveragedbydepthes_HE
Definition: CMTRawAnalyzer.cc:339
CMTRawAnalyzer::h_sumErrorBperLS1
TH1F * h_sumErrorBperLS1
Definition: CMTRawAnalyzer.cc:1533
CMTRawAnalyzer::h_shape0_bad_channels_HE
TH1F * h_shape0_bad_channels_HE
Definition: CMTRawAnalyzer.cc:1423
CMTRawAnalyzer::eventcounter
int eventcounter
Definition: CMTRawAnalyzer.cc:1865
CMTRawAnalyzer::h_mapDepth3TSmeanA_HB
TH2F * h_mapDepth3TSmeanA_HB
Definition: CMTRawAnalyzer.cc:465
CMTRawAnalyzer::h_mapDepth1pedestalw_HF
TH2F * h_mapDepth1pedestalw_HF
Definition: CMTRawAnalyzer.cc:1328
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CMTRawAnalyzer::h_mapCapCalib047_HO
TH2F * h_mapCapCalib047_HO
Definition: CMTRawAnalyzer.cc:815
CMTRawAnalyzer::maxxOCCUP2
double maxxOCCUP2
Definition: CMTRawAnalyzer.cc:1899
CMTRawAnalyzer::h_sumCutTSmaxAperLS7
TH1F * h_sumCutTSmaxAperLS7
Definition: CMTRawAnalyzer.cc:1154
CMTRawAnalyzer::h_2DsumADCAmplLSdepth3HBu
TH2F * h_2DsumADCAmplLSdepth3HBu
Definition: CMTRawAnalyzer.cc:944
CMTRawAnalyzer::h_sumAmplitudeperLS5
TH1F * h_sumAmplitudeperLS5
Definition: CMTRawAnalyzer.cc:1190
HcalPedestalWidth
Definition: HcalPedestalWidth.h:15
CMTRawAnalyzer::h_mapDepth4Ampl_HO
TH2F * h_mapDepth4Ampl_HO
Definition: CMTRawAnalyzer.cc:602
CMTRawAnalyzer::h_mapDepth2_HB
TH2F * h_mapDepth2_HB
Definition: CMTRawAnalyzer.cc:495
CMTRawAnalyzer::h_mapDepth4Amplitude225_HB
TH2F * h_mapDepth4Amplitude225_HB
Definition: CMTRawAnalyzer.cc:486
CMTRawAnalyzer::h_sumADCAmplperLS7
TH1F * h_sumADCAmplperLS7
Definition: CMTRawAnalyzer.cc:1052
CMTRawAnalyzer::h_mapDepth1Pedw1_HB
TH2F * h_mapDepth1Pedw1_HB
Definition: CMTRawAnalyzer.cc:1463
CMTRawAnalyzer::h_2DsumADCAmplEtaPhiLs20
TH2F * h_2DsumADCAmplEtaPhiLs20
Definition: CMTRawAnalyzer.cc:294
CMTRawAnalyzer::h_totalAmplitudeHB
TH1F * h_totalAmplitudeHB
Definition: CMTRawAnalyzer.cc:331
HcalDbRecord
Definition: HcalDbRecord.h:30
CMTRawAnalyzer::h_sum0ADCAmplperLSdepth6HEu
TH1F * h_sum0ADCAmplperLSdepth6HEu
Definition: CMTRawAnalyzer.cc:1005
CMTRawAnalyzer::h_ADCAmplrest1_HE
TH1F * h_ADCAmplrest1_HE
Definition: CMTRawAnalyzer.cc:693
CMTRawAnalyzer::h_sumADCAmplperLS7u
TH1F * h_sumADCAmplperLS7u
Definition: CMTRawAnalyzer.cc:1055
CMTRawAnalyzer::h_mapDepth4pedestal_HF
TH2F * h_mapDepth4pedestal_HF
Definition: CMTRawAnalyzer.cc:1347
CMTRawAnalyzer::h_mapGetRMSOverNormalizedSignal0_HF
TH2F * h_mapGetRMSOverNormalizedSignal0_HF
Definition: CMTRawAnalyzer.cc:1527
CMTRawAnalyzer::h_mapDepth5Ampl_HE
TH2F * h_mapDepth5Ampl_HE
Definition: CMTRawAnalyzer.cc:788
CMTRawAnalyzer::ratioHBMin_
double ratioHBMin_
Definition: CMTRawAnalyzer.cc:73
CMTRawAnalyzer::beginJob
void beginJob() override
Definition: CMTRawAnalyzer.cc:7372
CMTRawAnalyzer::h_amplitudechannel1_HE5
TH2F * h_amplitudechannel1_HE5
Definition: CMTRawAnalyzer.cc:1762
CMTRawAnalyzer::h_mapDepth1ADCAmpl_HF
TH2F * h_mapDepth1ADCAmpl_HF
Definition: CMTRawAnalyzer.cc:531
CMTRawAnalyzer::h_mapDepth1pedestal_HB
TH2F * h_mapDepth1pedestal_HB
Definition: CMTRawAnalyzer.cc:1333
CMTRawAnalyzer::h_recSignalEnergy2_HF2
TH2F * h_recSignalEnergy2_HF2
Definition: CMTRawAnalyzer.cc:1727
CMTRawAnalyzer::h_mapDepth3RADDAM_HE
TH2F * h_mapDepth3RADDAM_HE
Definition: CMTRawAnalyzer.cc:1786
CMTRawAnalyzer::h_mapDepth5TSmeanA225_HE
TH2F * h_mapDepth5TSmeanA225_HE
Definition: CMTRawAnalyzer.cc:743
CMTRawAnalyzer::h_2DsumADCAmplLS5_LSselected
TH2F * h_2DsumADCAmplLS5_LSselected
Definition: CMTRawAnalyzer.cc:983
CMTRawAnalyzer::h_mapRatioCalib047_HE
TH2F * h_mapRatioCalib047_HE
Definition: CMTRawAnalyzer.cc:839
CMTRawAnalyzer::nnnnnn1
int nnnnnn1
Definition: CMTRawAnalyzer.cc:257
CMTRawAnalyzer::h_mapDepth1Pedw2_HE
TH2F * h_mapDepth1Pedw2_HE
Definition: CMTRawAnalyzer.cc:1480
CMTRawAnalyzer::h_fiber2_HO
TH1F * h_fiber2_HO
Definition: CMTRawAnalyzer.cc:417
CMTRawAnalyzer::h_mapDepth5Amplitude225_HE
TH2F * h_mapDepth5Amplitude225_HE
Definition: CMTRawAnalyzer.cc:773
CMTRawAnalyzer::studyPedestalCorrelations_
bool studyPedestalCorrelations_
Definition: CMTRawAnalyzer.cc:66
CMTRawAnalyzer::h_mapDepth2Ped3_HE
TH2F * h_mapDepth2Ped3_HE
Definition: CMTRawAnalyzer.cc:1485
CMTRawAnalyzer::h_2DsumTSmaxALS4
TH2F * h_2DsumTSmaxALS4
Definition: CMTRawAnalyzer.cc:1134
CMTRawAnalyzer::h_mapTSmaxCalib_HO
TH2F * h_mapTSmaxCalib_HO
Definition: CMTRawAnalyzer.cc:860
CMTRawAnalyzer::h_A_Depth2RADDAM_HE
TH1F * h_A_Depth2RADDAM_HE
Definition: CMTRawAnalyzer.cc:1799
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
CMTRawAnalyzer::h_2D0sumADCAmplLS8
TH2F * h_2D0sumADCAmplLS8
Definition: CMTRawAnalyzer.cc:1063
CMTRawAnalyzer::h_amplitudechannel1_HF4
TH2F * h_amplitudechannel1_HF4
Definition: CMTRawAnalyzer.cc:1781
CMTRawAnalyzer::h_RatioCalib_HO
TH1F * h_RatioCalib_HO
Definition: CMTRawAnalyzer.cc:855
CMTRawAnalyzer::h_recNoiseEnergy1_HF1
TH2F * h_recNoiseEnergy1_HF1
Definition: CMTRawAnalyzer.cc:1729
CMTRawAnalyzer::h_recNoiseEnergy0_HF1
TH2F * h_recNoiseEnergy0_HF1
Definition: CMTRawAnalyzer.cc:1728
CMTRawAnalyzer::ratioHOMax_
double ratioHOMax_
Definition: CMTRawAnalyzer.cc:80
CMTRawAnalyzer::h_shape_good_channels_HB
TH1F * h_shape_good_channels_HB
Definition: CMTRawAnalyzer.cc:1420
CMTRawAnalyzer::h_error5_HF
TH1F * h_error5_HF
Definition: CMTRawAnalyzer.cc:391
CMTRawAnalyzer::h_eventoccupancy_HB
TH1F * h_eventoccupancy_HB
Definition: CMTRawAnalyzer.cc:1602
CMTRawAnalyzer::h_sumCutTSmeanAperLS2
TH1F * h_sumCutTSmeanAperLS2
Definition: CMTRawAnalyzer.cc:1075
CMTRawAnalyzer::h_maprphinorm2_HE1
TH2F * h_maprphinorm2_HE1
Definition: CMTRawAnalyzer.cc:1631
CMTRawAnalyzer::h_maxxOCCUP_HF
TH1F * h_maxxOCCUP_HF
Definition: CMTRawAnalyzer.cc:1592
CMTRawAnalyzer::h_mapDepth2TSmaxA_HE
TH2F * h_mapDepth2TSmaxA_HE
Definition: CMTRawAnalyzer.cc:748
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
CMTRawAnalyzer::h_recSignalEnergy0_HE4
TH2F * h_recSignalEnergy0_HE4
Definition: CMTRawAnalyzer.cc:1688
CMTRawAnalyzer::endJob
void endJob() override
Definition: CMTRawAnalyzer.cc:1932
CMTRawAnalyzer::h_ADCAmpl_HB
TH1F * h_ADCAmpl_HB
Definition: CMTRawAnalyzer.cc:448
CMTRawAnalyzer::h_nevents_per_eachRealLS
TH1F * h_nevents_per_eachRealLS
Definition: CMTRawAnalyzer.cc:890
CMTRawAnalyzer::h_mapDepth6AmplE34_HE
TH2F * h_mapDepth6AmplE34_HE
Definition: CMTRawAnalyzer.cc:796
CMTRawAnalyzer::h_mapDepth4Amplitude_HE
TH2F * h_mapDepth4Amplitude_HE
Definition: CMTRawAnalyzer.cc:765
CMTRawAnalyzer::h_mapDepth1ADCAmpl_HB
TH2F * h_mapDepth1ADCAmpl_HB
Definition: CMTRawAnalyzer.cc:452
CMTRawAnalyzer::h_pedvsampl_HE
TH1F * h_pedvsampl_HE
Definition: CMTRawAnalyzer.cc:1386
CMTRawAnalyzer::h_mapADCCalib_HB
TH2F * h_mapADCCalib_HB
Definition: CMTRawAnalyzer.cc:820
CMTRawAnalyzer::h_mapDepth1ADCAmpl_HE
TH2F * h_mapDepth1ADCAmpl_HE
Definition: CMTRawAnalyzer.cc:696
CMTRawAnalyzer::h_maprphinorm2_HE2
TH2F * h_maprphinorm2_HE2
Definition: CMTRawAnalyzer.cc:1632
edm::Event
Definition: Event.h:73
CMTRawAnalyzer::h_mapDepth2pedestalw_HF
TH2F * h_mapDepth2pedestalw_HF
Definition: CMTRawAnalyzer.cc:1329
CMTRawAnalyzer::h_sumPedestalperLS7
TH1F * h_sumPedestalperLS7
Definition: CMTRawAnalyzer.cc:924
CMTRawAnalyzer::h_Amplitude_forCapIdErrors_HE3
TH1F * h_Amplitude_forCapIdErrors_HE3
Definition: CMTRawAnalyzer.cc:674
CMTRawAnalyzer::h_2D0sumADCAmplLSdepth3HFu
TH2F * h_2D0sumADCAmplLSdepth3HFu
Definition: CMTRawAnalyzer.cc:941
CMTRawAnalyzer::h_mapDepth6TSmaxA225_HE
TH2F * h_mapDepth6TSmaxA225_HE
Definition: CMTRawAnalyzer.cc:759
CMTRawAnalyzer::h_mapenophinorm2_HE1
TH2F * h_mapenophinorm2_HE1
Definition: CMTRawAnalyzer.cc:1617
CMTRawAnalyzer::h_mapDepth2AmplE34_HF
TH2F * h_mapDepth2AmplE34_HF
Definition: CMTRawAnalyzer.cc:572
CMTRawAnalyzer::h_pedestalw3_HE
TH1F * h_pedestalw3_HE
Definition: CMTRawAnalyzer.cc:1290
CMTRawAnalyzer::h_mapDepth7ADCAmpl225Copy_HE
TH2F * h_mapDepth7ADCAmpl225Copy_HE
Definition: CMTRawAnalyzer.cc:430
CMTRawAnalyzer::h_mapDepth4Ped3_HO
TH2F * h_mapDepth4Ped3_HO
Definition: CMTRawAnalyzer.cc:1517
CMTRawAnalyzer::h_mapDepth1Amplitude225_HF
TH2F * h_mapDepth1Amplitude225_HF
Definition: CMTRawAnalyzer.cc:560
CMTRawAnalyzer::h_mapDepth3RADDAM0_HE
TH2F * h_mapDepth3RADDAM0_HE
Definition: CMTRawAnalyzer.cc:1794
CMTRawAnalyzer::h_mapTSmeanCalib_HB
TH2F * h_mapTSmeanCalib_HB
Definition: CMTRawAnalyzer.cc:829
CMTRawAnalyzer::h_amplitudechannel1_HB1
TH2F * h_amplitudechannel1_HB1
Definition: CMTRawAnalyzer.cc:1737
CMTRawAnalyzer::h_sumCutAmplperLS6
TH1F * h_sumCutAmplperLS6
Definition: CMTRawAnalyzer.cc:1246
CMTRawAnalyzer::h_sumCutTSmaxAperLS2
TH1F * h_sumCutTSmaxAperLS2
Definition: CMTRawAnalyzer.cc:1124
lumi
Definition: LumiSectionData.h:20
CMTRawAnalyzer::h_pedestalaver9_HE
TH1F * h_pedestalaver9_HE
Definition: CMTRawAnalyzer.cc:1286
CMTRawAnalyzer::h_sumamplitudechannel_HF
TH1F * h_sumamplitudechannel_HF
Definition: CMTRawAnalyzer.cc:1596
CMTRawAnalyzer::h_sumErrorBperLS5
TH1F * h_sumErrorBperLS5
Definition: CMTRawAnalyzer.cc:1553
CMTRawAnalyzer::h_mapDepth3ADCAmpl_HE
TH2F * h_mapDepth3ADCAmpl_HE
Definition: CMTRawAnalyzer.cc:698
CMTRawAnalyzer::h_fiber0_HF
TH1F * h_fiber0_HF
Definition: CMTRawAnalyzer.cc:400
CMTRawAnalyzer::bcnrejectedhigh_
int bcnrejectedhigh_
Definition: CMTRawAnalyzer.cc:92
CMTRawAnalyzer::h_sumPedestalLS4
TH1F * h_sumPedestalLS4
Definition: CMTRawAnalyzer.cc:907
CMTRawAnalyzer::h_mapDepth4Ampl047_HE
TH2F * h_mapDepth4Ampl047_HE
Definition: CMTRawAnalyzer.cc:780
CMTRawAnalyzer::h_amplFine_HB
TH1F * h_amplFine_HB
Definition: CMTRawAnalyzer.cc:356
CMTRawAnalyzer::h_recNoiseEnergy1_HE7
TH2F * h_recNoiseEnergy1_HE7
Definition: CMTRawAnalyzer.cc:1719
CMTRawAnalyzer::h_RatioOccupancy_HOP
TH1F * h_RatioOccupancy_HOP
Definition: CMTRawAnalyzer.cc:1253
CMTRawAnalyzer::h_sumADCAmplperLS6
TH1F * h_sumADCAmplperLS6
Definition: CMTRawAnalyzer.cc:992
CMTRawAnalyzer::h_mapCapCalib047_HF
TH2F * h_mapCapCalib047_HF
Definition: CMTRawAnalyzer.cc:816
CMTRawAnalyzer::h_lutcorr_HO
TH1F * h_lutcorr_HO
Definition: CMTRawAnalyzer.cc:1372
CMTRawAnalyzer::h_2DsumTSmeanALS3
TH2F * h_2DsumTSmeanALS3
Definition: CMTRawAnalyzer.cc:1079
CMTRawAnalyzer::h_2D0sumTSmeanALS8
TH2F * h_2D0sumTSmeanALS8
Definition: CMTRawAnalyzer.cc:1112
HcalLogicalMap
Definition: HcalLogicalMap.h:12
CMTRawAnalyzer::h_amplvsped0_HB
TH1F * h_amplvsped0_HB
Definition: CMTRawAnalyzer.cc:1383
CMTRawAnalyzer::lsdep_estimator2_HBdepth1_
double lsdep_estimator2_HBdepth1_
Definition: CMTRawAnalyzer.cc:135
CMTRawAnalyzer::h_averSIGNALsumamplitude_HO
TH1F * h_averSIGNALsumamplitude_HO
Definition: CMTRawAnalyzer.cc:1577
CMTRawAnalyzer::h_sum0ADCAmplperLSdepth7HEu
TH1F * h_sum0ADCAmplperLSdepth7HEu
Definition: CMTRawAnalyzer.cc:1006
CMTRawAnalyzer::h_mapDepth5_HE
TH2F * h_mapDepth5_HE
Definition: CMTRawAnalyzer.cc:802
CMTRawAnalyzer::h_runbadrate_depth2_HF
TH1F * h_runbadrate_depth2_HF
Definition: CMTRawAnalyzer.cc:651
CMTRawAnalyzer::h_2DsumErrorBLS4
TH2F * h_2DsumErrorBLS4
Definition: CMTRawAnalyzer.cc:1546
CMTRawAnalyzer::h_mapDepth7Ampl047_HE
TH2F * h_mapDepth7Ampl047_HE
Definition: CMTRawAnalyzer.cc:783
CMTRawAnalyzer::h_runnbadchannelsC_depth2_HE
TH1F * h_runnbadchannelsC_depth2_HE
Definition: CMTRawAnalyzer.cc:626
CMTRawAnalyzer::h_runbadrate0_depth3_HE
TH1F * h_runbadrate0_depth3_HE
Definition: CMTRawAnalyzer.cc:635
CMTRawAnalyzer::calibrTSmaxHFMin_
double calibrTSmaxHFMin_
Definition: CMTRawAnalyzer.cc:227
CMTRawAnalyzer::h_pedestal3_HF
TH1F * h_pedestal3_HF
Definition: CMTRawAnalyzer.cc:1296
CMTRawAnalyzer::h_sumADCAmplperLS8
TH1F * h_sumADCAmplperLS8
Definition: CMTRawAnalyzer.cc:1061
CMTRawAnalyzer::h_sumTSmeanAperLS1
TH1F * h_sumTSmeanAperLS1
Definition: CMTRawAnalyzer.cc:1067
cuy.ii
ii
Definition: cuy.py:590
CMTRawAnalyzer::h_mapDepth3AmplE34_HB
TH2F * h_mapDepth3AmplE34_HB
Definition: CMTRawAnalyzer.cc:500
CMTRawAnalyzer::h_sumCutADCAmplperLSdepth6HEu
TH1F * h_sumCutADCAmplperLSdepth6HEu
Definition: CMTRawAnalyzer.cc:1001
edm::InputTag
Definition: InputTag.h:15
CMTRawAnalyzer::h_timecorr_HE
TH1F * h_timecorr_HE
Definition: CMTRawAnalyzer.cc:1361
CMTRawAnalyzer::h_amplitudechannel0_HF1
TH2F * h_amplitudechannel0_HF1
Definition: CMTRawAnalyzer.cc:1771
CMTRawAnalyzer::h_amplitudechannel1_HF1
TH2F * h_amplitudechannel1_HF1
Definition: CMTRawAnalyzer.cc:1772
CMTRawAnalyzer::h_gsmdifferencefit6_HE
TH1F * h_gsmdifferencefit6_HE
Definition: CMTRawAnalyzer.cc:720
CMTRawAnalyzer::maxxOCCUP1
double maxxOCCUP1
Definition: CMTRawAnalyzer.cc:1898
CMTRawAnalyzer::h_sumADCAmplperLS6_P2
TH1F * h_sumADCAmplperLS6_P2
Definition: CMTRawAnalyzer.cc:1034
CMTRawAnalyzer::bcn
int bcn
Definition: CMTRawAnalyzer.cc:1867
CMTRawAnalyzer::h_maprphinorm_HE6
TH2F * h_maprphinorm_HE6
Definition: CMTRawAnalyzer.cc:1629
CMTRawAnalyzer::fillDigiErrorsHO
void fillDigiErrorsHO(HODigiCollection::const_iterator &digiItr)
Definition: CMTRawAnalyzer.cc:9729
CMTRawAnalyzer::lsdep_estimator1_HFdepth3_
double lsdep_estimator1_HFdepth3_
Definition: CMTRawAnalyzer.cc:129
CMTRawAnalyzer::calibrRatioHFMin_
double calibrRatioHFMin_
Definition: CMTRawAnalyzer.cc:219
CMTRawAnalyzer::h_shape_bad_channels_HF
TH1F * h_shape_bad_channels_HF
Definition: CMTRawAnalyzer.cc:1426
CMTRawAnalyzer::h_sum0TSmeanAperLS7
TH1F * h_sum0TSmeanAperLS7
Definition: CMTRawAnalyzer.cc:1107
CMTRawAnalyzer::h_sumamplitude_depth1_HF
TH1F * h_sumamplitude_depth1_HF
Definition: CMTRawAnalyzer.cc:1439
CMTRawAnalyzer::h_sum0ErrorBperLS3
TH1F * h_sum0ErrorBperLS3
Definition: CMTRawAnalyzer.cc:1544
CMTRawAnalyzer::lsdep_estimator2_HEdepth3_
double lsdep_estimator2_HEdepth3_
Definition: CMTRawAnalyzer.cc:139
CMTRawAnalyzer::h_sumPedestalperLS6
TH1F * h_sumPedestalperLS6
Definition: CMTRawAnalyzer.cc:919
CMTRawAnalyzer::h_recNoiseEnergy2_HE7
TH2F * h_recNoiseEnergy2_HE7
Definition: CMTRawAnalyzer.cc:1720
CMTRawAnalyzer::h_sumAmplitudeperLS4
TH1F * h_sumAmplitudeperLS4
Definition: CMTRawAnalyzer.cc:1184
CMTRawAnalyzer::h_sumADCAmplLS6
TH1F * h_sumADCAmplLS6
Definition: CMTRawAnalyzer.cc:988
CMTRawAnalyzer::h_mapDepth3ADCAmpl225_HE
TH2F * h_mapDepth3ADCAmpl225_HE
Definition: CMTRawAnalyzer.cc:726
CMTRawAnalyzer::h_pedestalw0_HF
TH1F * h_pedestalw0_HF
Definition: CMTRawAnalyzer.cc:1299
CMTRawAnalyzer::h_mapDepth4Pedw1_HO
TH2F * h_mapDepth4Pedw1_HO
Definition: CMTRawAnalyzer.cc:1519
CMTRawAnalyzer::h_eventoccupancy_HF
TH1F * h_eventoccupancy_HF
Definition: CMTRawAnalyzer.cc:1604
CMTRawAnalyzer::h_sumCutAmplperLS8
TH1F * h_sumCutAmplperLS8
Definition: CMTRawAnalyzer.cc:1266
CMTRawAnalyzer::MAPfile
ofstream MAPfile
Definition: CMTRawAnalyzer.cc:1904
CMTRawAnalyzer::ADCAmplHEMax_
double ADCAmplHEMax_
Definition: CMTRawAnalyzer.cc:205
CMTRawAnalyzer::h_gain_HB
TH1F * h_gain_HB
Definition: CMTRawAnalyzer.cc:1350
CMTRawAnalyzer::h_sum0AmplperLS6
TH1F * h_sum0AmplperLS6
Definition: CMTRawAnalyzer.cc:1248
CMTRawAnalyzer::h_sumTSmaxALS5
TH1F * h_sumTSmaxALS5
Definition: CMTRawAnalyzer.cc:1139
CMTRawAnalyzer::lsdep_estimator2_HBdepth2_
double lsdep_estimator2_HBdepth2_
Definition: CMTRawAnalyzer.cc:136
CMTRawAnalyzer::maxNeventsInNtuple_
int maxNeventsInNtuple_
Definition: CMTRawAnalyzer.cc:54
CMTRawAnalyzer::lsdep_estimator5_HBdepth2_
double lsdep_estimator5_HBdepth2_
Definition: CMTRawAnalyzer.cc:163
CMTRawAnalyzer::h_sumPedestalLS2
TH1F * h_sumPedestalLS2
Definition: CMTRawAnalyzer.cc:897
CMTRawAnalyzer::calibrTSmaxHBMin_
double calibrTSmaxHBMin_
Definition: CMTRawAnalyzer.cc:224
CMTRawAnalyzer::averNOSIGNALsumamplitude_HO
double averNOSIGNALsumamplitude_HO
Definition: CMTRawAnalyzer.cc:1893
CMTRawAnalyzer::h_2D0sumADCAmplLSdepth4HBu
TH2F * h_2D0sumADCAmplLSdepth4HBu
Definition: CMTRawAnalyzer.cc:947
CMTRawAnalyzer::flagtoaskrunsorls_
int flagtoaskrunsorls_
Definition: CMTRawAnalyzer.cc:86
CMTRawAnalyzer::useADCcounts_
bool useADCcounts_
Definition: CMTRawAnalyzer.cc:70
CMTRawAnalyzer::lsdep_cut3_max_HEdepth2_
int lsdep_cut3_max_HEdepth2_
Definition: CMTRawAnalyzer.cc:110
CMTRawAnalyzer::ratioHEMin_
double ratioHEMin_
Definition: CMTRawAnalyzer.cc:75
CMTRawAnalyzer::h_error1_HB
TH1F * h_error1_HB
Definition: CMTRawAnalyzer.cc:348
CMTRawAnalyzer::h_sum0TSmaxAperLS6
TH1F * h_sum0TSmaxAperLS6
Definition: CMTRawAnalyzer.cc:1150
CMTRawAnalyzer::h_sum0ADCAmplperLS8_P1
TH1F * h_sum0ADCAmplperLS8_P1
Definition: CMTRawAnalyzer.cc:1041
CMTRawAnalyzer::h_mapDepth3TSmeanA225_HF
TH2F * h_mapDepth3TSmeanA225_HF
Definition: CMTRawAnalyzer.cc:546
CMTRawAnalyzer::h_mapDepth2RADDAM_HE
TH2F * h_mapDepth2RADDAM_HE
Definition: CMTRawAnalyzer.cc:1785
CMTRawAnalyzer::h_eventamplitude_HB
TH1F * h_eventamplitude_HB
Definition: CMTRawAnalyzer.cc:1598
HcalLogicalMapGenerator
Definition: HcalLogicalMapGenerator.h:7
CMTRawAnalyzer::h_2DsumADCAmplLSdepth4HBu
TH2F * h_2DsumADCAmplLSdepth4HBu
Definition: CMTRawAnalyzer.cc:946
CMTRawAnalyzer::h2_pedwvsampl_HB
TH2F * h2_pedwvsampl_HB
Definition: CMTRawAnalyzer.cc:1374
CMTRawAnalyzer::h_sumTSmaxAperLS5
TH1F * h_sumTSmaxAperLS5
Definition: CMTRawAnalyzer.cc:1141
CMTRawAnalyzer::h_pedestal1_HO
TH1F * h_pedestal1_HO
Definition: CMTRawAnalyzer.cc:1306
CMTRawAnalyzer::flagsipmcorrection_
int flagsipmcorrection_
Definition: CMTRawAnalyzer.cc:96
CMTRawAnalyzer::h_sumTSmaxALS4
TH1F * h_sumTSmaxALS4
Definition: CMTRawAnalyzer.cc:1133
CMTRawAnalyzer::calibrTSmaxHEMin_
double calibrTSmaxHEMin_
Definition: CMTRawAnalyzer.cc:225
CMTRawAnalyzer::h_amplitudechannel2_HE4
TH2F * h_amplitudechannel2_HE4
Definition: CMTRawAnalyzer.cc:1760
CMTRawAnalyzer::shape
const HcalQIEShape * shape
Definition: CMTRawAnalyzer.cc:46
CMTRawAnalyzer::calibrTSmaxHFMax_
double calibrTSmaxHFMax_
Definition: CMTRawAnalyzer.cc:231
CMTRawAnalyzer::h_map_HO
TH2F * h_map_HO
Definition: CMTRawAnalyzer.cc:867
edm::DataFrameContainer::size
size_type size() const
Definition: DataFrameContainer.h:162
CMTRawAnalyzer::h_mapDepth2Pedw2_HB
TH2F * h_mapDepth2Pedw2_HB
Definition: CMTRawAnalyzer.cc:1472
CMTRawAnalyzer::h_2DsumAmplitudeLS1
TH2F * h_2DsumAmplitudeLS1
Definition: CMTRawAnalyzer.cc:1164
HcalPedestal::getValue
float getValue(int fCapId) const
get value for capId = 0..3
Definition: HcalPedestal.h:20
CMTRawAnalyzer::calibrWidthHOMax_
double calibrWidthHOMax_
Definition: CMTRawAnalyzer.cc:246
CMTRawAnalyzer::lsdep_estimator5_HEdepth2_
double lsdep_estimator5_HEdepth2_
Definition: CMTRawAnalyzer.cc:165
CMTRawAnalyzer::lsdep_estimator1_HEdepth4_
double lsdep_estimator1_HEdepth4_
Definition: CMTRawAnalyzer.cc:124
CMTRawAnalyzer::h_sumADCAmplEtaPhiLs_lscounterM1orbitNum
TH1F * h_sumADCAmplEtaPhiLs_lscounterM1orbitNum
Definition: CMTRawAnalyzer.cc:301
CMTRawAnalyzer::h_mapDepth4Ped0_HO
TH2F * h_mapDepth4Ped0_HO
Definition: CMTRawAnalyzer.cc:1514
CMTRawAnalyzer::endRun
void endRun(const edm::Run &r, const edm::EventSetup &iSetup) override
Definition: CMTRawAnalyzer.cc:13364
HcalFrontEndId::adc
int adc() const
Definition: HcalFrontEndId.h:31
CMTRawAnalyzer::h_sumamplitude_depth3_HE1
TH1F * h_sumamplitude_depth3_HE1
Definition: CMTRawAnalyzer.cc:1454
CMTRawAnalyzer::h_mapDepth5TSmeanA_HE
TH2F * h_mapDepth5TSmeanA_HE
Definition: CMTRawAnalyzer.cc:736
CMTRawAnalyzer::h_bcnvsamplitude0_HB
TH1F * h_bcnvsamplitude0_HB
Definition: CMTRawAnalyzer.cc:273
CMTRawAnalyzer::h_amplitudechannel0_HB3
TH2F * h_amplitudechannel0_HB3
Definition: CMTRawAnalyzer.cc:1742
CMTRawAnalyzer::calibrTSmaxHBMax_
double calibrTSmaxHBMax_
Definition: CMTRawAnalyzer.cc:228
CMTRawAnalyzer::h_sumAmplitudeLS4
TH1F * h_sumAmplitudeLS4
Definition: CMTRawAnalyzer.cc:1182
CMTRawAnalyzer::h_TSmeanA_HB
TH1F * h_TSmeanA_HB
Definition: CMTRawAnalyzer.cc:460
CMTRawAnalyzer::counterhf
int counterhf
Definition: CMTRawAnalyzer.cc:254
CMTRawAnalyzer::h_mapDepth3ADCAmpl225Copy_HE
TH2F * h_mapDepth3ADCAmpl225Copy_HE
Definition: CMTRawAnalyzer.cc:426
CMTRawAnalyzer::h_sigLayer1RADDAM5_HE
TH1F * h_sigLayer1RADDAM5_HE
Definition: CMTRawAnalyzer.cc:1810
CMTRawAnalyzer::blsmax
float blsmax
Definition: CMTRawAnalyzer.cc:1926
CMTRawAnalyzer::h_sum0ADCAmplperLS1_P1
TH1F * h_sum0ADCAmplperLS1_P1
Definition: CMTRawAnalyzer.cc:1017
CMTRawAnalyzer::h_amplitudechannel1_HE1
TH2F * h_amplitudechannel1_HE1
Definition: CMTRawAnalyzer.cc:1750
CMTRawAnalyzer::pedestalHFMax_
double pedestalHFMax_
Definition: CMTRawAnalyzer.cc:269
CMTRawAnalyzer::h_sumTSmaxAperLS2
TH1F * h_sumTSmaxAperLS2
Definition: CMTRawAnalyzer.cc:1123
CMTRawAnalyzer::h_map0AiForLS_good_HF
TH2F * h_map0AiForLS_good_HF
Definition: CMTRawAnalyzer.cc:318
CMTRawAnalyzer::h_2D0sumADCAmplLS5
TH2F * h_2D0sumADCAmplLS5
Definition: CMTRawAnalyzer.cc:986