CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
HcalDigiSortedTableProducer Class Reference
Inheritance diagram for HcalDigiSortedTableProducer:
edm::stream::EDProducer<>

Public Member Functions

 HcalDigiSortedTableProducer (const edm::ParameterSet &iConfig)
 
 ~HcalDigiSortedTableProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Member Functions

void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void produce (edm::Event &, edm::EventSetup const &) override
 

Private Attributes

edm::ESHandle< HcalDbServicedbService_
 
std::map< HcalSubdetector, edm::Handle< std::vector< HcalDetId > > > dids_
 
HcalElectronicsMap const * emap_
 
HBDigiSortedTablehbDigiTable_
 
HEDigiSortedTableheDigiTable_
 
HFDigiSortedTablehfDigiTable_
 
HODigiSortedTablehoDigiTable_
 
const unsigned int nTS_HB_
 
const unsigned int nTS_HE_
 
const unsigned int nTS_HF_
 
const unsigned int nTS_HO_
 
edm::InputTag tagHBDetIdList_
 
edm::InputTag tagHEDetIdList_
 
edm::InputTag tagHFDetIdList_
 
edm::InputTag tagHO_
 
edm::InputTag tagHODetIdList_
 
edm::InputTag tagQIE10_
 
edm::InputTag tagQIE11_
 
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHBDetIdList_
 
edm::ESGetToken< HcalDbService, HcalDbRecordtokenHcalDbService_
 
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHEDetIdList_
 
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHFDetIdList_
 
edm::EDGetTokenT< HODigiCollectiontokenHO_
 
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHODetIdList_
 
edm::EDGetTokenT< QIE10DigiCollectiontokenQIE10_
 
edm::EDGetTokenT< QIE11DigiCollectiontokenQIE11_
 

Static Private Attributes

static const std::vector< HcalSubdetectorsubdets_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 34 of file HcalDigiSortedTableProducer.cc.

Constructor & Destructor Documentation

◆ HcalDigiSortedTableProducer()

HcalDigiSortedTableProducer::HcalDigiSortedTableProducer ( const edm::ParameterSet iConfig)
inlineexplicit

Definition at line 74 of file HcalDigiSortedTableProducer.cc.

References hbDigiTable_, heDigiTable_, hfDigiTable_, hoDigiTable_, tagHO_, tagQIE10_, tagQIE11_, tokenHO_, tokenQIE10_, and tokenQIE11_.

75  : tokenHBDetIdList_(consumes<edm::InRun>(iConfig.getUntrackedParameter<edm::InputTag>(
76  "HBDetIdList", edm::InputTag("hcalDetIdTable", "HBDetIdList")))),
77  tokenHEDetIdList_(consumes<edm::InRun>(iConfig.getUntrackedParameter<edm::InputTag>(
78  "HEDetIdList", edm::InputTag("hcalDetIdTable", "HEDetIdList")))),
79  tokenHFDetIdList_(consumes<edm::InRun>(iConfig.getUntrackedParameter<edm::InputTag>(
80  "HFDetIdList", edm::InputTag("hcalDetIdTable", "HFDetIdList")))),
81  tokenHODetIdList_(consumes<edm::InRun>(iConfig.getUntrackedParameter<edm::InputTag>(
82  "HODetIdList", edm::InputTag("hcalDetIdTable", "HODetIdList")))),
83  tagQIE11_(iConfig.getUntrackedParameter<edm::InputTag>("tagQIE11", edm::InputTag("hcalDigis"))),
84  tagQIE10_(iConfig.getUntrackedParameter<edm::InputTag>("tagQIE10", edm::InputTag("hcalDigis"))),
85  tagHO_(iConfig.getUntrackedParameter<edm::InputTag>("tagHO", edm::InputTag("hcalDigis"))),
86  tokenHcalDbService_(esConsumes<HcalDbService, HcalDbRecord, edm::Transition::BeginRun>()),
87  nTS_HB_(iConfig.getUntrackedParameter<unsigned int>("nTS_HB", 8)),
88  nTS_HE_(iConfig.getUntrackedParameter<unsigned int>("nTS_HE", 8)),
89  nTS_HF_(iConfig.getUntrackedParameter<unsigned int>("nTS_HF", 3)),
90  nTS_HO_(iConfig.getUntrackedParameter<unsigned int>("nTS_HO", 10)) {
91  tokenQIE11_ = consumes<QIE11DigiCollection>(tagQIE11_);
92  tokenHO_ = consumes<HODigiCollection>(tagHO_);
93  tokenQIE10_ = consumes<QIE10DigiCollection>(tagQIE10_);
94 
95  produces<nanoaod::FlatTable>("HBDigiSortedTable");
96  produces<nanoaod::FlatTable>("HEDigiSortedTable");
97  produces<nanoaod::FlatTable>("HFDigiSortedTable");
98  produces<nanoaod::FlatTable>("HODigiSortedTable");
99 
100  hbDigiTable_ = nullptr;
101  heDigiTable_ = nullptr;
102  hfDigiTable_ = nullptr;
103  hoDigiTable_ = nullptr;
104  }
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHFDetIdList_
edm::ESGetToken< HcalDbService, HcalDbRecord > tokenHcalDbService_
edm::EDGetTokenT< HODigiCollection > tokenHO_
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHODetIdList_
edm::EDGetTokenT< QIE11DigiCollection > tokenQIE11_
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHBDetIdList_
edm::EDGetTokenT< QIE10DigiCollection > tokenQIE10_
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHEDetIdList_

