26 : EcalPreshowerRecHitsMaker_(
NULL),EcalBarrelRecHitsMaker_(
NULL), EcalEndcapRecHitsMaker_(
NULL), HcalRecHitsMaker_(
NULL)
33 <<
"CaloRecHitsProducer requires the RandomGeneratorService\n"
34 "which is not present in the configuration file.\n"
35 "You must add the service in the configuration file\n"
36 "or remove the module that requires it";
52 if (theOutputRecHitCollections.size()&&theOutputRecHitCollections[
input].size())
53 produces<ESRecHitCollection>(theOutputRecHitCollections[input]);
55 produces<ESRecHitCollection>();
58 std::cout <<
" The digitization of the preshower is not implemented " << std::endl;
67 if (theOutputRecHitCollections.size()&&theOutputRecHitCollections[
input].size())
68 produces<EBRecHitCollection>(theOutputRecHitCollections[input]);
70 produces<EBRecHitCollection>();
72 if (doDigis_) produces<EBDigiCollection>();
80 if (theOutputRecHitCollections.size()&&theOutputRecHitCollections[
input].size())
81 produces<EERecHitCollection>(theOutputRecHitCollections[input]);
83 produces<EERecHitCollection>();
84 if (doDigis_) produces<EEDigiCollection>();
92 if (theOutputRecHitCollections.size()&&theOutputRecHitCollections[
input].size())
93 produces<HBHERecHitCollection>(theOutputRecHitCollections[input]);
95 produces<HBHERecHitCollection>();
97 if (doDigis_) produces<HBHEDigiCollection>();
105 if (theOutputRecHitCollections.size()&&theOutputRecHitCollections[
input].size())
106 produces<HORecHitCollection>(theOutputRecHitCollections[input]);
108 produces<HORecHitCollection>();
110 if (doDigis_) produces<HODigiCollection>();
119 if (theOutputRecHitCollections.size()&&theOutputRecHitCollections[
input].size())
120 produces<HFRecHitCollection>(theOutputRecHitCollections[input]);
122 produces<HFRecHitCollection>();
123 if(doDigis_) produces<HFDigiCollection>();
257 iEvent.
put(digihbhe);
T getParameter(std::string const &) const
EcalEndcapRecHitsMaker * EcalEndcapRecHitsMaker_
void loadEcalEndcapRecHits(edm::Event &iEvent, EERecHitCollection &ecalHits, EEDigiCollection &ecalDigis)
#define DEFINE_FWK_MODULE(type)
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es) override
void loadEcalBarrelRecHits(edm::Event &iEvent, EBRecHitCollection &ecalHits, EBDigiCollection &ecaldigis)
EcalPreshowerRecHitsMaker * EcalPreshowerRecHitsMaker_
HcalRecHitsMaker * HcalRecHitsMaker_
void loadHcalRecHits(edm::Event &iEvent, const HcalTopology &, HBHERecHitCollection &hbheHits, HBHEDigiCollection &hbheDigis)
std::vector< std::string > theOutputRecHitCollections
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< unsigned int > theInputRecHitCollectionTypes
virtual ~CaloRecHitsProducer()
void init(const edm::EventSetup &es, bool dodigis, bool domiscalib)
void loadEcalPreshowerRecHits(edm::Event &iEvent, ESRecHitCollection &esRecHits)
EcalBarrelRecHitsMaker * EcalBarrelRecHitsMaker_
virtual void endJob() override
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
void init(const edm::EventSetup &es)
const RandomEngine * random
CaloRecHitsProducer(edm::ParameterSet const &p)
void init(const edm::EventSetup &es, bool dodigis, bool domiscalib)
void init(const edm::EventSetup &es, bool dodigis, bool doMiscalib)