56 using namespace cmsdt;
80 static constexpr
float bxspacing = 25.0;
81 static constexpr
float timeshift = 400.0;
82 static constexpr
float flatcalib = 325.0;
91 dtDigisToken = consumes<DTDigiCollection>(dtDigiTag);
102 produces<DTDigiCollection>();
118 theSync->setES(iSetup);
119 iEvent.
getByToken(dtDigisToken, DTDigiHandle);
122 for (
const auto& dtLayerIt : *DTDigiHandle) {
123 const DTLayerId& layerId = dtLayerIt.first;
126 DTWireId wireId(layerId, (*digiIt).wire());
127 float digiTime = (*digiIt).time();
128 int wire = (*digiIt).
wire();
129 int number = (*digiIt).number();
131 if (flat_calib_ != 0)
135 newTime = digiTime + bxspacing * timeshift;
142 DTDigi newDigi(wire, newTime, number);
143 mydigis.insertDigi(layerId, newDigi);
146 auto CorrectedDTDigiCollection = std::make_unique<DTDigiCollection>(mydigis);
T getUntrackedParameter(std::string const &, T const &) const
CalibratedDigis(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::unique_ptr< DTTTrigBaseSync > theSync
EventAuxiliary const & eventAuxiliary() const override
edm::EDGetTokenT< DTDigiCollection > dtDigisToken
int bunchCrossing() const
edm::Handle< DTDigiCollection > DTDigiHandle
int wire() const
Return the wire number.
T getParameter(std::string const &) const
std::vector< DigiType >::const_iterator const_iterator
~CalibratedDigis() override