CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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 
30 
39 #include <sys/time.h>
40 
43 class DCCDataUnpacker;
44 
46 public:
50  explicit EcalRawToDigi(const edm::ParameterSet& ps);
51 
55  void produce(edm::Event& e, const edm::EventSetup& c) override;
56  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
57 
58  // function called at start of each run
59  void beginRun(const edm::Run& run, const edm::EventSetup& es) override;
60 
64  ~EcalRawToDigi() override;
65 
67 
68 private:
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 
93 
94  // -- For regional unacking :
95  bool REGIONAL_;
96 
97  //an electronics mapper class
99 
100  //Ecal unpacker
102 
103  unsigned int nevts_; // NA: for testing
105 };
106 
107 #endif
FEDNumbering.h
EcalRawToDigi::myMap_
EcalElectronicsMapper * myMap_
Definition: EcalRawToDigi.h:98
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
Handle.h
MessageLogger.h
edm::ESWatcher< EcalMappingRcd >
EcalRawToDigi::fedsToken_
edm::EDGetTokenT< EcalListOfFEDS > fedsToken_
Definition: EcalRawToDigi.h:90
EcalRawToDigi::theUnpacker_
DCCDataUnpacker * theUnpacker_
Definition: EcalRawToDigi.h:101
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:274
EcalRawToDigi::RUNNING_TIME_
double RUNNING_TIME_
Definition: EcalRawToDigi.h:104
EcalRawToDigi::orderedDCCIdList_
std::vector< int > orderedDCCIdList_
Definition: EcalRawToDigi.h:73
EDProducer.h
DCCDataUnpacker
Definition: DCCDataUnpacker.h:49
FEDRawData.h
EcalRawToDigi::chStatusToken_
edm::ESGetToken< EcalChannelStatusMap, EcalChannelStatusRcd > chStatusToken_
Definition: EcalRawToDigi.h:91
EcalRawToDigi::ecalMappingToken_
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > ecalMappingToken_
Definition: EcalRawToDigi.h:92
ESGetToken.h
EcalRawToDigi::tccUnpacking_
bool tccUnpacking_
Definition: EcalRawToDigi.h:80
EcalRawToDigi::dataToken_
edm::EDGetTokenT< FEDRawDataCollection > dataToken_
Definition: EcalRawToDigi.h:89
EcalRawToDigi::srpUnpacking_
bool srpUnpacking_
Definition: EcalRawToDigi.h:79
EcalRawToDigi::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: EcalRawToDigi.cc:230
EcalRawToDigi::forceToKeepFRdata_
bool forceToKeepFRdata_
Definition: EcalRawToDigi.h:85
EcalRawDataCollections.h
EcalRawToDigi::orderedFedUnpackList_
std::vector< int > orderedFedUnpackList_
Definition: EcalRawToDigi.h:72
EcalMappingRcd.h
EcalDigiCollections.h
EcalRawToDigi::EcalRawToDigi
EcalRawToDigi(const edm::ParameterSet &ps)
Definition: EcalRawToDigi.cc:14
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
EcalRawToDigi::put_
bool put_
Definition: EcalRawToDigi.h:87
EcalRawToDigi::numbXtalTSamples_
unsigned int numbXtalTSamples_
Definition: EcalRawToDigi.h:75
EcalRawToDigi::headerUnpacking_
bool headerUnpacking_
Definition: EcalRawToDigi.h:78
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
EcalRawToDigi
Definition: EcalRawToDigi.h:45
EcalElectronicsMapping.h
EcalRawToDigi::nevts_
unsigned int nevts_
Definition: EcalRawToDigi.h:103
EcalRawToDigi::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Definition: EcalRawToDigi.cc:286
FEDRawDataCollection.h
EcalRawToDigi::SETUP_TIME_
double SETUP_TIME_
Definition: EcalRawToDigi.h:104
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:58
EcalRawToDigi::REGIONAL_
bool REGIONAL_
Definition: EcalRawToDigi.h:95
edm::ESGetToken
Definition: EventSetup.h:48
EcalRawToDigi::feUnpacking_
bool feUnpacking_
Definition: EcalRawToDigi.h:81
EcalElectronicsMapper
Definition: EcalElectronicsMapper.h:36
EcalRawToDigi::memUnpacking_
bool memUnpacking_
Definition: EcalRawToDigi.h:82
writedatasetfile.run
run
Definition: writedatasetfile.py:27
EcalRawToDigi::fedUnpackList_
std::vector< int > fedUnpackList_
Definition: EcalRawToDigi.h:70
EcalRawToDigi::syncCheck_
bool syncCheck_
Definition: EcalRawToDigi.h:83
ESWatcher.h
DCCRawDataDefinitions.h
EcalRawToDigi::~EcalRawToDigi
~EcalRawToDigi() override
Definition: EcalRawToDigi.cc:495
EcalRawToDigi::watcher_
edm::ESWatcher< EcalMappingRcd > watcher_
Definition: EcalRawToDigi.h:66
EcalRawToDigi::first_
bool first_
Definition: EcalRawToDigi.h:86
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
edm::Event
Definition: Event.h:73
EcalRawToDigi::feIdCheck_
bool feIdCheck_
Definition: EcalRawToDigi.h:84
EcalChannelStatus.h
EcalChannelStatusRcd.h
EcalRawToDigi::numbTriggerTSamples_
unsigned int numbTriggerTSamples_
Definition: EcalRawToDigi.h:76
EcalListOfFEDS.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37