CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
evf::GlobalEvFOutputModule Class Reference
Inheritance diagram for evf::GlobalEvFOutputModule:
edm::global::OutputModule< T > edm::global::OutputModuleBase edm::core::OutputModuleCore edm::EDConsumerBase

Public Member Functions

 GlobalEvFOutputModule (edm::ParameterSet const &ps)
 
 ~GlobalEvFOutputModule () override
 
- Public Member Functions inherited from edm::global::OutputModule< T >
const OutputModuleoperator= (const OutputModule &)=delete
 
 OutputModule (edm::ParameterSet const &iPSet)
 
 OutputModule (const OutputModule &)=delete
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
bool wantsStreamLuminosityBlocks () const final
 
bool wantsStreamRuns () const final
 
- Public Member Functions inherited from edm::global::OutputModuleBase
OutputModuleBaseoperator= (OutputModuleBase const &)=delete
 
 OutputModuleBase (ParameterSet const &pset)
 
 OutputModuleBase (OutputModuleBase const &)=delete
 
bool wantsGlobalLuminosityBlocks () const
 
bool wantsGlobalRuns () const
 
- Public Member Functions inherited from edm::core::OutputModuleCore
BranchIDLists const * branchIDLists () const
 
std::array< bool,
NumBranchTypes > const & 
hasNewlyDroppedBranch () const
 
SelectedProductsForBranchType
const & 
keptProducts () const
 
int maxEvents () const
 
const ModuleDescriptionmoduleDescription () const
 
