Go to the documentation of this file.
47 using SignalMap = std::map<uint32_t, std::map<int, float>>;
54 : digitizer_(ps, producesCollector, iC),
56 trackerSignalToken_(iC.consumes<
edm::DetSetVector<
PixelDigi>>(ps.getParameter<
edm::
InputTag>(
"trackerLabelSig"))),
57 pixelPileupLabel_(ps.getParameter<
edm::
InputTag>(
"pixelPileInputTag")),
58 trackerPileupLabel_(ps.getParameter<
edm::
InputTag>(
"trackerPileInputTag")),
59 pixelElectronPerAdc_(ps.getParameter<double>(
"pixelPmxStage1ElectronPerAdc")),
60 trackerElectronPerAdc_(ps.getParameter<double>(
"trackerPmxStage1ElectronPerAdc")) {}
89 for (
const auto& detset : digis) {
91 for (
const auto& digi : detset) {
94 auto& acc = accDet[digi.channel()];
95 acc += digi.adc() * electronPerADC;
102 std::vector<PileupSummaryInfo>
const& ps,
virtual void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &setup)
void initializeEvent(edm::Event const &e, edm::EventSetup const &es) override
edm::InputTag pixelPileupLabel_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > trackerSignalToken_
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &es) override
void put(edm::Event &e, edm::EventSetup const &iSetup, std::vector< PileupSummaryInfo > const &ps, int bs) override
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
cms::Phase2TrackerDigitizer digitizer_
PreMixingPhase2TrackerWorker(const edm::ParameterSet &ps, edm::ProducesCollector, edm::ConsumesCollector &&iC)
void addPileups(PileUpEventPrincipal const &pep, edm::EventSetup const &es) override
void accumulate(const edm::DetSetVector< PixelDigi > &digis, const float electronsPerADC)
std::map< uint32_t, std::map< int, float > > SignalMap
void loadAccumulator(const std::map< uint32_t, std::map< int, float > > &accumulator)
float trackerElectronPerAdc_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > pixelSignalToken_
~PreMixingPhase2TrackerWorker() override=default
float pixelElectronPerAdc_
void addSignals(edm::Event const &e, edm::EventSetup const &es) override
#define DEFINE_PREMIXING_WORKER(TYPE)
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
edm::InputTag trackerPileupLabel_