CMS 3D CMS Logo

ESDigiToRaw.h
Go to the documentation of this file.
1 #ifndef ESDIGITORAW_H
2 #define ESDIGITORAW_H
3 
4 #include <memory>
5 #include <iostream>
6 #include <string>
7 #include <fstream>
8 
17 
19 
20 class ESDigiToRaw : public edm::EDProducer {
21 
22  public:
23 
24  ESDigiToRaw(const edm::ParameterSet& ps);
25  virtual ~ESDigiToRaw();
26 
27  void beginJob() ;
28  void produce(edm::Event& e, const edm::EventSetup& es);
29  void endJob() ;
30 
31  typedef uint32_t Word32;
32  typedef uint64_t Word64;
33 
34  int* GetCounter() {return &counter_ ;}
35  int* GetOrbit() {return &orbit_number_ ;}
36  int* GetBX() {return &bx_ ;}
37  int* GetLV1() {return &lv1_ ;}
38  int* GetRunNumber() {return &run_number_ ;}
39 
40  static const int BXMAX = 2808;
41  static const int LHC_BX_RANGE = 3564;
42  static const int KCHIP_BC_RANGE = 4096;
43  static const int KCHIP_EC_RANGE = 256;
44 
45  private:
46 
47  int counter_;
50  int bx_;
51  int lv1_;
52  int kchip_ec_;
53  int kchip_bc_;
54  int fedId_[2][2][40][40];
55 
60  bool debug_;
63 
65 
66 };
67 
68 #endif
int * GetLV1()
Definition: ESDigiToRaw.h:37
static const int KCHIP_EC_RANGE
Definition: ESDigiToRaw.h:43
void produce(edm::Event &e, const edm::EventSetup &es)
Definition: ESDigiToRaw.cc:69
virtual ~ESDigiToRaw()
Definition: ESDigiToRaw.cc:62
int * GetCounter()
Definition: ESDigiToRaw.h:34
int * GetBX()
Definition: ESDigiToRaw.h:36
int orbit_number_
Definition: ESDigiToRaw.h:48
std::string label_
Definition: ESDigiToRaw.h:56
edm::EDGetTokenT< ESDigiCollection > ESDigiToken_
Definition: ESDigiToRaw.h:58
int formatMinor_
Definition: ESDigiToRaw.h:62
ESDataFormatter * ESDataFormatter_
Definition: ESDigiToRaw.h:64
edm::FileInPath lookup_
Definition: ESDigiToRaw.h:59
uint64_t Word64
Definition: ESDigiToRaw.h:32
int formatMajor_
Definition: ESDigiToRaw.h:61
int fedId_[2][2][40][40]
Definition: ESDigiToRaw.h:54
std::string instanceName_
Definition: ESDigiToRaw.h:57
int run_number_
Definition: ESDigiToRaw.h:49
unsigned long long uint64_t
Definition: Time.h:15
void beginJob()
Definition: ESDigiToRaw.cc:66
ESDigiToRaw(const edm::ParameterSet &ps)
Definition: ESDigiToRaw.cc:14
static const int KCHIP_BC_RANGE
Definition: ESDigiToRaw.h:42
void endJob()
Definition: ESDigiToRaw.cc:122
static const int BXMAX
Definition: ESDigiToRaw.h:40
int * GetRunNumber()
Definition: ESDigiToRaw.h:38
static const int LHC_BX_RANGE
Definition: ESDigiToRaw.h:41
uint32_t Word32
Definition: ESDigiToRaw.h:31
int * GetOrbit()
Definition: ESDigiToRaw.h:35