OutputModuleCoreoperator= (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
 
- 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
 
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
 
EDConsumerBaseoperator= (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)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::core::OutputModuleCore
static const std::string & baseType ()
 
static void fillDescription (ParameterSetDescription &desc, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings())
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Private Member Functions

void acquire (edm::StreamID, edm::EventForOutput const &, edm::WaitingTaskWithArenaHolder) const final
 
std::unique_ptr
< edm::StreamerOutputModuleCommon
beginStream (edm::StreamID) const final
 
Trig getTriggerResults (edm::EDGetTokenT< edm::TriggerResults > const &token, edm::EventForOutput const &e) const
 
std::shared_ptr
< GlobalEvFOutputEventWriter
globalBeginLuminosityBlock (edm::LuminosityBlockForOutput const &iLB) const final
 
std::shared_ptr
< GlobalEvFOutputJSONDef
globalBeginRun (edm::RunForOutput const &run) const final
 
void globalEndLuminosityBlock (edm::LuminosityBlockForOutput const &iLB) const final
 
void globalEndRun (edm::RunForOutput const &) const final
 
void write (edm::EventForOutput const &e) final
 
void writeLuminosityBlock (edm::LuminosityBlockForOutput const &) final
 
void writeRun (edm::RunForOutput const &) final
 

Private Attributes

evf::FastMonitoringServicefms_
 
edm::ParameterSet const & ps_
 
edm::EDGetTokenT
< edm::SendJobHeader::ParameterSetMap
psetToken_
 
std::string streamLabel_
 
edm::EDGetTokenT
< edm::TriggerResults
trToken_
 

Additional Inherited Members

- Public Types inherited from edm::global::OutputModuleBase
typedef OutputModuleBase ModuleType
 
- Public Types inherited from edm::core::OutputModuleCore
typedef OutputModuleCore ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::global::OutputModuleBase
void doAcquire (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *, WaitingTaskWithArenaHolder &)
 
void doBeginJob ()
 
void doBeginStream (StreamID id)
 
void doEndStream (StreamID id)
 
bool doEvent (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
void preActionBeforeRunEventAsync (WaitingTaskHolder iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
 
- Protected Member Functions inherited from edm::core::OutputModuleCore
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)
 
- Protected Member Functions inherited from edm::EDConsumerBase
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 () noexcept
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
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)
 
- Protected Attributes inherited from edm::core::OutputModuleCore
std::atomic< int > remainingEvents_
 

Detailed Description

Definition at line 121 of file GlobalEvFOutputModule.cc.

Constructor & Destructor Documentation

evf::GlobalEvFOutputModule::GlobalEvFOutputModule ( edm::ParameterSet const &  ps)
explicit

Definition at line 236 of file GlobalEvFOutputModule.cc.

References Exception, fms_, streamLabel_, AlCaHLTBitMon_QueryRunRegistry::string, and to_lower().

239  ps_(ps),
240  streamLabel_(ps.getParameter<std::string>("@module_label")),
241  trToken_(consumes<edm::TriggerResults>(edm::InputTag("TriggerResults"))),
242  psetToken_(consumes<edm::SendJobHeader::ParameterSetMap, edm::InRun>(
243  ps.getUntrackedParameter<edm::InputTag>("psetMap"))) {
244  //replace hltOutoputA with stream if the HLT menu uses this convention
245  std::string testPrefix = "hltOutput";
246  if (streamLabel_.find(testPrefix) == 0)
247  streamLabel_ = std::string("stream") + streamLabel_.substr(testPrefix.size());
248 
249  if (streamLabel_.find('_') != std::string::npos) {
250  throw cms::Exception("GlobalEvFOutputModule")
251  << "Underscore character is reserved can not be used for stream names in "
252  "FFF, but was detected in stream name -: "
253  << streamLabel_;
254  }
255 
256  std::string streamLabelLow = streamLabel_;
257  boost::algorithm::to_lower(streamLabelLow);
258  auto streampos = streamLabelLow.rfind("stream");
259  if (streampos != 0 && streampos != std::string::npos)
260  throw cms::Exception("GlobalEvFOutputModule")
261  << "stream (case-insensitive) sequence was found in stream suffix. This is reserved and can not be used for "
262  "names in FFF based HLT, but was detected in stream name";
263 
265  }
edm::global::OutputModule< edm::RunCache< GlobalEvFOutputJSONDef >, edm::LuminosityBlockCache< evf::GlobalEvFOutputEventWriter >, edm::StreamCache< edm::StreamerOutputModuleCommon >, edm::ExternalWork > GlobalEvFOutputModuleType
edm::EDGetTokenT< edm::TriggerResults > trToken_
std::string to_lower(const std::string &s)
edm::EDGetTokenT< edm::SendJobHeader::ParameterSetMap > psetToken_
evf::FastMonitoringService * fms_
edm::ParameterSet const & ps_
evf::GlobalEvFOutputModule::~GlobalEvFOutputModule ( )
override

Definition at line 267 of file GlobalEvFOutputModule.cc.

267 {}

Member Function Documentation

void evf::GlobalEvFOutputModule::acquire ( edm::StreamID  id,
edm::EventForOutput const &  e,
edm::WaitingTaskWithArenaHolder  iHolder 
) const
finalprivate

Definition at line 365 of file GlobalEvFOutputModule.cc.

References alignCSCRings::e, edm::EventForOutput::getLuminosityBlock(), getTriggerResults(), edm::LuminosityBlockForOutput::index(), edm::WaitingTaskWithArenaHolder::makeWaitingTaskHolderAndRelease(), eostools::move(), mps_check::msg, edm::core::OutputModuleCore::selectorConfig(), triggerResults, and trToken_.

367  {
369 
370  auto streamerCommon = streamCache(id);
371  std::unique_ptr<EventMsgBuilder> msg =
372  streamerCommon->serializeEvent(*streamerCommon->getSerializerBuffer(), e, triggerResults, selectorConfig());
373 
374  auto lumiWriter = luminosityBlockCache(e.getLuminosityBlock().index());
375  const_cast<evf::GlobalEvFOutputEventWriter*>(lumiWriter)
376  ->doOutputEventAsync(std::move(msg), iHolder.makeWaitingTaskHolderAndRelease());
377  }
edm::EDGetTokenT< edm::TriggerResults > trToken_
Trig getTriggerResults(edm::EDGetTokenT< edm::TriggerResults > const &token, edm::EventForOutput const &e) const
def move
Definition: eostools.py:511
static std::string const triggerResults
Definition: EdmProvDump.cc:44
ParameterSetID selectorConfig() const
tuple msg
Definition: mps_check.py:285
std::unique_ptr< edm::StreamerOutputModuleCommon > evf::GlobalEvFOutputModule::beginStream ( edm::StreamID  ) const
finalprivate

Definition at line 278 of file GlobalEvFOutputModule.cc.

References edm::core::OutputModuleCore::description(), edm::InEvent, edm::core::OutputModuleCore::keptProducts(), edm::ModuleDescription::moduleLabel(), and ps_.

278  {
279  return std::make_unique<edm::StreamerOutputModuleCommon>(
281  }
std::string const & moduleLabel() const
ModuleDescription const & description() const
edm::ParameterSet const & ps_
SelectedProductsForBranchType const & keptProducts() const
void evf::GlobalEvFOutputModule::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 269 of file GlobalEvFOutputModule.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), submitPVResolutionJobs::desc, edm::StreamerOutputModuleCommon::fillDescription(), and edm::core::OutputModuleCore::fillDescription().

269  {
273  desc.addUntracked<edm::InputTag>("psetMap", {"hltPSetMap"})
274  ->setComment("Optionally allow the map of ParameterSets to be calculated externally.");
275  descriptions.add("globalEvfOutputModule", desc);
276  }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static void fillDescription(ParameterSetDescription &desc)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescription(ParameterSetDescription &desc, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings())
Trig evf::GlobalEvFOutputModule::getTriggerResults ( edm::EDGetTokenT< edm::TriggerResults > const &  token,
edm::EventForOutput const &  e 
) const
private
std::shared_ptr< GlobalEvFOutputEventWriter > evf::GlobalEvFOutputModule::globalBeginLuminosityBlock ( edm::LuminosityBlockForOutput const &  iLB) const
finalprivate

Definition at line 358 of file GlobalEvFOutputModule.cc.

References edm::LuminosityBlockForOutput::luminosityBlock(), and streamLabel_.

359  {
360  auto openDatFilePath = edm::Service<evf::EvFDaqDirector>()->getOpenDatFilePath(iLB.luminosityBlock(), streamLabel_);
361 
362  return std::make_shared<GlobalEvFOutputEventWriter>(openDatFilePath);
363  }
std::shared_ptr< GlobalEvFOutputJSONDef > evf::GlobalEvFOutputModule::globalBeginRun ( edm::RunForOutput const &  run) const
finalprivate

Definition at line 283 of file GlobalEvFOutputModule.cc.

References cms::Adler32(), StreamerOutputFile::adler32(), edm::core::OutputModuleCore::branchIDLists(), StreamerOutputFile::close(), edm::core::OutputModuleCore::description(), Exception, edm::OccurrenceForOutput::getHandle(), edm::InEvent, edm::Hash< I >::isValid(), edm::core::OutputModuleCore::keptProducts(), LogDebug, edm::ModuleDescription::mainParameterSetID(), edm::core::OutputModuleCore::moduleDescription(), edm::ModuleDescription::moduleLabel(), FSQHLTOfflineSource_cfi::processName, ps_, psetToken_, alcazmumu_cfi::src, edm_modernize_messagelogger::stat, streamLabel_, AlCaHLTBitMon_QueryRunRegistry::string, edm::core::OutputModuleCore::thinnedAssociationsHelper(), and StreamerOutputFile::write().

283  {
284  //create run Cache holding JSON file writer and variables
285  auto jsonDef = std::make_unique<GlobalEvFOutputJSONDef>();
286 
287  edm::StreamerOutputModuleCommon streamerCommon(ps_, &keptProducts()[edm::InEvent], description().moduleLabel());
288 
289  //output INI file (non-const). This doesn't require globalBeginRun to be finished
290  const std::string openIniFileName = edm::Service<evf::EvFDaqDirector>()->getOpenInitFilePath(streamLabel_);
291  edm::LogInfo("GlobalEvFOutputModule") << "beginRun init stream -: " << openIniFileName;
292 
293  StreamerOutputFile stream_writer_preamble(openIniFileName);
294  uint32 preamble_adler32 = 1;
295  edm::BranchIDLists const* bidlPtr = branchIDLists();
296 
297  auto psetMapHandle = run.getHandle(psetToken_);
298 
299  std::unique_ptr<InitMsgBuilder> init_message =
300  streamerCommon.serializeRegistry(*streamerCommon.getSerializerBuffer(),
301  *bidlPtr,
306  psetMapHandle.isValid() ? psetMapHandle.product() : nullptr);
307 
308  //Let us turn it into a View
309  InitMsgView view(init_message->startAddress());
310 
311  //output header
312  stream_writer_preamble.write(view);
313  preamble_adler32 = stream_writer_preamble.adler32();
314  stream_writer_preamble.close();
315 
316  struct stat istat;
317  stat(openIniFileName.c_str(), &istat);
318  //read back file to check integrity of what was written
319  off_t readInput = 0;
320  uint32_t adlera = 1, adlerb = 0;
321  FILE* src = fopen(openIniFileName.c_str(), "r");
322 
323  //allocate buffer to write INI file
324  std::unique_ptr<unsigned char[]> outBuf = std::make_unique<unsigned char[]>(1024 * 1024);
325  while (readInput < istat.st_size) {
326  size_t toRead = readInput + 1024 * 1024 < istat.st_size ? 1024 * 1024 : istat.st_size - readInput;
327  fread(outBuf.get(), toRead, 1, src);
328  cms::Adler32(const_cast<const char*>(reinterpret_cast<char*>(outBuf.get())), toRead, adlera, adlerb);
329  readInput += toRead;
330  }
331  fclose(src);
332 
333  //clear serialization buffers
334  streamerCommon.getSerializerBuffer()->clearHeaderBuffer();
335 
336  //free output buffer needed only for the file write
337  outBuf.reset();
338 
339  uint32_t adler32c = (adlerb << 16) | adlera;
340  if (adler32c != preamble_adler32) {
341  throw cms::Exception("GlobalEvFOutputModule") << "Checksum mismatch of ini file -: " << openIniFileName
342  << " expected:" << preamble_adler32 << " obtained:" << adler32c;
343  } else {
344  LogDebug("GlobalEvFOutputModule") << "Ini file checksum -: " << streamLabel_ << " " << adler32c;
345  std::filesystem::rename(openIniFileName, edm::Service<evf::EvFDaqDirector>()->getInitFilePath(streamLabel_));
346  }
347 
348  return jsonDef;
349  }
ParameterSetID const & mainParameterSetID() const
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
std::string const & moduleLabel() const
edm::EDGetTokenT< edm::SendJobHeader::ParameterSetMap > psetToken_
ModuleDescription const & description() const
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
unsigned int uint32
Definition: MsgTools.h:13
BranchIDLists const * branchIDLists() const
Log< level::Info, false > LogInfo
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
edm::ParameterSet const & ps_
bool isValid() const
Definition: Hash.h:141
SelectedProductsForBranchType const & keptProducts() const
const ModuleDescription & moduleDescription() const
#define LogDebug(id)
void evf::GlobalEvFOutputModule::globalEndLuminosityBlock ( edm::LuminosityBlockForOutput const &  iLB) const
finalprivate

Definition at line 380 of file GlobalEvFOutputModule.cc.

References fms_, evf::FastMonitoringService::getEventsProcessedForLumi(), edm::LuminosityBlockForOutput::getRun(), edm::LuminosityBlockForOutput::index(), edm::RunForOutput::index(), edm::LuminosityBlockForOutput::luminosityBlock(), fed_dqm_sourceclient-live_cfg::path, edm_modernize_messagelogger::stat, streamLabel_, and AlCaHLTBitMon_QueryRunRegistry::string.

380  {
381  auto lumiWriter = luminosityBlockCache(iLB.index());
382  //close dat file
383  const_cast<evf::GlobalEvFOutputEventWriter*>(lumiWriter)->close();
384 
385  //auto jsonWriter = const_cast<GlobalEvFOutputJSONWriter*>(runCache(iLB.getRun().index()));
386  auto jsonDef = runCache(iLB.getRun().index());
387  GlobalEvFOutputJSONWriter jsonWriter(streamLabel_, jsonDef->outJsonDef_, jsonDef->outJsonDefName_);
388 
389  jsonWriter.fileAdler32_.value() = lumiWriter->get_adler32();
390  jsonWriter.accepted_.value() = lumiWriter->getAccepted();
391 
392  bool abortFlag = false;
393  jsonWriter.processed_.value() = fms_->getEventsProcessedForLumi(iLB.luminosityBlock(), &abortFlag);
394  if (abortFlag) {
395  edm::LogInfo("GlobalEvFOutputModule") << "Abort flag has been set. Output is suppressed";
396  return;
397  }
398 
399  if (jsonWriter.processed_.value() != 0) {
400  struct stat istat;
401  std::filesystem::path openDatFilePath = lumiWriter->getFilePath();
402  stat(openDatFilePath.string().c_str(), &istat);
403  jsonWriter.filesize_ = istat.st_size;
404  std::filesystem::rename(openDatFilePath.string().c_str(),
405  edm::Service<evf::EvFDaqDirector>()->getDatFilePath(iLB.luminosityBlock(), streamLabel_));
406  jsonWriter.filelist_ = openDatFilePath.filename().string();
407  } else {
408  //remove empty file when no event processing has occurred
409  remove(lumiWriter->getFilePath().c_str());
410  jsonWriter.filesize_ = 0;
411  jsonWriter.filelist_ = "";
412  jsonWriter.fileAdler32_.value() = -1; //no files in signed long
413  }
414 
415  //produce JSON file
416  jsonWriter.jsonMonitor_->snap(iLB.luminosityBlock());
417  const std::string outputJsonNameStream =
418  edm::Service<evf::EvFDaqDirector>()->getOutputJsonFilePath(iLB.luminosityBlock(), streamLabel_);
419  jsonWriter.jsonMonitor_->outputFullJSON(outputJsonNameStream, iLB.luminosityBlock());
420  }
evf::FastMonitoringService * fms_
Log< level::Info, false > LogInfo
unsigned int getEventsProcessedForLumi(unsigned int lumi, bool *abortFlag=nullptr)
void evf::GlobalEvFOutputModule::globalEndRun ( edm::RunForOutput const &  ) const
inlinefinalprivate

Definition at line 138 of file GlobalEvFOutputModule.cc.

138 {}
void evf::GlobalEvFOutputModule::write ( edm::EventForOutput const &  e)
finalprivatevirtual

Implements edm::core::OutputModuleCore.

Definition at line 378 of file GlobalEvFOutputModule.cc.

Referenced by pkg.AbstractPkg::generate().

378 {}
void evf::GlobalEvFOutputModule::writeLuminosityBlock ( edm::LuminosityBlockForOutput const &  )
inlinefinalprivatevirtual

Implements edm::core::OutputModuleCore.

Definition at line 136 of file GlobalEvFOutputModule.cc.

136 {}
void evf::GlobalEvFOutputModule::writeRun ( edm::RunForOutput const &  )
inlinefinalprivatevirtual

Implements edm::core::OutputModuleCore.

Definition at line 137 of file GlobalEvFOutputModule.cc.

137 {}

Member Data Documentation

evf::FastMonitoringService* evf::GlobalEvFOutputModule::fms_
private

Definition at line 151 of file GlobalEvFOutputModule.cc.

Referenced by globalEndLuminosityBlock(), and GlobalEvFOutputModule().

edm::ParameterSet const& evf::GlobalEvFOutputModule::ps_
private

Definition at line 146 of file GlobalEvFOutputModule.cc.

Referenced by beginStream(), and globalBeginRun().

edm::EDGetTokenT<edm::SendJobHeader::ParameterSetMap> evf::GlobalEvFOutputModule::psetToken_
private

Definition at line 149 of file GlobalEvFOutputModule.cc.

Referenced by globalBeginRun().

std::string evf::GlobalEvFOutputModule::streamLabel_
private
edm::EDGetTokenT<edm::TriggerResults> evf::GlobalEvFOutputModule::trToken_
private

Definition at line 148 of file GlobalEvFOutputModule.cc.

Referenced by acquire().