|
std::shared_ptr< pr::Cache > | globalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &iES) const final |
|
void | globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &iES) const final |
|
void | produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const final |
| get data, convert to raw event, attach again to Event More...
|
|
| SiPixelDigiToRaw (const edm::ParameterSet &) |
| ctor More...
|
|
| 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 |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducerBase () override |
|
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 |
|
std::vector< ConsumesInfo > | consumesInfo () 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 |
|
EDConsumerBase & | operator= (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) |
|
|
typedef EDProducerBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
ProducesCollector | producesCollector () |
|
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) |
|
Definition at line 47 of file SiPixelDigiToRaw.cc.
get data, convert to raw event, attach again to Event
Definition at line 106 of file SiPixelDigiToRaw.cc.
References utilities::cache(), apvshotsanalyzer_cfi::digiCollection, edm::Event::emplace(), edm::EventID::event(), FEDRawDataCollection::FEDData(), l1t_dqm_sourceclient-live_cfg::fedRawData, edm::Event::getByToken(), edm::Event::getLuminosityBlock(), edm::EventBase::id(), edm::LuminosityBlock::index(), cmsLHEtoEOSManager::l, LogDebug, eostools::move(), PixelDataFormatter::passFrameReverter(), castor_dqm_sourceclient_file_cfg::path, FEDRawData::size(), and findQualityFiles::size.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
116 for (
auto const& di : *digiCollection) {
117 digiCounter += (di.data).
size();
118 digis[di.id] = di.data;
123 LogDebug(
"SiPixelDigiToRaw") <<
cache->cablingTree_->version();
128 for (
auto const& fedChannels : *pixelFEDChannelCollectionHandle) {
130 for (
const auto& fedChannel : fedChannels) {
132 if (
cache->cablingTree_->findItem(path) !=
nullptr) {
133 detBadChannels.push_back(fedChannel);
136 <<
" FED " << fedChannel.fed <<
" Link " << fedChannel.link <<
" for module " << fedChannels.detId()
137 <<
" marked bad, but this channel does not exist in the cabling map" << endl;
140 if (!detBadChannels.empty())
141 badChannels.insert({fedChannels.detId(), std::move(detBadChannels)});
154 formatter.formatRawData(ev.
id().
event(), rawdata, digis, badChannels);
157 for (
auto const* fed :
cache->cablingTree_->fedList()) {
158 LogDebug(
"SiPixelDigiToRaw") <<
" PRODUCE DATA FOR FED_id: " << fed->id();
160 PixelDataFormatter::RawData::iterator fedbuffer = rawdata.find(fed->id());
161 if (fedbuffer != rawdata.end())
162 fedRawData = fedbuffer->second;
163 LogDebug(
"SiPixelDigiToRaw") <<
"size of data in fedRawData: " << fedRawData.
size();
166 LogDebug(
"SiPixelDigiToRaw").log([&](
auto&
l) {
167 l <<
"Words/Digis this ev: " << digiCounter <<
"(fm:" << formatter.nDigis() <<
")/" << formatter.nWords();
EventNumber_t event() const
LuminosityBlockIndex index() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > tPixelDigi
const edm::EDPutTokenT< FEDRawDataCollection > putToken_
size_t size() const
Lenght of the data buffer in bytes.
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
LuminosityBlock const & getLuminosityBlock() const
const edm::EDGetTokenT< PixelFEDChannelCollection > theBadPixelFEDChannelsToken
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product