CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelSLinkDataInputSource.h
Go to the documentation of this file.
1 #ifndef IORawDataSiPixelInputSources_PixelSLinkDataInputSource_h
2 #define IORawDataSiPixelInputSources_PixelSLinkDataInputSource_h
3 // -*- C++ -*-
4 //
5 // Package: SiPixelInputSources
6 // Class: PixelSLinkDataInputSource
7 //
15 //
16 // Original Author: Freya Blekman
17 // Created: Fri Sep 7 15:46:34 CEST 2007
18 //
19 //
20 
21 #include <iostream>
22 #include <iomanip>
23 #include <vector>
24 
35 
37 
39 
40 public:
41 
42  explicit PixelSLinkDataInputSource(const edm::ParameterSet& pset,
43  const edm::InputSourceDescription& desc);
44 
46 
47 private:
48 
50  virtual void produce(edm::Event& event);
51  uint32_t synchronizeEvents();
52 
53  int m_fedid;
54  uint32_t m_fileindex;
55  std::unique_ptr<Storage> storage;
62  int getEventNumberFromFillWords(const std::vector<uint64_t>& data, uint32_t &totword);
63  std::auto_ptr<FEDRawDataCollection> buffers;
64 };
65 #endif
virtual bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &time, edm::EventAuxiliary::ExperimentType &)
virtual void produce(edm::Event &event)
PixelSLinkDataInputSource(const edm::ParameterSet &pset, const edm::InputSourceDescription &desc)
unsigned long long TimeValue_t
Definition: Timestamp.h:28
unsigned long long uint64_t
Definition: Time.h:15
int getEventNumberFromFillWords(const std::vector< uint64_t > &data, uint32_t &totword)
std::auto_ptr< FEDRawDataCollection > buffers
EventNumber_t event() const
std::unique_ptr< Storage > storage