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 public:
46  explicit EcalRawToDigi(const edm::ParameterSet& ps);
47 
51  void produce(edm::Event& e, const edm::EventSetup& c) override;
52  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
53 
54  // function called at start of each run
55  void beginRun(const edm::Run& run, const edm::EventSetup& es) override;
56 
60  ~EcalRawToDigi() override;
61 
63 
64 private:
65  //list of FEDs to unpack
66  std::vector<int> fedUnpackList_;
67 
68  std::vector<int> orderedFedUnpackList_;
69  std::vector<int> orderedDCCIdList_;
70 
71  unsigned int numbXtalTSamples_;
72  unsigned int numbTriggerTSamples_;
73 
79  bool syncCheck_;
80  bool feIdCheck_;
82  bool first_;
83  bool put_;
84 
87 
88  // -- For regional unacking :
89  bool REGIONAL_;
90 
91  //an electronics mapper class
93 
94  //Ecal unpacker
96 
97  unsigned int nevts_; // NA: for testing
99 };
100 
101 #endif
FEDNumbering.h
EcalRawToDigi::myMap_
EcalElectronicsMapper * myMap_
Definition: EcalRawToDigi.h:92
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
Handle.h
MessageLogger.h
edm::ESWatcher< EcalMappingRcd >
EcalRawToDigi::fedsToken_
edm::EDGetTokenT< EcalListOfFEDS > fedsToken_
Definition: EcalRawToDigi.h:86
EcalRawToDigi::theUnpacker_
DCCDataUnpacker * theUnpacker_
Definition: EcalRawToDigi.h:95
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< FEDRawDataCollection >
EcalRawToDigi::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
Definition: EcalRawToDigi.cc:276
EcalRawToDigi::RUNNING_TIME_
double RUNNING_TIME_
Definition: EcalRawToDigi.h:98
EcalRawToDigi::orderedDCCIdList_
std::vector< int > orderedDCCIdList_
Definition: EcalRawToDigi.h:69
EDProducer.h
DCCDataUnpacker
Definition: DCCDataUnpacker.h:49
FEDRawData.h
EcalRawToDigi::tccUnpacking_
bool tccUnpacking_
Definition: EcalRawToDigi.h:76
EcalRawToDigi::dataToken_
edm::EDGetTokenT< FEDRawDataCollection > dataToken_
Definition: EcalRawToDigi.h:85
EcalRawToDigi::srpUnpacking_
bool srpUnpacking_
Definition: EcalRawToDigi.h:75
EcalRawToDigi::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: EcalRawToDigi.cc:232
EcalRawToDigi::forceToKeepFRdata_
bool forceToKeepFRdata_
Definition: EcalRawToDigi.h:81
EcalRawDataCollections.h
EcalRawToDigi::orderedFedUnpackList_
std::vector< int > orderedFedUnpackList_
Definition: EcalRawToDigi.h:68
EcalMappingRcd.h
EcalDigiCollections.h
EcalRawToDigi::EcalRawToDigi
EcalRawToDigi(const edm::ParameterSet &ps)
Definition: EcalRawToDigi.cc:18
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
EcalRawToDigi::put_
bool put_
Definition: EcalRawToDigi.h:83
EcalRawToDigi::numbXtalTSamples_
unsigned int numbXtalTSamples_
Definition: EcalRawToDigi.h:71
EcalRawToDigi::headerUnpacking_
bool headerUnpacking_
Definition: EcalRawToDigi.h:74
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
EcalRawToDigi
Definition: EcalRawToDigi.h:41
EcalRawToDigi::nevts_
unsigned int nevts_
Definition: EcalRawToDigi.h:97
EcalRawToDigi::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Definition: EcalRawToDigi.cc:289
FEDRawDataCollection.h
EcalRawToDigi::SETUP_TIME_
double SETUP_TIME_
Definition: EcalRawToDigi.h:98
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:57
EcalRawToDigi::REGIONAL_
bool REGIONAL_
Definition: EcalRawToDigi.h:89
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
EcalRawToDigi::feUnpacking_
bool feUnpacking_
Definition: EcalRawToDigi.h:77
EcalElectronicsMapper
Definition: EcalElectronicsMapper.h:36
EcalRawToDigi::memUnpacking_
bool memUnpacking_
Definition: EcalRawToDigi.h:78
writedatasetfile.run
run
Definition: writedatasetfile.py:27
EcalRawToDigi::fedUnpackList_
std::vector< int > fedUnpackList_
Definition: EcalRawToDigi.h:66
EcalRawToDigi::syncCheck_
bool syncCheck_
Definition: EcalRawToDigi.h:79
ESWatcher.h
DCCRawDataDefinitions.h
EcalRawToDigi::~EcalRawToDigi
~EcalRawToDigi() override
Definition: EcalRawToDigi.cc:500
EcalRawToDigi::watcher_
edm::ESWatcher< EcalMappingRcd > watcher_
Definition: EcalRawToDigi.h:62
EcalRawToDigi::first_
bool first_
Definition: EcalRawToDigi.h:82
ParameterSet.h
edm::Event
Definition: Event.h:73
EcalRawToDigi::feIdCheck_
bool feIdCheck_
Definition: EcalRawToDigi.h:80
EcalRawToDigi::numbTriggerTSamples_
unsigned int numbTriggerTSamples_
Definition: EcalRawToDigi.h:72
EcalListOfFEDS.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37