18 std::string alias ( iConfig.
getParameter<std::string>(
"@module_label" ) );
25 std::string
digiProducer = aDigiProducer->getParameter<std::string>(
"DigiProducer" );
26 std::string
digiLabel = aDigiProducer->getParameter<std::string>(
"DigiLabel" );
27 std::string
digiType = aDigiProducer->getParameter<std::string>(
"DigiType" );
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;
68 std::string
digiProducer = aDigiProducer->getParameter<std::string>(
"DigiProducer" );
69 std::string
digiLabel = aDigiProducer->getParameter<std::string>(
"DigiLabel" );
70 std::string
digiType = aDigiProducer->getParameter<std::string>(
"DigiType" );
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 &)