if(debug)std::cout<<" energy in the layer = "<<l<<" , "<<MIP_TOT_layer<<std::endl;
h_mipInLayer->Fill(l,MIP_TOT_layer);
h_mipVsLayer->Fill(l,MIP_TOT_layer);
MIP_TOT_endcap+=MIP_TOT_layer;
Et_TOT_endcap+=Et_TOT_layer;
E_TOT_endcap+=E_TOT_layer;
//tMIP_TOT_layer[i] = MIP_TOT_layer;
//tMIP_TOT_layerInCone[i] = MIP_TOT_layerInCone;
if(MIP_TOT_layer>0){
//std::cout << "Layer "<< l << " total energy = " << tMIP_TOT_layer[i] << " total energy in the cone = " << tMIP_TOT_layerInCone[i] << " fraction of collected energy = " << tMIP_TOT_layerInCone[i] / tMIP_TOT_layer[i] << std::endl;
//std::cout << "Layer "<< l << " total energy = " << tMIP_TOT_layer[i] << " total energy in the cone = " << tMIP_TOT_layerInCone[i] << " fraction of collected energy = " << tMIP_TOT_layerInCone[i] / tMIP_TOT_layer[i] << std::endl;