21 for (std::vector<edm::ParameterSet>::iterator aDigiProducer =
digiProducerList.begin();
29 if (digiType ==
"Raw") {
30 produces<edm::DetSetVector<SiStripRawDigi>>(
digiLabel).setBranchAlias(alias +
"siStripRawDigis");
31 }
else if (digiType ==
"Processed") {
32 produces<edm::DetSetVector<SiStripDigi>>(
digiLabel).setBranchAlias(alias +
"siStripDigis");
35 <<
"ERROR ** Unknown DigiType: " << digiType <<
" specified in cfg file" << std::endl;
56 for (std::vector<edm::ParameterSet>::iterator aDigiProducer =
digiProducerList.begin();
66 if (digiType ==
"Raw") {
69 iEvent.
getByLabel(digiProducer, digiLabel, theStripDigis);
72 std::vector<edm::DetSet<SiStripRawDigi>> theDigiVector;
76 aDetSet != theStripDigis->end();
91 theDigiVector.push_back(outputDetSet);
103 else if (digiType ==
"Processed") {
105 iEvent.
getByLabel(digiProducer, digiLabel, theStripDigis);
107 std::vector<edm::DetSet<SiStripDigi>> theDigiVector;
110 aDetSet != theStripDigis->end();
118 theDigiVector.push_back(outputDetSet);
128 <<
"ERROR ** Unknown DigiType: " << digiType <<
" specified in cfg file" << std::endl;
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void push_back(const T &t)
void produce(edm::Event &, const edm::EventSetup &) override
std::vector< edm::ParameterSet > digiProducerList
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
#define DEFINE_FWK_MODULE(type)
std::vector< unsigned int > theLasDetIds
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
LaserAlignmentT0Producer(const edm::ParameterSet &)
~LaserAlignmentT0Producer() override
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator