test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalDigiToRaw.h
Go to the documentation of this file.
1 #ifndef EcalDigiToRaw_H
2 #define EcalDigiToRaw_H
3 
4 //
5 // Package: EcalDigiToRaw
6 // Class: EcalDigiToRaw
7 //
15 //
16 // Original Author: Emmanuelle Perez
17 // Created: Sat Nov 25 13:59:51 CET 2006
18 //
19 //
20 
21 
22 // system include files
23 #include <memory>
24 #include <iostream>
25 #include <string>
26 
27 
28 // user include files
31 
34 
36 
41 
44 
45 
46 //
47 // class decleration
48 //
49 
51  public:
53  virtual ~EcalDigiToRaw();
54 
55  void beginJob();
56  void produce(edm::Event& e, const edm::EventSetup& c);
57  void endJob() ;
58 
59  typedef long long Word64;
60  typedef unsigned int Word32;
61 
62  int* GetCounter() {return &counter_ ;}
63  bool GetDebug() {return debug_ ;}
64  int* GetOrbit() {return &orbit_number_ ;}
65  int* GetBX() {return &bx_ ;}
66  int* GetLV1() {return &lv1_ ;}
67  int* GetRunNumber() {return &runnumber_ ;}
68  bool GetDoBarrel() {return doBarrel_ ;}
69  bool GetDoEndCap() {return doEndCap_ ;}
70  bool GetDoSR() {return doSR_ ;}
71  bool GetDoTower() {return doTower_ ;}
72  bool GetDoTCC() {return doTCC_ ;}
73 
74  std::vector<int32_t>* GetListDCCId() {return &listDCCId_ ;}
75 
76  static const int BXMAX = 2808;
77 
78 
79  private:
80 
81 
82  // ----------member data ---------------------------
83 
84  int counter_;
86  bool debug_;
88  int bx_;
89  int lv1_;
90 
91  bool doTCC_;
92  bool doSR_;
93  bool doTower_;
94 
100 
101  bool doBarrel_;
102  bool doEndCap_;
103 
104  std::vector<int32_t> listDCCId_;
105 
109 
114 
115 
116 };
117 
118 //define this as a plug-in
119 // DEFINE_FWK_MODULE(EcalDigiToRaw);
120 
121 #endif
122 
BlockFormatter * Headerblockformatter_
int * GetLV1()
Definition: EcalDigiToRaw.h:66
edm::EDGetTokenT< EESrFlagCollection > labelEESR_
Definition: EcalDigiToRaw.h:97
int * GetCounter()
Definition: EcalDigiToRaw.h:62
edm::EDGetTokenT< EBDigiCollection > EBDigiToken_
Definition: EcalDigiToRaw.h:98
TCCBlockFormatter * TCCblockformatter_
unsigned int Word32
Definition: EcalDigiToRaw.h:60
int * GetOrbit()
Definition: EcalDigiToRaw.h:64
int * GetRunNumber()
Definition: EcalDigiToRaw.h:67
TowerBlockFormatter * Towerblockformatter_
bool GetDoBarrel()
Definition: EcalDigiToRaw.h:68
SRBlockFormatter * SRblockformatter_
edm::EDGetTokenT< EcalTrigPrimDigiCollection > labelTT_
Definition: EcalDigiToRaw.h:95
void produce(edm::Event &e, const edm::EventSetup &c)
edm::EDGetTokenT< EEDigiCollection > EEDigiToken_
Definition: EcalDigiToRaw.h:99
std::string instanceNameEE_
std::string label_
virtual ~EcalDigiToRaw()
std::vector< int32_t > listDCCId_
long long Word64
Definition: EcalDigiToRaw.h:59
std::vector< int32_t > * GetListDCCId()
Definition: EcalDigiToRaw.h:74
bool GetDoEndCap()
Definition: EcalDigiToRaw.h:69
edm::EDGetTokenT< EBSrFlagCollection > labelEBSR_
Definition: EcalDigiToRaw.h:96
EcalDigiToRaw(const edm::ParameterSet &pset)
static const int BXMAX
Definition: EcalDigiToRaw.h:76
bool GetDoTower()
Definition: EcalDigiToRaw.h:71
std::string instanceNameEB_