◆ ~HcalDigiSortedTableProducer()

HcalDigiSortedTableProducer::~HcalDigiSortedTableProducer ( )
inlineoverride

Definition at line 106 of file HcalDigiSortedTableProducer.cc.

References hbDigiTable_, heDigiTable_, hfDigiTable_, and hoDigiTable_.

106  {
107  delete hbDigiTable_;
108  delete heDigiTable_;
109  delete hfDigiTable_;
110  delete hoDigiTable_;
111  };

Member Function Documentation

◆ beginRun()

void HcalDigiSortedTableProducer::beginRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprivate

Definition at line 130 of file HcalDigiSortedTableProducer.cc.

References dbService_, dids_, emap_, edm::Run::getByToken(), edm::EventSetup::getHandle(), HcalDbService::getHcalMapping(), hbDigiTable_, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, heDigiTable_, hfDigiTable_, hoDigiTable_, nTS_HB_, nTS_HE_, nTS_HF_, nTS_HO_, tokenHBDetIdList_, tokenHcalDbService_, tokenHEDetIdList_, tokenHFDetIdList_, and tokenHODetIdList_.

130  {
131  // List DetIds of interest from emap
132  dbService_ = iSetup.getHandle(tokenHcalDbService_);
134 
135  iRun.getByToken(tokenHBDetIdList_, dids_[HcalBarrel]);
136  iRun.getByToken(tokenHEDetIdList_, dids_[HcalEndcap]);
137  iRun.getByToken(tokenHFDetIdList_, dids_[HcalForward]);
138  iRun.getByToken(tokenHODetIdList_, dids_[HcalOuter]);
139 
140  // Create persistent, sorted digi storage
145 }
std::map< HcalSubdetector, edm::Handle< std::vector< HcalDetId > > > dids_
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHFDetIdList_
edm::ESGetToken< HcalDbService, HcalDbRecord > tokenHcalDbService_
QIE11DigiSortedTable HEDigiSortedTable
const HcalElectronicsMap * getHcalMapping() const
QIE10DigiSortedTable HFDigiSortedTable
QIE11DigiSortedTable HBDigiSortedTable
edm::ESHandle< HcalDbService > dbService_
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHODetIdList_
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHBDetIdList_
edm::EDGetTokenT< std::vector< HcalDetId > > tokenHEDetIdList_

◆ produce()

void HcalDigiSortedTableProducer::produce ( edm::Event iEvent,
edm::EventSetup const &  iSetup 
)
overrideprivate

