18 : m_digiCollection(paramSet.getParameter<
std::
string>(
"digiCollection")),
19 m_digiProducer(paramSet.getParameter<
std::
string>(
"digiProducer")),
20 m_headerProducer(paramSet.getParameter<
std::
string>(
"headerProducer")),
21 m_xmlFile(paramSet.getParameter<
std::
string>(
"xmlFile")),
22 m_DACmin(paramSet.getParameter<
int>(
"DACmin")),
23 m_DACmax(paramSet.getParameter<
int>(
"DACmax")),
24 m_RMSmax(paramSet.getParameter<double>(
"RMSmax")),
25 m_bestPed(paramSet.getParameter<
int>(
"bestPed")),
26 m_xtal(paramSet.getParameter<
int>(
"xtal")),
27 m_pedVSDAC(
"pedVSDAC",
"pedVSDAC", 100, 150, 250, m_DACmax - m_DACmin, m_DACmin, m_DACmax),
28 m_singlePedVSDAC_1(
"singlePedVSDAC_1",
29 "pedVSDAC (g1) for xtal " + TString(m_xtal),
36 m_singlePedVSDAC_2(
"singlePedVSDAC_2",
37 "pedVSDAC (g2) for xtal " + TString(m_xtal),
44 m_singlePedVSDAC_3(
"singlePedVSDAC_3",
45 "pedVSDAC (g3) for xtal " + TString(m_xtal),
65 LogDebug(
"testChannel") <<
"entering analyze ...";
75 std::map<int, int> DACvalues;
98 int crystalId =
EBDetId(itdigi->id()).ic();
101 edm::LogInfo(
"testChannel") <<
"channel " <<
event.id() <<
"\tcry: " << crystalId <<
"\tG: " <<
gainId
102 <<
"\tDAC: " << DACvalues[smId];
108 if (crystalId ==
m_xtal) {
123 sprintf(ccout,
"out_%d.root",
m_xtal);
124 TFile
out(ccout,
"RECREATE");
133 profilo1->Write(
"singleProfile_1");
134 profilo2->Write(
"singleProfile_2");
135 profilo3->Write(
"singleProfile_3");