test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RawToText.h
Go to the documentation of this file.
1 #ifndef RAWTOTEXT_H
2 #define RAWTOTEXT_H
3 
4 /*\class RawToText
5  *\description conversion of GCT raw to text formats
6  based on and reverses J.Brooke's TextToRaw
7  *\usage trigger pattern tests
8  *\author Nuno Leonardo (CERN)
9  *\date 07.08
10  */
11 
12 // system include files
13 #include <memory>
14 #include <string>
15 #include <fstream>
16 // user include files
21 
23 
24 
25 class RawToText : public edm::EDAnalyzer {
26  public:
27  explicit RawToText(const edm::ParameterSet&);
28  ~RawToText();
29 
30  private:
31  virtual void beginJob();
32  virtual void analyze (const edm::Event&, const edm::EventSetup&);
33  virtual void endJob ();
34 
35  private:
36 
37  // FED collection label
39 
40  // ID of the FED to emulate
41  int fedId_;
42 
43  // File to write
45  std::ofstream file_;
46 
47  int nevt_;
48 };
49 
50 #endif
int fedId_
Definition: RawToText.h:41
RawToText(const edm::ParameterSet &)
Definition: RawToText.cc:16
std::ofstream file_
Definition: RawToText.h:45
std::string filename_
Definition: RawToText.h:44
virtual void endJob()
Definition: RawToText.cc:79
~RawToText()
Definition: RawToText.cc:25
edm::InputTag inputLabel_
Definition: RawToText.h:38
int nevt_
Definition: RawToText.h:47
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: RawToText.cc:28
virtual void beginJob()
Definition: RawToText.cc:67