|
| RawEventOutputModuleForBU (edm::ParameterSet const &ps) |
|
| ~RawEventOutputModuleForBU () override |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const OutputModule & | operator= (const OutputModule &)=delete |
|
| OutputModule (edm::ParameterSet const &iPSet) |
|
| OutputModule (const OutputModule &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
OutputModuleBase & | operator= (OutputModuleBase const &)=delete |
|
| OutputModuleBase (ParameterSet const &pset) |
|
| OutputModuleBase (OutputModuleBase const &)=delete |
|
SharedResourcesAcquirer & | sharedResourcesAcquirer () |
|
SubProcessParentageHelper const * | subProcessParentageHelper () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
BranchIDLists const * | branchIDLists () const |
|
std::array< bool, NumBranchTypes > const & | hasNewlyDroppedBranch () const |
|
SelectedProductsForBranchType const & | keptProducts () const |
|
int | maxEvents () const |
|
const ModuleDescription & | moduleDescription () const |
|
OutputModuleCore & | operator= (OutputModuleCore const &)=delete |
|
| OutputModuleCore (ParameterSet const &pset) |
|
| OutputModuleCore (OutputModuleCore const &)=delete |
|
OutputProcessBlockHelper const & | outputProcessBlockHelper () const |
|
std::string const & | processName () const |
|
int | remainingEvents () const |
|
bool | selected (BranchDescription const &desc) const |
|
void | selectProducts (ProductRegistry const &preg, ThinnedAssociationsHelper const &, ProcessBlockHelperBase const &) |
|
ThinnedAssociationsHelper const * | thinnedAssociationsHelper () const |
|
bool | wantAllEvents () const |
|
| ~OutputModuleCore () 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 |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef OutputModuleBase | ModuleType |
|
typedef OutputModuleCore | ModuleType |
|
typedef ProductLabels | Labels |
|
void | configure (OutputModuleDescription const &desc) |
|
void | doBeginJob () |
|
bool | doEvent (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *) |
|
void | doPreallocate (PreallocationConfiguration const &) |
|
void | configure (OutputModuleDescription const &desc) |
|
ModuleDescription const & | description () const |
|
void | doAccessInputProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *) |
|
void | doBeginJob_ () |
|
bool | doBeginLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *) |
|
void | doBeginProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *) |
|
bool | doBeginRun (RunTransitionInfo const &, ModuleCallingContext const *) |
|
void | doEndJob () |
|
bool | doEndLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *) |
|
void | doEndProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *) |
|
bool | doEndRun (RunTransitionInfo const &, ModuleCallingContext const *) |
|
bool | doEvent_ (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *) |
|
void | doPreallocate_ (PreallocationConfiguration const &) |
|
std::map< BranchID::value_type, BranchID::value_type > const & | droppedBranchIDToKeptBranchID () |
|
virtual void | preallocLumis (unsigned int) |
|
ParameterSetID | selectorConfig () const |
|
void | setEventSelectionInfo (std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
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) |
|
void | resetItemsToGetFrom (BranchType iType) |
|
std::atomic< int > | remainingEvents_ |
|
template<class Consumer>
class RawEventOutputModuleForBU< Consumer >
Definition at line 26 of file RawEventOutputModuleForBU.h.
template<class Consumer >
Implements edm::core::OutputModuleCore.
Definition at line 77 of file RawEventOutputModuleForBU.h.
References cms::Adler32(), cms::cuda::assert(), crc32c(), FEDRawData::data(), MillePedeFileConverter_cfg::e, FEDRawDataCollection::FEDData(), corrVsCorr::filename, HLT_2022v14_cff::flags, FRDEVENT_MASK_ISGENDATA, FRDHeaderMaxVersion, FRDHeaderVersionSize, heavyIonCSV_trainingSettings::idx, FEDNumbering::lastFEDId(), eostools::ls(), mps_check::msg, FEDRawData::size(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by pkg.AbstractPkg::generate().
78 unsigned int ls =
e.luminosityBlock();
89 e.getByToken(
token_, fedBuffers);
94 int expectedSize = headerSize;
99 expectedSize += singleFED.
size();
104 std::unique_ptr<std::vector<unsigned char>> workBuffer(
105 std::make_unique<std::vector<unsigned char>>(expectedSize + 256));
111 if (!
e.eventAuxiliary().isRealData())
117 *bufPtr++ = (
uint32)
e.id().run();
118 *bufPtr++ = (
uint32)
e.luminosityBlock();
119 *bufPtr++ = (
uint32)
e.id().event();
127 fedsize[
idx] = singleFED.
size();
130 memcpy(bufPtr, fedsize, 1024 *
sizeof(
uint32));
133 *bufPtr++ = expectedSize - headerSize;
138 uint32* payloadPtr = bufPtr;
141 if (singleFED.
size() > 0) {
142 memcpy(bufPtr, singleFED.
data(), singleFED.
size());
143 bufPtr += singleFED.
size() / 4;
149 *(payloadPtr - 1) =
crc32c(crc, (
const unsigned char*)payloadPtr, expectedSize - headerSize);
154 cms::Adler32((
const char*)payloadPtr, expectedSize - headerSize, adlera, adlerb);
155 *(payloadPtr - 1) = (adlerb << 16) | adlera;
std::unique_ptr< Consumer > templateConsumer_
const edm::EDGetTokenT< FEDRawDataCollection > token_
constexpr size_t FRDHeaderMaxVersion
const unsigned int frdVersion_
unsigned long long writtensize
size_t size() const
Lenght of the data buffer in bytes.
const unsigned int numEventsPerFile_
unsigned long long totsize
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
uint32_t crc32c(uint32_t crc, const unsigned char *buf, size_t len)
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
const uint16 FRDEVENT_MASK_ISGENDATA
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
constexpr std::array< uint32, FRDHeaderMaxVersion+1 > FRDHeaderVersionSize
static constexpr int lastFEDId()