Definition at line 147 of file HcalDigiSortedTableProducer.cc.

References HODigiSortedTable::adcs_, QIE10DigiSortedTable::adcs_, QIE11DigiSortedTable::adcs_, QIE11DigiSortedTable::add(), QIE10DigiSortedTable::add(), HODigiSortedTable::add(), edm::SortedCollection< T, SORT >::begin(), edm::DataFrameContainer::begin(), QIE11DigiSortedTable::capidErrors_, HODigiSortedTable::capids_, QIE10DigiSortedTable::capids_, QIE11DigiSortedTable::capids_, dbService_, HODigiSortedTable::depths_, QIE11DigiSortedTable::depths_, QIE10DigiSortedTable::depths_, QIE11DataFrame::detid(), QIE10DataFrame::detid(), dids_, HODigiSortedTable::dvs_, edm::SortedCollection< T, SORT >::end(), edm::DataFrameContainer::end(), HODigiSortedTable::ers_, HODigiSortedTable::fcs_, QIE10DigiSortedTable::fcs_, QIE11DigiSortedTable::fcs_, HODigiSortedTable::fiberChans_, HODigiSortedTable::fiberIdleOffsets_, HODigiSortedTable::fibers_, QIE10DigiSortedTable::flags_, QIE11DigiSortedTable::flags_, hbDigiTable_, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, heDigiTable_, hfDigiTable_, hoDigiTable_, HODataFrame::id(), HODigiSortedTable::ietas_, QIE10DigiSortedTable::ietas_, QIE11DigiSortedTable::ietas_, iEvent, HODigiSortedTable::iphis_, QIE10DigiSortedTable::iphis_, QIE11DigiSortedTable::iphis_, QIE11DigiSortedTable::linkErrors_, QIE10DigiSortedTable::linkErrors_, eostools::move(), QIE10DigiSortedTable::oks_, HODigiSortedTable::pedestalfcs_, QIE10DigiSortedTable::pedestalfcs_, QIE11DigiSortedTable::pedestalfcs_, HODigiSortedTable::rawIds_, QIE10DigiSortedTable::rawIds_, QIE11DigiSortedTable::rawIds_, QIE10DigiSortedTable::reset(), QIE11DigiSortedTable::reset(), HODigiSortedTable::reset(), QIE11DigiSortedTable::sipmTypes_, HODigiSortedTable::sois_, QIE10DigiSortedTable::sois_, QIE11DigiSortedTable::sois_, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetId::subdet(), HODigiSortedTable::subdets_, QIE11DigiSortedTable::subdets_, QIE10DigiSortedTable::subdets_, QIE10DigiSortedTable::tdcs_, QIE11DigiSortedTable::tdcs_, to_string(), tokenHO_, tokenQIE10_, tokenQIE11_, HODigiSortedTable::valids_, QIE10DigiSortedTable::valids_, and QIE11DigiSortedTable::valids_.

