CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
edm::service::MessageLogger Class Reference

#include <FWCore/MessageService/plugins/MessageLogger.h>

Inheritance diagram for edm::service::MessageLogger:
edm::MessageLogger

Public Member Functions

 MessageLogger (ParameterSet const &, ActivityRegistry &)
 
void setThreadContext (ModuleCallingContext const &) final
 
- Public Member Functions inherited from edm::MessageLogger
virtual ~MessageLogger ()
 

Private Member Functions

void establish (const char *whichPhase)
 
void establishModule (const ModuleDescription &desc, const char *whichPhase)
 
void establishModule (unsigned int transitionIndex, const ModuleCallingContext &context, const char *whichPhase)
 
void jobFailure ()
 
void postAccessInputProcessBlock (GlobalContext const &)
 
void postBeginJob ()
 
void postBeginProcessBlock (GlobalContext const &)
 
void postEndJob ()
 
void postEndProcessBlock (GlobalContext const &)
 
void postESModule (eventsetup::EventSetupRecordKey const &, ESModuleCallingContext const &)
 
void postEvent (StreamContext const &)
 
void postFile (std::string const &)
 
void postGlobalBeginLumi (GlobalContext const &)
 
void postGlobalBeginRun (GlobalContext const &)
 
void postGlobalEndLumi (GlobalContext const &)
 
void postGlobalEndRun (GlobalContext const &)
 
