16 data_ =
config.getUntrackedParameter<
int>(
"data", -1000);
71 hname =
"xtal in beam position";
73 hname =
"Max Amplitude vs TDC offset";
75 hname =
"Beam Profile X";
77 hname =
"Beam Profile Y";
79 hname =
"E1x1 energy";
81 hname =
"E3x3 energy";
83 hname =
"E5x5 energy";
85 hname =
"E1x1 energy center";
87 hname =
"E3x3 energy center";
89 hname =
"E5x5 energy center";
91 hname =
"E1 over E9 ratio";
93 hname =
"E1 over E25 ratio";
95 hname =
"E9 over E25 ratio";
101 hname =
"E1 over E9 vs X";
103 hname =
"E1 over E9 vs Y";
105 hname =
"E1 over E25 vs X";
107 hname =
"E1 over E25 vs Y";
109 hname =
"E9 over E25 vs X";
111 hname =
"E9 over E25 vs Y";
113 hname =
"Xtal in Beam Shape";
136 if (
phits.isValid()) {
170 evtHeader = pEventHeader.
product();
179 if (xtalInBeamId ==
EBDetId(0)) {
182 int xibEta = xtalInBeamId.
ieta();
183 int xibPhi = xtalInBeamId.
iphi();
191 for (
unsigned int icry = 0; icry < 25; icry++) {
192 unsigned int row = icry / 5;
193 unsigned int column = icry % 5;
194 int ieta = xtalInBeamId.
ieta() + column - 2;
195 int iphi = xtalInBeamId.
iphi() + row - 2;
198 if (tempId.
ism() == 1)
199 Xtals5x5[icry] = tempId;
211 for (
unsigned int icry = 0; icry < 25; icry++) {
212 if (!Xtals5x5[icry].
null()) {
218 if (icry == 6 || icry == 7 || icry == 8 || icry == 11 || icry == 12 || icry == 13 || icry == 16 || icry == 17 ||
226 double sampleSave[10];
227 for (
int ii = 0;
ii < 10; ++
ii) {
228 sampleSave[
ii] = 0.0;
233 if (thisDigi != theDigis->
end()) {
237 sampleSave[
sample] = analogSample;
238 if (
eMax < analogSample) {
246 double xBeam = theHodo->
posX();
247 double yBeam = theHodo->
posY();
269 for (
int ii = 0;
ii < 10; ++
ii) {
273 if ((fabs(xBeam) < 2.5) && (fabs(yBeam) < 2.5)) {