56 template <
typename DigiType>
69 fedIds(conf.getParameter< vector<unsigned int> >(
"fedIds")),
77 throw cms::Exception(
"TotemVFATRawToDigi::TotemVFATRawToDigi") <<
"Unknown sub-system string " <<
subSystem <<
"." << endl;
80 produces< vector<TotemFEDInfo> >(
subSystem);
84 produces< DetSetVector<TotemRPDigi> >(
subSystem);
97 produces< DetSetVector<TotemVFATStatus> >(
subSystem);
111 run< DetSetVector<TotemRPDigi> >(
event, es);
116 template <
typename DigiType>
132 vector<TotemFEDInfo> fedInfo;
149 event.put(make_unique<vector<TotemFEDInfo>>(fedInfo),
subSystem);
150 event.put(make_unique<DigiType>(digi),
subSystem);
T getParameter(std::string const &) const
void Run(const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask, edm::DetSetVector< TotemRPDigi > &digi, edm::DetSetVector< TotemVFATStatus > &status)
Creates RP digi.
#define DEFINE_FWK_MODULE(type)
ParameterSet const & getParameterSet(ParameterSetID const &id)
EventSetup record for TOTEM readout-related information.
void run(edm::Event &, const edm::EventSetup &)
std::vector< unsigned int > fedIds
size_t size() const
Lenght of the data buffer in bytes.
TotemVFATRawToDigi(const edm::ParameterSet &)
Collection of code for unpacking of TOTEM raw-data.
RawDataUnpacker rawDataUnpacker
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
Collection of code to convert TOTEM raw data into digi.
edm::EDGetTokenT< FEDRawDataCollection > fedDataToken
char data[epos_bytes_allocation]
RawToDigiConverter rawToDigiConverter
virtual void produce(edm::Event &, const edm::EventSetup &) override
int Run(int fedId, const FEDRawData &data, std::vector< TotemFEDInfo > &fedInfoColl, SimpleVFATFrameCollection &coll) const
Unpack data from FED with fedId into `coll' collection.