CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
edm::service::MsgContext Class Reference

#include <MsgContext.h>

Inheritance diagram for edm::service::MsgContext:
edm::service::ELcontextSupplier

Public Member Functions

void clearContext ()
 
MsgContextclone () const
 
ELstring context () const
 
ELstring fullContext () const
 
void setContext (const std::string &c)
 
ELstring summaryContext () const
 
- Public Member Functions inherited from edm::service::ELcontextSupplier
virtual void editErrorObj (edm::ErrorObj &) const
 
virtual edm::ELstring traceRoutine () const
 
virtual ~ELcontextSupplier ()
 

Private Member Functions

std::string compress (const std::string &c) const
 

Private Attributes

std::string context_
 
std::string summary_context_
 

Detailed Description

Definition at line 11 of file MsgContext.h.

Member Function Documentation

void edm::service::MsgContext::clearContext ( )
inline

Definition at line 24 of file MsgContext.h.

References context_, and summary_context_.

24 { context_.clear(); summary_context_.clear(); }
std::string summary_context_
Definition: MsgContext.h:28
MsgContext* edm::service::MsgContext::clone ( void  ) const
inlinevirtual

Implements edm::service::ELcontextSupplier.

Definition at line 14 of file MsgContext.h.

14 { return new MsgContext(*this); }
std::string edm::service::MsgContext::compress ( const std::string &  c) const
private

Definition at line 20 of file MsgContext.cc.

References trackerHits::c, event(), and DTTTrigCorrFirst::run.

Referenced by setContext().

21  {
22  if ( c.substr (0,4) != "Run:" ) return c;
23  std::istringstream is (c);
24  std::string runWord;
25  int run;
26  is >> runWord >> run;
27  if (!is) return c;
28  if (runWord != "Run:") return c;
29  std::string eventWord;
30  int event;
31  is >> eventWord >> event;
32  if (!is) return c;
33  if (eventWord != "Event:") return c;
34  std::ostringstream os;
35  os << run << "/" << event;
36  return os.str();
37  }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
ELstring edm::service::MsgContext::context ( ) const
inlinevirtual

Implements edm::service::ELcontextSupplier.

Definition at line 15 of file MsgContext.h.

References context_.

Referenced by fullContext().

15 { return context_; }
ELstring edm::service::MsgContext::fullContext ( ) const
inlinevirtual

Implements edm::service::ELcontextSupplier.

Definition at line 17 of file MsgContext.h.

References context().

17 { return context(); }
ELstring context() const
Definition: MsgContext.h:15
void edm::service::MsgContext::setContext ( const std::string &  c)
inline

Definition at line 19 of file MsgContext.h.

References trackerHits::c, compress(), context_, and summary_context_.

Referenced by edm::service::MessageLoggerScribe::log().

20  {
21  context_ = c;
23  }
std::string compress(const std::string &c) const
Definition: MsgContext.cc:20
std::string summary_context_
Definition: MsgContext.h:28
ELstring edm::service::MsgContext::summaryContext ( ) const
inlinevirtual

Implements edm::service::ELcontextSupplier.

Definition at line 16 of file MsgContext.h.

References summary_context_.

16 { return summary_context_; }
std::string summary_context_
Definition: MsgContext.h:28

Member Data Documentation

std::string edm::service::MsgContext::context_
private

Definition at line 27 of file MsgContext.h.

Referenced by clearContext(), context(), and setContext().

std::string edm::service::MsgContext::summary_context_
private

Definition at line 28 of file MsgContext.h.

Referenced by clearContext(), setContext(), and summaryContext().