12 #include "boost/foreach.hpp"
15 : inputTags(conf.getParameter<std::vector<edm::
InputTag> >(
"DigiProducersList"))
17 produces<std::vector<unsigned> >(
"id");
18 produces<std::vector<unsigned> >(
"subdet");
19 produces<std::vector<unsigned> >(
"strip");
20 produces<std::vector<unsigned> >(
"adc");
21 produces<std::vector<float> >(
"noise");
37 BOOST_FOREACH(
const typename T::value_type set, digiCollection) {
40 p.
id->push_back(set.detId());
41 p.
subdet->push_back((set.detId()>>25)&0x7);
43 p.
adc->push_back(digi.
adc());
67 if( handle.
isValid() && !handle->empty() ) {
edm::ESHandle< SiStripNoises > noiseHandle
std::vector< edm::InputTag > inputTags
std::auto_ptr< std::vector< unsigned > > adc
void insert(products &, edm::Event &)
std::auto_ptr< std::vector< unsigned > > subdet
ShallowDigisProducer(const edm::ParameterSet &)
void recordDigis(const T &, products &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
const uint16_t & strip() const
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
std::auto_ptr< std::vector< float > > noise
Container::value_type value_type
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
bool findInput(edm::Handle< T > &, const edm::Event &)
std::auto_ptr< std::vector< unsigned > > id
void produce(edm::Event &, const edm::EventSetup &)
std::pair< ContainerIterator, ContainerIterator > Range
const uint16_t & adc() const
std::auto_ptr< std::vector< unsigned > > strip