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 );
110 iEvent.
put( theDigiOutput, digiLabel );
120 else if( digiType ==
"Processed" ) {
123 iEvent.
getByLabel( digiProducer, digiLabel, theStripDigis );
125 std::vector<edm::DetSet<SiStripDigi> > theDigiVector;
135 theDigiVector.push_back( outputDetSet );
141 iEvent.
put( theDigiOutput, digiLabel );
146 throw cms::Exception(
"LaserAlignmentT0Producer") <<
"ERROR ** Unknown DigiType: " << digiType <<
" specified in cfg file" << std::endl;
T getParameter(std::string const &) const
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
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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 &)