CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
16 
18 
19 class ESDigiToRaw : public edm::EDProducer {
20 
21  public:
22 
23  ESDigiToRaw(const edm::ParameterSet& ps);
24  virtual ~ESDigiToRaw();
25 
26  void beginJob() ;
27  void produce(edm::Event& e, const edm::EventSetup& es);
28  void endJob() ;
29 
30  typedef uint32_t Word32;
31  typedef uint64_t Word64;
32 
33  int* GetCounter() {return &counter_ ;}
34  int* GetOrbit() {return &orbit_number_ ;}
35  int* GetBX() {return &bx_ ;}
36  int* GetLV1() {return &lv1_ ;}
37  int* GetRunNumber() {return &run_number_ ;}
38 
39  static const int BXMAX = 2808;
40  static const int LHC_BX_RANGE = 3564;
41  static const int KCHIP_BC_RANGE = 4096;
42  static const int KCHIP_EC_RANGE = 256;
43 
44  private:
45 
46  int counter_;
49  int bx_;
50  int lv1_;
51  int kchip_ec_;
52  int kchip_bc_;
53  int fedId_[2][2][40][40];
54 
55  std::string label_;
56  std::string instanceName_;
58  bool debug_;
61 
63 
64 };
65 
66 #endif
int * GetLV1()
Definition: ESDigiToRaw.h:36
static const int KCHIP_EC_RANGE
Definition: ESDigiToRaw.h:42
void produce(edm::Event &e, const edm::EventSetup &es)
Definition: ESDigiToRaw.cc:68
virtual ~ESDigiToRaw()
Definition: ESDigiToRaw.cc:61
int * GetCounter()
Definition: ESDigiToRaw.h:33
int * GetBX()
Definition: ESDigiToRaw.h:35
int orbit_number_
Definition: ESDigiToRaw.h:47
std::string label_
Definition: ESDigiToRaw.h:55
int formatMinor_
Definition: ESDigiToRaw.h:60
ESDataFormatter * ESDataFormatter_
Definition: ESDigiToRaw.h:62
edm::FileInPath lookup_
Definition: ESDigiToRaw.h:57
uint64_t Word64
Definition: ESDigiToRaw.h:31
int formatMajor_
Definition: ESDigiToRaw.h:59
int fedId_[2][2][40][40]
Definition: ESDigiToRaw.h:53
std::string instanceName_
Definition: ESDigiToRaw.h:56
int run_number_
Definition: ESDigiToRaw.h:48
unsigned long long uint64_t
Definition: Time.h:15
void beginJob()
Definition: ESDigiToRaw.cc:65
ESDigiToRaw(const edm::ParameterSet &ps)
Definition: ESDigiToRaw.cc:15
static const int KCHIP_BC_RANGE
Definition: ESDigiToRaw.h:41
void endJob()
Definition: ESDigiToRaw.cc:121
static const int BXMAX
Definition: ESDigiToRaw.h:39
int * GetRunNumber()
Definition: ESDigiToRaw.h:37
static const int LHC_BX_RANGE
Definition: ESDigiToRaw.h:40
uint32_t Word32
Definition: ESDigiToRaw.h:30
int * GetOrbit()
Definition: ESDigiToRaw.h:34