147  {
148  // * Load digis */
150  iEvent.getByToken(tokenQIE11_, qie11Digis);
151 
153  iEvent.getByToken(tokenQIE10_, qie10Digis);
154 
156  iEvent.getByToken(tokenHO_, hoDigis);
157 
158  // * Process digis */
159  // HB
160  hbDigiTable_->reset();
161  for (QIE11DigiCollection::const_iterator itDigi = qie11Digis->begin(); itDigi != qie11Digis->end(); ++itDigi) {
162  const QIE11DataFrame digi = static_cast<const QIE11DataFrame>(*itDigi);
163  HcalDetId const& did = digi.detid();
164  if (did.subdet() != HcalBarrel)
165  continue;
166 
167  hbDigiTable_->add(&digi, dbService_);
168  } // End loop over qie11 HB digis
169 
170  // HE
171  heDigiTable_->reset();
172  for (QIE11DigiCollection::const_iterator itDigi = qie11Digis->begin(); itDigi != qie11Digis->end(); ++itDigi) {
173  const QIE11DataFrame digi = static_cast<const QIE11DataFrame>(*itDigi);
174  HcalDetId const& did = digi.detid();
175  if (did.subdet() != HcalEndcap)
176  continue;
177 
178  heDigiTable_->add(&digi, dbService_);
179  } // End loop over qie11 HE digis
180 
181  // HF
182  hfDigiTable_->reset();
183  for (QIE10DigiCollection::const_iterator itDigi = qie10Digis->begin(); itDigi != qie10Digis->end(); ++itDigi) {
184  const QIE10DataFrame digi = static_cast<const QIE10DataFrame>(*itDigi);
185  HcalDetId const& did = digi.detid();
186  if (did.subdet() != HcalForward)
187  continue;
188 
189  hfDigiTable_->add(&digi, dbService_);
190  } // End loop over qie10 HF digis
191 
192  // HO
193  hoDigiTable_->reset();
194  for (HODigiCollection::const_iterator itDigi = hoDigis->begin(); itDigi != hoDigis->end(); ++itDigi) {
195  const HODataFrame digi = static_cast<const HODataFrame>(*itDigi);
196  HcalDetId const& did = digi.id();
197  if (did.subdet() != HcalOuter)
198  continue;
199 
200  hoDigiTable_->add(&digi, dbService_);
201  } // End loop over HO digis
202 
203  // * Save to NanoAOD tables */
204 
205  // HB
206  auto hbNanoTable = std::make_unique<nanoaod::FlatTable>(dids_[HcalBarrel]->size(), "DigiHB", false, false);
207  hbNanoTable->addColumn<int>("rawId", hbDigiTable_->rawIds_, "rawId");
208  hbNanoTable->addColumn<int>("ieta", hbDigiTable_->ietas_, "ieta");
209  hbNanoTable->addColumn<int>("iphi", hbDigiTable_->iphis_, "iphi");
210  hbNanoTable->addColumn<int>("depth", hbDigiTable_->depths_, "depth");
211  hbNanoTable->addColumn<int>("subdet", hbDigiTable_->subdets_, "subdet");
212  hbNanoTable->addColumn<bool>("linkError", hbDigiTable_->linkErrors_, "linkError");
213  hbNanoTable->addColumn<bool>("capidError", hbDigiTable_->capidErrors_, "capidError");
214  hbNanoTable->addColumn<int>("flags", hbDigiTable_->flags_, "flags");
215  hbNanoTable->addColumn<int>("soi", hbDigiTable_->sois_, "soi");
216  hbNanoTable->addColumn<bool>("valid", hbDigiTable_->valids_, "valid");
217  hbNanoTable->addColumn<uint8_t>("sipmTypes", hbDigiTable_->sipmTypes_, "sipmTypes");
218 
219  for (unsigned int iTS = 0; iTS < 8; ++iTS) {
220  hbNanoTable->addColumn<int>(
221  std::string("adc") + std::to_string(iTS), hbDigiTable_->adcs_[iTS], std::string("adc") + std::to_string(iTS));
222  hbNanoTable->addColumn<int>(
223  std::string("tdc") + std::to_string(iTS), hbDigiTable_->tdcs_[iTS], std::string("tdc") + std::to_string(iTS));
224  hbNanoTable->addColumn<int>(std::string("capid") + std::to_string(iTS),
225  hbDigiTable_->capids_[iTS],
226  std::string("capid") + std::to_string(iTS));
227  hbNanoTable->addColumn<float>(
228  std::string("fc") + std::to_string(iTS), hbDigiTable_->fcs_[iTS], std::string("fc") + std::to_string(iTS));
229  hbNanoTable->addColumn<float>(std::string("pedestalfc") + std::to_string(iTS),
231  std::string("pedestalfc") + std::to_string(iTS));
232  }
233  iEvent.put(std::move(hbNanoTable), "HBDigiSortedTable");
234 
235  // HE
236  auto heNanoTable = std::make_unique<nanoaod::FlatTable>(dids_[HcalEndcap]->size(), "DigiHE", false, false);
237  heNanoTable->addColumn<int>("rawId", heDigiTable_->rawIds_, "rawId");
238  heNanoTable->addColumn<int>("ieta", heDigiTable_->ietas_, "ieta");
239  heNanoTable->addColumn<int>("iphi", heDigiTable_->iphis_, "iphi");
240  heNanoTable->addColumn<int>("depth", heDigiTable_->depths_, "depth");
241  heNanoTable->addColumn<int>("subdet", heDigiTable_->subdets_, "subdet");
242  heNanoTable->addColumn<bool>("linkError", heDigiTable_->linkErrors_, "linkError");
243  heNanoTable->addColumn<bool>("capidError", heDigiTable_->capidErrors_, "capidError");
244  heNanoTable->addColumn<int>("flags", heDigiTable_->flags_, "flags");
245  heNanoTable->addColumn<int>("soi", heDigiTable_->sois_, "soi");
246  heNanoTable->addColumn<bool>("valid", heDigiTable_->valids_, "valid");
247  heNanoTable->addColumn<uint8_t>("sipmTypes", heDigiTable_->sipmTypes_, "sipmTypes");
248 
249  for (unsigned int iTS = 0; iTS < 8; ++iTS) {
250  heNanoTable->addColumn<int>(
251  std::string("adc") + std::to_string(iTS), heDigiTable_->adcs_[iTS], std::string("adc") + std::to_string(iTS));
252  heNanoTable->addColumn<int>(
253  std::string("tdc") + std::to_string(iTS), heDigiTable_->tdcs_[iTS], std::string("tdc") + std::to_string(iTS));
254  heNanoTable->addColumn<int>(std::string("capid") + std::to_string(iTS),
255  heDigiTable_->capids_[iTS],
256  std::string("capid") + std::to_string(iTS));
257  heNanoTable->addColumn<float>(
258  std::string("fc") + std::to_string(iTS), heDigiTable_->fcs_[iTS], std::string("fc") + std::to_string(iTS));
259  heNanoTable->addColumn<float>(std::string("pedestalfc") + std::to_string(iTS),
261  std::string("pedestalfc") + std::to_string(iTS));
262  }
263  iEvent.put(std::move(heNanoTable), "HEDigiSortedTable");
264 
265  // HF
266  auto hfNanoTable = std::make_unique<nanoaod::FlatTable>(dids_[HcalForward]->size(), "DigiHF", false, false);
267  hfNanoTable->addColumn<int>("rawId", hfDigiTable_->rawIds_, "rawId");
268  hfNanoTable->addColumn<int>("ieta", hfDigiTable_->ietas_, "ieta");
269  hfNanoTable->addColumn<int>("iphi", hfDigiTable_->iphis_, "iphi");
270  hfNanoTable->addColumn<int>("depth", hfDigiTable_->depths_, "depth");
271  hfNanoTable->addColumn<int>("subdet", hfDigiTable_->subdets_, "subdet");
272  hfNanoTable->addColumn<bool>("linkError", hfDigiTable_->linkErrors_, "linkError");
273  hfNanoTable->addColumn<int>("flags", hfDigiTable_->flags_, "flags");
274  hfNanoTable->addColumn<int>("soi", hfDigiTable_->sois_, "soi");
275  hfNanoTable->addColumn<bool>("valid", hfDigiTable_->valids_, "valid");
276  //hfNanoTable->addColumn<uint8_t>("sipmTypes", hfDigiTable_->sipmTypes_, "sipmTypes");
277 
278  for (unsigned int iTS = 0; iTS < 3; ++iTS) {
279  hfNanoTable->addColumn<int>(
280  std::string("adc") + std::to_string(iTS), hfDigiTable_->adcs_[iTS], std::string("adc") + std::to_string(iTS));
281  hfNanoTable->addColumn<int>(
282  std::string("tdc") + std::to_string(iTS), hfDigiTable_->tdcs_[iTS], std::string("tdc") + std::to_string(iTS));
283  //hfNanoTable->addColumn<int>(std::string("tetdc") + std::to_string(iTS),
284  // hfDigiTable_->tetdcs_[iTS],
285  // std::string("tetdc") + std::to_string(iTS));
286  hfNanoTable->addColumn<int>(std::string("capid") + std::to_string(iTS),
287  hfDigiTable_->capids_[iTS],
288  std::string("capid") + std::to_string(iTS));
289  hfNanoTable->addColumn<float>(
290  std::string("fc") + std::to_string(iTS), hfDigiTable_->fcs_[iTS], std::string("fc") + std::to_string(iTS));
291  hfNanoTable->addColumn<float>(std::string("pedestalfc") + std::to_string(iTS),
293  std::string("pedestalfc") + std::to_string(iTS));
294  hfNanoTable->addColumn<float>(
295  std::string("ok") + std::to_string(iTS), hfDigiTable_->oks_[iTS], std::string("ok") + std::to_string(iTS));
296  }
297  iEvent.put(std::move(hfNanoTable), "HFDigiSortedTable");
298 
299  // HO
300  auto hoNanoTable = std::make_unique<nanoaod::FlatTable>(dids_[HcalOuter]->size(), "DigiHO", false, false);
301  hoNanoTable->addColumn<int>("rawId", hoDigiTable_->rawIds_, "rawId");
302  hoNanoTable->addColumn<int>("ieta", hoDigiTable_->ietas_, "ieta");
303  hoNanoTable->addColumn<int>("iphi", hoDigiTable_->iphis_, "iphi");
304  hoNanoTable->addColumn<int>("depth", hoDigiTable_->depths_, "depth");
305  hoNanoTable->addColumn<int>("subdet", hoDigiTable_->subdets_, "subdet");
306  hoNanoTable->addColumn<int>("fiberIdleOffset", hoDigiTable_->fiberIdleOffsets_, "fiberIdleOffset");
307  hoNanoTable->addColumn<int>("soi", hoDigiTable_->sois_, "soi");
308  hoNanoTable->addColumn<bool>("valid", hoDigiTable_->valids_, "valid");
309 
310  for (unsigned int iTS = 0; iTS < 10; ++iTS) {
311  hoNanoTable->addColumn<int>(
312  std::string("adc") + std::to_string(iTS), hoDigiTable_->adcs_[iTS], std::string("adc") + std::to_string(iTS));
313  hoNanoTable->addColumn<int>(std::string("capid") + std::to_string(iTS),
314  hoDigiTable_->capids_[iTS],
315  std::string("capid") + std::to_string(iTS));
316  hoNanoTable->addColumn<float>(
317  std::string("fc") + std::to_string(iTS), hoDigiTable_->fcs_[iTS], std::string("fc") + std::to_string(iTS));
318  hoNanoTable->addColumn<float>(std::string("pedestalfc") + std::to_string(iTS),
320  std::string("pedestalfc") + std::to_string(iTS));
321  hoNanoTable->addColumn<int>(std::string("fiber") + std::to_string(iTS),
322  hoDigiTable_->fibers_[iTS],
323  std::string("fiber") + std::to_string(iTS));
324  hoNanoTable->addColumn<int>(std::string("fiberChan") + std::to_string(iTS),
326  std::string("fiberChan") + std::to_string(iTS));
327  hoNanoTable->addColumn<int>(
328  std::string("dv") + std::to_string(iTS), hoDigiTable_->dvs_[iTS], std::string("dv") + std::to_string(iTS));
329  hoNanoTable->addColumn<int>(
330  std::string("er") + std::to_string(iTS), hoDigiTable_->ers_[iTS], std::string("er") + std::to_string(iTS));
331  }
332  iEvent.put(std::move(hoNanoTable), "HODigiSortedTable");
333 }
std::vector< int > rawIds_
std::map< HcalSubdetector, edm::Handle< std::vector< HcalDetId > > > dids_
std::vector< std::vector< float > > pedestalfcs_
constexpr DetId detid() const
Get the detector id.
std::vector< int > ietas_
void add(const HODataFrame *digi, const edm::ESHandle< HcalDbService > &dbService)
std::vector< int > fiberIdleOffsets_
void add(const QIE11DataFrame *digi, const edm::ESHandle< HcalDbService > &dbService)
std::vector< bool > capidErrors_
std::vector< bool > linkErrors_
std::vector< std::vector< float > > pedestalfcs_
std::vector< std::vector< int > > tdcs_
std::vector< std::vector< int > > adcs_
std::vector< std::vector< int > > fibers_
std::vector< std::vector< int > > ers_
std::vector< int > subdets_
edm::EDGetTokenT< HODigiCollection > tokenHO_
std::vector< T >::const_iterator const_iterator
void add(const QIE10DataFrame *digi, const edm::ESHandle< HcalDbService > &dbService)
std::vector< std::vector< int > > fiberChans_
std::vector< int > iphis_
std::vector< int > sois_
std::vector< bool > linkErrors_
std::vector< int > flags_
std::vector< int > ietas_
constexpr DetId detid() const
Get the detector id.
static std::string to_string(const XMLCh *ch)
std::vector< std::vector< int > > dvs_
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
std::vector< bool > valids_
int iEvent
Definition: GenABIO.cc:224
std::vector< std::vector< float > > fcs_
std::vector< int > sois_
std::vector< std::vector< int > > adcs_
std::vector< std::vector< float > > fcs_
std::vector< std::vector< float > > pedestalfcs_
std::vector< int > subdets_
std::vector< int > flags_
edm::ESHandle< HcalDbService > dbService_
std::vector< std::vector< int > > capids_
std::vector< int > iphis_
const_iterator begin() const
std::vector< int > depths_
edm::EDGetTokenT< QIE11DigiCollection > tokenQIE11_
const_iterator end() const
std::vector< std::vector< bool > > oks_
const_iterator end() const
std::vector< int > iphis_
std::vector< int > depths_
const_iterator begin() const
The iterator returned can not safely be used across threads.
std::vector< std::vector< float > > fcs_
std::vector< int > rawIds_
std::vector< int > subdets_
std::vector< std::vector< int > > capids_
std::vector< int > sois_
std::vector< std::vector< int > > adcs_
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
std::vector< uint8_t > sipmTypes_
edm::EDGetTokenT< QIE10DigiCollection > tokenQIE10_
std::vector< int > rawIds_
std::vector< int > depths_
std::vector< bool > valids_
std::vector< std::vector< int > > capids_
std::vector< std::vector< int > > tdcs_
std::vector< int > ietas_
def move(src, dest)
Definition: eostools.py:511
std::vector< bool > valids_
constexpr HcalDetId const & id() const
Definition: HODataFrame.h:23

