Go to the documentation of this file.
95 : eventCounter_(0), allDigiCounter_(0), allWordCounter_(0) {
98 produces<FEDRawDataCollection>();
102 edm::LogInfo(
"CTPPSTotemDigiToRaw") <<
" CTPPSTotemDigiToRaw destructor!";
123 digiCounter += (di.data).
size();
124 digis[di.detId()] = di.data;
131 for (
const auto&
p :
mapping->VFATMapping) {
133 fedIds_.emplace(
p.first.getFEDId());
137 p.first.getIdxInFiber(),
146 auto buffers = std::make_unique<FEDRawDataCollection>();
156 CTPPSTotemDataFormatter::RawData::iterator fedbuffer = rawdata.find(it);
157 if (fedbuffer != rawdata.end())
163 LogDebug(
"CTPPSTotemDigiToRaw") <<
"Words/Digis this iEvent: " << digiCounter <<
"(fm:" << formatter.
nDigis()
177 descriptions.
add(
"ctppsTotemRawData", desc);
bool check(const edm::EventSetup &iSetup)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< edm::DetSetVector< TotemRPDigi > > tTotemRPDigi_
EventSetup record for TOTEM readout-related information.
edm::ESWatcher< TotemReadoutRcd > recordWatcher_
void beginStream(edm::StreamID) override
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
unsigned long eventCounter_
CTPPSTotemDigiToRaw(const edm::ParameterSet &)
~CTPPSTotemDigiToRaw() override
std::vector< CTPPSTotemDataFormatter::PPSStripIndex > v_iDdet2fed_
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override
std::set< unsigned int > fedIds_