CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
HcalDigiToRawuHTR Class Reference
Inheritance diagram for HcalDigiToRawuHTR:
edm::global::EDProducer<> edm::global::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 HcalDigiToRawuHTR (const edm::ParameterSet &)
 
void produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const override
 
 ~HcalDigiToRawuHTR () override
 
- Public Member Functions inherited from edm::global::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsStreamLuminosityBlocks () const final
 
bool wantsStreamRuns () const final
 
- Public Member Functions inherited from edm::global::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::global::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Attributes

int _verbosity
 
std::string electronicsMapLabel_
 
bool packHBTDC_
 
bool premix_
 
int tdc1_
 
int tdc2_
 
edm::EDGetTokenT< HBHEDigiCollectiontok_HBHEDigiCollection_
 
edm::EDGetTokenT< HFDigiCollectiontok_HFDigiCollection_
 
edm::EDGetTokenT< HcalDataFrameContainer< QIE10DataFrame > > tok_QIE10DigiCollection_
 
edm::EDGetTokenT< HcalDataFrameContainer< QIE11DataFrame > > tok_QIE11DigiCollection_
 
edm::EDGetTokenT< HcalTrigPrimDigiCollectiontok_TPDigiCollection_
 

Static Private Attributes

static int tdcmax_ = 49
 

Additional Inherited Members

- Public Types inherited from edm::global::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::ProducerBase
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 40 of file HcalDigiToRawuHTR.cc.

Constructor & Destructor Documentation

HcalDigiToRawuHTR::HcalDigiToRawuHTR ( const edm::ParameterSet iConfig)
explicit

Definition at line 66 of file HcalDigiToRawuHTR.cc.

References tdc1_, tdc2_, and tdcmax_.

67  : _verbosity(iConfig.getUntrackedParameter<int>("Verbosity", 0)),
68  tdc1_(iConfig.getParameter<int>("tdc1")),
69  tdc2_(iConfig.getParameter<int>("tdc2")),
70  packHBTDC_(iConfig.getParameter<bool>("packHBTDC")),
71  electronicsMapLabel_(iConfig.getParameter<std::string>("ElectronicsMap")),
76  tok_HBHEDigiCollection_(consumes<HBHEDigiCollection>(iConfig.getParameter<edm::InputTag>("HBHEqie8"))),
77  tok_HFDigiCollection_(consumes<HFDigiCollection>(iConfig.getParameter<edm::InputTag>("HFqie8"))),
78  tok_TPDigiCollection_(consumes<HcalTrigPrimDigiCollection>(iConfig.getParameter<edm::InputTag>("TP"))),
79  premix_(iConfig.getParameter<bool>("premix")) {
80  produces<FEDRawDataCollection>("");
81  if (!(tdc1_ >= 0 && tdc1_ <= tdc2_ && tdc2_ <= tdcmax_))
82  edm::LogWarning("HcalDigiToRawuHTR") << " incorrect TDC ranges " << tdc1_ << ", " << tdc2_ << ", " << tdcmax_;
83 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< HBHEDigiCollection > tok_HBHEDigiCollection_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< HcalDataFrameContainer< QIE10DataFrame > > tok_QIE10DigiCollection_
std::string electronicsMapLabel_
edm::EDGetTokenT< HFDigiCollection > tok_HFDigiCollection_
edm::EDGetTokenT< HcalTrigPrimDigiCollection > tok_TPDigiCollection_
edm::EDGetTokenT< HcalDataFrameContainer< QIE11DataFrame > > tok_QIE11DigiCollection_
HcalDigiToRawuHTR::~HcalDigiToRawuHTR ( )
override

Definition at line 85 of file HcalDigiToRawuHTR.cc.

85 {}

Member Function Documentation

void HcalDigiToRawuHTR::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 281 of file HcalDigiToRawuHTR.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), edm::ParameterSetDescription::addUntracked(), DEFINE_FWK_MODULE, HLT_2018_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

