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  * $Date: 2010/09/15 21:51:34 $
13  * $Revision: 1.7 $
14  * \author N. Almeida
15  * \author G. Franzoni
16  *
17 */
18 
19 #include <iostream>
20 
22 
29 
36 #include <sys/time.h>
37 
40 class DCCDataUnpacker;
41 
43 
44  public:
48  explicit EcalRawToDigi(const edm::ParameterSet& ps);
49 
53  virtual void produce(edm::Event& e, const edm::EventSetup& c);
54 
55  // function called at start of each run
56  virtual void beginRun(edm::Run& run, const edm::EventSetup& es);
57 
61  virtual ~EcalRawToDigi();
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 
90  //std::string dataLabel_ ;
92 
93  // -- For regional unacking :
94  bool REGIONAL_ ;
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_
bool forceToKeepFRdata_
Definition: EcalRawToDigi.h:85
double SETUP_TIME_
std::vector< int > orderedFedUnpackList_
Definition: EcalRawToDigi.h:72
std::vector< int > fedUnpackList_
Definition: EcalRawToDigi.h:70
virtual ~EcalRawToDigi()
DCCDataUnpacker * theUnpacker_
unsigned int nevts_
virtual void beginRun(edm::Run &run, const edm::EventSetup &es)
unsigned int numbTriggerTSamples_
Definition: EcalRawToDigi.h:76
virtual void produce(edm::Event &e, const edm::EventSetup &c)
std::vector< int > orderedDCCIdList_
Definition: EcalRawToDigi.h:73
EcalRawToDigi(const edm::ParameterSet &ps)
bool headerUnpacking_
Definition: EcalRawToDigi.h:78
EcalElectronicsMapper * myMap_
Definition: EcalRawToDigi.h:98
edm::InputTag fedsLabel_
Definition: EcalRawToDigi.h:95
edm::InputTag dataLabel_
Definition: EcalRawToDigi.h:91
Definition: Run.h:33