CMS 3D CMS Logo

CSCFileReader.h
Go to the documentation of this file.
1 #ifndef CSCFileReader_h
2 #define CSCFileReader_h
3 
10 
11 #include <vector>
12 #include <string>
13 #include <list>
14 #include <map>
15 
16 #include "FileReaderDDU.h"
17 #include "FileReaderDCC.h"
18 
20 private:
21  std::vector<std::string> fileNames[40];
22  std::vector<std::string>::const_iterator currentFile[40];
23 
27  unsigned int runNumber;
28 
29  unsigned short *tmpBuf;
30  const unsigned short *fuEvent[4];
31  size_t fuEventSize[4];
32  const unsigned short *ruBuf[40];
33  size_t ruBufSize[40];
34 
37 
38  std::map<unsigned int, std::list<unsigned int> > FED;
39 
40  int readRUI(int rui, const unsigned short *&buf, size_t &length);
42 
43  int readFU(int fu, const unsigned short *&buf, size_t &length);
45 
46 public:
48  ~CSCFileReader(void) override;
49 
50  virtual int fillRawData(edm::Event &e, /* edm::Timestamp& tstamp,*/ FEDRawDataCollection *&data);
51 
52  void produce(edm::Event &, edm::EventSetup const &) override;
53 
55 };
56 
57 #endif
CSCFileReader::ruBuf
const unsigned short * ruBuf[40]
Definition: CSCFileReader.h:32
CSCFileReader::RUI
FileReaderDDU RUI[40]
Definition: CSCFileReader.h:35
EDProducer.h
CSCFileReader::fuEvent
const unsigned short * fuEvent[4]
Definition: CSCFileReader.h:30
CSCFileReader::currentL1A
int currentL1A[40]
Definition: CSCFileReader.h:25
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
CSCFileReader::firstEvent
int firstEvent
Definition: CSCFileReader.h:24
CSCFileReader
Definition: CSCFileReader.h:19
RawFile.h
CSCFileReader::~CSCFileReader
~CSCFileReader(void) override
Definition: CSCFileReader.cc:179
CSCFileReader::nActiveRUIs
int nActiveRUIs
Definition: CSCFileReader.h:26
CSCFileReader::runNumber
unsigned int runNumber
Definition: CSCFileReader.h:27
EventID.h
CSCFileReader::ruBufSize
size_t ruBufSize[40]
Definition: CSCFileReader.h:33
CSCFileReader::currentFile
std::vector< std::string >::const_iterator currentFile[40]
Definition: CSCFileReader.h:22
CSCFileReader::buildEventFromRUIs
int buildEventFromRUIs(FEDRawDataCollection *data)
Definition: CSCFileReader.cc:235
CSCFileReader::fFirstReadBug
bool fFirstReadBug
Definition: CSCFileReader.h:54
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
CSCFileReader::nextEventFromFUs
int nextEventFromFUs(FEDRawDataCollection *data)
Definition: CSCFileReader.cc:311
CSCFileReader::tfDDUnumber
int tfDDUnumber
Definition: CSCFileReader.h:24
CSCFileReader::CSCFileReader
CSCFileReader(const edm::ParameterSet &pset)
Definition: CSCFileReader.cc:33
CSCFileReader::produce
void produce(edm::Event &, edm::EventSetup const &) override
Definition: CSCFileReader.cc:441
FileReaderDCC
Definition: FileReaderDCC.h:7
FEDRawDataCollection.h
edm::EventSetup
Definition: EventSetup.h:58
CSCFileReader::nActiveFUs
int nActiveFUs
Definition: CSCFileReader.h:26
CSCFileReader::fuEventSize
size_t fuEventSize[4]
Definition: CSCFileReader.h:31
visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
FileReaderDDU
Definition: FileReaderDDU.h:7
CSCFileReader::tmpBuf
unsigned short * tmpBuf
Definition: CSCFileReader.h:29
CSCFileReader::readFU
int readFU(int fu, const unsigned short *&buf, size_t &length)
Definition: CSCFileReader.cc:209
CSCFileReader::fillRawData
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
Definition: CSCFileReader.cc:413
CSCFileReader::FU
FileReaderDCC FU[4]
Definition: CSCFileReader.h:36
FileReaderDDU.h
EventSetup.h
edm::EDProducer
Definition: EDProducer.h:35
CSCFileReader::fileNames
std::vector< std::string > fileNames[40]
Definition: CSCFileReader.h:21
CSCFileReader::expectedNextL1A
int expectedNextL1A
Definition: CSCFileReader.h:25
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
CSCFileReader::nEvents
int nEvents
Definition: CSCFileReader.h:24
CSCFileReader::FED
std::map< unsigned int, std::list< unsigned int > > FED
Definition: CSCFileReader.h:38
edm::Event
Definition: Event.h:73
FileReaderDCC.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
CSCFileReader::readRUI
int readRUI(int rui, const unsigned short *&buf, size_t &length)
Definition: CSCFileReader.cc:184