18 : inputTags(conf.getParameter<std::vector<edm::InputTag> >(
"DigiProducersList")),
22 produces< edm::DetSetVector<SiStripProcessedRawDigi> >(
"");
37 if(
"VirginRaw" == label )
vr_process(*inputRawdigis, *output);
38 else if(
"ProcessedRaw" == label )
pr_process(*inputRawdigis, *output);
51 for( std::vector<edm::InputTag>::const_iterator
55 if( handle.
isValid() && !handle->empty() ) {
57 return inputTag->instance();
60 return "Input Not Found";
66 std::vector<float> digis;
70 digis.resize( digi->strip(), 0);
71 digis.push_back( digi->adc() );
80 std::vector<float> digis;
90 std::vector<int16_t> int_digis(detset->size());
92 std::vector<float> digis(int_digis.begin(), int_digis.end());
103 for(std::vector<float>::iterator it=digis.begin(); it<digis.end(); it++)
104 (*it)/= (
gainHandle->getStripGain(it-digis.begin(), detGainRange));
108 copy(digis.begin(), digis.end(), back_inserter(ds.
data) );
const uint16_t & adc() const
std::vector< edm::InputTag > inputTags
std::auto_ptr< SiStripPedestalsSubtractor > subtractorPed
static std::string const input
void pr_process(const edm::DetSetVector< SiStripRawDigi > &, edm::DetSetVector< SiStripProcessedRawDigi > &)
edm::ESHandle< SiStripGain > gainHandle
SiStripProcessedRawDigiProducer(edm::ParameterSet const &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::pair< ContainerIterator, ContainerIterator > Range
void common_process(const uint32_t, std::vector< float > &, edm::DetSetVector< SiStripProcessedRawDigi > &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
iterator end()
Return the off-the-end iterator.
std::string findInput(edm::Handle< T > &handle, const edm::Event &e)
void produce(edm::Event &e, const edm::EventSetup &es)
std::auto_ptr< SiStripCommonModeNoiseSubtractor > subtractorCMN
void zs_process(const edm::DetSetVector< SiStripDigi > &, edm::DetSetVector< SiStripProcessedRawDigi > &)
void insert(detset const &s)
Insert the given DetSet.
iterator begin()
Return an iterator to the first DetSet.
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
void vr_process(const edm::DetSetVector< SiStripRawDigi > &, edm::DetSetVector< SiStripProcessedRawDigi > &)