30 if( digiType ==
"Raw" ) {
31 produces<edm::DetSetVector<SiStripRawDigi> >(
digiLabel ).setBranchAlias( alias +
"siStripRawDigis" );
33 else if ( digiType ==
"Processed" ) {
34 produces<edm::DetSetVector<SiStripDigi> >(
digiLabel ).setBranchAlias( alias +
"siStripDigis" );
37 throw cms::Exception(
"LaserAlignmentT0Producer") <<
"ERROR ** Unknown DigiType: " << digiType <<
" specified in cfg file" << std::endl;
75 if( digiType ==
"Raw" ) {
79 iEvent.
getByLabel( digiProducer, digiLabel, theStripDigis );
82 std::vector<edm::DetSet<SiStripRawDigi> > theDigiVector;
100 theDigiVector.push_back( outputDetSet );
118 else if( digiType ==
"Processed" ) {
121 iEvent.
getByLabel( digiProducer, digiLabel, theStripDigis );
123 std::vector<edm::DetSet<SiStripDigi> > theDigiVector;
133 theDigiVector.push_back( outputDetSet );
143 throw cms::Exception(
"LaserAlignmentT0Producer") <<
"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)
~LaserAlignmentT0Producer()
#define DEFINE_FWK_MODULE(type)
std::vector< edm::ParameterSet > digiProducerList
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< unsigned int > theLasDetIds
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
LaserAlignmentT0Producer(const edm::ParameterSet &)
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
virtual void produce(edm::Event &, const edm::EventSetup &)