diff --git a/SimCalorimetry/EcalSimProducers/plugins/EcalDigiProducer.cc b/SimCalorimetry/EcalSimProducers/plugins/EcalDigiProducer.cc index 8c454fbb8b767..43054bae288f8 100644 --- a/SimCalorimetry/EcalSimProducers/plugins/EcalDigiProducer.cc +++ b/SimCalorimetry/EcalSimProducers/plugins/EcalDigiProducer.cc @@ -57,6 +57,13 @@ EcalDigiProducer::EcalDigiProducer(const edm::ParameterSet& params) theEcalResponse = new CaloHitResponse(theParameterMap, theEcalShape); theESResponse = new CaloHitResponse(theParameterMap, theESShape); + // further phase for cosmics studies + cosmicsPhase = params.getParameter("cosmicsPhase"); + cosmicsShift = params.getParameter("cosmicsShift"); + if (cosmicsPhase) { + theEcalResponse->setPhaseShift(1.+cosmicsShift); + } + EcalCorrMatrix thisMatrix; std::vector corrNoiseMatrix = params.getParameter< std::vector >("CorrelatedNoiseMatrix"); diff --git a/SimCalorimetry/EcalSimProducers/plugins/EcalDigiProducer.h b/SimCalorimetry/EcalSimProducers/plugins/EcalDigiProducer.h index 9b712211bd2c9..3317df46687af 100644 --- a/SimCalorimetry/EcalSimProducers/plugins/EcalDigiProducer.h +++ b/SimCalorimetry/EcalSimProducers/plugins/EcalDigiProducer.h @@ -85,6 +85,9 @@ class EcalDigiProducer : public edm::EDProducer double EBs25notCont; double EEs25notCont; + bool cosmicsPhase; + double cosmicsShift; + bool doFast; }; diff --git a/SimCalorimetry/EcalSimProducers/python/ecaldigi_cfi.py b/SimCalorimetry/EcalSimProducers/python/ecaldigi_cfi.py index 2ed4b241972ad..0c850ea976689 100644 --- a/SimCalorimetry/EcalSimProducers/python/ecaldigi_cfi.py +++ b/SimCalorimetry/EcalSimProducers/python/ecaldigi_cfi.py @@ -4,8 +4,10 @@ from SimCalorimetry.EcalSimProducers.ecalElectronicsSim_cff import * from SimCalorimetry.EcalSimProducers.esElectronicsSim_cff import * from SimCalorimetry.EcalSimProducers.ecalNotContainmentSim_cff import * +from SimCalorimetry.EcalSimProducers.ecalCosmicsSim_cff import * simEcalUnsuppressedDigis = cms.EDProducer("EcalDigiProducer", ecal_electronics_sim, + ecal_cosmics_sim, ecal_sim_parameter_map, ecal_notCont_sim, es_electronics_sim, @@ -46,3 +48,4 @@ ) +