CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MsgContext.cc
Go to the documentation of this file.
1 // ----------------------------------------------------------------------
2 //
3 // MessageLoggerScribe.cc
4 //
5 // Changes:
6 //
7 // 0 - 6/27/06 mf - created this file to contain compress(), to convert from
8 // Run: 124 Event: 4567 to 124/4567 for purposes of
9 // ELstatistics output.
10 
11 
13 #include <sstream>
14 
15 #include <iostream>
16 
17 namespace edm {
18 namespace service {
19 
20  std::string MsgContext::compress (const std::string& c) const
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  }
38 } // end of namespace service
39 } // end of namespace edm
std::string compress(const std::string &c) const
Definition: MsgContext.cc:20
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