CMS 3D CMS Logo

CSCFileReader.h
Go to the documentation of this file.
1 #ifndef CSCFileReader_h
2 #define CSCFileReader_h
3 
9 
10 #include <vector>
11 #include <string>
12 #include <list>
13 #include <map>
14 
15 #include "FileReaderDDU.h"
16 #include "FileReaderDCC.h"
17 
19 private:
20  std::vector<std::string> fileNames[40];
21  std::vector<std::string>::const_iterator currentFile[40];
22 
26  unsigned int runNumber;
27 
28  unsigned short *tmpBuf;
29  const unsigned short *fuEvent[4];
30  size_t fuEventSize[4];
31  const unsigned short *ruBuf[40];
32  size_t ruBufSize[40];
33 
36 
37  std::map<unsigned int, std::list<unsigned int> > FED;
38 
39  int readRUI(int rui, const unsigned short *&buf, size_t &length);
41 
42  int readFU(int fu, const unsigned short *&buf, size_t &length);
44 
45 public:
47  ~CSCFileReader(void) override;
48 
49  virtual int fillRawData(edm::Event &e, /* edm::Timestamp& tstamp,*/ FEDRawDataCollection *&data);
50 
51  void produce(edm::Event &, edm::EventSetup const &) override;
52 
54 };
55 
56 #endif
const unsigned short * fuEvent[4]
Definition: CSCFileReader.h:29
unsigned int runNumber
Definition: CSCFileReader.h:26
void produce(edm::Event &, edm::EventSetup const &) override
std::vector< std::string > fileNames[40]
Definition: CSCFileReader.h:20
size_t ruBufSize[40]
Definition: CSCFileReader.h:32
std::map< unsigned int, std::list< unsigned int > > FED
Definition: CSCFileReader.h:37
int buildEventFromRUIs(FEDRawDataCollection *data)
std::vector< std::string >::const_iterator currentFile[40]
Definition: CSCFileReader.h:21
size_t fuEventSize[4]
Definition: CSCFileReader.h:30
int readRUI(int rui, const unsigned short *&buf, size_t &length)
FileReaderDCC FU[4]
Definition: CSCFileReader.h:35
~CSCFileReader(void) override
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
unsigned short * tmpBuf
Definition: CSCFileReader.h:28
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
int readFU(int fu, const unsigned short *&buf, size_t &length)
int currentL1A[40]
Definition: CSCFileReader.h:24
int nextEventFromFUs(FEDRawDataCollection *data)
FileReaderDDU RUI[40]
Definition: CSCFileReader.h:34
const unsigned short * ruBuf[40]
Definition: CSCFileReader.h:31
CSCFileReader(const edm::ParameterSet &pset)