15 produces<std::vector<unsigned> >(
"id");
16 produces<std::vector<unsigned> >(
"subdet");
17 produces<std::vector<unsigned> >(
"strip");
18 produces<std::vector<unsigned> >(
"adc");
19 produces<std::vector<float> >(
"noise");
32 for (
auto const&
set : digiCollection) {
34 for (
auto const& digi :
set) {
35 p.
id->push_back(
set.detId());
36 p.
subdet->push_back((
set.detId() >> 25) & 0x7);
37 p.
strip->push_back(digi.strip());
38 p.
adc->push_back(digi.adc());
62 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
inputTags
All input tags are specified in this pset for convenience.
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