CMS 3D CMS Logo

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