CMS 3D CMS Logo

DTSpyReader.h
Go to the documentation of this file.
1 #ifndef DaqSource_DTSpyReader_h
2 #define DaqSource_DTSpyReader_h
3 
19 
20 #include <ostream>
21 #include <fstream>
22 #include <cstdint>
23 
24 class DTSpyReader : public edm::EDProducer {
25 public:
28 
30  ~DTSpyReader() override;
31 
33  virtual int fillRawData(edm::Event& e,
34  // edm::Timestamp& tstamp,
36 
37  void produce(edm::Event&, edm::EventSetup const&) override;
38 
40  bool isHeader(uint64_t word, bool dataTag);
41 
43  bool isTrailer(uint64_t word, bool dataTag, unsigned int wordCount);
44 
46  // std::pair<uint64_t,bool> dmaUnpack();
47  uint64_t dmaUnpack(const uint32_t* dmaData, bool& isData);
48 
50  void swap(uint64_t& word);
51 
52 private:
54 
57 
58  bool debug;
59  int dduID;
60 
61  static const int dduWordLength = 8;
62 };
63 #endif
DTSpy
Definition: DTSpy.h:15
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
EDProducer.h
DTSpyReader::dduID
int dduID
Definition: DTSpyReader.h:59
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
DTSpyReader::~DTSpyReader
~DTSpyReader() override
Destructor.
Definition: DTSpyReader.cc:50
DTSpyReader::produce
void produce(edm::Event &, edm::EventSetup const &) override
Definition: DTSpyReader.cc:131
DTSpyReader::DTSpyReader
DTSpyReader(const edm::ParameterSet &pset)
Constructor.
Definition: DTSpyReader.cc:31
FEDRawData.h
RawFile.h
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
DTSpyReader::eventNumber
edm::EventNumber_t eventNumber
Definition: DTSpyReader.h:56
DTSpy.h
EventID.h
HLTBitAnalyser_cfi.isData
isData
Definition: HLTBitAnalyser_cfi.py:29
DTSpyReader::dduWordLength
static const int dduWordLength
Definition: DTSpyReader.h:61
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
edm::ParameterSet
Definition: ParameterSet.h:36
DTSpyReader::swap
void swap(uint64_t &word)
swapping the lsBits with the msBits
Definition: DTSpyReader.cc:139
Event.h
DTSpyReader::fillRawData
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
Generate and fill FED raw data for a full event.
Definition: DTSpyReader.cc:52
FEDRawDataCollection.h
edm::EventSetup
Definition: EventSetup.h:57
DTSpyReader::dmaUnpack
uint64_t dmaUnpack(const uint32_t *dmaData, bool &isData)
pre-unpack the data if read via DMA
Definition: DTSpyReader.cc:147
DTSpyReader::isHeader
bool isHeader(uint64_t word, bool dataTag)
check for a 64 bits word to be a DDU header
Definition: DTSpyReader.cc:167
EventSetup.h
edm::EDProducer
Definition: EDProducer.h:36
DTSpyReader::debug
bool debug
Definition: DTSpyReader.h:58
gctErrorAnalyzer_cfi.dataTag
dataTag
Definition: gctErrorAnalyzer_cfi.py:28
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
DTSpyReader
Definition: DTSpyReader.h:24
DTSpyReader::mySpy
DTSpy * mySpy
Definition: DTSpyReader.h:53
DTSpyReader::isTrailer
bool isTrailer(uint64_t word, bool dataTag, unsigned int wordCount)
check for a 64 bits word to be a DDU trailer
Definition: DTSpyReader.cc:179
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
DTSpyReader::runNumber
edm::RunNumber_t runNumber
Definition: DTSpyReader.h:55
edm::Event
Definition: Event.h:73
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37