CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCFileReader.h
Go to the documentation of this file.
1 #ifndef CSCFileReader_h
2 #define CSCFileReader_h
3 
6 
7 #include <vector>
8 #include <string>
9 #include <list>
10 #include <map>
11 
12 #include "FileReaderDDU.h"
13 #include "FileReaderDCC.h"
14 
15 class CSCFileReader : public DaqBaseReader {
16 private:
17  std::vector<std::string> fileNames[40];
18  std::vector<std::string>::const_iterator currentFile[40];
19 
23 
24  unsigned short *tmpBuf;
25  const unsigned short *fuEvent[4];
26  size_t fuEventSize[4];
27  const unsigned short *ruBuf[40];
28  size_t ruBufSize[40];
29 
32 
33  std::map<unsigned int,std::list<unsigned int> > FED;
34 
35  int readRUI(int rui, const unsigned short* &buf, size_t &length);
37 
38  int readFU (int fu, const unsigned short* &buf, size_t &length);
40 
41 public:
43 
44  CSCFileReader(const edm::ParameterSet& pset);
45  virtual ~CSCFileReader(void);
46 };
47 
48 #endif
const unsigned short * fuEvent[4]
Definition: CSCFileReader.h:25
virtual ~CSCFileReader(void)
std::vector< std::string > fileNames[40]
Definition: CSCFileReader.h:17
std::map< unsigned int, std::list< unsigned int > > FED
Definition: CSCFileReader.h:33
int fillRawData(edm::EventID &eID, edm::Timestamp &tstamp, FEDRawDataCollection *&data)
size_t ruBufSize[40]
Definition: CSCFileReader.h:28
int buildEventFromRUIs(FEDRawDataCollection *data)
std::vector< std::string >::const_iterator currentFile[40]
Definition: CSCFileReader.h:18
size_t fuEventSize[4]
Definition: CSCFileReader.h:26
int readRUI(int rui, const unsigned short *&buf, size_t &length)
FileReaderDCC FU[4]
Definition: CSCFileReader.h:31
unsigned short * tmpBuf
Definition: CSCFileReader.h:24
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int readFU(int fu, const unsigned short *&buf, size_t &length)
int currentL1A[40]
Definition: CSCFileReader.h:21
int nextEventFromFUs(FEDRawDataCollection *data)
FileReaderDDU RUI[40]
Definition: CSCFileReader.h:30
const unsigned short * ruBuf[40]
Definition: CSCFileReader.h:27
CSCFileReader(const edm::ParameterSet &pset)