55 using namespace cmsdt;
90 dtDigisToken = consumes<DTDigiCollection>(
dtDigiTag);
101 produces<DTDigiCollection>();
117 theSync->setES(iSetup);
118 iEvent.getByToken(dtDigisToken, DTDigiHandle);
121 for (
const auto& dtLayerIt : *DTDigiHandle) {
122 const DTLayerId& layerId = dtLayerIt.first;
125 DTWireId wireId(layerId, (*digiIt).wire());
127 int wire = (*digiIt).wire();
128 int number = (*digiIt).number();
130 if (flat_calib_ != 0)
131 newTime =
digiTime - flatcalib + bxspacing *
iEvent.eventAuxiliary().bunchCrossing() +
float(timeOffset_);
134 newTime =
digiTime + bxspacing * timeshift;
138 newTime =
digiTime - theSync->offset(wireId) + bxspacing *
iEvent.eventAuxiliary().bunchCrossing() +
142 mydigis.insertDigi(layerId, newDigi);
145 auto CorrectedDTDigiCollection = std::make_unique<DTDigiCollection>(mydigis);
CalibratedDigis(const edm::ParameterSet &)
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override
std::unique_ptr< DTTTrigBaseSync > theSync
edm::EDGetTokenT< DTDigiCollection > dtDigisToken
#define DEFINE_FWK_MODULE(type)
edm::Handle< DTDigiCollection > DTDigiHandle
std::vector< DigiType >::const_iterator const_iterator
~CalibratedDigis() override