|
| EvFOutputModule (edm::ParameterSet const &ps) |
|
| ~EvFOutputModule () 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 |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
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 |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > 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 |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices 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 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_ |
|
Definition at line 74 of file EvFOutputModule.h.
Definition at line 150 of file EvFOutputModule.cc.
References cms::Adler32(), StreamerOutputFile::adler32(), edm::core::OutputModuleCore::branchIDLists(), StreamerOutputFile::close(), edm::core::OutputModuleCore::description(), Exception, edm::InEvent, edm::Hash< I >::isValid(), jsonWriter_, edm::core::OutputModuleCore::keptProducts(), LogDebug, edm::ModuleDescription::mainParameterSetID(), edm::core::OutputModuleCore::moduleDescription(), edm::ModuleDescription::moduleLabel(), SimL1EmulatorRepack_CalouGT_cff::processName, ps_, psetToken_, writedatasetfile::run, TrackRefitter_38T_cff::src, edm_modernize_messagelogger::stat, streamLabel_, AlCaHLTBitMon_QueryRunRegistry::string, edm::core::OutputModuleCore::thinnedAssociationsHelper(), and StreamerOutputFile::write().
152 jsonWriter_ = std::make_unique<EvFOutputJSONWriter>(
157 edm::LogInfo(
"EvFOutputModule") <<
"beginRun init stream -: " << openIniFileName;
160 uint32 preamble_adler32 = 1;
165 std::unique_ptr<InitMsgBuilder> init_message =
172 psetMapHandle.
isValid() ? psetMapHandle.product() :
nullptr);
178 stream_writer_preamble.write(
view);
179 preamble_adler32 = stream_writer_preamble.adler32();
180 stream_writer_preamble.close();
183 stat(openIniFileName.c_str(), &istat);
186 uint32_t adlera = 1, adlerb = 0;
187 FILE*
src = fopen(openIniFileName.c_str(),
"r");
190 unsigned char* outBuf =
new unsigned char[1024 * 1024];
191 while (readInput < istat.st_size) {
192 size_t toRead = readInput + 1024 * 1024 < istat.st_size ? 1024 * 1024 : istat.st_size - readInput;
193 fread(outBuf, toRead, 1,
src);
194 cms::Adler32((
const char*)outBuf, toRead, adlera, adlerb);
200 jsonWriter_->streamerCommon_.getSerializerBuffer()->clearHeaderBuffer();
206 uint32_t adler32c = (adlerb << 16) | adlera;
207 if (adler32c != preamble_adler32) {
208 throw cms::Exception(
"EvFOutputModule") <<
"Checksum mismatch of ini file -: " << openIniFileName
209 <<
" expected:" << preamble_adler32 <<
" obtained:" << adler32c;
std::unique_ptr< evf::EvFOutputJSONWriter > jsonWriter_
std::vector< BranchIDList > BranchIDLists
edm::ParameterSet const & ps_
ParameterSetID const & mainParameterSetID() const
ModuleDescription const & description() const
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
BranchIDLists const * branchIDLists() const
Log< level::Info, false > LogInfo
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
SelectedProductsForBranchType const & keptProducts() const
edm::EDGetTokenT< edm::SendJobHeader::ParameterSetMap > psetToken_
const ModuleDescription & moduleDescription() const
std::string const & moduleLabel() const