CMS 3D CMS Logo

EcalRawToDigi.cc
Go to the documentation of this file.
4 
7 
10 
13 
15  :
16 
17  //define the list of FED to be unpacked
18  fedUnpackList_(conf.getParameter<std::vector<int> >("FEDs")),
19 
20  //define the ordered FED list
21  orderedFedUnpackList_(conf.getParameter<std::vector<int> >("orderedFedList")),
22 
23  //define the ordered DCCId list
24  orderedDCCIdList_(conf.getParameter<std::vector<int> >("orderedDCCIdList")),
25 
26  //get number of Xtal Time Samples
27  numbXtalTSamples_(conf.getParameter<int>("numbXtalTSamples")),
28 
29  //Get number of Trigger Time Samples
30  numbTriggerTSamples_(conf.getParameter<int>("numbTriggerTSamples")),
31 
32  //See if header unpacking is enabled
33  headerUnpacking_(conf.getParameter<bool>("headerUnpacking")),
34 
35  //See if srp unpacking is enabled
36  srpUnpacking_(conf.getParameter<bool>("srpUnpacking")),
37 
38  //See if tcc unpacking is enabled
39  tccUnpacking_(conf.getParameter<bool>("tccUnpacking")),
40 
41  //See if fe unpacking is enabled
42  feUnpacking_(conf.getParameter<bool>("feUnpacking")),
43 
44  //See if fe unpacking is enabled for mem box
45  memUnpacking_(conf.getParameter<bool>("memUnpacking")),
46 
47  //See if syncCheck is enabled
48  syncCheck_(conf.getParameter<bool>("syncCheck")),
49 
50  //See if feIdCheck is enabled
51  feIdCheck_(conf.getParameter<bool>("feIdCheck")),
52 
53  // See if we want to keep data even if we have a mismatch between SR decision and block length
54  forceToKeepFRdata_(conf.getParameter<bool>("forceToKeepFRData")),
55 
56  put_(conf.getParameter<bool>("eventPut")),
57 
58  REGIONAL_(conf.getParameter<bool>("DoRegional")),
59 
60  myMap_(nullptr),
61 
62  theUnpacker_(nullptr)
63 
64 {
65  first_ = true;
66  DCCDataUnpacker::silentMode_ = conf.getUntrackedParameter<bool>("silentMode", false);
67 
68  if (numbXtalTSamples_ < 6 || numbXtalTSamples_ > 64 || (numbXtalTSamples_ - 2) % 4) {
69  std::ostringstream output;
70  output << "\n Unsuported number of xtal time samples : " << numbXtalTSamples_
71  << "\n Valid Number of xtal time samples are : 6,10,14,18,...,62";
72  edm::LogError("IncorrectConfiguration") << output.str();
73  // todo : throw an execption
74  }
75 
77  std::ostringstream output;
78  output << "\n Unsuported number of trigger time samples : " << numbTriggerTSamples_
79  << "\n Valid number of trigger time samples are : 1, 4 or 8";
80  edm::LogError("IncorrectConfiguration") << output.str();
81  // todo : throw an execption
82  }
83 
84  //NA : testing
85  //nevts_=0;
86  //RUNNING_TIME_=0;
87 
88  // if there are FEDs specified to unpack fill the vector of the fedUnpackList_
89  // else fill with the entire ECAL fed range (600-670)
90  if (fedUnpackList_.empty())
92  fedUnpackList_.push_back(i);
93 
94  //print the FEDs to unpack to the logger
95  std::ostringstream loggerOutput_;
96  if (!fedUnpackList_.empty()) {
97  for (unsigned int i = 0; i < fedUnpackList_.size(); i++)
98  loggerOutput_ << fedUnpackList_[i] << " ";
99  edm::LogInfo("EcalRawToDigi") << "EcalRawToDigi will unpack FEDs ( " << loggerOutput_.str() << ")";
100  LogDebug("EcalRawToDigi") << "EcalRawToDigi will unpack FEDs ( " << loggerOutput_.str() << ")";
101  }
102 
103  edm::LogInfo("EcalRawToDigi") << "\n ECAL RawToDigi configuration:"
104  << "\n Header unpacking is " << headerUnpacking_ << "\n SRP Bl. unpacking is "
105  << srpUnpacking_ << "\n TCC Bl. unpacking is " << tccUnpacking_
106  << "\n FE Bl. unpacking is " << feUnpacking_ << "\n MEM Bl. unpacking is "
107  << memUnpacking_ << "\n sync check is " << syncCheck_ << "\n feID check is "
108  << feIdCheck_ << "\n force keep FR data is " << forceToKeepFRdata_ << "\n";
109 
110  edm::InputTag dataLabel = conf.getParameter<edm::InputTag>("InputLabel");
111  edm::InputTag fedsLabel = conf.getParameter<edm::InputTag>("FedLabel");
112 
113  // Producer products :
114  produces<EBDigiCollection>("ebDigis");
115  produces<EEDigiCollection>("eeDigis");
116  produces<EBSrFlagCollection>();
117  produces<EESrFlagCollection>();
118  produces<EcalRawDataCollection>();
119  produces<EcalPnDiodeDigiCollection>();
120  produces<EcalTrigPrimDigiCollection>("EcalTriggerPrimitives");
121  produces<EcalPSInputDigiCollection>("EcalPseudoStripInputs");
122 
123  // Integrity for xtal data
124  produces<EBDetIdCollection>("EcalIntegrityGainErrors");
125  produces<EBDetIdCollection>("EcalIntegrityGainSwitchErrors");
126  produces<EBDetIdCollection>("EcalIntegrityChIdErrors");
127 
128  // Integrity for xtal data - EE specific (to be rivisited towards EB+EE common collection)
129  produces<EEDetIdCollection>("EcalIntegrityGainErrors");
130  produces<EEDetIdCollection>("EcalIntegrityGainSwitchErrors");
131  produces<EEDetIdCollection>("EcalIntegrityChIdErrors");
132 
133  // Integrity Errors
134  produces<EcalElectronicsIdCollection>("EcalIntegrityTTIdErrors");
135  produces<EcalElectronicsIdCollection>("EcalIntegrityZSXtalIdErrors");
136  produces<EcalElectronicsIdCollection>("EcalIntegrityBlockSizeErrors");
137 
138  // Mem channels' integrity
139  produces<EcalElectronicsIdCollection>("EcalIntegrityMemTtIdErrors");
140  produces<EcalElectronicsIdCollection>("EcalIntegrityMemBlockSizeErrors");
141  produces<EcalElectronicsIdCollection>("EcalIntegrityMemChIdErrors");
142  produces<EcalElectronicsIdCollection>("EcalIntegrityMemGainErrors");
143 
144  dataToken_ = consumes<FEDRawDataCollection>(dataLabel);
145  if (REGIONAL_) {
146  fedsToken_ = consumes<EcalListOfFEDS>(fedsLabel);
147  }
148  chStatusToken_ = esConsumes<EcalChannelStatusMap, EcalChannelStatusRcd, edm::Transition::BeginRun>();
149  ecalMappingToken_ = esConsumes<EcalElectronicsMapping, EcalMappingRcd>();
150 
151  // Build a new Electronics mapper and parse default map file
153 
154  // in case of external tsext file (deprecated by HLT environment)
155  // bool readResult = myMap_->readDCCMapFile(conf.getParameter<std::string>("DCCMapFile",""));
156 
157  // use two arrays from cfg to establish DCCId:FedId. If they are empy, than use hard coded correspondence
159  // myMap::makeMapFromVectors() returns "true" always
160  // need to be fixed?
161 
162  if (!readResult) {
163  edm::LogWarning("IncorrectConfiguration") << "Arrays orderedFedList and orderedDCCIdList are emply. "
164  "Hard coded correspondence for DCCId:FedId will be used.";
165  // edm::LogError("EcalRawToDigi")<<"\n unable to read file : "
166  // <<conf.getParameter<std::string>("DCCMapFile");
167  }
168 
169  // Build a new ECAL DCC data unpacker
174  feUnpacking_,
176  syncCheck_,
177  feIdCheck_,
179 }
180 
181 // print list of crystals with non-zero statuses
182 // this functions is only for debug purposes
184  // Endcap
185  std::cout << "===> ENDCAP" << std::endl;
186  for (int i = 0; i < EEDetId::kSizeForDenseIndexing; ++i) {
187  const EEDetId id = EEDetId::unhashIndex(i);
188  if (!id.null()) {
189  // channel status
190  const uint16_t code = unpacker->getChannelValue(id);
191 
192  if (code) {
193  const EcalElectronicsId ei = mapping->getElectronicsId(id);
194 
195  // convert DCC ID (1 - 54) to FED ID (601 - 654)
196  const int fed_id = unpacker->electronicsMapper()->getDCCId(ei.dccId());
197 
198  std::cout << " id " << id.rawId() << " -> (" << id.ix() << ", " << id.iy() << ", " << id.zside() << ") "
199  << "(" << ei.dccId() << " : " << fed_id << ", " << ei.towerId() << ", " << ei.stripId() << ", "
200  << ei.xtalId() << ") "
201  << "status = " << code << std::endl;
202  }
203  }
204  }
205  std::cout << "<=== ENDCAP" << std::endl;
206 
207  std::cout << "===> BARREL" << std::endl;
208  for (int i = 0; i < EBDetId::kSizeForDenseIndexing; ++i) {
209  const EBDetId id = EBDetId::unhashIndex(i);
210  if (!id.null()) {
211  // channel status
212  const uint16_t code = unpacker->getChannelValue(id);
213 
214  if (code) {
215  const EcalElectronicsId ei = mapping->getElectronicsId(id);
216 
217  // convert DCC ID (1 - 54) to FED ID (601 - 654)
218  const int fed_id = unpacker->electronicsMapper()->getDCCId(ei.dccId());
219 
220  std::cout << " id " << id.rawId() << " -> (" << id.ieta() << ", " << id.iphi() << ", " << id.zside() << ") "
221  << "(" << ei.dccId() << " : " << fed_id << ", " << ei.towerId() << ", " << ei.stripId() << ", "
222  << ei.xtalId() << ") "
223  << "status = " << code << std::endl;
224  }
225  }
226  }
227  std::cout << "<=== BARREL" << std::endl;
228 }
229 
232  desc.add<bool>("tccUnpacking", true);
233  desc.add<edm::InputTag>("FedLabel", edm::InputTag("listfeds"));
234  desc.add<bool>("srpUnpacking", true);
235  desc.add<bool>("syncCheck", true);
236  desc.add<bool>("feIdCheck", true);
237  desc.addUntracked<bool>("silentMode", true);
238  desc.add<edm::InputTag>("InputLabel", edm::InputTag("rawDataCollector"));
239  {
240  std::vector<int> temp1;
241  unsigned int nvec = 54;
242  temp1.reserve(nvec);
243  for (unsigned int i = 0; i < nvec; i++)
244  temp1.push_back(601 + i);
245  desc.add<std::vector<int> >("orderedFedList", temp1);
246  }
247  desc.add<bool>("eventPut", true);
248  desc.add<int>("numbTriggerTSamples", 1);
249  desc.add<int>("numbXtalTSamples", 10);
250  {
251  std::vector<int> temp1;
252  unsigned int nvec = 54;
253  temp1.reserve(nvec);
254  for (unsigned int i = 0; i < nvec; i++)
255  temp1.push_back(1 + i);
256  desc.add<std::vector<int> >("orderedDCCIdList", temp1);
257  }
258  {
259  std::vector<int> temp1;
260  unsigned int nvec = 54;
261  temp1.reserve(nvec);
262  for (unsigned int i = 0; i < nvec; i++)
263  temp1.push_back(601 + i);
264  desc.add<std::vector<int> >("FEDs", temp1);
265  }
266  desc.add<bool>("DoRegional", false);
267  desc.add<bool>("feUnpacking", true);
268  desc.add<bool>("forceToKeepFRData", false);
269  desc.add<bool>("headerUnpacking", true);
270  desc.add<bool>("memUnpacking", true);
271  descriptions.add("ecalRawToDigi", desc);
272 }
273 
275  // channel status database
278 
279  // uncomment following line to print list of crystals with bad status
280  //edm::ESHandle<EcalElectronicsMapping> pEcalMapping;
281  //es.get<EcalMappingRcd>().get(pEcalMapping);
282  //const EcalElectronicsMapping* mapping = pEcalMapping.product();
283  //printStatusRecords(theUnpacker_, mapping);
284 }
285 
287  //double TIME_START = clock();
288  //nevts_++; //NUNO
289 
290  if (first_) {
291  watcher_.check(es);
293  myMap_->setEcalElectronicsMapping(ecalmapping.product());
294 
295  first_ = false;
296 
297  } else {
298  if (watcher_.check(es)) {
302  myMap_->setEcalElectronicsMapping(ecalmapping.product());
303  }
304  }
305 
306  // Get list of FEDS :
307  std::vector<int> FEDS_to_unpack;
308  if (REGIONAL_) {
309  edm::Handle<EcalListOfFEDS> listoffeds;
310  e.getByToken(fedsToken_, listoffeds);
311  FEDS_to_unpack = listoffeds->GetList();
312  }
313 
314  // Step A: Get Inputs
315 
317  e.getByToken(dataToken_, rawdata);
318 
319  // Step B: encapsulate vectors in actual collections and set unpacker pointers
320 
321  // create the collection of Ecal Digis
322  auto productDigisEB = std::make_unique<EBDigiCollection>();
323  productDigisEB->reserve(1700);
324  theUnpacker_->setEBDigisCollection(&productDigisEB);
325 
326  // create the collection of Ecal Digis
327  auto productDigisEE = std::make_unique<EEDigiCollection>();
328  theUnpacker_->setEEDigisCollection(&productDigisEE);
329 
330  // create the collection for headers
331  auto productDccHeaders = std::make_unique<EcalRawDataCollection>();
332  theUnpacker_->setDccHeadersCollection(&productDccHeaders);
333 
334  // create the collection for invalid gains
335  auto productInvalidGains = std::make_unique<EBDetIdCollection>();
336  theUnpacker_->setInvalidGainsCollection(&productInvalidGains);
337 
338  // create the collection for invalid gain Switch
339  auto productInvalidGainsSwitch = std::make_unique<EBDetIdCollection>();
340  theUnpacker_->setInvalidGainsSwitchCollection(&productInvalidGainsSwitch);
341 
342  // create the collection for invalid chids
343  auto productInvalidChIds = std::make_unique<EBDetIdCollection>();
344  theUnpacker_->setInvalidChIdsCollection(&productInvalidChIds);
345 
347 
348  // create the collection for invalid gains
349  auto productInvalidEEGains = std::make_unique<EEDetIdCollection>();
350  theUnpacker_->setInvalidEEGainsCollection(&productInvalidEEGains);
351 
352  // create the collection for invalid gain Switch
353  auto productInvalidEEGainsSwitch = std::make_unique<EEDetIdCollection>();
354  theUnpacker_->setInvalidEEGainsSwitchCollection(&productInvalidEEGainsSwitch);
355 
356  // create the collection for invalid chids
357  auto productInvalidEEChIds = std::make_unique<EEDetIdCollection>();
358  theUnpacker_->setInvalidEEChIdsCollection(&productInvalidEEChIds);
359 
361 
362  // create the collection for EB srflags
363  auto productEBSrFlags = std::make_unique<EBSrFlagCollection>();
364  theUnpacker_->setEBSrFlagsCollection(&productEBSrFlags);
365 
366  // create the collection for EB srflags
367  auto productEESrFlags = std::make_unique<EESrFlagCollection>();
368  theUnpacker_->setEESrFlagsCollection(&productEESrFlags);
369 
370  // create the collection for ecal trigger primitives
371  auto productEcalTps = std::make_unique<EcalTrigPrimDigiCollection>();
372  theUnpacker_->setEcalTpsCollection(&productEcalTps);
374 
375  // create the collection for ecal trigger primitives
376  auto productEcalPSs = std::make_unique<EcalPSInputDigiCollection>();
377  theUnpacker_->setEcalPSsCollection(&productEcalPSs);
379 
380  // create the collection for invalid TTIds
381  auto productInvalidTTIds = std::make_unique<EcalElectronicsIdCollection>();
382  theUnpacker_->setInvalidTTIdsCollection(&productInvalidTTIds);
383 
384  // create the collection for invalid TTIds
385  auto productInvalidZSXtalIds = std::make_unique<EcalElectronicsIdCollection>();
386  theUnpacker_->setInvalidZSXtalIdsCollection(&productInvalidZSXtalIds);
387 
388  // create the collection for invalid BlockLengths
389  auto productInvalidBlockLengths = std::make_unique<EcalElectronicsIdCollection>();
390  theUnpacker_->setInvalidBlockLengthsCollection(&productInvalidBlockLengths);
391 
392  // MEMs Collections
393  // create the collection for the Pn Diode Digis
394  auto productPnDiodeDigis = std::make_unique<EcalPnDiodeDigiCollection>();
395  theUnpacker_->setPnDiodeDigisCollection(&productPnDiodeDigis);
396 
397  // create the collection for invalid Mem Tt id
398  auto productInvalidMemTtIds = std::make_unique<EcalElectronicsIdCollection>();
399  theUnpacker_->setInvalidMemTtIdsCollection(&productInvalidMemTtIds);
400 
401  // create the collection for invalid Mem Block Size
402  auto productInvalidMemBlockSizes = std::make_unique<EcalElectronicsIdCollection>();
403  theUnpacker_->setInvalidMemBlockSizesCollection(&productInvalidMemBlockSizes);
404 
405  // create the collection for invalid Mem Block Size
406  auto productInvalidMemChIds = std::make_unique<EcalElectronicsIdCollection>();
407  theUnpacker_->setInvalidMemChIdsCollection(&productInvalidMemChIds);
408 
409  // create the collection for invalid Mem Gain Errors
410  auto productInvalidMemGains = std::make_unique<EcalElectronicsIdCollection>();
411  theUnpacker_->setInvalidMemGainsCollection(&productInvalidMemGains);
412  // double TIME_START = clock();
413 
414  // Step C: unpack all requested FEDs
415  for (std::vector<int>::const_iterator i = fedUnpackList_.begin(); i != fedUnpackList_.end(); i++) {
416  if (REGIONAL_) {
417  std::vector<int>::const_iterator fed_it = find(FEDS_to_unpack.begin(), FEDS_to_unpack.end(), *i);
418  if (fed_it == FEDS_to_unpack.end())
419  continue;
420  }
421 
422  // get fed raw data and SM id
423  const FEDRawData& fedData = rawdata->FEDData(*i);
424  const size_t length = fedData.size();
425 
426  LogDebug("EcalRawToDigi") << "raw data length: " << length;
427  //if data size is not null interpret data
428  if (length >= EMPTYEVENTSIZE) {
429  if (myMap_->setActiveDCC(*i)) {
430  const int smId = myMap_->getActiveSM();
431  LogDebug("EcalRawToDigi") << "Getting FED = " << *i << "(SM = " << smId << ")"
432  << " data size is: " << length;
433 
434  const uint64_t* data = (uint64_t*)fedData.data();
435  theUnpacker_->unpack(data, length, smId, *i);
436 
437  LogDebug("EcalRawToDigi") << " in EE :" << productDigisEE->size() << " in EB :" << productDigisEB->size();
438  }
439  }
440 
441  } // loop on FEDs
442 
443  //if(nevts_>1){ //NUNO
444  // double TIME_END = clock(); //NUNO
445  // RUNNING_TIME_ += TIME_END-TIME_START; //NUNO
446  // }
447 
448  // Add collections to the event
449 
450  if (put_) {
451  if (headerUnpacking_) {
452  e.put(std::move(productDccHeaders));
453  }
454 
455  if (feUnpacking_) {
456  productDigisEB->sort();
457  e.put(std::move(productDigisEB), "ebDigis");
458  productDigisEE->sort();
459  e.put(std::move(productDigisEE), "eeDigis");
460  e.put(std::move(productInvalidGains), "EcalIntegrityGainErrors");
461  e.put(std::move(productInvalidGainsSwitch), "EcalIntegrityGainSwitchErrors");
462  e.put(std::move(productInvalidChIds), "EcalIntegrityChIdErrors");
463  // EE (leaving for now the same names as in EB)
464  e.put(std::move(productInvalidEEGains), "EcalIntegrityGainErrors");
465  e.put(std::move(productInvalidEEGainsSwitch), "EcalIntegrityGainSwitchErrors");
466  e.put(std::move(productInvalidEEChIds), "EcalIntegrityChIdErrors");
467  // EE
468  e.put(std::move(productInvalidTTIds), "EcalIntegrityTTIdErrors");
469  e.put(std::move(productInvalidZSXtalIds), "EcalIntegrityZSXtalIdErrors");
470  e.put(std::move(productInvalidBlockLengths), "EcalIntegrityBlockSizeErrors");
471  e.put(std::move(productPnDiodeDigis));
472  }
473  if (memUnpacking_) {
474  e.put(std::move(productInvalidMemTtIds), "EcalIntegrityMemTtIdErrors");
475  e.put(std::move(productInvalidMemBlockSizes), "EcalIntegrityMemBlockSizeErrors");
476  e.put(std::move(productInvalidMemChIds), "EcalIntegrityMemChIdErrors");
477  e.put(std::move(productInvalidMemGains), "EcalIntegrityMemGainErrors");
478  }
479  if (srpUnpacking_) {
480  e.put(std::move(productEBSrFlags));
481  e.put(std::move(productEESrFlags));
482  }
483  if (tccUnpacking_) {
484  e.put(std::move(productEcalTps), "EcalTriggerPrimitives");
485  e.put(std::move(productEcalPSs), "EcalPseudoStripInputs");
486  }
487  }
488 
489  //if(nevts_>1){ //NUNO
490  // double TIME_END = clock(); //NUNO
491  // RUNNING_TIME_ += TIME_END-TIME_START; //NUNO
492  //}
493 }
494 
496  //cout << "EcalDCCUnpackingModule " << "N events " << (nevts_-1)<<endl;
497  //cout << "EcalDCCUnpackingModule " << " --- SETUP time " << endl;
498  //cout << "EcalDCCUnpackingModule " << "Time (sys) " << SETUP_TIME_ << endl;
499  //cout << "EcalDCCUnpackingModule " << "Time in sec. " << SETUP_TIME_/ CLOCKS_PER_SEC << endl;
500  //cout << "EcalDCCUnpackingModule " << " --- Per event " << endl;
501 
502  //RUNNING_TIME_ = RUNNING_TIME_ / (nevts_-1);
503 
504  //cout << "EcalDCCUnpackingModule "<< "Time (sys) " << RUNNING_TIME_ << endl;
505  //cout << "EcalDCCUnpackingModule "<< "Time in sec. " << RUNNING_TIME_ / CLOCKS_PER_SEC << endl;
506 
507  if (myMap_)
508  delete myMap_;
509  if (theUnpacker_)
510  delete theUnpacker_;
511 }
ConfigurationDescriptions.h
EcalElectronicsMapper::setEcalElectronicsMapping
void setEcalElectronicsMapping(const EcalElectronicsMapping *)
Definition: EcalElectronicsMapper.cc:247
edm::ESWatcher::check
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:52
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
DCCDataUnpacker::setChannelStatusDB
void setChannelStatusDB(const EcalChannelStatusMap *chdb)
Definition: DCCDataUnpacker.h:170
EcalRawToDigi::myMap_
EcalElectronicsMapper * myMap_
Definition: EcalRawToDigi.h:98
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
DCCDataUnpacker::setInvalidEEGainsSwitchCollection
void setInvalidEEGainsSwitchCollection(std::unique_ptr< EEDetIdCollection > *x)
Definition: DCCDataUnpacker.h:93
DCCDataUnpacker.h
electrons_cff.bool
bool
Definition: electrons_cff.py:366
FEDNumbering::MINECALFEDID
Definition: FEDNumbering.h:43
mps_fire.i
i
Definition: mps_fire.py:428
DCCDataUnpacker::setInvalidZSXtalIdsCollection
void setInvalidZSXtalIdsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
Definition: DCCDataUnpacker.h:100
EcalElectronicsMapper::resetPointers
void resetPointers()
Definition: EcalElectronicsMapper.cc:17
EcalElectronicsMapper::getDCCId
unsigned int getDCCId(unsigned int aSMId) const
Definition: EcalElectronicsMapper.cc:400
ESHandle.h
EcalRawToDigi::fedsToken_
edm::EDGetTokenT< EcalListOfFEDS > fedsToken_
Definition: EcalRawToDigi.h:90
EcalRawToDigi::theUnpacker_
DCCDataUnpacker * theUnpacker_
Definition: EcalRawToDigi.h:101
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
edm::Run
Definition: Run.h:45
EcalListOfFEDS::GetList
std::vector< int > GetList() const
Definition: EcalListOfFEDS.h:10
EBDetId
Definition: EBDetId.h:17
EcalRawToDigi::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
Definition: EcalRawToDigi.cc:274
EcalElectronicsMapper::makeMapFromVectors
bool makeMapFromVectors(std::vector< int > &, std::vector< int > &)
Definition: EcalElectronicsMapper.cc:314
EEDetId::unhashIndex
static EEDetId unhashIndex(int hi)
Definition: EEDetId.cc:65
gather_cfg.cout
cout
Definition: gather_cfg.py:144
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89281
EBDetId::unhashIndex
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
Definition: EBDetId.h:110
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
EcalElectronicsMapper::getActiveSM
unsigned int getActiveSM()
Definition: EcalElectronicsMapper.h:128
EcalRawToDigi::orderedDCCIdList_
std::vector< int > orderedDCCIdList_
Definition: EcalRawToDigi.h:73
EcalElectronicsMapper::setActiveDCC
bool setActiveDCC(unsigned int dccId)
Definition: EcalElectronicsMapper.cc:252
DCCDataUnpacker
Definition: DCCDataUnpacker.h:49
DCCDataUnpacker::silentMode_
static std::atomic< bool > silentMode_
Definition: DCCDataUnpacker.h:185
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
EcalElectronicsId::dccId
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
Definition: EcalElectronicsId.h:31
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
edm::Handle
Definition: AssociativeIterator.h:50
EcalRawToDigi::chStatusToken_
edm::ESGetToken< EcalChannelStatusMap, EcalChannelStatusRcd > chStatusToken_
Definition: EcalRawToDigi.h:91
EcalRawToDigi::ecalMappingToken_
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > ecalMappingToken_
Definition: EcalRawToDigi.h:92
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
EcalElectronicsMapper.h
EcalRawToDigi::tccUnpacking_
bool tccUnpacking_
Definition: EcalRawToDigi.h:80
EcalRawToDigi::dataToken_
edm::EDGetTokenT< FEDRawDataCollection > dataToken_
Definition: EcalRawToDigi.h:89
FEDRawData::data
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:24
EcalRawToDigi::srpUnpacking_
bool srpUnpacking_
Definition: EcalRawToDigi.h:79
FEDRawData
Definition: FEDRawData.h:19
EcalRawToDigi::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: EcalRawToDigi.cc:230
EcalElectronicsId::towerId
int towerId() const
get the tower id
Definition: EcalElectronicsId.h:33
EcalRawToDigi::forceToKeepFRdata_
bool forceToKeepFRdata_
Definition: EcalRawToDigi.h:85
EMPTYEVENTSIZE
Definition: DCCRawDataDefinitions.h:13
DCCDataUnpacker::setInvalidGainsCollection
void setInvalidGainsCollection(std::unique_ptr< EBDetIdCollection > *x)
Definition: DCCDataUnpacker.h:84
EcalRawToDigi::orderedFedUnpackList_
std::vector< int > orderedFedUnpackList_
Definition: EcalRawToDigi.h:72
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
EEDetId::kSizeForDenseIndexing
Definition: EEDetId.h:329
DCCDataUnpacker::setInvalidEEChIdsCollection
void setInvalidEEChIdsCollection(std::unique_ptr< EEDetIdCollection > *x)
Definition: DCCDataUnpacker.h:95
DCCDataUnpacker::setEEDigisCollection
void setEEDigisCollection(std::unique_ptr< EEDigiCollection > *x)
Definition: DCCDataUnpacker.h:72
edm::ESHandle
Definition: DTSurvey.h:22
EcalRawToDigi::EcalRawToDigi
EcalRawToDigi(const edm::ParameterSet &ps)
Definition: EcalRawToDigi.cc:14
DCCDataUnpacker::setInvalidMemChIdsCollection
void setInvalidMemChIdsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
Definition: DCCDataUnpacker.h:110
DCCDataUnpacker::setEESrFlagsCollection
void setEESrFlagsCollection(std::unique_ptr< EESrFlagCollection > *x)
Definition: DCCDataUnpacker.h:78
DCCDataUnpacker::setEBDigisCollection
void setEBDigisCollection(std::unique_ptr< EBDigiCollection > *x)
Definition: DCCDataUnpacker.h:70
ParameterSetDescription.h
EcalElectronicsId
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
Definition: EcalElectronicsId.h:18
FEDRawDataCollection::FEDData
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
Definition: FEDRawDataCollection.cc:19
DCCDataUnpacker::setInvalidGainsSwitchCollection
void setInvalidGainsSwitchCollection(std::unique_ptr< EBDetIdCollection > *x)
Definition: DCCDataUnpacker.h:86
EEDetId
Definition: EEDetId.h: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
DCCDataUnpacker::setInvalidMemGainsCollection
void setInvalidMemGainsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
Definition: DCCDataUnpacker.h:112
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
printStatusRecords
void printStatusRecords(const DCCDataUnpacker *unpacker, const EcalElectronicsMapping *mapping)
Definition: EcalRawToDigi.cc:183
edm::ParameterSet
Definition: ParameterSet.h:47
DCCDataUnpacker::setDccHeadersCollection
void setDccHeadersCollection(std::unique_ptr< EcalRawDataCollection > *x)
Definition: DCCDataUnpacker.h:74
DCCDataUnpacker::unpack
void unpack(const uint64_t *buffer, size_t bufferSize, unsigned int smId, unsigned int fedId)
Definition: DCCDataUnpacker.cc:33
DCCDataUnpacker::setInvalidBlockLengthsCollection
void setInvalidBlockLengthsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
Definition: DCCDataUnpacker.h:102
DCCDataUnpacker::setInvalidEEGainsCollection
void setInvalidEEGainsCollection(std::unique_ptr< EEDetIdCollection > *x)
Definition: DCCDataUnpacker.h:91
EcalRawToDigi.h
DCCDataUnpacker::setInvalidTTIdsCollection
void setInvalidTTIdsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
Definition: DCCDataUnpacker.h:98
createfilelist.int
int
Definition: createfilelist.py:10
EcalRawToDigi::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Definition: EcalRawToDigi.cc:286
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
DCCDataUnpacker::setInvalidMemBlockSizesCollection
void setInvalidMemBlockSizesCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
Definition: DCCDataUnpacker.h:108
edm::EventSetup
Definition: EventSetup.h:58
EcalRawToDigi::REGIONAL_
bool REGIONAL_
Definition: EcalRawToDigi.h:95
DCCDataUnpacker::setInvalidMemTtIdsCollection
void setInvalidMemTtIdsCollection(std::unique_ptr< EcalElectronicsIdCollection > *x)
Definition: DCCDataUnpacker.h:106
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
FEDRawData::size
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:45
EcalRawToDigi::feUnpacking_
bool feUnpacking_
Definition: EcalRawToDigi.h:81
EcalElectronicsMapper
Definition: EcalElectronicsMapper.h:36
EcalRawToDigi::memUnpacking_
bool memUnpacking_
Definition: EcalRawToDigi.h:82
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
EcalRawToDigi::fedUnpackList_
std::vector< int > fedUnpackList_
Definition: EcalRawToDigi.h:70
EcalRawToDigi::syncCheck_
bool syncCheck_
Definition: EcalRawToDigi.h:83
DCCDataUnpacker::setInvalidChIdsCollection
void setInvalidChIdsCollection(std::unique_ptr< EBDetIdCollection > *x)
Definition: DCCDataUnpacker.h:88
DCCDataUnpacker::setPnDiodeDigisCollection
void setPnDiodeDigisCollection(std::unique_ptr< EcalPnDiodeDigiCollection > *x)
Definition: DCCDataUnpacker.h:104
DCCDataUnpacker::getChannelValue
uint16_t getChannelValue(const DetId &id) const
Definition: DCCDataUnpacker.cc:76
EventSetup.h
EBDetId::kSizeForDenseIndexing
Definition: EBDetId.h:155
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
EcalRawToDigi::~EcalRawToDigi
~EcalRawToDigi() override
Definition: EcalRawToDigi.cc:495
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
DCCDataUnpacker::setEcalPSsCollection
void setEcalPSsCollection(std::unique_ptr< EcalPSInputDigiCollection > *x)
Definition: DCCDataUnpacker.h:82
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
DCCDataUnpacker::electronicsMapper
const EcalElectronicsMapper * electronicsMapper() const
Definition: DCCDataUnpacker.h:165
EcalElectronicsId::stripId
int stripId() const
get the tower id
Definition: EcalElectronicsId.h:35
EcalRawToDigi::watcher_
edm::ESWatcher< EcalMappingRcd > watcher_
Definition: EcalRawToDigi.h:66
EcalRawToDigi::first_
bool first_
Definition: EcalRawToDigi.h:86
EcalElectronicsMapper::deletePointers
void deletePointers()
Definition: EcalElectronicsMapper.cc:198
edm::Event
Definition: Event.h:73
EcalRawToDigi::feIdCheck_
bool feIdCheck_
Definition: EcalRawToDigi.h:84
EcalElectronicsId::xtalId
int xtalId() const
get the channel id
Definition: EcalElectronicsId.h:37
DCCDataUnpacker::setEBSrFlagsCollection
void setEBSrFlagsCollection(std::unique_ptr< EBSrFlagCollection > *x)
Definition: DCCDataUnpacker.h:76
taus_updatedMVAIds_cff.mapping
mapping
Definition: taus_updatedMVAIds_cff.py:29
edm::InputTag
Definition: InputTag.h:15
FEDNumbering::MAXECALFEDID
Definition: FEDNumbering.h:44
EcalRawToDigi::numbTriggerTSamples_
unsigned int numbTriggerTSamples_
Definition: EcalRawToDigi.h:76
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
DCCDataUnpacker::setEcalTpsCollection
void setEcalTpsCollection(std::unique_ptr< EcalTrigPrimDigiCollection > *x)
Definition: DCCDataUnpacker.h:80