13 produces<std::vector<unsigned> >(
"id");
14 produces<std::vector<unsigned> >(
"subdet");
15 produces<std::vector<unsigned> >(
"strip");
16 produces<std::vector<unsigned> >(
"adc");
17 produces<std::vector<float> >(
"noise");
30 for (
auto const& set : digiCollection) {
32 for (
auto const& digi : set) {
33 p.
id->push_back(set.detId());
34 p.
subdet->push_back((set.detId() >> 25) & 0x7);
35 p.
strip->push_back(digi.strip());
36 p.
adc->push_back(digi.adc());
37 p.
noise->push_back(noises.
getNoise(digi.strip(), detNoiseRange));
60 if (handle.
isValid() && !handle->empty()) {
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 &)
bool getData(T &iHolder) const
static float getNoise(uint16_t strip, const Range &range)
ShallowDigisProducer(const edm::ParameterSet &)
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 &)
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noisesToken_
const Range getRange(const uint32_t detID) const
void recordDigis(const T &, products &, const SiStripNoises &noises)
void produce(edm::Event &, const edm::EventSetup &) override
Log< level::Warning, false > LogWarning
std::pair< ContainerIterator, ContainerIterator > Range
std::unique_ptr< std::vector< unsigned > > subdet