55 using namespace cmsdt;
79 static constexpr
float bxspacing = 25.0;
80 static constexpr
float timeshift = 400.0;
81 static constexpr
float flatcalib = 325.0;
90 dtDigisToken = consumes<DTDigiCollection>(
dtDigiTag);
100 produces<DTDigiCollection>();
116 theSync->setES(iSetup);
117 iEvent.getByToken(dtDigisToken, DTDigiHandle);
120 for (
const auto& dtLayerIt : *DTDigiHandle) {
121 const DTLayerId& layerId = dtLayerIt.first;
124 DTWireId wireId(layerId, (*digiIt).wire());
125 float digiTime = (*digiIt).time();
126 int wire = (*digiIt).
wire();
127 int number = (*digiIt).number();
129 if (flat_calib_ != 0)
130 newTime = digiTime - flatcalib + bxspacing *
iEvent.eventAuxiliary().bunchCrossing() +
float(timeOffset_);
133 newTime = digiTime + bxspacing * timeshift;
137 newTime = digiTime - theSync->offset(wireId) + bxspacing *
iEvent.eventAuxiliary().bunchCrossing() +
141 mydigis.insertDigi(layerId, newDigi);
144 auto CorrectedDTDigiCollection = std::make_unique<DTDigiCollection>(mydigis);