void postModuleAccessInputProcessBlock (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleBeginJob (ModuleDescription const &)
 
void postModuleBeginProcessBlock (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleBeginStream (StreamContext const &, ModuleCallingContext const &)
 
void postModuleConstruction (ModuleDescription const &)
 
void postModuleDestruction (ModuleDescription const &)
 
void postModuleEndJob (ModuleDescription const &)
 
void postModuleEndProcessBlock (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleEndStream (StreamContext const &, ModuleCallingContext const &)
 
void postModuleEvent (StreamContext const &, ModuleCallingContext const &)
 
void postModuleEventAcquire (StreamContext const &, ModuleCallingContext const &)
 
void postModuleGlobalBeginLumi (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalBeginRun (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalEndLumi (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalEndRun (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleStreamBeginLumi (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamBeginRun (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamEndLumi (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamEndRun (StreamContext const &, ModuleCallingContext const &)
 
void postModuleWriteLumi (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleWriteRun (GlobalContext const &, ModuleCallingContext const &)
 
void postPathEvent (StreamContext const &, PathContext const &, HLTPathStatus const &)
 
void postSourceConstruction (ModuleDescription const &)
 
void postSourceEvent (StreamID)
 
void postSourceRunLumi ()
 
void postStreamBeginLumi (StreamContext const &)
 
void postStreamBeginRun (StreamContext const &)
 
void postStreamEndLumi (StreamContext const &)
 
void postStreamEndRun (StreamContext const &)
 
void preAccessInputProcessBlock (GlobalContext const &)
 
void preBeginProcessBlock (GlobalContext const &)
 
void preEndJob ()
 
void preEndProcessBlock (GlobalContext const &)
 
void preESModule (eventsetup::EventSetupRecordKey const &, ESModuleCallingContext const &)
 
void preEvent (StreamContext const &)
 
void preFile (std::string const &)
 
void preFileClose (std::string const &)
 
void preGlobalBeginLumi (GlobalContext const &)
 
void preGlobalBeginRun (GlobalContext const &)
 
void preGlobalEndLumi (GlobalContext const &)
 
void preGlobalEndRun (GlobalContext const &)
 
void preModuleAccessInputProcessBlock (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleBeginJob (ModuleDescription const &)
 
void preModuleBeginProcessBlock (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleBeginStream (StreamContext const &, ModuleCallingContext const &)
 
void preModuleConstruction (ModuleDescription const &)
 
void preModuleDestruction (ModuleDescription const &)
 
void preModuleEndJob (ModuleDescription const &)
 
void preModuleEndProcessBlock (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleEndStream (StreamContext const &, ModuleCallingContext const &)
 
void preModuleEvent (StreamContext const &, ModuleCallingContext const &)
 
void preModuleEventAcquire (StreamContext const &, ModuleCallingContext const &)
 
void preModuleGlobalBeginLumi (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalBeginRun (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalEndLumi (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalEndRun (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleStreamBeginLumi (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamBeginRun (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamEndLumi (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamEndRun (StreamContext const &, ModuleCallingContext const &)
 
void preModuleWriteLumi (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleWriteRun (GlobalContext const &, ModuleCallingContext const &)
 
void prePathEvent (StreamContext const &, PathContext const &)
 
void preSourceConstruction (ModuleDescription const &)
 
void preSourceEvent (StreamID)
 
void preSourceRunLumi ()
 
void preStreamBeginLumi (StreamContext const &)
 
void preStreamBeginRun (StreamContext const &)
 
void preStreamEndLumi (StreamContext const &)
 
void preStreamEndRun (StreamContext const &)
 
void unEstablish (const char *whichPhase)
 
void unEstablishModule (const ModuleDescription &desc, const char *whichPhase)
 
void unEstablishModule (const ModuleCallingContext &desc, const char *whichPhase)
 

Static Private Member Functions

static void summarizeInJobReport ()
 

Private Attributes

bool debugEnabled_
 
std::set< std::string > debugEnabledModules_
 
unsigned int lumiInfoBegin_ = 0
 
bool messageServicePSetHasBeenValidated_
 
std::string messageServicePSetValidatationResults_
 
bool nonModule_debugEnabled
 
bool nonModule_errorEnabled
 
bool nonModule_infoEnabled
 
bool nonModule_warningEnabled
 
unsigned int processBlockInfoBegin_ = 0
 
unsigned int runInfoBegin_ = 0
 
std::map< std::string, messagelogger::ELseverityLevelsuppression_levels_
 
std::vector< std::array< char, 64 > > transitionInfoCache_
 

Static Private Attributes

static bool anyDebugEnabled_ = false
 
static bool everyDebugEnabled_ = false
 
static bool fjrSummaryRequested_ = false
 

Additional Inherited Members

- Protected Member Functions inherited from edm::MessageLogger
 MessageLogger ()=default
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 47 of file MessageLogger.h.

Constructor & Destructor Documentation

◆ MessageLogger()

MessageLogger::MessageLogger ( ParameterSet const &  iPS,
ActivityRegistry iRegistry 
)

Definition at line 115 of file MessageLogger.cc.

References anyDebugEnabled_, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), edm::MessageDrop::debugEnabled, debugEnabledModules_, remoteMonitoring_LASER_era2018_cfg::debugModules, MillePedeFileConverter_cfg::e, edm::ELseverityLevel::ELsev_error, edm::ELseverityLevel::ELsev_fwkInfo, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, edm::MessageDrop::errorEnabled, everyDebugEnabled_, fjrSummaryRequested_, edm::ParameterSet::getUntrackedParameter(), edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, jobFailure(), edm::MessageDrop::jobMode, lumiInfoBegin_, edm::service::SystemBounds::maxNumberOfConcurrentLuminosityBlocks(), edm::service::SystemBounds::maxNumberOfConcurrentRuns(), edm::service::SystemBounds::maxNumberOfStreams(), messageServicePSetValidatationResults_, edm::MessageLoggerQ::MLqCFG(), edm::MessageLoggerQ::MLqMOD(), nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, postAccessInputProcessBlock(), postBeginJob(), postBeginProcessBlock(), postEndJob(), postEndProcessBlock(), postESModule(), postEvent(), postFile(), postGlobalBeginLumi(), postGlobalBeginRun(), postGlobalEndLumi(), postGlobalEndRun(), postModuleAccessInputProcessBlock(), postModuleBeginJob(), postModuleBeginProcessBlock(), postModuleBeginStream(), postModuleConstruction(), postModuleDestruction(), postModuleEndJob(), postModuleEndProcessBlock(), postModuleEndStream(), postModuleEvent(), postModuleEventAcquire(), postModuleGlobalBeginLumi(), postModuleGlobalBeginRun(), postModuleGlobalEndLumi(), postModuleGlobalEndRun(), postModuleStreamBeginLumi(), postModuleStreamBeginRun(), postModuleStreamEndLumi(), postModuleStreamEndRun(), postModuleWriteLumi(), postModuleWriteRun(), postPathEvent(), postSourceConstruction(), postSourceEvent(), postSourceRunLumi(), postStreamBeginLumi(), postStreamBeginRun(), postStreamEndLumi(), postStreamEndRun(), preAccessInputProcessBlock(), preBeginProcessBlock(), preEndJob(), preEndProcessBlock(), preESModule(), preEvent(), preFile(), preFileClose(), preGlobalBeginLumi(), preGlobalBeginRun(), preGlobalEndLumi(), preGlobalEndRun(), preModuleAccessInputProcessBlock(), preModuleBeginJob(), preModuleBeginProcessBlock(), preModuleBeginStream(), preModuleConstruction(), preModuleDestruction(), preModuleEndJob(), preModuleEndProcessBlock(), preModuleEndStream(), preModuleEvent(), preModuleEventAcquire(), preModuleGlobalBeginLumi(), preModuleGlobalBeginRun(), preModuleGlobalEndLumi(), preModuleGlobalEndRun(), preModuleStreamBeginLumi(), preModuleStreamBeginRun(), preModuleStreamEndLumi(), preModuleStreamEndRun(), preModuleWriteLumi(), preModuleWriteRun(), prePathEvent(), preSourceConstruction(), preSourceEvent(), preSourceRunLumi(), preStreamBeginLumi(), preStreamBeginRun(), preStreamEndLumi(), preStreamEndRun(), processBlockInfoBegin_, runInfoBegin_, edm::setMaxLoggedErrorsSummaryIndicies(), AlCaHLTBitMon_QueryRunRegistry::string, Log4cplus_cff::suppressDebug, MessageLogger_ReleaseValidation_cfi::suppressFwkInfo, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::suppressInfo, suppression_levels_, Log4cplus_cff::suppressWarning, transitionInfoCache_, edm::MessageDrop::warningEnabled, edm::ActivityRegistry::watchJobFailure(), edm::ActivityRegistry::watchPostAccessInputProcessBlock(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostBeginProcessBlock(), edm::ActivityRegistry::watchPostCloseFile(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostEndProcessBlock(), edm::ActivityRegistry::watchPostESModule(), edm::ActivityRegistry::watchPostEvent(), edm::ActivityRegistry::watchPostGlobalBeginLumi(), edm::ActivityRegistry::watchPostGlobalBeginRun(), edm::ActivityRegistry::watchPostGlobalEndLumi(), edm::ActivityRegistry::watchPostGlobalEndRun(), edm::ActivityRegistry::watchPostModuleAccessInputProcessBlock(), edm::ActivityRegistry::watchPostModuleBeginJob(), edm::ActivityRegistry::watchPostModuleBeginProcessBlock(), edm::ActivityRegistry::watchPostModuleBeginStream(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPostModuleDestruction(), edm::ActivityRegistry::watchPostModuleEndJob(), edm::ActivityRegistry::watchPostModuleEndProcessBlock(), edm::ActivityRegistry::watchPostModuleEndStream(), edm::ActivityRegistry::watchPostModuleEvent(), edm::ActivityRegistry::watchPostModuleEventAcquire(), edm::ActivityRegistry::watchPostModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPostModuleGlobalBeginRun(), edm::ActivityRegistry::watchPostModuleGlobalEndLumi(), edm::ActivityRegistry::watchPostModuleGlobalEndRun(), edm::ActivityRegistry::watchPostModuleStreamBeginLumi(), edm::ActivityRegistry::watchPostModuleStreamBeginRun(), edm::ActivityRegistry::watchPostModuleStreamEndLumi(), edm::ActivityRegistry::watchPostModuleStreamEndRun(), edm::ActivityRegistry::watchPostModuleWriteLumi(), edm::ActivityRegistry::watchPostModuleWriteRun(), edm::ActivityRegistry::watchPostOpenFile(), edm::ActivityRegistry::watchPostPathEvent(), edm::ActivityRegistry::watchPostSourceConstruction(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPostSourceLumi(), edm::ActivityRegistry::watchPostSourceRun(), edm::ActivityRegistry::watchPostStreamBeginLumi(), edm::ActivityRegistry::watchPostStreamBeginRun(), edm::ActivityRegistry::watchPostStreamEndLumi(), edm::ActivityRegistry::watchPostStreamEndRun(), edm::ActivityRegistry::watchPreAccessInputProcessBlock(), edm::ActivityRegistry::watchPreallocate(), edm::ActivityRegistry::watchPreBeginProcessBlock(), edm::ActivityRegistry::watchPreCloseFile(), edm::ActivityRegistry::watchPreEndJob(), edm::ActivityRegistry::watchPreEndProcessBlock(), edm::ActivityRegistry::watchPreESModule(), edm::ActivityRegistry::watchPreEvent(), edm::ActivityRegistry::watchPreGlobalBeginLumi(), edm::ActivityRegistry::watchPreGlobalBeginRun(), edm::ActivityRegistry::watchPreGlobalEndLumi(), edm::ActivityRegistry::watchPreGlobalEndRun(), edm::ActivityRegistry::watchPreModuleAccessInputProcessBlock(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPreModuleBeginProcessBlock(), edm::ActivityRegistry::watchPreModuleBeginStream(), edm::ActivityRegistry::watchPreModuleConstruction(), edm::ActivityRegistry::watchPreModuleDestruction(), edm::ActivityRegistry::watchPreModuleEndJob(), edm::ActivityRegistry::watchPreModuleEndProcessBlock(), edm::ActivityRegistry::watchPreModuleEndStream(), edm::ActivityRegistry::watchPreModuleEvent(), edm::ActivityRegistry::watchPreModuleEventAcquire(), edm::ActivityRegistry::watchPreModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPreModuleGlobalBeginRun(), edm::ActivityRegistry::watchPreModuleGlobalEndLumi(), edm::ActivityRegistry::watchPreModuleGlobalEndRun(), edm::ActivityRegistry::watchPreModuleStreamBeginLumi(), edm::ActivityRegistry::watchPreModuleStreamBeginRun(), edm::ActivityRegistry::watchPreModuleStreamEndLumi(), edm::ActivityRegistry::watchPreModuleStreamEndRun(), edm::ActivityRegistry::watchPreModuleWriteLumi(), edm::ActivityRegistry::watchPreModuleWriteRun(), edm::ActivityRegistry::watchPreOpenFile(), edm::ActivityRegistry::watchPrePathEvent(), edm::ActivityRegistry::watchPreSourceConstruction(), edm::ActivityRegistry::watchPreSourceEvent(), edm::ActivityRegistry::watchPreSourceLumi(), edm::ActivityRegistry::watchPreSourceRun(), edm::ActivityRegistry::watchPreStreamBeginLumi(), edm::ActivityRegistry::watchPreStreamBeginRun(), edm::ActivityRegistry::watchPreStreamEndLumi(), and edm::ActivityRegistry::watchPreStreamEndRun().

116  : debugEnabled_(false),
119  nonModule_debugEnabled(false),
120  nonModule_infoEnabled(true),
122  nonModule_errorEnabled(true) // change log 20
123  {
124  // prepare cfg validation string for later use
126  messageServicePSetValidatationResults_ = validator(iPS); // change log 12
127 
128  typedef std::vector<std::string> vString;
129  vString empty_vString;
130  vString debugModules;
131  vString suppressDebug;
132  vString suppressInfo;
133  vString suppressFwkInfo;
134  vString suppressWarning;
135  vString suppressError; // change log 20
136 
137  try { // change log 13
138  // decide whether a summary should be placed in job report
139  fjrSummaryRequested_ = iPS.getUntrackedParameter<bool>("messageSummaryToJobReport", false);
140 
141  // grab list of debug-enabled modules
142  debugModules = iPS.getUntrackedParameter<vString>("debugModules", empty_vString);
143 
144  // grab lists of suppressLEVEL modules
145  suppressDebug = iPS.getUntrackedParameter<vString>("suppressDebug", empty_vString);
146 
147  suppressInfo = iPS.getUntrackedParameter<vString>("suppressInfo", empty_vString);
148 
149  suppressFwkInfo = iPS.getUntrackedParameter<vString>("suppressFwkInfo", empty_vString);
150 
151  suppressWarning = iPS.getUntrackedParameter<vString>("suppressWarning", empty_vString);
152 
153  suppressError = // change log 20
154  iPS.getUntrackedParameter<vString>("suppressError", empty_vString);
155  } catch (cms::Exception& e) { // change log 13
156  }
157 
158  // Use these lists to prepare a map to use in tracking suppression
159 
160  // Do suppressDebug first and suppressError last to get proper order
161  for (vString::const_iterator it = suppressDebug.begin(); it != suppressDebug.end(); ++it) {
163  }
164 
165  for (vString::const_iterator it = suppressInfo.begin(); it != suppressInfo.end(); ++it) {
167  }
168 
169  for (vString::const_iterator it = suppressFwkInfo.begin(); it != suppressFwkInfo.end(); ++it) {
171  }
172 
173  for (vString::const_iterator it = suppressWarning.begin(); it != suppressWarning.end(); ++it) {
175  }
176 
177  for (vString::const_iterator it = suppressError.begin(); // change log 20
178  it != suppressError.end();
179  ++it) {
181  }
182 
183  // set up for tracking whether current module is debug-enabled
184  // (and info-enabled and warning-enabled)
185  if (debugModules.empty()) {
186  anyDebugEnabled_ = false; // change log 11
187  MessageDrop::instance()->debugEnabled = false; // change log 1
188  } else {
189  anyDebugEnabled_ = true; // change log 11
191  // this will be over-ridden when specific modules are entered
192  }
193 
194  // if ( debugModules.empty()) anyDebugEnabled_ = true; // wrong; change log 11
195  for (vString::const_iterator it = debugModules.begin(); it != debugModules.end(); ++it) {
196  if (*it == "*") {
197  everyDebugEnabled_ = true;
198  } else {
199  debugEnabledModules_.insert(*it);
200  }
201  }
202 
203  // change log 7
205  std::string* jm_p = new std::string(jm);
206  MessageLoggerQ::MLqMOD(jm_p); // change log 9
207 
208  MessageLoggerQ::MLqCFG(new ParameterSet(iPS)); // change log 9
209 
210  iRegistry.watchPreallocate([this](edm::service::SystemBounds const& iBounds) {
211  //reserve the proper amount of space to record the transition info
212  constexpr unsigned int maxNumberOfConcurrentProcessBlocks = 1;
213  this->transitionInfoCache_.resize(iBounds.maxNumberOfStreams() +
215  iBounds.maxNumberOfConcurrentRuns() + maxNumberOfConcurrentProcessBlocks);
219 
221  });
222 
224  iRegistry.watchPreEndJob(this, &MessageLogger::preEndJob);
225  iRegistry.watchPostEndJob(this, &MessageLogger::postEndJob);
226  iRegistry.watchJobFailure(this, &MessageLogger::jobFailure); // change log 14
227 
230  // change log 3
231 
234  // change log 3
235 
238 
241 
244 
247  // change log 14:
248  iRegistry.watchPreSourceRun([this](RunIndex) { preSourceRunLumi(); });
249  iRegistry.watchPostSourceRun([this](RunIndex) { postSourceRunLumi(); });
250  iRegistry.watchPreSourceLumi([this](LuminosityBlockIndex) { preSourceRunLumi(); });
252  iRegistry.watchPreOpenFile(this, &MessageLogger::preFile);
253  iRegistry.watchPostOpenFile(this, &MessageLogger::postFile);
256 
257  // change log 13:
258  // change log 15
263 
268 
277 
284 
297 
298  iRegistry.watchPreEvent(this, &MessageLogger::preEvent);
299  iRegistry.watchPostEvent(this, &MessageLogger::postEvent);
300 
309 
316 
325 
328 
331 
332  MessageDrop* messageDrop = MessageDrop::instance();
333  nonModule_debugEnabled = messageDrop->debugEnabled;
334  nonModule_infoEnabled = messageDrop->infoEnabled;
336  nonModule_errorEnabled = messageDrop->errorEnabled;
337  } // ctor
void preModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
void preModuleEvent(StreamContext const &, ModuleCallingContext const &)
std::vector< std::array< char, 64 > > transitionInfoCache_
void watchPostModuleGlobalEndLumi(PostModuleGlobalEndLumi::slot_type const &iSlot)
void watchPostModuleConstruction(PostModuleConstruction::slot_type const &iSlot)
void watchPreModuleGlobalBeginRun(PreModuleGlobalBeginRun::slot_type const &iSlot)
void postModuleEvent(StreamContext const &, ModuleCallingContext const &)
void preModuleEndJob(ModuleDescription const &)
void postGlobalEndRun(GlobalContext const &)
void preFile(std::string const &)
void watchPreEvent(PreEvent::slot_type const &iSlot)
void postStreamBeginLumi(StreamContext const &)
void watchPreAccessInputProcessBlock(PreAccessInputProcessBlock::slot_type const &iSlot)
void preStreamEndLumi(StreamContext const &)
void preStreamBeginLumi(StreamContext const &)
void preModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
void watchPrePathEvent(PrePathEvent::slot_type const &iSlot)
void watchPreallocate(Preallocate::slot_type const &iSlot)
void watchPostModuleEndProcessBlock(PostModuleEndProcessBlock::slot_type const &iSlot)
void postModuleConstruction(ModuleDescription const &)
void watchPreESModule(PreESModule::slot_type const &iSlot)
void watchPreModuleEventAcquire(PreModuleEventAcquire::slot_type const &iSlot)
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
void postModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
void watchPostModuleEndStream(PostModuleEndStream::slot_type const &iSlot)
void watchPreModuleEvent(PreModuleEvent::slot_type const &iSlot)
void watchPreModuleConstruction(PreModuleConstruction::slot_type const &iSlot)
void watchPreModuleEndProcessBlock(PreModuleEndProcessBlock::slot_type const &iSlot)
void preModuleEventAcquire(StreamContext const &, ModuleCallingContext const &)
void postGlobalBeginLumi(GlobalContext const &)
void watchPreGlobalEndLumi(PreGlobalEndLumi::slot_type const &iSlot)
void preEndProcessBlock(GlobalContext const &)
void preModuleBeginJob(ModuleDescription const &)
void postModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
void watchPostEvent(PostEvent::slot_type const &iSlot)
void postGlobalBeginRun(GlobalContext const &)
void preESModule(eventsetup::EventSetupRecordKey const &, ESModuleCallingContext const &)
unsigned int maxNumberOfStreams() const
Definition: SystemBounds.h:35
void watchPreStreamEndRun(PreStreamEndRun::slot_type const &iSlot)
void watchPreSourceConstruction(PreSourceConstruction::slot_type const &iSlot)
void watchPostSourceConstruction(PostSourceConstruction::slot_type const &iSlot)
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void watchPreGlobalBeginLumi(PreGlobalBeginLumi::slot_type const &iSlot)
void watchPostStreamEndLumi(PostStreamEndLumi::slot_type const &iSlot)
void preGlobalEndLumi(GlobalContext const &)
void watchPostEndProcessBlock(PostEndProcessBlock::slot_type const &iSlot)
void preAccessInputProcessBlock(GlobalContext const &)
void watchPreModuleDestruction(PreModuleDestruction::slot_type const &iSlot)
void watchPostPathEvent(PostPathEvent::slot_type const &iSlot)
void watchPostModuleEvent(PostModuleEvent::slot_type const &iSlot)
void watchPostModuleGlobalBeginLumi(PostModuleGlobalBeginLumi::slot_type const &iSlot)
void watchPostModuleStreamEndLumi(PostModuleStreamEndLumi::slot_type const &iSlot)
static std::string jobMode
Definition: MessageDrop.h:69
void watchPostGlobalBeginLumi(PostGlobalBeginLumi::slot_type const &iSlot)
void postESModule(eventsetup::EventSetupRecordKey const &, ESModuleCallingContext const &)
void watchPostModuleStreamBeginRun(PostModuleStreamBeginRun::slot_type const &iSlot)
void watchPostSourceEvent(PostSourceEvent::slot_type const &iSlot)
void watchPreModuleAccessInputProcessBlock(PreModuleAccessInputProcessBlock::slot_type const &iSlot)
void preSourceConstruction(ModuleDescription const &)
void watchPreBeginProcessBlock(PreBeginProcessBlock::slot_type const &iSlot)
void watchPreEndProcessBlock(PreEndProcessBlock::slot_type const &iSlot)
void setMaxLoggedErrorsSummaryIndicies(unsigned int iMax)
void watchPreModuleBeginStream(PreModuleBeginStream::slot_type const &iSlot)
void watchPostESModule(PostESModule::slot_type const &iSlot)
void watchPreStreamEndLumi(PreStreamEndLumi::slot_type const &iSlot)
void preGlobalBeginLumi(GlobalContext const &)
void watchPreModuleGlobalEndRun(PreModuleGlobalEndRun::slot_type const &iSlot)
void postModuleEventAcquire(StreamContext const &, ModuleCallingContext const &)
void postStreamEndRun(StreamContext const &)
void preModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
void preGlobalBeginRun(GlobalContext const &)
void postModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
void watchPostModuleWriteRun(PostModuleWriteRun::slot_type const &iSlot)
void preModuleDestruction(ModuleDescription const &)
void watchPostModuleWriteLumi(PostModuleWriteLumi::slot_type const &iSlot)
void watchJobFailure(JobFailure::slot_type const &iSlot)
convenience function for attaching to signal
void postModuleWriteRun(GlobalContext const &, ModuleCallingContext const &)
void watchPreOpenFile(PreOpenFile::slot_type const &iSlot)
void preModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
void watchPostGlobalBeginRun(PostGlobalBeginRun::slot_type const &iSlot)
void postFile(std::string const &)
void postEvent(StreamContext const &)
void postModuleEndProcessBlock(GlobalContext const &, ModuleCallingContext const &)
void watchPostCloseFile(PostCloseFile::slot_type const &iSlot)
void watchPreGlobalEndRun(PreGlobalEndRun::slot_type const &iSlot)
void postModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
void preModuleWriteLumi(GlobalContext const &, ModuleCallingContext const &)
void watchPostBeginProcessBlock(PostBeginProcessBlock::slot_type const &iSlot)
void watchPostSourceRun(PostSourceRun::slot_type const &iSlot)
void watchPostStreamBeginLumi(PostStreamBeginLumi::slot_type const &iSlot)
static void MLqCFG(ParameterSet *p)
void watchPreSourceLumi(PreSourceLumi::slot_type const &iSlot)
void prePathEvent(StreamContext const &, PathContext const &)
void watchPreModuleBeginProcessBlock(PreModuleBeginProcessBlock::slot_type const &iSlot)
void watchPostModuleEventAcquire(PostModuleEventAcquire::slot_type const &iSlot)
void postBeginProcessBlock(GlobalContext const &)
void watchPreModuleEndJob(PreModuleEndJob::slot_type const &iSlot)
void preModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
void watchPostGlobalEndLumi(PostGlobalEndLumi::slot_type const &iSlot)
void preFileClose(std::string const &)
void postModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
void preBeginProcessBlock(GlobalContext const &)
unsigned int processBlockInfoBegin_
void watchPreSourceRun(PreSourceRun::slot_type const &iSlot)
void preModuleConstruction(ModuleDescription const &)
void postStreamBeginRun(StreamContext const &)
void watchPreModuleBeginJob(PreModuleBeginJob::slot_type const &iSlot)
void watchPostStreamEndRun(PostStreamEndRun::slot_type const &iSlot)
void postModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
void watchPreModuleGlobalBeginLumi(PreModuleGlobalBeginLumi::slot_type const &iSlot)
void watchPostModuleStreamEndRun(PostModuleStreamEndRun::slot_type const &iSlot)
void preModuleBeginProcessBlock(GlobalContext const &, ModuleCallingContext const &)
void watchPostModuleBeginProcessBlock(PostModuleBeginProcessBlock::slot_type const &iSlot)
void watchPreGlobalBeginRun(PreGlobalBeginRun::slot_type const &iSlot)
void watchPreModuleStreamBeginLumi(PreModuleStreamBeginLumi::slot_type const &iSlot)
std::map< std::string, messagelogger::ELseverityLevel > suppression_levels_
void postStreamEndLumi(StreamContext const &)
void postPathEvent(StreamContext const &, PathContext const &, HLTPathStatus const &)
void postModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
void watchPostModuleBeginStream(PostModuleBeginStream::slot_type const &iSlot)
void preModuleAccessInputProcessBlock(GlobalContext const &, ModuleCallingContext const &)
void watchPostAccessInputProcessBlock(PostAccessInputProcessBlock::slot_type const &iSlot)
std::set< std::string > debugEnabledModules_
void watchPostSourceLumi(PostSourceLumi::slot_type const &iSlot)
void watchPreCloseFile(PreCloseFile::slot_type const &iSlot)
void watchPostModuleGlobalEndRun(PostModuleGlobalEndRun::slot_type const &iSlot)
void watchPostModuleStreamBeginLumi(PostModuleStreamBeginLumi::slot_type const &iSlot)
void postSourceConstruction(ModuleDescription const &)
void watchPreModuleStreamEndLumi(PreModuleStreamEndLumi::slot_type const &iSlot)
void watchPreModuleStreamBeginRun(PreModuleStreamBeginRun::slot_type const &iSlot)
static void MLqMOD(std::string *jm)
void watchPostGlobalEndRun(PostGlobalEndRun::slot_type const &iSlot)
void watchPreStreamBeginLumi(PreStreamBeginLumi::slot_type const &iSlot)
void watchPostOpenFile(PostOpenFile::slot_type const &iSlot)
void watchPreModuleEndStream(PreModuleEndStream::slot_type const &iSlot)
void postModuleEndJob(ModuleDescription const &)
void postModuleDestruction(ModuleDescription const &)
void watchPreModuleWriteRun(PreModuleWriteRun::slot_type const &iSlot)
void preStreamEndRun(StreamContext const &)
void postEndProcessBlock(GlobalContext const &)
void watchPreEndJob(PreEndJob::slot_type const &iSlot)
void postModuleBeginProcessBlock(GlobalContext const &, ModuleCallingContext const &)
void watchPostStreamBeginRun(PostStreamBeginRun::slot_type const &iSlot)
unsigned int maxNumberOfConcurrentRuns() const
Definition: SystemBounds.h:36
void postModuleAccessInputProcessBlock(GlobalContext const &, ModuleCallingContext const &)
void postModuleBeginJob(ModuleDescription const &)
void watchPreStreamBeginRun(PreStreamBeginRun::slot_type const &iSlot)
void watchPostModuleAccessInputProcessBlock(PostModuleAccessInputProcessBlock::slot_type const &iSlot)
void watchPostModuleDestruction(PostModuleDestruction::slot_type const &iSlot)
void preModuleEndStream(StreamContext const &, ModuleCallingContext const &)
void watchPreModuleStreamEndRun(PreModuleStreamEndRun::slot_type const &iSlot)
void preModuleEndProcessBlock(GlobalContext const &, ModuleCallingContext const &)
void watchPostModuleBeginJob(PostModuleBeginJob::slot_type const &iSlot)
void watchPostModuleGlobalBeginRun(PostModuleGlobalBeginRun::slot_type const &iSlot)
void postAccessInputProcessBlock(GlobalContext const &)
void watchPreModuleWriteLumi(PreModuleWriteLumi::slot_type const &iSlot)
void preModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
void postGlobalEndLumi(GlobalContext const &)
void preModuleWriteRun(GlobalContext const &, ModuleCallingContext const &)
void postModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
void watchPreSourceEvent(PreSourceEvent::slot_type const &iSlot)
void postModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
void preModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
unsigned int maxNumberOfConcurrentLuminosityBlocks() const
Definition: SystemBounds.h:37
void preGlobalEndRun(GlobalContext const &)
void preEvent(StreamContext const &)
std::string messageServicePSetValidatationResults_
void watchPostModuleEndJob(PostModuleEndJob::slot_type const &iSlot)
void preModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
void preStreamBeginRun(StreamContext const &)
void postModuleEndStream(StreamContext const &, ModuleCallingContext const &)
void watchPreModuleGlobalEndLumi(PreModuleGlobalEndLumi::slot_type const &iSlot)
void postModuleWriteLumi(GlobalContext const &, ModuleCallingContext const &)
void preModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal

Member Function Documentation

◆ establish()

void MessageLogger::establish ( const char *  whichPhase)
private

Definition at line 518 of file MessageLogger.cc.

References anyDebugEnabled_, edm::MessageDrop::debugEnabled, debugEnabledModules_, edm::ELseverityLevel::ELsev_error, edm::ELseverityLevel::ELsev_fwkInfo, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, edm::MessageDrop::errorEnabled, everyDebugEnabled_, edm::MessageDrop::fwkInfoEnabled, edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, edm::MessageDrop::setSinglet(), suppression_levels_, and edm::MessageDrop::warningEnabled.

Referenced by preFile(), preFileClose(), preSourceEvent(), and preSourceRunLumi().

518  {
519  MessageDrop* messageDrop = MessageDrop::instance();
520  messageDrop->setSinglet(state); // Change Log 17
521  if (!anyDebugEnabled_) {
522  messageDrop->debugEnabled = false;
523  } else if (everyDebugEnabled_) {
524  messageDrop->debugEnabled = true;
525  } else {
526  messageDrop->debugEnabled = debugEnabledModules_.count(state); // change log 8
527  }
528  std::map<const std::string, ELseverityLevel>::const_iterator it =
529  suppression_levels_.find(state); // change log 8
530  if (it != suppression_levels_.end()) {
531  messageDrop->debugEnabled = messageDrop->debugEnabled && (it->second < ELseverityLevel::ELsev_success);
532  messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info);
533  messageDrop->fwkInfoEnabled = (it->second < ELseverityLevel::ELsev_fwkInfo);
534  messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning);
535  messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error);
536  } else {
537  messageDrop->infoEnabled = true;
538  messageDrop->fwkInfoEnabled = true;
539  messageDrop->warningEnabled = true;
540  messageDrop->errorEnabled = true;
541  }
542  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::map< std::string, messagelogger::ELseverityLevel > suppression_levels_
std::set< std::string > debugEnabledModules_

◆ establishModule() [1/2]

void MessageLogger::establishModule ( const ModuleDescription desc,
const char *  whichPhase 
)
private

Definition at line 379 of file MessageLogger.cc.

References anyDebugEnabled_, edm::MessageDrop::debugEnabled, debugEnabledModules_, submitPVResolutionJobs::desc, edm::ELseverityLevel::ELsev_error, edm::ELseverityLevel::ELsev_fwkInfo, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, edm::MessageDrop::errorEnabled, everyDebugEnabled_, edm::MessageDrop::fwkInfoEnabled, edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, edm::MessageDrop::setModuleWithPhase(), suppression_levels_, and edm::MessageDrop::warningEnabled.

Referenced by preModuleAccessInputProcessBlock(), preModuleBeginJob(), preModuleBeginProcessBlock(), preModuleBeginStream(), preModuleConstruction(), preModuleDestruction(), preModuleEndJob(), preModuleEndProcessBlock(), preModuleEndStream(), preModuleEvent(), preModuleEventAcquire(), preModuleGlobalBeginLumi(), preModuleGlobalBeginRun(), preModuleGlobalEndLumi(), preModuleGlobalEndRun(), preModuleStreamBeginLumi(), preModuleStreamBeginRun(), preModuleStreamEndLumi(), preModuleStreamEndRun(), preModuleWriteLumi(), preModuleWriteRun(), preSourceConstruction(), setThreadContext(), and unEstablishModule().

381  {
382  MessageDrop* messageDrop = MessageDrop::instance();
383 
384  // std::cerr << "establishModule( " << desc.moduleName() << ")\n";
385  // Change Log 17
386  messageDrop->setModuleWithPhase(desc.moduleName(), desc.moduleLabel(), desc.id(), whichPhase);
387  // Removed caching per change 17 - caching is now done in MessageDrop.cc
388  // in theContext() method, and only happens if a message is actually issued.
389 
390  if (!anyDebugEnabled_) {
391  messageDrop->debugEnabled = false;
392  } else if (everyDebugEnabled_) {
393  messageDrop->debugEnabled = true;
394  } else {
395  messageDrop->debugEnabled = debugEnabledModules_.count(desc.moduleLabel());
396  }
397 
398  auto it = suppression_levels_.find(desc.moduleLabel());
399  if (it != suppression_levels_.end()) {
400  messageDrop->debugEnabled = messageDrop->debugEnabled && (it->second < ELseverityLevel::ELsev_success);
401  messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info);
402  messageDrop->fwkInfoEnabled = (it->second < ELseverityLevel::ELsev_fwkInfo);
403  messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning);
404  messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error);
405  } else {
406  messageDrop->infoEnabled = true;
407  messageDrop->fwkInfoEnabled = true;
408  messageDrop->warningEnabled = true;
409  messageDrop->errorEnabled = true;
410  }
411  } // establishModule
void setModuleWithPhase(std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
Definition: MessageDrop.cc:155
static MessageDrop * instance()
Definition: MessageDrop.cc:33
std::map< std::string, messagelogger::ELseverityLevel > suppression_levels_
std::set< std::string > debugEnabledModules_

◆ establishModule() [2/2]

void MessageLogger::establishModule ( unsigned int  transitionIndex,
const ModuleCallingContext context,
const char *  whichPhase 
)
private

Definition at line 413 of file MessageLogger.cc.

References anyDebugEnabled_, edm::MessageDrop::debugEnabled, debugEnabledModules_, submitPVResolutionJobs::desc, edm::ELseverityLevel::ELsev_error, edm::ELseverityLevel::ELsev_fwkInfo, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, edm::MessageDrop::errorEnabled, everyDebugEnabled_, edm::MessageDrop::fwkInfoEnabled, edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, lumiInfoBegin_, SiStripPI::max, mod(), edm::MessageDrop::runEvent, edm::MessageDrop::setModuleWithPhase(), edm::MessageDrop::streamID, suppression_levels_, transitionInfoCache_, and edm::MessageDrop::warningEnabled.

416  {
417  MessageDrop* messageDrop = MessageDrop::instance();
418 
419  // std::cerr << "establishModule( " << desc.moduleName() << ")\n";
420  // Change Log 17
421  auto const desc = mod.moduleDescription();
422  messageDrop->runEvent = transitionInfoCache_[transitionIndex].begin();
423  messageDrop->setModuleWithPhase(desc->moduleName(), desc->moduleLabel(), desc->id(), whichPhase);
424  messageDrop->streamID = transitionIndex;
425  if (transitionIndex >= lumiInfoBegin_) {
427  }
428  // Removed caching per change 17 - caching is now done in MessageDrop.cc
429  // in theContext() method, and only happens if a message is actually issued.
430 
431  if (!anyDebugEnabled_) {
432  messageDrop->debugEnabled = false;
433  } else if (everyDebugEnabled_) {
434  messageDrop->debugEnabled = true;
435  } else {
436  messageDrop->debugEnabled = debugEnabledModules_.count(desc->moduleLabel());
437  }
438 
439  auto it = suppression_levels_.find(desc->moduleLabel());
440  if (it != suppression_levels_.end()) {
441  messageDrop->debugEnabled = messageDrop->debugEnabled && (it->second < ELseverityLevel::ELsev_success);
442  messageDrop->infoEnabled = (it->second < ELseverityLevel::ELsev_info);
443  messageDrop->fwkInfoEnabled = (it->second < ELseverityLevel::ELsev_fwkInfo);
444  messageDrop->warningEnabled = (it->second < ELseverityLevel::ELsev_warning);
445  messageDrop->errorEnabled = (it->second < ELseverityLevel::ELsev_error);
446  } else {
447  messageDrop->infoEnabled = true;
448  messageDrop->fwkInfoEnabled = true;
449  messageDrop->warningEnabled = true;
450  messageDrop->errorEnabled = true;
451  }
452  } // establishModule
std::vector< std::array< char, 64 > > transitionInfoCache_
void setModuleWithPhase(std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
Definition: MessageDrop.cc:155
static MessageDrop * instance()
Definition: MessageDrop.cc:33
unsigned int streamID
Definition: MessageDrop.h:62
std::map< std::string, messagelogger::ELseverityLevel > suppression_levels_
std::set< std::string > debugEnabledModules_
std::string_view runEvent
Definition: MessageDrop.h:61
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ jobFailure()

void MessageLogger::jobFailure ( )
private

Definition at line 977 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageLoggerQ::MLqSUM(), edm::MessageDrop::setSinglet(), and summarizeInJobReport().

Referenced by MessageLogger().

977  {
978  MessageDrop* messageDrop = MessageDrop::instance();
979  messageDrop->setSinglet("jobFailure");
980  summarizeInJobReport(); // Put summary info into Job Rep // change log 10
981  MessageLoggerQ::MLqSUM(); // trigger summary info. // change log 9
982  }
static void summarizeInJobReport()
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
static void MLqSUM()

◆ postAccessInputProcessBlock()

void MessageLogger::postAccessInputProcessBlock ( GlobalContext const &  gc)
private

Definition at line 888 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

888  {
889  edm::MessageDrop::instance()->runEvent = "PostAccessInputProcessBlock";
890  edm::MessageDrop::instance()->setSinglet("PostAccessInputProcessBlock");
891  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postBeginJob()

void MessageLogger::postBeginJob ( )
private

Definition at line 778 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

778  {
779  MessageDrop::instance()->runEvent = "BeforeEvents";
780  MessageDrop::instance()->setSinglet("AfterBeginJob"); // Change Log 17
781  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postBeginProcessBlock()

void MessageLogger::postBeginProcessBlock ( GlobalContext const &  gc)
private

Definition at line 876 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

876  {
877  edm::MessageDrop::instance()->runEvent = "PostBeginProcessBlock";
878  edm::MessageDrop::instance()->setSinglet("PostBeginProcessBlock");
879  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postEndJob()

void MessageLogger::postEndJob ( )
private

Definition at line 972 of file MessageLogger.cc.

References edm::MessageLoggerQ::MLqSUM(), and summarizeInJobReport().

Referenced by MessageLogger().

972  {
973  summarizeInJobReport(); // Put summary info into Job Rep // change log 10
974  MessageLoggerQ::MLqSUM(); // trigger summary info. // change log 9
975  }
static void summarizeInJobReport()
static void MLqSUM()

◆ postEndProcessBlock()

void MessageLogger::postEndProcessBlock ( GlobalContext const &  gc)
private

Definition at line 900 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

900  {
901  edm::MessageDrop::instance()->runEvent = "PostEndProcessBlock";
902  edm::MessageDrop::instance()->setSinglet("PostEndProcessBlock");
903  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postESModule()

void MessageLogger::postESModule ( eventsetup::EventSetupRecordKey const &  ,
ESModuleCallingContext const &   
)
private

Definition at line 770 of file MessageLogger.cc.

References edm::MessageDrop::instance(), and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

770  {
771  MessageDrop* messageDrop = MessageDrop::instance();
772  messageDrop->setSinglet("@finishedCallESModule"); // Change Log 17
773  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168

◆ postEvent()

void MessageLogger::postEvent ( StreamContext const &  iContext)
private

Definition at line 809 of file MessageLogger.cc.

References edm::clearLoggedErrorsSummary(), edm::MessageDrop::instance(), edm::MessageDrop::runEvent, edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by MessageLogger().

809  {
810  edm::MessageDrop::instance()->runEvent = "PostProcessEvent";
811  edm::clearLoggedErrorsSummary(iContext.streamID().value());
812  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void clearLoggedErrorsSummary(unsigned int iStreamID)
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postFile()

void MessageLogger::postFile ( std::string const &  )
private

Definition at line 796 of file MessageLogger.cc.

References unEstablish().

Referenced by MessageLogger().

796 { unEstablish("AfterFile"); }
void unEstablish(const char *whichPhase)

◆ postGlobalBeginLumi()

void MessageLogger::postGlobalBeginLumi ( GlobalContext const &  )
private

Definition at line 950 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

950  {
951  edm::MessageDrop::instance()->runEvent = "PostGlobalBeginLumi";
952  edm::MessageDrop::instance()->setSinglet("PostGlobalBeginLumi"); // changelog 17
953  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postGlobalBeginRun()

void MessageLogger::postGlobalBeginRun ( GlobalContext const &  )
private

Definition at line 912 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

912  {
913  edm::MessageDrop::instance()->runEvent = "PostGlobalBeginRun";
914  edm::MessageDrop::instance()->setSinglet("PostGlobalBeginRun"); // changelog 17
915  // Note - module name had not been set here
916  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postGlobalEndLumi()

void MessageLogger::postGlobalEndLumi ( GlobalContext const &  )
private

Definition at line 962 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

962  {
963  edm::MessageDrop::instance()->runEvent = "PostGlobalEndLumi";
964  edm::MessageDrop::instance()->setSinglet("PostGlobalEndLumi"); // changelog 17
965  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postGlobalEndRun()

void MessageLogger::postGlobalEndRun ( GlobalContext const &  )
private

Definition at line 937 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

937  {
938  edm::MessageDrop::instance()->runEvent = "PostGlobalEndRun";
939  edm::MessageDrop::instance()->setSinglet("PostGlobalEndRun"); // changelog 17
940  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postModuleAccessInputProcessBlock()

void MessageLogger::postModuleAccessInputProcessBlock ( GlobalContext const &  ,
ModuleCallingContext const &  mod 
)
private

Definition at line 673 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

673  {
674  unEstablishModule(mod, "AfterModAccessInputProcessBlock");
675  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleBeginJob()

void MessageLogger::postModuleBeginJob ( ModuleDescription const &  iDescription)
private

Definition at line 575 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

575  {
576  unEstablishModule(iDescription, "AfterModBeginJob");
577  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)

◆ postModuleBeginProcessBlock()

void MessageLogger::postModuleBeginProcessBlock ( GlobalContext const &  ,
ModuleCallingContext const &  mod 
)
private

Definition at line 663 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

663  {
664  unEstablishModule(mod, "AfterModBeginProcessBlock");
665  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleBeginStream()

void MessageLogger::postModuleBeginStream ( StreamContext const &  stream,
ModuleCallingContext const &  mcc 
)
private

Definition at line 596 of file MessageLogger.cc.

References submitPVResolutionJobs::desc, edm::ModuleCallingContext::moduleDescription(), and unEstablishModule().

Referenced by MessageLogger().

596  {
597  ModuleDescription const& desc = *mcc.moduleDescription();
598  unEstablishModule(desc, "AfterModBeginStream");
599  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)

◆ postModuleConstruction()

void MessageLogger::postModuleConstruction ( ModuleDescription const &  iDescription)
private

Definition at line 562 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

562  {
563  unEstablishModule(iDescription, "AfterModConstruction");
564  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)

◆ postModuleDestruction()

void MessageLogger::postModuleDestruction ( ModuleDescription const &  iDescription)
private

Definition at line 568 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

568  {
569  unEstablishModule(iDescription, "AfterModDestruction");
570  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)

◆ postModuleEndJob()

void MessageLogger::postModuleEndJob ( ModuleDescription const &  iDescription)
private

Definition at line 754 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

754  {
755  unEstablishModule(iDescription, "AfterModEndJob");
756  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)

◆ postModuleEndProcessBlock()

void MessageLogger::postModuleEndProcessBlock ( GlobalContext const &  ,
ModuleCallingContext const &  mod 
)
private

Definition at line 683 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

683  {
684  unEstablishModule(mod, "AfterModEndProcessBlock");
685  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleEndStream()

void MessageLogger::postModuleEndStream ( StreamContext const &  ,
ModuleCallingContext const &  mcc 
)
private

Definition at line 746 of file MessageLogger.cc.

References submitPVResolutionJobs::desc, edm::ModuleCallingContext::moduleDescription(), and unEstablishModule().

Referenced by MessageLogger().

746  {
747  ModuleDescription const& desc = *mcc.moduleDescription();
748  unEstablishModule(desc, "AfterModEndStream");
749  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)

◆ postModuleEvent()

void MessageLogger::postModuleEvent ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 624 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

624  {
625  unEstablishModule(mod, "PostModuleEvent");
626  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleEventAcquire()

void MessageLogger::postModuleEventAcquire ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 633 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

633  {
634  unEstablishModule(mod, "PostModuleEventAcquire");
635  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleGlobalBeginLumi()

void MessageLogger::postModuleGlobalBeginLumi ( GlobalContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 701 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

701  {
702  unEstablishModule(mod, "AfterModGlobalBeginLumi");
703  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleGlobalBeginRun()

void MessageLogger::postModuleGlobalBeginRun ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 692 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

692  {
693  unEstablishModule(mod, "AfterModGlobalBeginRun");
694  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleGlobalEndLumi()

void MessageLogger::postModuleGlobalEndLumi ( GlobalContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 710 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

710  {
711  unEstablishModule(mod, "AfterModGlobalEndLumi");
712  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleGlobalEndRun()

void MessageLogger::postModuleGlobalEndRun ( GlobalContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 728 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

728  {
729  unEstablishModule(mod, "AfterModGlobalEndRun");
730  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleStreamBeginLumi()

void MessageLogger::postModuleStreamBeginLumi ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 615 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

615  {
616  unEstablishModule(mod, "AfterModStreamBeginLumi");
617  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleStreamBeginRun()

void MessageLogger::postModuleStreamBeginRun ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 606 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

606  {
607  unEstablishModule(mod, "AfterModStreamBeginRun");
608  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleStreamEndLumi()

void MessageLogger::postModuleStreamEndLumi ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 642 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

642  {
643  unEstablishModule(mod, "AfterModStreamEndLumi");
644  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleStreamEndRun()

void MessageLogger::postModuleStreamEndRun ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 651 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

651  {
652  unEstablishModule(mod, "AfterModStreamEndRun");
653  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleWriteLumi()

void MessageLogger::postModuleWriteLumi ( GlobalContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 719 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

719  {
720  unEstablishModule(mod, "AfterModWriteLumi");
721  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postModuleWriteRun()

void MessageLogger::postModuleWriteRun ( GlobalContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 737 of file MessageLogger.cc.

References mod(), and unEstablishModule().

Referenced by MessageLogger().

737  {
738  unEstablishModule(mod, "AfterModWriteRun");
739  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ postPathEvent()

void MessageLogger::postPathEvent ( StreamContext const &  ,
PathContext const &  ,
HLTPathStatus const &   
)
private

Definition at line 926 of file MessageLogger.cc.

References edm::MessageDrop::instance(), and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

926  {
927  edm::MessageDrop::instance()->setSinglet("PostProcessPath"); // changelog 17
928  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168

◆ postSourceConstruction()

void MessageLogger::postSourceConstruction ( ModuleDescription const &  iDescription)
private

Definition at line 588 of file MessageLogger.cc.

References unEstablishModule().

Referenced by MessageLogger().

588  {
589  unEstablishModule(iDescription, "AfterSourceConstruction");
590  }
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)

◆ postSourceEvent()

void MessageLogger::postSourceEvent ( StreamID  )
private

Definition at line 787 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and unEstablish().

Referenced by MessageLogger().

787  {
788  unEstablish("AfterSource");
789  MessageDrop::instance()->runEvent = "AfterSource";
790  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void unEstablish(const char *whichPhase)
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postSourceRunLumi()

void MessageLogger::postSourceRunLumi ( )
private

Definition at line 792 of file MessageLogger.cc.

References unEstablish().

Referenced by MessageLogger().

792 { unEstablish("AfterSource"); }
void unEstablish(const char *whichPhase)

◆ postStreamBeginLumi()

void MessageLogger::postStreamBeginLumi ( StreamContext const &  )
private

Definition at line 850 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

850  {
851  edm::MessageDrop::instance()->runEvent = "PostStreamBeginLumi";
852  edm::MessageDrop::instance()->setSinglet("PostStreamBeginLumi"); // changelog 17
853  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postStreamBeginRun()

void MessageLogger::postStreamBeginRun ( StreamContext const &  )
private

Definition at line 822 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

822  {
823  edm::MessageDrop::instance()->runEvent = "PostStreamBeginRun";
824  edm::MessageDrop::instance()->setSinglet("PostStreamBeginRun"); // changelog 17
825  // Note - module name had not been set here
826  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postStreamEndLumi()

void MessageLogger::postStreamEndLumi ( StreamContext const &  )
private

Definition at line 864 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

864  {
865  edm::MessageDrop::instance()->runEvent = "PostStreamEndLumi";
866  edm::MessageDrop::instance()->setSinglet("PostStreamEndLumi"); // changelog 17
867  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ postStreamEndRun()

void MessageLogger::postStreamEndRun ( StreamContext const &  )
private

Definition at line 836 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

836  {
837  edm::MessageDrop::instance()->runEvent = "PostStreamEndRun";
838  edm::MessageDrop::instance()->setSinglet("PostStreaEndRun"); // changelog 17
839  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preAccessInputProcessBlock()

void MessageLogger::preAccessInputProcessBlock ( GlobalContext const &  gc)
private

Definition at line 881 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::MessageDrop::instance(), processBlockInfoBegin_, edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), transitionInfoCache_, and findQualityFiles::v.

Referenced by MessageLogger().

881  {
883  auto v = fill_buffer(buffer, "pre-events");
885  edm::MessageDrop::instance()->setSinglet("PreAccessInputProcessBlock");
886  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
unsigned int processBlockInfoBegin_
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preBeginProcessBlock()

void MessageLogger::preBeginProcessBlock ( GlobalContext const &  gc)
private

Definition at line 869 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::MessageDrop::instance(), processBlockInfoBegin_, edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), transitionInfoCache_, and findQualityFiles::v.

Referenced by MessageLogger().

869  {
871  auto v = fill_buffer(buffer, "pre-events");
873  edm::MessageDrop::instance()->setSinglet("PreBeginProcessBlock");
874  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
unsigned int processBlockInfoBegin_
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preEndJob()

void MessageLogger::preEndJob ( )
private

Definition at line 967 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::MessageDrop::runEvent, and edm::MessageDrop::setSinglet().

Referenced by MessageLogger().

967  {
968  edm::MessageDrop::instance()->runEvent = "EndJob";
969  edm::MessageDrop::instance()->setSinglet("EndJob"); // changelog
970  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preEndProcessBlock()

void MessageLogger::preEndProcessBlock ( GlobalContext const &  gc)
private

Definition at line 893 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::MessageDrop::instance(), processBlockInfoBegin_, edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), transitionInfoCache_, and findQualityFiles::v.

Referenced by MessageLogger().

893  {
895  auto v = fill_buffer(buffer, "post-events");
897  edm::MessageDrop::instance()->setSinglet("PreEndProcessBlock");
898  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
unsigned int processBlockInfoBegin_
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preESModule()

void MessageLogger::preESModule ( eventsetup::EventSetupRecordKey const &  ,
ESModuleCallingContext const &  context 
)
private

Definition at line 758 of file MessageLogger.cc.

References visDQMUpload::context, submitPVResolutionJobs::desc, edm::MessageDrop::instance(), label, or, and edm::MessageDrop::setModuleWithPhase().

Referenced by MessageLogger().

758  {
759  MessageDrop* messageDrop = MessageDrop::instance();
760  auto desc = context.componentDescription();
761  // std::cerr << "establishModule( " << desc.moduleName() << ")\n";
762  // Change Log 17
763  auto label = &desc->label_;
764  if (label->empty() or (*label)[0] == '\0') {
765  label = &desc->type_;
766  }
767  //make sure ES module IDs do not conflict with ED module IDs
768  messageDrop->setModuleWithPhase(desc->type_, *label, 1000000 + desc->id_, "@callESModule");
769  }
void setModuleWithPhase(std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
Definition: MessageDrop.cc:155
static MessageDrop * instance()
Definition: MessageDrop.cc:33
char const * label
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12

◆ preEvent()

void MessageLogger::preEvent ( StreamContext const &  iContext)
private

Definition at line 798 of file MessageLogger.cc.

References cms::cuda::assert(), edmScanValgrind::buffer, edmPickEvents::event, edm::StreamContext::eventID(), edm::MessageDrop::instance(), writedatasetfile::run, edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), edm::StreamContext::streamID(), transitionInfoCache_, findQualityFiles::v, and edm::StreamID::value().

Referenced by MessageLogger().

798  {
799  assert(iContext.streamID().value() < transitionInfoCache_.size());
800  auto& buffer = transitionInfoCache_[iContext.streamID().value()];
801  auto const& id = iContext.eventID();
802  auto v = fill_buffer(buffer, "Run: ", id.run(), " Event: ", id.event());
804  edm::MessageDrop::instance()->setSinglet("PreEventProcessing"); // changelog 17
805  // Note - module name had not been set here Similarly in other places where
806  // RunEvent carries the new information; we add setSinglet for module name.
807  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
assert(be >=bs)
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preFile()

void MessageLogger::preFile ( std::string const &  )
private

Definition at line 794 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

794 { establish("file_open"); }
void establish(const char *whichPhase)

◆ preFileClose()

void MessageLogger::preFileClose ( std::string const &  )
private

Definition at line 795 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

795 { establish("file_close"); }
void establish(const char *whichPhase)

◆ preGlobalBeginLumi()

void MessageLogger::preGlobalBeginLumi ( GlobalContext const &  iContext)
private

Definition at line 942 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::MessageDrop::instance(), lumiInfoBegin_, edm::GlobalContext::luminosityBlockID(), edm::GlobalContext::luminosityBlockIndex(), writedatasetfile::run, edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), transitionInfoCache_, and findQualityFiles::v.

Referenced by MessageLogger().

942  {
943  auto& buffer = transitionInfoCache_[lumiInfoBegin_ + iContext.luminosityBlockIndex()];
944  auto const& id = iContext.luminosityBlockID();
945  auto v = fill_buffer(buffer, "Run: ", id.run(), " Lumi: ", id.luminosityBlock());
947  edm::MessageDrop::instance()->setSinglet("PreGlobalBeginLumi"); // changelog 17
948  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preGlobalBeginRun()

void MessageLogger::preGlobalBeginRun ( GlobalContext const &  iContext)
private

Definition at line 905 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::MessageDrop::instance(), edm::GlobalContext::luminosityBlockID(), edm::LuminosityBlockID::run(), edm::MessageDrop::runEvent, edm::GlobalContext::runIndex(), runInfoBegin_, edm::MessageDrop::setSinglet(), transitionInfoCache_, and findQualityFiles::v.

Referenced by MessageLogger().

906  {
907  auto& buffer = transitionInfoCache_[runInfoBegin_ + iContext.runIndex()];
908  auto v = fill_buffer(buffer, "Run: ", iContext.luminosityBlockID().run());
910  edm::MessageDrop::instance()->setSinglet("PreGlobalBeginRun"); // changelog 17
911  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preGlobalEndLumi()

void MessageLogger::preGlobalEndLumi ( GlobalContext const &  iContext)
private

Definition at line 955 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::MessageDrop::instance(), lumiInfoBegin_, edm::GlobalContext::luminosityBlockID(), edm::GlobalContext::luminosityBlockIndex(), writedatasetfile::run, edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), transitionInfoCache_, and findQualityFiles::v.

Referenced by MessageLogger().

955  {
956  auto& buffer = transitionInfoCache_[lumiInfoBegin_ + iContext.luminosityBlockIndex()];
957  auto const& id = iContext.luminosityBlockID();
958  auto v = fill_buffer(buffer, "Run: ", id.run(), " Lumi: ", id.luminosityBlock());
960  edm::MessageDrop::instance()->setSinglet("PreGlobalEndLumi"); // changelog 17
961  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preGlobalEndRun()

void MessageLogger::preGlobalEndRun ( GlobalContext const &  iContext)
private

Definition at line 930 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::MessageDrop::instance(), edm::GlobalContext::luminosityBlockID(), edm::LuminosityBlockID::run(), edm::MessageDrop::runEvent, edm::GlobalContext::runIndex(), runInfoBegin_, edm::MessageDrop::setSinglet(), transitionInfoCache_, and findQualityFiles::v.

Referenced by MessageLogger().

930  {
931  auto& buffer = transitionInfoCache_[runInfoBegin_ + iContext.runIndex()];
932  auto v = fill_buffer(buffer, "End Run: ", iContext.luminosityBlockID().run());
934  edm::MessageDrop::instance()->setSinglet("PreGlobalEndRun"); // changelog 17
935  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preModuleAccessInputProcessBlock()

void MessageLogger::preModuleAccessInputProcessBlock ( GlobalContext const &  ,
ModuleCallingContext const &  mod 
)
private

Definition at line 667 of file MessageLogger.cc.

References establishModule(), edm::GlobalContext::kAccessInputProcessBlock, mod(), and processBlockInfoBegin_.

Referenced by MessageLogger().

667  {
669  mod,
670  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kAccessInputProcessBlock)]);
671  }
unsigned int processBlockInfoBegin_
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleBeginJob()

void MessageLogger::preModuleBeginJob ( ModuleDescription const &  desc)
private

Definition at line 572 of file MessageLogger.cc.

References submitPVResolutionJobs::desc, and establishModule().

Referenced by MessageLogger().

572  {
573  establishModule(desc, "@beginJob"); // ChangeLog 13
574  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)

◆ preModuleBeginProcessBlock()

void MessageLogger::preModuleBeginProcessBlock ( GlobalContext const &  ,
ModuleCallingContext const &  mod 
)
private

Definition at line 657 of file MessageLogger.cc.

References establishModule(), edm::GlobalContext::kBeginProcessBlock, mod(), and processBlockInfoBegin_.

Referenced by MessageLogger().

657  {
659  mod,
660  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kBeginProcessBlock)]);
661  }
unsigned int processBlockInfoBegin_
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleBeginStream()

void MessageLogger::preModuleBeginStream ( StreamContext const &  stream,
ModuleCallingContext const &  mcc 
)
private

Definition at line 592 of file MessageLogger.cc.

References submitPVResolutionJobs::desc, establishModule(), and edm::ModuleCallingContext::moduleDescription().

Referenced by MessageLogger().

592  {
593  ModuleDescription const& desc = *mcc.moduleDescription();
594  establishModule(desc, "@beginStream"); // ChangeLog 13
595  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)

◆ preModuleConstruction()

void MessageLogger::preModuleConstruction ( ModuleDescription const &  desc)
private

◆ preModuleDestruction()

void MessageLogger::preModuleDestruction ( ModuleDescription const &  desc)
private

Definition at line 566 of file MessageLogger.cc.

References submitPVResolutionJobs::desc, and establishModule().

Referenced by MessageLogger().

566 { establishModule(desc, "@dtor"); }
void establishModule(const ModuleDescription &desc, const char *whichPhase)

◆ preModuleEndJob()

void MessageLogger::preModuleEndJob ( ModuleDescription const &  desc)
private

Definition at line 751 of file MessageLogger.cc.

References submitPVResolutionJobs::desc, and establishModule().

Referenced by MessageLogger().

751  {
752  establishModule(desc, "@endJob"); // ChangeLog 13
753  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)

◆ preModuleEndProcessBlock()

void MessageLogger::preModuleEndProcessBlock ( GlobalContext const &  ,
ModuleCallingContext const &  mod 
)
private

Definition at line 677 of file MessageLogger.cc.

References establishModule(), edm::GlobalContext::kEndProcessBlock, mod(), and processBlockInfoBegin_.

Referenced by MessageLogger().

677  {
679  mod,
680  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kEndProcessBlock)]);
681  }
unsigned int processBlockInfoBegin_
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleEndStream()

void MessageLogger::preModuleEndStream ( StreamContext const &  ,
ModuleCallingContext const &  mcc 
)
private

Definition at line 741 of file MessageLogger.cc.

References submitPVResolutionJobs::desc, establishModule(), and edm::ModuleCallingContext::moduleDescription().

Referenced by MessageLogger().

741  {
742  ModuleDescription const& desc = *mcc.moduleDescription();
743  establishModule(desc, "@endStream"); // ChangeLog 13
744  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)

◆ preModuleEvent()

void MessageLogger::preModuleEvent ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 619 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kEvent, mod(), and cms::cuda::stream.

Referenced by MessageLogger().

619  {
621  stream.streamID().value(), mod, s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kEvent)]);
622  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleEventAcquire()

void MessageLogger::preModuleEventAcquire ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 628 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kEvent, mod(), and cms::cuda::stream.

Referenced by MessageLogger().

628  {
630  stream.streamID().value(), mod, s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kEvent)]);
631  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleGlobalBeginLumi()

void MessageLogger::preModuleGlobalBeginLumi ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 696 of file MessageLogger.cc.

References visDQMUpload::context, establishModule(), edm::GlobalContext::kBeginLuminosityBlock, lumiInfoBegin_, and mod().

Referenced by MessageLogger().

696  {
697  establishModule(lumiInfoBegin_ + context.luminosityBlockIndex().value(),
698  mod,
699  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kBeginLuminosityBlock)]);
700  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleGlobalBeginRun()

void MessageLogger::preModuleGlobalBeginRun ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 687 of file MessageLogger.cc.

References visDQMUpload::context, establishModule(), edm::GlobalContext::kBeginRun, mod(), and runInfoBegin_.

Referenced by MessageLogger().

687  {
688  establishModule(runInfoBegin_ + context.runIndex().value(),
689  mod,
690  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kBeginRun)]);
691  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleGlobalEndLumi()

void MessageLogger::preModuleGlobalEndLumi ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 705 of file MessageLogger.cc.

References visDQMUpload::context, establishModule(), edm::GlobalContext::kEndLuminosityBlock, lumiInfoBegin_, and mod().

Referenced by MessageLogger().

705  {
706  establishModule(lumiInfoBegin_ + context.luminosityBlockIndex().value(),
707  mod,
708  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kEndLuminosityBlock)]);
709  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleGlobalEndRun()

void MessageLogger::preModuleGlobalEndRun ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 723 of file MessageLogger.cc.

References visDQMUpload::context, establishModule(), edm::GlobalContext::kEndRun, mod(), and runInfoBegin_.

Referenced by MessageLogger().

723  {
724  establishModule(runInfoBegin_ + context.runIndex().value(),
725  mod,
726  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kEndRun)]); // ChangeLog 13
727  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleStreamBeginLumi()

void MessageLogger::preModuleStreamBeginLumi ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 610 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kBeginLuminosityBlock, mod(), and cms::cuda::stream.

Referenced by MessageLogger().

610  {
611  establishModule(stream.streamID().value(),
612  mod,
613  s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kBeginLuminosityBlock)]);
614  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleStreamBeginRun()

void MessageLogger::preModuleStreamBeginRun ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 601 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kBeginRun, mod(), and cms::cuda::stream.

Referenced by MessageLogger().

601  {
602  establishModule(stream.streamID().value(),
603  mod,
604  s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kBeginRun)]);
605  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleStreamEndLumi()

void MessageLogger::preModuleStreamEndLumi ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 637 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kEndLuminosityBlock, mod(), and cms::cuda::stream.

Referenced by MessageLogger().

637  {
638  establishModule(stream.streamID().value(),
639  mod,
640  s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kEndLuminosityBlock)]);
641  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleStreamEndRun()

void MessageLogger::preModuleStreamEndRun ( StreamContext const &  stream,
ModuleCallingContext const &  mod 
)
private

Definition at line 646 of file MessageLogger.cc.

References establishModule(), edm::StreamContext::kEndRun, mod(), and cms::cuda::stream.

Referenced by MessageLogger().

646  {
647  establishModule(stream.streamID().value(),
648  mod,
649  s_streamTransitionNames[static_cast<int>(StreamContext::Transition::kEndRun)]); // ChangeLog 13
650  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleWriteLumi()

void MessageLogger::preModuleWriteLumi ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 714 of file MessageLogger.cc.

References visDQMUpload::context, establishModule(), edm::GlobalContext::kWriteLuminosityBlock, lumiInfoBegin_, and mod().

Referenced by MessageLogger().

714  {
715  establishModule(lumiInfoBegin_ + context.luminosityBlockIndex().value(),
716  mod,
717  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kWriteLuminosityBlock)]);
718  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ preModuleWriteRun()

void MessageLogger::preModuleWriteRun ( GlobalContext const &  context,
ModuleCallingContext const &  mod 
)
private

Definition at line 732 of file MessageLogger.cc.

References visDQMUpload::context, establishModule(), edm::GlobalContext::kWriteRun, mod(), and runInfoBegin_.

Referenced by MessageLogger().

732  {
733  establishModule(runInfoBegin_ + context.runIndex().value(),
734  mod,
735  s_globalTransitionNames[static_cast<int>(GlobalContext::Transition::kWriteRun)]);
736  }
void establishModule(const ModuleDescription &desc, const char *whichPhase)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ prePathEvent()

void MessageLogger::prePathEvent ( StreamContext const &  stream,
PathContext const &  iPath 
)
private

Definition at line 918 of file MessageLogger.cc.

References edm::MessageDrop::instance(), edm::PathContext::pathName(), cms::cuda::stream, and transitionInfoCache_.

Referenced by MessageLogger().

919  {
920  auto messageDrop = edm::MessageDrop::instance();
921  messageDrop->runEvent = transitionInfoCache_[stream.streamID().value()].begin();
922  messageDrop->setPath("PreProcPath ", iPath.pathName());
923  // change log 17
924  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream

◆ preSourceConstruction()

void MessageLogger::preSourceConstruction ( ModuleDescription const &  desc)
private

◆ preSourceEvent()

void MessageLogger::preSourceEvent ( StreamID  )
private

Definition at line 783 of file MessageLogger.cc.

References establish(), edm::MessageDrop::instance(), and edm::MessageDrop::runEvent.

Referenced by MessageLogger().

783  {
784  establish("source");
785  MessageDrop::instance()->runEvent = "PreSource";
786  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void establish(const char *whichPhase)
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preSourceRunLumi()

void MessageLogger::preSourceRunLumi ( )
private

Definition at line 791 of file MessageLogger.cc.

References establish().

Referenced by MessageLogger().

791 { establish("source"); }
void establish(const char *whichPhase)

◆ preStreamBeginLumi()

void MessageLogger::preStreamBeginLumi ( StreamContext const &  iContext)
private

Definition at line 841 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::StreamContext::eventID(), edm::MessageDrop::instance(), writedatasetfile::run, edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), edm::StreamContext::streamID(), transitionInfoCache_, findQualityFiles::v, and edm::StreamID::value().

Referenced by MessageLogger().

841  {
842  auto& buffer = transitionInfoCache_[iContext.streamID().value()];
843  auto const& id = iContext.eventID();
844  auto v = fill_buffer(
845  buffer, "Run: ", id.run(), " Lumi: ", id.luminosityBlock(), " Stream: ", iContext.streamID().value());
847  edm::MessageDrop::instance()->setSinglet("PreStreamBeginLumi"); // changelog 17
848  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preStreamBeginRun()

void MessageLogger::preStreamBeginRun ( StreamContext const &  iContext)
private

Definition at line 814 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::StreamContext::eventID(), edm::MessageDrop::instance(), edm::EventID::run(), edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), edm::StreamContext::streamID(), transitionInfoCache_, findQualityFiles::v, and edm::StreamID::value().

Referenced by MessageLogger().

815  {
816  auto& buffer = transitionInfoCache_[iContext.streamID().value()];
817  auto v = fill_buffer(buffer, "Run: ", iContext.eventID().run(), " Stream: ", iContext.streamID().value());
818 
820  edm::MessageDrop::instance()->setSinglet("PreStreamBeginRun"); // changelog 17
821  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preStreamEndLumi()

void MessageLogger::preStreamEndLumi ( StreamContext const &  iContext)
private

Definition at line 855 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::StreamContext::eventID(), edm::MessageDrop::instance(), writedatasetfile::run, edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), edm::StreamContext::streamID(), transitionInfoCache_, findQualityFiles::v, and edm::StreamID::value().

Referenced by MessageLogger().

855  {
856  auto& buffer = transitionInfoCache_[iContext.streamID().value()];
857  auto const& id = iContext.eventID();
858  auto v = fill_buffer(
859  buffer, "Run: ", id.run(), " Lumi: ", id.luminosityBlock(), " Stream: ", iContext.streamID().value());
860 
862  edm::MessageDrop::instance()->setSinglet("PreStreamEndLumi"); // changelog 17
863  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ preStreamEndRun()

void MessageLogger::preStreamEndRun ( StreamContext const &  iContext)
private

Definition at line 828 of file MessageLogger.cc.

References edmScanValgrind::buffer, edm::StreamContext::eventID(), edm::MessageDrop::instance(), edm::EventID::run(), edm::MessageDrop::runEvent, edm::MessageDrop::setSinglet(), edm::StreamContext::streamID(), transitionInfoCache_, findQualityFiles::v, and edm::StreamID::value().

Referenced by MessageLogger().

828  {
829  auto& buffer = transitionInfoCache_[iContext.streamID().value()];
830  auto v = fill_buffer(buffer, "End Run: ", iContext.eventID().run(), " Stream: ", iContext.streamID().value());
831 
833  edm::MessageDrop::instance()->setSinglet("PreStreamEndRun"); // changelog 17
834  }
std::vector< std::array< char, 64 > > transitionInfoCache_
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
std::string_view runEvent
Definition: MessageDrop.h:61

◆ setThreadContext()

void MessageLogger::setThreadContext ( ModuleCallingContext const &  iModContext)
finalvirtual

Implements edm::MessageLogger.

Definition at line 339 of file MessageLogger.cc.

References cms::cuda::assert(), edm::MessageDrop::debugEnabled, edm::MessageDrop::errorEnabled, establishModule(), edm::ModuleCallingContext::getGlobalContext(), edm::ModuleCallingContext::getStreamContext(), edm::ModuleCallingContext::getTopModuleCallingContext(), edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), edm::GlobalContext::kAccessInputProcessBlock, edm::GlobalContext::kBeginLuminosityBlock, edm::GlobalContext::kBeginProcessBlock, edm::GlobalContext::kBeginRun, edm::GlobalContext::kEndLuminosityBlock, edm::GlobalContext::kEndProcessBlock, edm::GlobalContext::kEndRun, edm::ParentContext::kGlobal, lumiInfoBegin_, SiStripPI::max, nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, or, processBlockInfoBegin_, edm::MessageDrop::runEvent, runInfoBegin_, edm::MessageDrop::setSinglet(), cms::cuda::stream, edm::MessageDrop::streamID, edm::GlobalContext::transition(), and edm::MessageDrop::warningEnabled.

339  {
340  //need to know if we are in a global or stream context
341  auto top = iModContext.getTopModuleCallingContext();
342  assert(nullptr != top);
343  if (ParentContext::Type::kGlobal == top->type()) {
344  auto globalContext = iModContext.getGlobalContext();
345  auto tran = globalContext->transition();
348  establishModule(lumiInfoBegin_ + globalContext->luminosityBlockIndex(),
349  iModContext,
350  s_globalTransitionNames[static_cast<int>(tran)]);
353  runInfoBegin_ + globalContext->runIndex(), iModContext, s_globalTransitionNames[static_cast<int>(tran)]);
357  establishModule(processBlockInfoBegin_, iModContext, s_globalTransitionNames[static_cast<int>(tran)]);
358  } else {
359  MessageDrop* messageDrop = MessageDrop::instance();
361  messageDrop->setSinglet("unknown context");
363  messageDrop->debugEnabled = nonModule_debugEnabled;
364  messageDrop->infoEnabled = nonModule_infoEnabled;
366  messageDrop->errorEnabled = nonModule_errorEnabled;
367  }
368  } else {
369  auto stream = iModContext.getStreamContext();
371  stream->streamID().value(), iModContext, s_streamTransitionNames[static_cast<int>(stream->transition())]);
372  }
373  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
assert(be >=bs)
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
unsigned int streamID
Definition: MessageDrop.h:62
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
unsigned int processBlockInfoBegin_
void establishModule(const ModuleDescription &desc, const char *whichPhase)
std::string_view runEvent
Definition: MessageDrop.h:61

◆ summarizeInJobReport()

void MessageLogger::summarizeInJobReport ( )
staticprivate

Definition at line 988 of file MessageLogger.cc.

References fjrSummaryRequested_, edm::MessageLoggerQ::MLqJRS(), and edm::JobReport::reportMessageInfo().

Referenced by jobFailure(), and postEndJob().

988  {
989  if (fjrSummaryRequested_) {
990  std::map<std::string, double>* smp = new std::map<std::string, double>();
992  Service<JobReport> reportSvc;
993  reportSvc->reportMessageInfo(*smp);
994  delete smp;
995  }
996  }
static void MLqJRS(std::map< std::string, double > *sum_p)
void reportMessageInfo(std::map< std::string, double > const &messageData)
Definition: JobReport.cc:604

◆ unEstablish()

void MessageLogger::unEstablish ( const char *  whichPhase)
private

Definition at line 544 of file MessageLogger.cc.

References edm::MessageDrop::instance(), and edm::MessageDrop::setSinglet().

Referenced by postFile(), postSourceEvent(), and postSourceRunLumi().

544  {
545  MessageDrop::instance()->setSinglet(state); // Change Log 17
546  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168

◆ unEstablishModule() [1/2]

void MessageLogger::unEstablishModule ( const ModuleDescription desc,
const char *  whichPhase 
)
private

Definition at line 454 of file MessageLogger.cc.

References edm::MessageDrop::debugEnabled, edm::MessageDrop::errorEnabled, edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, edm::MessageDrop::setSinglet(), and edm::MessageDrop::warningEnabled.

Referenced by postModuleAccessInputProcessBlock(), postModuleBeginJob(), postModuleBeginProcessBlock(), postModuleBeginStream(), postModuleConstruction(), postModuleDestruction(), postModuleEndJob(), postModuleEndProcessBlock(), postModuleEndStream(), postModuleEvent(), postModuleEventAcquire(), postModuleGlobalBeginLumi(), postModuleGlobalBeginRun(), postModuleGlobalEndLumi(), postModuleGlobalEndRun(), postModuleStreamBeginLumi(), postModuleStreamBeginRun(), postModuleStreamEndLumi(), postModuleStreamEndRun(), postModuleWriteLumi(), postModuleWriteRun(), and postSourceConstruction().

454  {
455  // std::cerr << "unestablishModule( " << desc.moduleName() << ") "
456  // << "state = " << *state << "\n";
457 
458  MessageDrop* messageDrop = MessageDrop::instance();
459  messageDrop->setSinglet(state); // Change Log 17
460  messageDrop->debugEnabled = nonModule_debugEnabled;
461  messageDrop->infoEnabled = nonModule_infoEnabled;
463  messageDrop->errorEnabled = nonModule_errorEnabled; // change log 20
464  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168

◆ unEstablishModule() [2/2]

void MessageLogger::unEstablishModule ( const ModuleCallingContext desc,
const char *  whichPhase 
)
private

Definition at line 466 of file MessageLogger.cc.

References cms::cuda::assert(), edm::MessageDrop::debugEnabled, edm::MessageDrop::errorEnabled, establishModule(), edm::MessageDrop::infoEnabled, edm::MessageDrop::instance(), edm::GlobalContext::kAccessInputProcessBlock, edm::GlobalContext::kBeginLuminosityBlock, edm::GlobalContext::kBeginProcessBlock, edm::GlobalContext::kBeginRun, edm::GlobalContext::kEndLuminosityBlock, edm::GlobalContext::kEndProcessBlock, edm::GlobalContext::kEndRun, edm::ParentContext::kGlobal, lumiInfoBegin_, SiStripPI::max, mod(), nonModule_debugEnabled, nonModule_errorEnabled, nonModule_infoEnabled, nonModule_warningEnabled, or, callgraph::previous, processBlockInfoBegin_, edm::MessageDrop::runEvent, runInfoBegin_, edm::MessageDrop::setSinglet(), cms::cuda::stream, edm::MessageDrop::streamID, and edm::MessageDrop::warningEnabled.

466  {
467  //Need to reset to what was previously being used on this thread
468  auto previous = mod.previousModuleOnThread();
469  if (previous) {
470  //need to know if we are in a global or stream context
471  auto top = previous->getTopModuleCallingContext();
472  assert(nullptr != top);
473  if (ParentContext::Type::kGlobal == top->type()) {
474  auto globalContext = top->globalContext();
475  assert(nullptr != globalContext);
476  auto tran = globalContext->transition();
479  establishModule(lumiInfoBegin_ + globalContext->luminosityBlockIndex(),
480  *previous,
481  s_globalTransitionNames[static_cast<int>(tran)]);
484  runInfoBegin_ + globalContext->runIndex(), *previous, s_globalTransitionNames[static_cast<int>(tran)]);
488  establishModule(processBlockInfoBegin_, *previous, s_globalTransitionNames[static_cast<int>(tran)]);
489  } else {
490  MessageDrop* messageDrop = MessageDrop::instance();
492  messageDrop->setSinglet("unknown context");
494  messageDrop->debugEnabled = nonModule_debugEnabled;
495  messageDrop->infoEnabled = nonModule_infoEnabled;
497  messageDrop->errorEnabled = nonModule_errorEnabled;
498  }
499  } else {
500  auto stream = previous->getStreamContext();
502  stream->streamID().value(), *previous, s_streamTransitionNames[static_cast<int>(stream->transition())]);
503  }
504  } else {
505  MessageDrop* messageDrop = MessageDrop::instance();
507  messageDrop->setSinglet(state); // Change Log 17
508  messageDrop->debugEnabled = nonModule_debugEnabled;
509  messageDrop->infoEnabled = nonModule_infoEnabled;
511  messageDrop->errorEnabled = nonModule_errorEnabled; // change log 20
512  }
513 
514  // std::cerr << "unestablishModule( " << desc.moduleName() << ") "
515  // << "state = " << *state << "\n";
516  }
static MessageDrop * instance()
Definition: MessageDrop.cc:33
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
assert(be >=bs)
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
unsigned int streamID
Definition: MessageDrop.h:62
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
unsigned int processBlockInfoBegin_
void establishModule(const ModuleDescription &desc, const char *whichPhase)
std::string_view runEvent
Definition: MessageDrop.h:61
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

Member Data Documentation

◆ anyDebugEnabled_

bool MessageLogger::anyDebugEnabled_ = false
staticprivate

Definition at line 181 of file MessageLogger.h.

Referenced by establish(), establishModule(), and MessageLogger().

◆ debugEnabled_

bool edm::service::MessageLogger::debugEnabled_
private

Definition at line 180 of file MessageLogger.h.

◆ debugEnabledModules_

std::set<std::string> edm::service::MessageLogger::debugEnabledModules_
private

Definition at line 178 of file MessageLogger.h.

Referenced by establish(), establishModule(), and MessageLogger().

◆ everyDebugEnabled_

bool MessageLogger::everyDebugEnabled_ = false
staticprivate

Definition at line 182 of file MessageLogger.h.

Referenced by establish(), establishModule(), and MessageLogger().

◆ fjrSummaryRequested_

bool MessageLogger::fjrSummaryRequested_ = false
staticprivate

Definition at line 184 of file MessageLogger.h.

Referenced by MessageLogger(), and summarizeInJobReport().

◆ lumiInfoBegin_

unsigned int edm::service::MessageLogger::lumiInfoBegin_ = 0
private

◆ messageServicePSetHasBeenValidated_

bool edm::service::MessageLogger::messageServicePSetHasBeenValidated_
private

Definition at line 185 of file MessageLogger.h.

Referenced by preModuleConstruction(), and preSourceConstruction().

◆ messageServicePSetValidatationResults_

std::string edm::service::MessageLogger::messageServicePSetValidatationResults_
private

Definition at line 186 of file MessageLogger.h.

Referenced by MessageLogger(), preModuleConstruction(), and preSourceConstruction().

◆ nonModule_debugEnabled

bool edm::service::MessageLogger::nonModule_debugEnabled
private

Definition at line 188 of file MessageLogger.h.

Referenced by MessageLogger(), setThreadContext(), and unEstablishModule().

◆ nonModule_errorEnabled

bool edm::service::MessageLogger::nonModule_errorEnabled
private

Definition at line 191 of file MessageLogger.h.

Referenced by MessageLogger(), setThreadContext(), and unEstablishModule().

◆ nonModule_infoEnabled

bool edm::service::MessageLogger::nonModule_infoEnabled
private

Definition at line 189 of file MessageLogger.h.

Referenced by MessageLogger(), setThreadContext(), and unEstablishModule().

◆ nonModule_warningEnabled

bool edm::service::MessageLogger::nonModule_warningEnabled
private

Definition at line 190 of file MessageLogger.h.

Referenced by MessageLogger(), setThreadContext(), and unEstablishModule().

◆ processBlockInfoBegin_

unsigned int edm::service::MessageLogger::processBlockInfoBegin_ = 0
private

◆ runInfoBegin_

unsigned int edm::service::MessageLogger::runInfoBegin_ = 0
private

◆ suppression_levels_

std::map<std::string, messagelogger::ELseverityLevel> edm::service::MessageLogger::suppression_levels_
private

Definition at line 179 of file MessageLogger.h.

Referenced by establish(), establishModule(), and MessageLogger().

◆ transitionInfoCache_

std::vector<std::array<char, 64> > edm::service::MessageLogger::transitionInfoCache_
private