CMS 3D CMS Logo

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 <fstream>
14 #include <memory>
15 #include <string>
16 // user include files
21 
23 
24 class RawToText : public edm::EDAnalyzer {
25 public:
26  explicit RawToText(const edm::ParameterSet &);
27  ~RawToText() override;
28 
29 private:
30  void beginJob() override;
31  void analyze(const edm::Event &, const edm::EventSetup &) override;
32  void endJob() override;
33 
34 private:
35  // FED collection label
37 
38  // ID of the FED to emulate
39  int fedId_;
40 
41  // File to write
43  std::ofstream file_;
44 
45  int nevt_;
46 };
47 
48 #endif
~RawToText() override
Definition: RawToText.cc:23
int fedId_
Definition: RawToText.h:39
void beginJob() override
Definition: RawToText.cc:58
RawToText(const edm::ParameterSet &)
Definition: RawToText.cc:15
std::ofstream file_
Definition: RawToText.h:43
std::string filename_
Definition: RawToText.h:42
edm::InputTag inputLabel_
Definition: RawToText.h:36
int nevt_
Definition: RawToText.h:45
void endJob() override
Definition: RawToText.cc:67
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: RawToText.cc:25