CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalRawToDigi.h
Go to the documentation of this file.
1 #ifndef _ECALRAWTODIGIDEV_H_
2 #define _ECALRAWTODIGIDEV_H_
3 
4 /*
5  *\ Class EcalRawToDigi
6  *
7  * This class takes unpacks ECAL raw data
8  * produces digis and raw data format prolblems reports
9  *
10  * \file EcalRawToDigi.h
11  *
12  * \author N. Almeida
13  * \author G. Franzoni
14  *
15 */
16 
17 #include <iostream>
18 
20 
27 
34 #include <sys/time.h>
35 
38 class DCCDataUnpacker;
39 
41 
42  public:
46  explicit EcalRawToDigi(const edm::ParameterSet& ps);
47 
51  virtual void produce(edm::Event& e, const edm::EventSetup& c) override;
52 
53  // function called at start of each run
54  virtual void beginRun(const edm::Run& run, const edm::EventSetup& es) override;
55 
59  virtual ~EcalRawToDigi();
60 
61 
63 
64 
65  private:
66 
67  //list of FEDs to unpack
68  std::vector<int> fedUnpackList_;
69 
70  std::vector<int> orderedFedUnpackList_;
71  std::vector<int> orderedDCCIdList_;
72 
73  unsigned int numbXtalTSamples_;
74  unsigned int numbTriggerTSamples_;
75 
81  bool syncCheck_;
82  bool feIdCheck_;
84  bool first_;
85  bool put_;
86 
87 
88  //std::string dataLabel_ ;
90 
91  // -- For regional unacking :
92  bool REGIONAL_ ;
94 
95  //an electronics mapper class
97 
98  //Ecal unpacker
100 
101  unsigned int nevts_; // NA: for testing
103 };
104 
105 #endif
edm::ESWatcher< EcalMappingRcd > watcher_
Definition: EcalRawToDigi.h:62
unsigned int numbXtalTSamples_
Definition: EcalRawToDigi.h:73
double RUNNING_TIME_
bool forceToKeepFRdata_
Definition: EcalRawToDigi.h:83
double SETUP_TIME_
std::vector< int > orderedFedUnpackList_
Definition: EcalRawToDigi.h:70
std::vector< int > fedUnpackList_
Definition: EcalRawToDigi.h:68
virtual ~EcalRawToDigi()
DCCDataUnpacker * theUnpacker_
Definition: EcalRawToDigi.h:99
unsigned int nevts_
unsigned int numbTriggerTSamples_
Definition: EcalRawToDigi.h:74
std::vector< int > orderedDCCIdList_
Definition: EcalRawToDigi.h:71
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
EcalRawToDigi(const edm::ParameterSet &ps)
bool headerUnpacking_
Definition: EcalRawToDigi.h:76
EcalElectronicsMapper * myMap_
Definition: EcalRawToDigi.h:96
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es) override
edm::InputTag fedsLabel_
Definition: EcalRawToDigi.h:93
edm::InputTag dataLabel_
Definition: EcalRawToDigi.h:89
Definition: Run.h:41