14 :
inputTags(conf.getParameter<
std::vector<
edm::InputTag> >(
"DigiProducersList"))
16 produces<std::vector<unsigned> >(
"id");
17 produces<std::vector<unsigned> >(
"subdet");
18 produces<std::vector<unsigned> >(
"strip");
19 produces<std::vector<unsigned> >(
"adc");
20 produces<std::vector<float> >(
"noise");
36 for(
auto const&
set : digiCollection) {
38 for(
auto const& digi :
set) {
39 p.
id->push_back(
set.detId());
40 p.
subdet->push_back((
set.detId()>>25)&0x7);
41 p.
strip->push_back(digi.strip());
42 p.
adc->push_back(digi.adc());
66 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)
ShallowDigisProducer(const edm::ParameterSet &)
void recordDigis(const T &, products &)
std::unique_ptr< std::vector< unsigned > > id
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::unique_ptr< std::vector< unsigned > > adc
bool findInput(edm::Handle< T > &, const edm::Event &)
const Range getRange(const uint32_t detID) const
void produce(edm::Event &, const edm::EventSetup &) override
std::pair< ContainerIterator, ContainerIterator > Range
std::unique_ptr< std::vector< unsigned > > subdet