#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "SimCalorimetry/EcalElectronicsEmulation/interface/EcalSimRawData.h"
#include <memory>
#include "DataFormats/EcalDigi/interface/EcalMGPASample.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>