|
|
Go to the documentation of this file.
50 produces<DigiCollection>(
"ZeroSuppressed");
51 produces<DigiCollection>(
"VirginRaw");
52 produces<DigiCollection>(
"ProcessedRaw");
53 produces<DigiCollection>(
"ScopeMode");
61 std::vector<DetDigiCollection> output_base;
68 auto outputZS = std::make_unique<DigiCollection>(output_base);
69 auto outputVR = std::make_unique<DigiCollection>();
70 auto outputPR = std::make_unique<DigiCollection>();
71 auto outputSM = std::make_unique<DigiCollection>();
73 event.put(
std::move(outputZS),
"ZeroSuppressed");
74 event.put(
std::move(outputVR),
"VirginRaw");
75 event.put(
std::move(outputPR),
"ProcessedRaw");
76 event.put(
std::move(outputSM),
"ScopeMode");
80 std::vector<DetDigiCollection>& output_base) {
82 uint32_t detid = it->detId();
88 for (; clus != endclus; clus++) {
90 size_t width = clus->amplitudes().size();
91 size_t firstStrip = clus->firstStrip();
92 uint16_t stripPos = firstStrip;
93 for (; istrip <
width; ++istrip) {
99 if (!detDigis.
empty())
100 output_base.push_back(detDigis);
114 uint16_t
charge = static_cast<uint16_t>(
bool check(const edm::EventSetup &iSetup)
const SiStripGain * gain_
static const std::string input
edm::ESWatcher< SiStripGainRcd > gainWatcher_
void process(const ClusterCollection &input, std::vector< DetDigiCollection > &output_base)
uint16_t *__restrict__ uint16_t const *__restrict__ adc
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
SiStripClusterToDigiProducer(const edm::ParameterSet &conf)
static float getStripGain(const uint16_t &strip, const SiStripApvGain::Range &range)
edmNew::DetSet< SiStripCluster > DetClusterCollection
edmNew::DetSetVector< SiStripCluster > ClusterCollection
#define DEFINE_FWK_MODULE(type)
const SiStripApvGain::Range getRange(uint32_t detID) const
edm::DetSetVector< SiStripDigi > DigiCollection
edmNew::DetSet< SiStripCluster >::const_iterator DetClusIter
void produce(edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< SiStripGain, SiStripGainRcd > gainToken_
edm::DetSet< SiStripDigi >::const_iterator DetDigiIter
float gain(const uint16_t &strip) const
bool getData(T &iHolder) const
edm::DetSet< SiStripDigi > DetDigiCollection
edm::EDGetTokenT< ClusterCollection > token
std::pair< ContainerIterator, ContainerIterator > Range
SiStripApvGain::Range gainRange
T getParameter(std::string const &) const
void setDetId(const uint32_t id)
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
uint16_t applyGain(const uint16_t &strip, const uint16_t &adc)
const data_type * const_iterator
collection_type::const_iterator const_iterator