10 sprintf(filename,
"endcap_iniCalib.xml");
12 sprintf(filename,
"barrel_iniCalib.xml");
15 fprintf(
FILENAME,
"<?xml version=\"1.0\" ?>\n");
16 fprintf(
FILENAME,
"<CalibrationConstants>\n");
30 sprintf(filename,
"endcap_calib_loop_%d.xml",loop);
32 sprintf(filename,
"barrel_calib_loop_%d.xml",loop);
35 fprintf(
FILENAME,
"<?xml version=\"1.0\" ?>\n");
36 fprintf(
FILENAME,
"<CalibrationConstants>\n");
52 fprintf(
FILENAME,
"</CalibrationConstants>\n");
60 fprintf(
FILENAME,
"<Cell eta_index=\"%d\" phi_index=\"%d\" scale_factor=\"%f\"/>\n",eta,phi,calib);
68 int z=det.
zside()>0 ? 1 : 0;
69 fprintf(
FILENAME,
"<Cell x_index=\"%d\" y_index=\"%d\" z_index=\"%d\" scale_factor=\"%f\"/>\n",x,y,z,calib);
void writeLine(EBDetId const &, float)
int iphi() const
get the crystal iphi
MVATrainerComputer * calib
int ieta() const
get the crystal ieta
Pi0CalibXMLwriter(EcalSubdetector=EcalBarrel)