Member Data Documentation

◆ dbService_

edm::ESHandle<HcalDbService> HcalDigiSortedTableProducer::dbService_
private

Definition at line 61 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun(), and produce().

◆ dids_

std::map<HcalSubdetector, edm::Handle<std::vector<HcalDetId> > > HcalDigiSortedTableProducer::dids_
private

Definition at line 36 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun(), and produce().

◆ emap_

HcalElectronicsMap const* HcalDigiSortedTableProducer::emap_
private

Definition at line 40 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun().

◆ hbDigiTable_

HBDigiSortedTable* HcalDigiSortedTableProducer::hbDigiTable_
private

◆ heDigiTable_

HEDigiSortedTable* HcalDigiSortedTableProducer::heDigiTable_
private

◆ hfDigiTable_

HFDigiSortedTable* HcalDigiSortedTableProducer::hfDigiTable_
private

◆ hoDigiTable_

HODigiSortedTable* HcalDigiSortedTableProducer::hoDigiTable_
private

◆ nTS_HB_

const unsigned int HcalDigiSortedTableProducer::nTS_HB_
private

Definition at line 68 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun().

◆ nTS_HE_

const unsigned int HcalDigiSortedTableProducer::nTS_HE_
private

Definition at line 69 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun().

◆ nTS_HF_