281  {
282  //The following says we do not know what parameters are allowed so do no validation
283  // Please change this to state exactly what you do use, even if it is no parameters
285  desc.addUntracked<int>("Verbosity", 0);
286  desc.add<int>("tdc1", 4);
287  desc.add<int>("tdc2", 20);
288  desc.add<bool>("packHBTDC", true);
289  desc.add<std::string>("ElectronicsMap", "");
290  desc.add<edm::InputTag>("QIE10", edm::InputTag("simHcalDigis", "HFQIE10DigiCollection"));
291  desc.add<edm::InputTag>("QIE11", edm::InputTag("simHcalDigis", "HBHEQIE11DigiCollection"));
292  desc.add<edm::InputTag>("HBHEqie8", edm::InputTag("simHcalDigis"));
293  desc.add<edm::InputTag>("HFqie8", edm::InputTag("simHcalDigis"));
294  desc.add<edm::InputTag>("TP", edm::InputTag("simHcalTriggerPrimitiveDigis"));
295  desc.add<bool>("premix", false);
296  descriptions.add("hcalDigiToRawuHTR", desc);
297  descriptions.addDefault(desc);
298 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void HcalDigiToRawuHTR::produce ( edm::StreamID  id,
edm::Event iEvent,
const edm::EventSetup iSetup 
) const
override

Definition at line 87 of file HcalDigiToRawuHTR.cc.

References _verbosity, UHTRpacker::addChannel(), edm::SortedCollection< T, SORT >::begin(), edm::EventBase::bunchCrossing(), evf::compute_crc(), convertHB(), QIE11DataFrame::detid(), QIE10DataFrame::detid(), runTauDisplay::eid, electronicsMapLabel_, edm::SortedCollection< T, SORT >::end(), edm::EventID::event(), UHTRpacker::exist(), l1tstage2_dqm_sourceclient-live_cfg::fedId, EcalFEDMonitor_cfi::FEDRawDataCollection, UHTRpacker::finalizeHeadTail(), edm::EventSetup::get(), edm::Event::getByToken(), HcalBarrel, edm::EventBase::id(), edm::HandleBase::isValid(), B2GTnPMonitor_cfi::item, dqmiolumiharvest::j, HcalElectronicsMap::lookup(), HcalElectronicsMap::lookupTrigger(), genParticles_cff::map, FEDNumbering::MINHCALuTCAFEDID, eostools::move(), UHTRpacker::newUHTR(), edm::EventBase::orbitNumber(), packHBTDC_, premix_, hcalTTPDigis_cfi::presamples, QIE11DataFrame::presamples(), QIE10DataFrame::presamples(), edm::ESHandle< T >::product(), edm::Event::put(), l1tstage2_dqm_sourceclient-live_cfg::rawData, DetId::rawId(), FEDHeader::set(), FEDTrailer::set(), edm::DataFrameContainer::size(), tdc1_, tdc2_, tdcmax_, tok_HBHEDigiCollection_, tok_HFDigiCollection_, tok_QIE10DigiCollection_, tok_QIE11DigiCollection_, tok_TPDigiCollection_, EcalDeadCellTriggerPrimitiveFilter_cfi::tpDigiCollection, and UHTRpacker::uhtrs.

Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().

87  {
88  using namespace edm;
89 
91  iSetup.get<HcalElectronicsMapRcd>().get(electronicsMapLabel_, item);
92  const HcalElectronicsMap* readoutMap = item.product();
93 
94  //collection to be inserted into event
95  std::unique_ptr<FEDRawDataCollection> fed_buffers(new FEDRawDataCollection());
96 
97  //
98  // Extracting All the Collections containing useful Info
99  edm::Handle<QIE10DigiCollection> qie10DigiCollection;
100  edm::Handle<QIE11DigiCollection> qie11DigiCollection;
101  edm::Handle<HBHEDigiCollection> hbheDigiCollection;
102  edm::Handle<HFDigiCollection> hfDigiCollection;
104  iEvent.getByToken(tok_QIE10DigiCollection_, qie10DigiCollection);
105  iEvent.getByToken(tok_QIE11DigiCollection_, qie11DigiCollection);
106  iEvent.getByToken(tok_HBHEDigiCollection_, hbheDigiCollection);
107  iEvent.getByToken(tok_HFDigiCollection_, hfDigiCollection);
108  iEvent.getByToken(tok_TPDigiCollection_, tpDigiCollection);
109 
110  // first argument is the fedid (minFEDID+crateId)
111  map<int, unique_ptr<HCalFED> > fedMap;
112 
113  // - - - - - - - - - - - - - - - - - - - - - - - - - - -
114  // QIE10 precision data
115  // - - - - - - - - - - - - - - - - - - - - - - - - - - -
116  UHTRpacker uhtrs;
117  // loop over each digi and allocate memory for each
118  if (qie10DigiCollection.isValid()) {
119  const QIE10DigiCollection& qie10dc = *(qie10DigiCollection);
120  for (unsigned int j = 0; j < qie10dc.size(); j++) {
121  QIE10DataFrame qiedf = static_cast<QIE10DataFrame>(qie10dc[j]);
122  DetId detid = qiedf.detid();
123  HcalElectronicsId eid(readoutMap->lookup(detid));
124  int crateId = eid.crateId();
125  int slotId = eid.slot();
126  int uhtrIndex = ((slotId & 0xF) << 8) | (crateId & 0xFF);
127  int presamples = qiedf.presamples();
128 
129  /* Defining a custom index that will encode only
130  the information about the crate and slot of a
131  given channel: crate: bits 0-7
132  slot: bits 8-12 */
133 
134  if (!uhtrs.exist(uhtrIndex)) {
135  uhtrs.newUHTR(uhtrIndex, presamples);
136  }
137  uhtrs.addChannel(uhtrIndex, qiedf, readoutMap, _verbosity);
138  }
139  }
140  // - - - - - - - - - - - - - - - - - - - - - - - - - - -
141  // QIE11 precision data
142  // - - - - - - - - - - - - - - - - - - - - - - - - - - -
143  //UHTRpacker uhtrs;
144  // loop over each digi and allocate memory for each
145  if (qie11DigiCollection.isValid()) {
146  const QIE11DigiCollection& qie11dc = *(qie11DigiCollection);
147  for (unsigned int j = 0; j < qie11dc.size(); j++) {
148  QIE11DataFrame qiedf = static_cast<QIE11DataFrame>(qie11dc[j]);
149  DetId detid = qiedf.detid();
150  HcalElectronicsId eid(readoutMap->lookup(detid));
151  int crateId = eid.crateId();
152  int slotId = eid.slot();
153  int uhtrIndex = ((slotId & 0xF) << 8) | (crateId & 0xFF);
154  int presamples = qiedf.presamples();
155 
156  // convert to hb qie data if hb
157  if (packHBTDC_ && HcalDetId(detid.rawId()).subdet() == HcalSubdetector::HcalBarrel)
158  qiedf = convertHB(qiedf, tdc1_, tdc2_, tdcmax_);
159 
160  if (!uhtrs.exist(uhtrIndex)) {
161  uhtrs.newUHTR(uhtrIndex, presamples);
162  }
163  uhtrs.addChannel(uhtrIndex, qiedf, readoutMap, _verbosity);
164  }
165  }
166  // - - - - - - - - - - - - - - - - - - - - - - - - - - -
167  // HF (QIE8) precision data
168  // - - - - - - - - - - - - - - - - - - - - - - - - - - -
169  // loop over each digi and allocate memory for each
170  if (hfDigiCollection.isValid()) {
171  const HFDigiCollection& qie8hfdc = *(hfDigiCollection);
172  for (HFDigiCollection::const_iterator qiedf = qie8hfdc.begin(); qiedf != qie8hfdc.end(); qiedf++) {
173  DetId detid = qiedf->id();
174 
175  HcalElectronicsId eid(readoutMap->lookup(detid));
176  int crateId = eid.crateId();
177  int slotId = eid.slot();
178  int uhtrIndex = (crateId & 0xFF) | ((slotId & 0xF) << 8);
179  int presamples = qiedf->presamples();
180 
181  if (!uhtrs.exist(uhtrIndex)) {
182  uhtrs.newUHTR(uhtrIndex, presamples);
183  }
184  uhtrs.addChannel(uhtrIndex, qiedf, readoutMap, premix_, _verbosity);
185  }
186  }
187  // - - - - - - - - - - - - - - - - - - - - - - - - - - -
188  // HBHE (QIE8) precision data
189  // - - - - - - - - - - - - - - - - - - - - - - - - - - -
190  // loop over each digi and allocate memory for each
191  if (hbheDigiCollection.isValid()) {
192  const HBHEDigiCollection& qie8hbhedc = *(hbheDigiCollection);
193  for (HBHEDigiCollection::const_iterator qiedf = qie8hbhedc.begin(); qiedf != qie8hbhedc.end(); qiedf++) {
194  DetId detid = qiedf->id();
195 
196  HcalElectronicsId eid(readoutMap->lookup(detid));
197  int crateId = eid.crateId();
198  int slotId = eid.slot();
199  int uhtrIndex = (crateId & 0xFF) | ((slotId & 0xF) << 8);
200  int presamples = qiedf->presamples();
201 
202  if (!uhtrs.exist(uhtrIndex)) {
203  uhtrs.newUHTR(uhtrIndex, presamples);
204  }
205  uhtrs.addChannel(uhtrIndex, qiedf, readoutMap, premix_, _verbosity);
206  }
207  }
208  // - - - - - - - - - - - - - - - - - - - - - - - - - - -
209  // TP data
210  // - - - - - - - - - - - - - - - - - - - - - - - - - - -
211  // loop over each digi and allocate memory for each
212  if (tpDigiCollection.isValid()) {
213  const HcalTrigPrimDigiCollection& qietpdc = *(tpDigiCollection);
214  for (HcalTrigPrimDigiCollection::const_iterator qiedf = qietpdc.begin(); qiedf != qietpdc.end(); qiedf++) {
215  DetId detid = qiedf->id();
216  HcalElectronicsId eid(readoutMap->lookupTrigger(detid));
217 
218  int crateId = eid.crateId();
219  int slotId = eid.slot();
220  int uhtrIndex = (crateId & 0xFF) | ((slotId & 0xF) << 8);
221  int ilink = eid.fiberIndex();
222  int itower = eid.fiberChanId();
223  int channelid = (itower & 0xF) | ((ilink & 0xF) << 4);
224  int presamples = qiedf->presamples();
225 
226  if (!uhtrs.exist(uhtrIndex)) {
227  uhtrs.newUHTR(uhtrIndex, presamples);
228  }
229  uhtrs.addChannel(uhtrIndex, qiedf, channelid, _verbosity);
230  }
231  }
232  // -----------------------------------------------------
233  // -----------------------------------------------------
234  // loop over each uHTR and format data
235  // -----------------------------------------------------
236  // -----------------------------------------------------
237  // loop over each uHTR and format data
238  int idxuhtr = -1;
239  for (UHTRpacker::UHTRMap::iterator uhtr = uhtrs.uhtrs.begin(); uhtr != uhtrs.uhtrs.end(); ++uhtr) {
240  idxuhtr++;
241 
242  uint64_t crateId = (uhtr->first) & 0xFF;
243  uint64_t slotId = (uhtr->first & 0xF00) >> 8;
244 
245  uhtrs.finalizeHeadTail(&(uhtr->second), _verbosity);
246  int fedId = FEDNumbering::MINHCALuTCAFEDID + crateId;
247  if (fedMap.find(fedId) == fedMap.end()) {
248  /* QUESTION: where should the orbit number come from? */
249  fedMap[fedId] = std::unique_ptr<HCalFED>(
250  new HCalFED(fedId, iEvent.id().event(), iEvent.orbitNumber(), iEvent.bunchCrossing()));
251  }
252  fedMap[fedId]->addUHTR(uhtr->second, crateId, slotId);
253  } // end loop over uhtr containers
254 
255  /* ------------------------------------------------------
256  ------------------------------------------------------
257  putting together the FEDRawDataCollection
258  ------------------------------------------------------
259  ------------------------------------------------------ */
260  for (map<int, unique_ptr<HCalFED> >::iterator fed = fedMap.begin(); fed != fedMap.end(); ++fed) {
261  int fedId = fed->first;
262 
263  auto& rawData = fed_buffers->FEDData(fedId);
264  fed->second->formatFEDdata(rawData);
265 
266  FEDHeader hcalFEDHeader(rawData.data());
267  hcalFEDHeader.set(rawData.data(), 1, iEvent.id().event(), iEvent.bunchCrossing(), fedId);
268  FEDTrailer hcalFEDTrailer(rawData.data() + (rawData.size() - 8));
269  hcalFEDTrailer.set(rawData.data() + (rawData.size() - 8),
270  rawData.size() / 8,
271  evf::compute_crc(rawData.data(), rawData.size()),
272  0,
273  0);
274 
275  } // end loop over FEDs with data
276 
277  iEvent.put(std::move(fed_buffers));
278 }
DetId detid() const
Get the detector id.
EventNumber_t event() const
Definition: EventID.h:40
edm::EDGetTokenT< HBHEDigiCollection > tok_HBHEDigiCollection_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:131
void finalizeHeadTail(uhtrData *uhtr, bool verbosity)
Definition: PackerHelp.h:483
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
int presamples() const
for backward compatibility
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
uhtrData * newUHTR(int uhtrIndex, int ps=0, int orn=0, int bcn=0, uint64_t evt=0)
Definition: PackerHelp.h:443
QIE11DataFrame convertHB(QIE11DataFrame qiehe, int tdc1, int tdc2, int tdcmax)
Definition: PackerHelp.h:619
std::vector< T >::const_iterator const_iterator
int bunchCrossing() const
Definition: EventBase.h:64
edm::EDGetTokenT< HcalDataFrameContainer< QIE10DataFrame > > tok_QIE10DigiCollection_
std::string electronicsMapLabel_
unsigned short compute_crc(unsigned char *buffer, unsigned int bufSize)
Definition: CRC16.h:46
edm::EDGetTokenT< HFDigiCollection > tok_HFDigiCollection_
edm::DataFrame::id_type id() const
DetId detid() const
Get the detector id.
int orbitNumber() const
Definition: EventBase.h:65
bool isValid() const
Definition: HandleBase.h:70
const_iterator end() const
UHTRMap uhtrs
Definition: PackerHelp.h:315
Definition: DetId.h:17
unsigned long long uint64_t
Definition: Time.h:13
void addChannel(int uhtrIndex, edm::SortedCollection< HFDataFrame >::const_iterator &qiedf, const HcalElectronicsMap *readoutMap, bool premix, int verbosity=0)
Definition: PackerHelp.h:505
int presamples() const
for backward compatibility
bool exist(int uhtrIndex)
Definition: PackerHelp.h:346
edm::EventID id() const
Definition: EventBase.h:59
HLT enums.
T get() const
Definition: EventSetup.h:73
const DetId lookupTrigger(HcalElectronicsId fId) const
brief lookup the trigger logical detid associated with the given electronics id
static void set(unsigned char *header, uint8_t triggerType, uint32_t lvl1ID, uint16_t bxID, uint16_t sourceID, uint8_t version=0, bool moreHeaders=false)
Set all fields in the header.
Definition: FEDHeader.cc:25
T const * product() const
Definition: ESHandle.h:86
Readout chain identification for Hcal.
edm::EDGetTokenT< HcalTrigPrimDigiCollection > tok_TPDigiCollection_
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
def move(src, dest)
Definition: eostools.py:511
const_iterator begin() const
edm::EDGetTokenT< HcalDataFrameContainer< QIE11DataFrame > > tok_QIE11DigiCollection_

Member Data Documentation

int HcalDigiToRawuHTR::_verbosity
private

Definition at line 50 of file HcalDigiToRawuHTR.cc.

Referenced by produce().

std::string HcalDigiToRawuHTR::electronicsMapLabel_
private

Definition at line 55 of file HcalDigiToRawuHTR.cc.

Referenced by produce().

bool HcalDigiToRawuHTR::packHBTDC_
private

Definition at line 53 of file HcalDigiToRawuHTR.cc.

Referenced by produce().

bool HcalDigiToRawuHTR::premix_
private

Definition at line 63 of file HcalDigiToRawuHTR.cc.

Referenced by produce().

int HcalDigiToRawuHTR::tdc1_
private

Definition at line 51 of file HcalDigiToRawuHTR.cc.

Referenced by HcalDigiToRawuHTR(), and produce().

int HcalDigiToRawuHTR::tdc2_
private

Definition at line 52 of file HcalDigiToRawuHTR.cc.

Referenced by HcalDigiToRawuHTR(), and produce().

int HcalDigiToRawuHTR::tdcmax_ = 49
staticprivate

Definition at line 54 of file HcalDigiToRawuHTR.cc.

Referenced by HcalDigiToRawuHTR(), and produce().

edm::EDGetTokenT<HBHEDigiCollection> HcalDigiToRawuHTR::tok_HBHEDigiCollection_
private

Definition at line 59 of file HcalDigiToRawuHTR.cc.

Referenced by produce().

edm::EDGetTokenT<HFDigiCollection> HcalDigiToRawuHTR::tok_HFDigiCollection_
private

Definition at line 60 of file HcalDigiToRawuHTR.cc.

Referenced by produce().

edm::EDGetTokenT<HcalDataFrameContainer<QIE10DataFrame> > HcalDigiToRawuHTR::tok_QIE10DigiCollection_
private

Definition at line 57 of file HcalDigiToRawuHTR.cc.

Referenced by produce().

edm::EDGetTokenT<HcalDataFrameContainer<QIE11DataFrame> > HcalDigiToRawuHTR::tok_QIE11DigiCollection_
private

Definition at line 58 of file HcalDigiToRawuHTR.cc.

Referenced by produce().

edm::EDGetTokenT<HcalTrigPrimDigiCollection> HcalDigiToRawuHTR::tok_TPDigiCollection_
private

Definition at line 61 of file HcalDigiToRawuHTR.cc.

Referenced by produce().