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 
35 #include <sys/time.h>
36 
39 class DCCDataUnpacker;
40 
42 
43  public:
47  explicit EcalRawToDigi(const edm::ParameterSet& ps);
48 
52  virtual void produce(edm::Event& e, const edm::EventSetup& c) override;
53 
54  // function called at start of each run
55  virtual void beginRun(const edm::Run& run, const edm::EventSetup& es) override;
56 
60  virtual ~EcalRawToDigi();
61 
62 
64 
65 
66  private:
67 
68  //list of FEDs to unpack
69  std::vector<int> fedUnpackList_;
70 
71  std::vector<int> orderedFedUnpackList_;
72  std::vector<int> orderedDCCIdList_;
73 
74  unsigned int numbXtalTSamples_;
75  unsigned int numbTriggerTSamples_;
76 
82  bool syncCheck_;
83  bool feIdCheck_;
85  bool first_;
86  bool put_;
87 
88 
91 
92  // -- For regional unacking :
93  bool REGIONAL_ ;
94 
95 
96  //an electronics mapper class
98 
99  //Ecal unpacker
101 
102  unsigned int nevts_; // NA: for testing
104 };
105 
106 #endif
edm::ESWatcher< EcalMappingRcd > watcher_
Definition: EcalRawToDigi.h:63
unsigned int numbXtalTSamples_
Definition: EcalRawToDigi.h:74
double RUNNING_TIME_
bool forceToKeepFRdata_
Definition: EcalRawToDigi.h:84
double SETUP_TIME_
edm::EDGetTokenT< FEDRawDataCollection > dataToken_
Definition: EcalRawToDigi.h:89
std::vector< int > orderedFedUnpackList_
Definition: EcalRawToDigi.h:71
std::vector< int > fedUnpackList_
Definition: EcalRawToDigi.h:69
virtual ~EcalRawToDigi()
DCCDataUnpacker * theUnpacker_
unsigned int nevts_
unsigned int numbTriggerTSamples_
Definition: EcalRawToDigi.h:75
std::vector< int > orderedDCCIdList_
Definition: EcalRawToDigi.h:72
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
EcalRawToDigi(const edm::ParameterSet &ps)
edm::EDGetTokenT< EcalListOfFEDS > fedsToken_
Definition: EcalRawToDigi.h:90
bool headerUnpacking_
Definition: EcalRawToDigi.h:77
EcalElectronicsMapper * myMap_
Definition: EcalRawToDigi.h:97
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es) override
Definition: Run.h:41