61 template <
typename DigiType>
69 : subSystemName(conf.getParameter<
string>(
"subSystem")),
71 fedIds(conf.getParameter<
vector<unsigned int>>(
"fedIds")),
86 <<
"Unknown sub-system string " <<
subSystemName <<
"." << endl;
134 run<DetSetVector<TotemRPDigi>>(
event, es);
137 run<DetSetVector<CTPPSDiamondDigi>>(
event, es);
140 run<DetSetVector<TotemTimingDigi>>(
event, es);
143 template <
typename DigiType>
156 vector<TotemFEDInfo> fedInfo;
172 event.put(make_unique<vector<TotemFEDInfo>>(fedInfo),
subSystemName);
edm::ESGetToken< TotemAnalysisMask, TotemReadoutRcd > analysisMaskToken
uint16_t *__restrict__ id
pps::RawDataUnpacker rawDataUnpacker
#define DEFINE_FWK_MODULE(type)
ParameterSet const & getParameterSet(ParameterSetID const &id)
edm::ESGetToken< TotemDAQMapping, TotemReadoutRcd > totemMappingToken
void run(edm::Event &, const edm::EventSetup &)
~TotemVFATRawToDigi() override
std::vector< unsigned int > fedIds
size_t size() const
Lenght of the data buffer in bytes.
TotemVFATRawToDigi(const edm::ParameterSet &)
int run(int fedId, const FEDRawData &data, std::vector< TotemFEDInfo > &fedInfoColl, SimpleVFATFrameCollection &coll) const
Unpack data from FED with fedId into `coll' collection.
void printSummaries() const
Print error summaries.
Collection of code to convert TOTEM raw data into digi.
edm::EDGetTokenT< FEDRawDataCollection > fedDataToken
enum TotemVFATRawToDigi::@494 subSystem
T getParameter(std::string const &) const
Collection of code for unpacking of TOTEM raw-data.
char data[epos_bytes_allocation]
RawToDigiConverter rawToDigiConverter
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void produce(edm::Event &, const edm::EventSetup &) override
std::string subSystemName
void run(const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask, edm::DetSetVector< TotemRPDigi > &digi, edm::DetSetVector< TotemVFATStatus > &status)
Creates RP digi.
void endStream() override