CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TextToRaw.h
Go to the documentation of this file.
1 #ifndef TextToRaw_h
2 #define TextToRaw_h
3 
4 // -*- C++ -*-
5 //
6 // Package: TextToRaw
7 // Class: TextToRaw
8 //
16 //
17 // Original Author: Jim Brooke
18 // Created: Wed Nov 1 11:57:10 CET 2006
19 // $Id: TextToRaw.h,v 1.6 2009/03/26 14:53:03 tapper Exp $
20 //
21 //
22 
23 
24 // system include files
25 #include <memory>
26 #include <string>
27 #include <fstream>
28 
29 // user include files
34 
36 
37 //
38 // class decleration
39 //
40 
41 class TextToRaw : public edm::EDProducer {
42  public:
43  explicit TextToRaw(const edm::ParameterSet&);
44  ~TextToRaw();
45 
46  private: // methods
47  virtual void beginJob();
48  virtual void produce(edm::Event&, const edm::EventSetup&);
49  virtual void endJob() ;
50 
51  private:
52 
53  // ID of the FED to emulate
54  int fedId_;
55 
56  // File to read
57  std::string filename_;
58  std::ifstream file_;
59 
60  // array to store the data
61  static const unsigned EVT_MAX_SIZE=8192;
63 
65  int nevt_;
66  void putEmptyDigi(edm::Event&);
67 
68 };
69 
70 #endif
std::ifstream file_
Definition: TextToRaw.h:58
void putEmptyDigi(edm::Event &)
Append empty digi collection.
Definition: TextToRaw.cc:53
int fileEventOffset_
Definition: TextToRaw.h:64
~TextToRaw()
Definition: TextToRaw.cc:42
int nevt_
Definition: TextToRaw.h:65
std::string filename_
Definition: TextToRaw.h:57
char data_[EVT_MAX_SIZE]
Definition: TextToRaw.h:62
static const unsigned EVT_MAX_SIZE
Definition: TextToRaw.h:61
virtual void beginJob()
Definition: TextToRaw.cc:149
TextToRaw(const edm::ParameterSet &)
Definition: TextToRaw.cc:28
virtual void endJob()
Definition: TextToRaw.cc:159
int fedId_
Definition: TextToRaw.h:54
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition: TextToRaw.cc:63