|
|
Go to the documentation of this file.
48 produces<DigiCollection>(
"ZeroSuppressed");
49 produces<DigiCollection>(
"VirginRaw");
50 produces<DigiCollection>(
"ProcessedRaw");
51 produces<DigiCollection>(
"ScopeMode");
57 std::vector<DetDigiCollection> output_base;
64 auto outputZS = std::make_unique<DigiCollection>(output_base);
65 auto outputVR = std::make_unique<DigiCollection>();
66 auto outputPR = std::make_unique<DigiCollection>();
67 auto outputSM = std::make_unique<DigiCollection>();
69 event.put(
std::move(outputZS),
"ZeroSuppressed");
70 event.put(
std::move(outputVR),
"VirginRaw");
71 event.put(
std::move(outputPR),
"ProcessedRaw");
72 event.put(
std::move(outputSM),
"ScopeMode");
76 std::vector<DetDigiCollection>& output_base) {
78 uint32_t detid = it->detId();
84 for (; clus != endclus; clus++) {
86 size_t width = clus->amplitudes().size();
87 size_t firstStrip = clus->firstStrip();
88 uint16_t stripPos = firstStrip;
89 for (; istrip <
width; ++istrip) {
95 if (!detDigis.
empty())
96 output_base.push_back(detDigis);
119 uint16_t
charge = static_cast<uint16_t>(
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
static const std::string input
void process(const ClusterCollection &input, std::vector< DetDigiCollection > &output_base)
edm::ESHandle< SiStripGain > gainHandle
void initialize(const edm::EventSetup &es)
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::DetSet< SiStripDigi >::const_iterator DetDigiIter
float gain(const uint16_t &strip) const
edm::DetSet< SiStripDigi > DetDigiCollection
T getParameter(std::string const &) const
edm::EDGetTokenT< ClusterCollection > token
std::pair< ContainerIterator, ContainerIterator > Range
SiStripApvGain::Range gainRange
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