const unsigned int HcalDigiSortedTableProducer::nTS_HF_
private

Definition at line 70 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun().

◆ nTS_HO_

const unsigned int HcalDigiSortedTableProducer::nTS_HO_
private

Definition at line 71 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun().

◆ subdets_

const std::vector< HcalSubdetector > HcalDigiSortedTableProducer::subdets_
staticprivate
Initial value:

Definition at line 39 of file HcalDigiSortedTableProducer.cc.

◆ tagHBDetIdList_

edm::InputTag HcalDigiSortedTableProducer::tagHBDetIdList_
private

Definition at line 42 of file HcalDigiSortedTableProducer.cc.

◆ tagHEDetIdList_

edm::InputTag HcalDigiSortedTableProducer::tagHEDetIdList_
private

Definition at line 43 of file HcalDigiSortedTableProducer.cc.

◆ tagHFDetIdList_

edm::InputTag HcalDigiSortedTableProducer::tagHFDetIdList_
private

Definition at line 44 of file HcalDigiSortedTableProducer.cc.

◆ tagHO_

edm::InputTag HcalDigiSortedTableProducer::tagHO_
private

Definition at line 54 of file HcalDigiSortedTableProducer.cc.

Referenced by HcalDigiSortedTableProducer().

◆ tagHODetIdList_

