cms-sw/cmssw — pull request #3420 by mark-grimes (2014-04-22 10:02:25+00:00)
Title: Add customisation without EE

Stops the ECal trigger primitive producer from using the endcaps in scenarios without EE (Shashlik and HGCal). This was discussed with @kpedro88 and @ianna in the comments for #3229, I've only just gotten around to adding it. Previously the Shashlik scenarios failed in step 2 with:

----- Begin Fatal Exception 22-Apr-2014 11:20:00 CEST-----------------------
An exception of category 'NoRecord' occurred while
[0] Processing run: 1
[1] Running path 'digitisation_step'
[2] Calling beginRun for module EcalTrigPrimProducer/'simEcalTriggerPrimitiveDigis'
Exception Message:
No "EcalEndcapGeometryRecord" record found in the EventSetup.
Please add an ESSource or ESProducer that delivers such a record.
----- End Fatal Exception -------------------------------------------------

This fixes that error, although step 2 still fails with:

cmsRun: /src/SimCalorimetry/EcalSimAlgos/src/ESDigitizer.cc:70: void ESDigitizer::setGain(int): Assertion `0 != m_detIds && 0 != m_detIds->size()' failed.