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
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::unique_ptr< std::vector< float > > noise
std::vector< edm::InputTag > inputTags
std::unique_ptr< std::vector< unsigned > > strip
void insert(products &, edm::Event &)
static float getNoise(uint16_t strip, const Range &range)
Container::value_type value_type
ShallowDigisProducer(const edm::ParameterSet &)
void recordDigis(const T &, products &)
const uint16_t & strip() const
std::unique_ptr< std::vector< unsigned > > id
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::unique_ptr< std::vector< unsigned > > adc
bool findInput(edm::Handle< T > &, const edm::Event &)
void produce(edm::Event &, const edm::EventSetup &)
const Range getRange(const uint32_t detID) const
std::pair< ContainerIterator, ContainerIterator > Range
const uint16_t & adc() const
std::unique_ptr< std::vector< unsigned > > subdet