edm::InputTag HcalDigiSortedTableProducer::tagHODetIdList_
private

Definition at line 45 of file HcalDigiSortedTableProducer.cc.

◆ tagQIE10_

edm::InputTag HcalDigiSortedTableProducer::tagQIE10_
private

Definition at line 53 of file HcalDigiSortedTableProducer.cc.

Referenced by HcalDigiSortedTableProducer().

◆ tagQIE11_

edm::InputTag HcalDigiSortedTableProducer::tagQIE11_
private

Definition at line 52 of file HcalDigiSortedTableProducer.cc.

Referenced by HcalDigiSortedTableProducer().

◆ tokenHBDetIdList_

edm::EDGetTokenT<std::vector<HcalDetId> > HcalDigiSortedTableProducer::tokenHBDetIdList_
private

Definition at line 47 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun().

◆ tokenHcalDbService_

edm::ESGetToken<HcalDbService, HcalDbRecord> HcalDigiSortedTableProducer::tokenHcalDbService_
private

Definition at line 60 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun().

◆ tokenHEDetIdList_

edm::EDGetTokenT<std::vector<HcalDetId> > HcalDigiSortedTableProducer::tokenHEDetIdList_
private

Definition at line 48 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun().

◆ tokenHFDetIdList_

edm::EDGetTokenT<std::vector<HcalDetId> > HcalDigiSortedTableProducer::tokenHFDetIdList_
private

Definition at line 49 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun().

◆ tokenHO_

edm::EDGetTokenT<HODigiCollection> HcalDigiSortedTableProducer::tokenHO_
private

Definition at line 58 of file HcalDigiSortedTableProducer.cc.

Referenced by HcalDigiSortedTableProducer(), and produce().

◆ tokenHODetIdList_

edm::EDGetTokenT<std::vector<HcalDetId> > HcalDigiSortedTableProducer::tokenHODetIdList_
private

Definition at line 50 of file HcalDigiSortedTableProducer.cc.

Referenced by beginRun().

◆ tokenQIE10_

edm::EDGetTokenT<QIE10DigiCollection> HcalDigiSortedTableProducer::tokenQIE10_
private

Definition at line 57 of file HcalDigiSortedTableProducer.cc.

Referenced by HcalDigiSortedTableProducer(), and produce().

◆ tokenQIE11_

edm::EDGetTokenT<QIE11DigiCollection> HcalDigiSortedTableProducer::tokenQIE11_
private

Definition at line 56 of file HcalDigiSortedTableProducer.cc.

Referenced by HcalDigiSortedTableProducer(), and produce().