CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
edm::service::MessageLoggerDefaults Struct Reference

#include <MessageLoggerDefaults.h>

Classes

struct  Category
 
struct  Destination
 

Public Member Functions

void hardwireAnalysisJobMode ()
 
void hardwireGridJobMode ()
 
void hardwireNilJobMode ()
 
void hardwireReleaseValidationJobMode ()
 
int limit (std::string const &dest, std::string const &cat)
 
 MessageLoggerDefaults (edm::JobMode mode=GridJobMode)
 
std::string output (std::string const &dest)
 
int reportEvery (std::string const &dest, std::string const &cat)
 
int sev_limit (std::string const &dest, std::string const &sev)
 
int sev_reportEvery (std::string const &dest, std::string const &sev)
 
int sev_timespan (std::string const &dest, std::string const &sev)
 
std::string threshold (std::string const &dest)
 
int timespan (std::string const &dest, std::string const &cat)
 

Static Public Member Functions

static edm::JobMode mode (std::string const &jm)
 

Public Attributes

std::vector< std::string > categories
 
std::map< std::string, Destinationdestination
 
std::vector< std::string > destinations
 
std::vector< std::string > fwkJobReports
 
std::vector< std::string > statistics
 

Static Public Attributes

static const int NO_VALUE_SET = -45654
 

Detailed Description

Definition at line 69 of file MessageLoggerDefaults.h.

Constructor & Destructor Documentation

edm::service::MessageLoggerDefaults::MessageLoggerDefaults ( edm::JobMode  mode = GridJobMode)
inlineexplicit

Definition at line 124 of file MessageLoggerDefaults.h.

References edm::AnalysisJobMode, edm::GridJobMode, hardwireAnalysisJobMode(), hardwireGridJobMode(), hardwireNilJobMode(), hardwireReleaseValidationJobMode(), mode(), edm::NilJobMode, and edm::ReleaseValidationJobMode.

124  {
125  // mode-independent defaults
126 
127  // mode-dependent defaults
128  switch (mode) {
129  // GridJobMode: Intended for automated batch-like processing, in which
130  // the output stream for cerr is routed to an apropro
131  // file. LogInfo messages are enabled, and at least
132  // one such message is delivered from the framework per
133  // event, so this mode is not suitable for many-Hz light
134  // event processing.
135  case GridJobMode:
137  break;
140  break;
141  case AnalysisJobMode:
143  break;
144  case NilJobMode:
146  break;
147  default:
148  // this should never happen! No user error can get here.
149  bool Invalid_JobMode_in_ctor_of_MessageLoggerDefaults = false;
150  assert (Invalid_JobMode_in_ctor_of_MessageLoggerDefaults);
151  } // end of switch on mode
152  }
static edm::JobMode mode(std::string const &jm)

Member Function Documentation

void MessageLoggerDefaults::hardwireAnalysisJobMode ( )

Definition at line 155 of file HardwiredDefaults.cc.

References categories, edm::service::MessageLoggerDefaults::Destination::category, MessageLogger_cfi::cerr, destination, destinations, ecalTB2006H4_GenSimDigiReco_cfg::FwkJob, ecalTB2006H4_GenSimDigiReco_cfg::FwkReport, ecalTB2006H4_GenSimDigiReco_cfg::FwkSummary, hardwireNilJobMode(), edm::service::MessageLoggerDefaults::Category::limit, edm::service::MessageLoggerDefaults::Category::reportEvery, ecalTB2006H4_GenSimDigiReco_cfg::Root_NoDictionary, edm::service::MessageLoggerDefaults::Destination::sev, statistics, edm::service::MessageLoggerDefaults::Destination::threshold, and benchmark_cfg::warnings.

Referenced by hardwireReleaseValidationJobMode(), and MessageLoggerDefaults().

156 {
157  // std::cerr << " ======= hardwireAnalysisJobMode() \n";
158  destinations.push_back ( "warnings" );
159  categories.push_back ( "FwkJob" );
160  categories.push_back ( "FwkReport" );
161  categories.push_back ( "FwkSummary" );
162  categories.push_back ( "Root_NoDictionary" );
163  statistics.push_back ( "cerr" );
164  // cerr destination -
165  // note that using the name cerr is OK since it is not std::cerr
166  // but when we want to use default as a name, we have to be circumspect
167  { Destination warnings; // PSet warnings
168  warnings.threshold = "INFO"; // string threshold = "INFO"
169  Category INFO_limits; // PSet INFO = { ... }
170  INFO_limits.limit = 0; // int32 limit = 0
171  warnings.sev["INFO"] = INFO_limits;
172  Category default_for_dest; // PSet default
173  default_for_dest.limit = 1000 ; // int32 limit = 1000
174  warnings.category["default"] = default_for_dest;
175  Category FwkReport; // PSet FwkReport
176  FwkReport.limit = 10000000; // int32 limit = 10000000
177  FwkReport.reportEvery = 100; // int32 reportEvery = 100
178  warnings.category["FwkReport"] = FwkReport;
179  Category FwkSummary; // PSet FwkSummary
180  FwkSummary.limit = 10000000; // int32 limit = 10000000
181  warnings.category["FwkSummary"] = FwkSummary;
182  Category FwkJob; // PSet FwkJob
183  FwkJob.limit = 0; // int32 limit = 0
184  warnings.category["FwkJob"] = FwkJob;
185  Category Root_NoDictionary; // PSet Root_NoDictionary
186  Root_NoDictionary.limit = 0; // int32 limit = 0
187  warnings.category["Root_NoDictionary"] = Root_NoDictionary;
188  destination["warnings"] = warnings;
189  }
190  { Destination cerr; // PSet cerr
191  cerr.threshold = "INFO"; // string threshold = "INFO"
192  destination["cerr"] = cerr;
193  }
194 } // hardwireAnalysisJobMode
std::vector< std::string > statistics
std::vector< std::string > destinations
std::map< std::string, Destination > destination
std::vector< std::string > categories
void MessageLoggerDefaults::hardwireGridJobMode ( )

Definition at line 47 of file HardwiredDefaults.cc.

References categories, edm::service::MessageLoggerDefaults::Destination::category, MessageLogger_cfi::cerr, benchmark_cfg::cerr_stats, destination, destinations, MessageLogger_cfi::FrameworkJobReport, ecalTB2006H4_GenSimDigiReco_cfg::FwkJob, ecalTB2006H4_GenSimDigiReco_cfg::FwkReport, ecalTB2006H4_GenSimDigiReco_cfg::FwkSummary, hardwireReleaseValidationJobMode(), edm::service::MessageLoggerDefaults::Category::limit, edm::service::MessageLoggerDefaults::Destination::output, edm::service::MessageLoggerDefaults::Category::reportEvery, ecalTB2006H4_GenSimDigiReco_cfg::Root_NoDictionary, edm::service::MessageLoggerDefaults::Destination::sev, statistics, and edm::service::MessageLoggerDefaults::Destination::threshold.

Referenced by MessageLoggerDefaults(), and mode().

48 {
49  // std::cerr << " ======= hardwireGridJobMode() \n";
50  destinations.push_back ( "cerr" );
51  categories.push_back ( "FwkJob" );
52  categories.push_back ( "FwkReport" );
53  categories.push_back ( "FwkSummary" );
54  categories.push_back ( "Root_NoDictionary" );
55  statistics.push_back ( "cerr_stats" );
56  // cerr destination -
57  // note that using the name cerr is OK since it is not std::cerr
58  // but when we want to use default as a name, we have to be circumspect
59  { Destination cerr; // PSet cerr
60  cerr.threshold = "INFO"; // string threshold = "INFO"
61  Category INFO_limits; // PSet INFO = { ... }
62  INFO_limits.limit = 0; // int32 limit = 0
63  cerr.sev["INFO"] = INFO_limits;
64  Category default_for_dest; // PSet default
65  default_for_dest.limit = 10000000; // int32 limit = 10000000
66  cerr.category["default"] = default_for_dest;
67  Category FwkReport; // PSet FwkReport
68  FwkReport.limit = 10000000; // int32 limit = 10000000
69  FwkReport.reportEvery = 1; // int32 reportEvery = 1
70  cerr.category["FwkReport"] = FwkReport;
71  Category FwkSummary; // PSet FwkSummary
72  FwkSummary.limit = 10000000; // int32 limit = 10000000
73  FwkSummary.reportEvery = 1; // int32 reportEvery = 1
74  cerr.category["FwkSummary"] = FwkSummary;
75  Category FwkJob; // PSet FwkJob
76  FwkJob.limit = 0; // int32 limit = 0
77  cerr.category["FwkJob"] = FwkJob;
78  Category Root_NoDictionary; // PSet Root_NoDictionary
79  Root_NoDictionary.limit = 0; // int32 limit = 0
80  cerr.category["Root_NoDictionary"] = Root_NoDictionary;
81  destination["cerr"] = cerr;
82  }
83  { Destination FrameworkJobReport; // PSet FrameworkJobReport
84  Category default_for_dest; // PSet default
85  default_for_dest.limit = 0; // int32 limit = 0
86  FrameworkJobReport.category["default"] = default_for_dest;
87  Category FwkJob; // PSet FwkJob
88  FwkJob.limit = 10000000; // int32 limit = 10000000
89  FrameworkJobReport.category["FwkJob"] = FwkJob;
90  destination["FrameworkJobReport"] = FrameworkJobReport;
91  }
92  { Destination cerr_stats; // PSet cerr_stats
93  cerr_stats.threshold = "WARNING"; // string threshold = "WARNING"
94  cerr_stats.output = "cerr"; // string output = "cerr"
95  destination["cerr_stats"] = cerr_stats;
96  }
97 
98 } // hardwireGridJobMode
std::vector< std::string > statistics
std::vector< std::string > destinations
std::map< std::string, Destination > destination
std::vector< std::string > categories
void MessageLoggerDefaults::hardwireNilJobMode ( )

Definition at line 197 of file HardwiredDefaults.cc.

Referenced by hardwireAnalysisJobMode(), and MessageLoggerDefaults().

198 {
199  // std::cerr << " ======= hardwireNilJobMode() \n";
200 } // hardwireNilJobMode
void MessageLoggerDefaults::hardwireReleaseValidationJobMode ( )

Definition at line 101 of file HardwiredDefaults.cc.

References categories, edm::service::MessageLoggerDefaults::Destination::category, MessageLogger_cfi::cerr, benchmark_cfg::cerr_stats, destination, destinations, MessageLogger_cfi::FrameworkJobReport, ecalTB2006H4_GenSimDigiReco_cfg::FwkJob, ecalTB2006H4_GenSimDigiReco_cfg::FwkReport, ecalTB2006H4_GenSimDigiReco_cfg::FwkSummary, hardwireAnalysisJobMode(), edm::service::MessageLoggerDefaults::Category::limit, edm::service::MessageLoggerDefaults::Destination::output, edm::service::MessageLoggerDefaults::Category::reportEvery, ecalTB2006H4_GenSimDigiReco_cfg::Root_NoDictionary, edm::service::MessageLoggerDefaults::Destination::sev, statistics, and edm::service::MessageLoggerDefaults::Destination::threshold.

Referenced by hardwireGridJobMode(), and MessageLoggerDefaults().

102 {
103  // std::cerr << " ======= hardwireReleaseValidationJobMode() \n";
104  destinations.push_back ( "cerr" );
105  categories.push_back ( "FwkJob" );
106  categories.push_back ( "FwkReport" );
107  categories.push_back ( "FwkSummary" );
108  categories.push_back ( "Root_NoDictionary" );
109  statistics.push_back ( "cerr_stats" );
110  // cerr destination -
111  // note that using the name cerr is OK since it is not std::cerr
112  // but when we want to use default as a name, we have to be circumspect
113  { Destination cerr; // PSet cerr
114  cerr.threshold = "INFO"; // string threshold = "INFO"
115  Category INFO_limits; // PSet INFO = { ... }
116  INFO_limits.limit = 5; // int32 limit = 5
117  cerr.sev["INFO"] = INFO_limits;
118  Category default_for_dest; // PSet default
119  default_for_dest.limit = 10000000; // int32 limit = 10000000
120  cerr.category["default"] = default_for_dest;
121  Category FwkReport; // PSet FwkReport
122  FwkReport.limit = 10000000; // int32 limit = 10000000
123  FwkReport.reportEvery = 1; // int32 reportEvery = 1
124  cerr.category["FwkReport"] = FwkReport;
125  Category FwkSummary; // PSet FwkSummary
126  FwkSummary.limit = 10000000; // int32 limit = 10000000
127  FwkSummary.reportEvery = 1; // int32 reportEvery = 1
128  cerr.category["FwkSummary"] = FwkSummary;
129  Category FwkJob; // PSet FwkJob
130  FwkJob.limit = 0; // int32 limit = 0
131  cerr.category["FwkJob"] = FwkJob;
132  Category Root_NoDictionary; // PSet Root_NoDictionary
133  Root_NoDictionary.limit = 0; // int32 limit = 0
134  cerr.category["Root_NoDictionary"] = Root_NoDictionary;
135  destination["cerr"] = cerr;
136  }
137  { Destination FrameworkJobReport; // PSet FrameworkJobReport
138  Category default_for_dest; // PSet default
139  default_for_dest.limit = 0; // int32 limit = 0
140  FrameworkJobReport.category["default"] = default_for_dest;
141  Category FwkJob; // PSet FwkJob
142  FwkJob.limit = 10000000; // int32 limit = 10000000
143  FrameworkJobReport.category["FwkJob"] = FwkJob;
144  destination["FrameworkJobReport"] = FrameworkJobReport;
145  }
146  { Destination cerr_stats; // PSet cerr_stats
147  cerr_stats.threshold = "INFO"; // string threshold = "INFO"
148  cerr_stats.output = "cerr"; // string output = "cerr"
149  destination["cerr_stats"] = cerr_stats;
150  }
151 
152 } // hardwireReleaseValidationJobMode
std::vector< std::string > statistics
std::vector< std::string > destinations
std::map< std::string, Destination > destination
std::vector< std::string > categories
int MessageLoggerDefaults::limit ( std::string const &  dest,
std::string const &  cat 
)

Definition at line 62 of file MessageLoggerDefaults.cc.

References EnergyCorrector::c, edm::service::MessageLoggerDefaults::Destination::category, edmIntegrityCheck::d, createTree::dd, destination, NO_VALUE_SET, and reportEvery().

Referenced by output().

63 {
64  int lim = NO_VALUE_SET;
65  std::map<std::string,Destination>::iterator d = destination.find(dest);
66  if (d != destination.end()) {
67  Destination & destin = d->second;
68  std::map<std::string,Category>::iterator c = destin.category.find(cat);
69  if (c != destin.category.end()) {
70  lim = c->second.limit;
71  }
72  }
73  std::map<std::string,Destination>::iterator dd = destination.find("default");
74  if ( lim == NO_VALUE_SET ) {
75  if (dd != destination.end()) {
76  Destination & def_destin = dd->second;
77  std::map<std::string,Category>::iterator
78  c = def_destin.category.find(cat);
79  if (c != def_destin.category.end()) {
80  lim = c->second.limit;
81  }
82  }
83  }
84  if ( lim == NO_VALUE_SET ) {
85  if (d != destination.end()) {
86  Destination & destin = d->second;
87  std::map<std::string,Category>::iterator
88  cd = destin.category.find("default");
89  if (cd != destin.category.end()) {
90  lim = cd->second.limit;
91  }
92  }
93  }
94  if ( lim == NO_VALUE_SET ) {
95  if (dd != destination.end()) {
96  Destination & def_destin = dd->second;
97  std::map<std::string,Category>::iterator
98  cdd = def_destin.category.find("default");
99  if (cdd != def_destin.category.end()) {
100  lim = cdd->second.limit;
101  }
102  }
103  }
104  return lim;
105 } // limit
def cat(path)
Definition: eostools.py:400
std::map< std::string, Destination > destination
edm::JobMode MessageLoggerDefaults::mode ( std::string const &  jm)
static

Definition at line 34 of file HardwiredDefaults.cc.

References edm::AnalysisJobMode, MessageLogger_cfi::cerr, edm::GridJobMode, hardwireGridJobMode(), edm::NilJobMode, and edm::ReleaseValidationJobMode.

Referenced by MessageLoggerDefaults(), edm::service::ThreadSafeLogMessageLoggerScribe::runCommand(), and edm::service::MessageLoggerScribe::runCommand().

35 {
36  if (jm == "") return GridJobMode; // no -mode option = grid
37  if (jm == "grid") return GridJobMode;
38  if (jm == "infos") return ReleaseValidationJobMode;
39  if (jm == "analysis") return AnalysisJobMode;
40  if (jm == "nil") return NilJobMode;
41  std::cerr << "Unrecognized Job Mode Option: " << jm
42  << " -- defaulting to analysis mode ";
43  return AnalysisJobMode;
44 }
std::string MessageLoggerDefaults::output ( std::string const &  dest)

Definition at line 48 of file MessageLoggerDefaults.cc.

References edmIntegrityCheck::d, destination, limit(), edm::service::MessageLoggerDefaults::Destination::output, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by threshold().

49 {
50  std::string otpt = "";
51  std::map<std::string,Destination>::iterator d = destination.find(dest);
52  if (d != destination.end()) {
53  Destination & destin = d->second;
54  otpt = destin.output;
55  }
56  // There is no default output; so if we did not find the dest, then return ""
57  return otpt;
58 } // output
std::map< std::string, Destination > destination
int MessageLoggerDefaults::reportEvery ( std::string const &  dest,
std::string const &  cat 
)

Definition at line 109 of file MessageLoggerDefaults.cc.

References EnergyCorrector::c, edm::service::MessageLoggerDefaults::Destination::category, edmIntegrityCheck::d, createTree::dd, destination, NO_VALUE_SET, and timespan().

Referenced by limit().

110 {
111  int re = NO_VALUE_SET;
112  std::map<std::string,Destination>::iterator d = destination.find(dest);
113  if (d != destination.end()) {
114  Destination & destin = d->second;
115  std::map<std::string,Category>::iterator c = destin.category.find(cat);
116  if (c != destin.category.end()) {
117  re = c->second.reportEvery;
118  }
119  }
120  std::map<std::string,Destination>::iterator dd = destination.find("default");
121  if ( re == NO_VALUE_SET ) {
122  if (dd != destination.end()) {
123  Destination & def_destin = dd->second;
124  std::map<std::string,Category>::iterator
125  c = def_destin.category.find(cat);
126  if (c != def_destin.category.end()) {
127  re = c->second.reportEvery;
128  }
129  }
130  }
131  if ( re == NO_VALUE_SET ) {
132  if (d != destination.end()) {
133  Destination & destin = d->second;
134  std::map<std::string,Category>::iterator
135  cd = destin.category.find("default");
136  if (cd != destin.category.end()) {
137  re = cd->second.reportEvery;
138  }
139  }
140  }
141  if ( re == NO_VALUE_SET ) {
142  if (dd != destination.end()) {
143  Destination & def_destin = dd->second;
144  std::map<std::string,Category>::iterator
145  cdd = def_destin.category.find("default");
146  if (cdd != def_destin.category.end()) {
147  re = cdd->second.reportEvery;
148  }
149  }
150  }
151  return re;
152 } // reportEvery
def cat(path)
Definition: eostools.py:400
std::map< std::string, Destination > destination
int MessageLoggerDefaults::sev_limit ( std::string const &  dest,
std::string const &  sev 
)

Definition at line 203 of file MessageLoggerDefaults.cc.

References EnergyCorrector::c, edmIntegrityCheck::d, createTree::dd, destination, NO_VALUE_SET, edm::service::MessageLoggerDefaults::Destination::sev, and sev_reportEvery().

Referenced by timespan().

204 {
205  int lim = NO_VALUE_SET;
206  std::map<std::string,Destination>::iterator d = destination.find(dest);
207  if (d != destination.end()) {
208  Destination & destin = d->second;
209  std::map<std::string,Category>::iterator c = destin.sev.find(cat);
210  if (c != destin.sev.end()) {
211  lim = c->second.limit;
212  }
213  }
214  std::map<std::string,Destination>::iterator dd = destination.find("default");
215  if ( lim == NO_VALUE_SET ) {
216  if (dd != destination.end()) {
217  Destination & def_destin = dd->second;
218  std::map<std::string,Category>::iterator
219  c = def_destin.sev.find(cat);
220  if (c != def_destin.sev.end()) {
221  lim = c->second.limit;
222  }
223  }
224  }
225  if ( lim == NO_VALUE_SET ) {
226  if (d != destination.end()) {
227  Destination & destin = d->second;
228  std::map<std::string,Category>::iterator
229  cd = destin.sev.find("default");
230  if (cd != destin.sev.end()) {
231  lim = cd->second.limit;
232  }
233  }
234  }
235  if ( lim == NO_VALUE_SET ) {
236  if (dd != destination.end()) {
237  Destination & def_destin = dd->second;
238  std::map<std::string,Category>::iterator
239  cdd = def_destin.sev.find("default");
240  if (cdd != def_destin.sev.end()) {
241  lim = cdd->second.limit;
242  }
243  }
244  }
245  return lim;
246 } // sev_limit
def cat(path)
Definition: eostools.py:400
std::map< std::string, Destination > destination
int MessageLoggerDefaults::sev_reportEvery ( std::string const &  dest,
std::string const &  sev 
)

Definition at line 250 of file MessageLoggerDefaults.cc.

References EnergyCorrector::c, edmIntegrityCheck::d, createTree::dd, destination, NO_VALUE_SET, edm::service::MessageLoggerDefaults::Destination::sev, and sev_timespan().

Referenced by sev_limit().

251 {
252  int re = NO_VALUE_SET;
253  std::map<std::string,Destination>::iterator d = destination.find(dest);
254  if (d != destination.end()) {
255  Destination & destin = d->second;
256  std::map<std::string,Category>::iterator c = destin.sev.find(cat);
257  if (c != destin.sev.end()) {
258  re = c->second.reportEvery;
259  }
260  }
261  std::map<std::string,Destination>::iterator dd = destination.find("default");
262  if ( re == NO_VALUE_SET ) {
263  if (dd != destination.end()) {
264  Destination & def_destin = dd->second;
265  std::map<std::string,Category>::iterator
266  c = def_destin.sev.find(cat);
267  if (c != def_destin.sev.end()) {
268  re = c->second.reportEvery;
269  }
270  }
271  }
272  if ( re == NO_VALUE_SET ) {
273  if (d != destination.end()) {
274  Destination & destin = d->second;
275  std::map<std::string,Category>::iterator
276  cd = destin.sev.find("default");
277  if (cd != destin.sev.end()) {
278  re = cd->second.reportEvery;
279  }
280  }
281  }
282  if ( re == NO_VALUE_SET ) {
283  if (dd != destination.end()) {
284  Destination & def_destin = dd->second;
285  std::map<std::string,Category>::iterator
286  cdd = def_destin.sev.find("default");
287  if (cdd != def_destin.sev.end()) {
288  re = cdd->second.reportEvery;
289  }
290  }
291  }
292  return re;
293 } // sev_reportEvery
def cat(path)
Definition: eostools.py:400
std::map< std::string, Destination > destination
int MessageLoggerDefaults::sev_timespan ( std::string const &  dest,
std::string const &  sev 
)

Definition at line 297 of file MessageLoggerDefaults.cc.

References EnergyCorrector::c, edmIntegrityCheck::d, createTree::dd, destination, NO_VALUE_SET, and edm::service::MessageLoggerDefaults::Destination::sev.

Referenced by sev_reportEvery().

298 {
299  int tim = NO_VALUE_SET;
300  std::map<std::string,Destination>::iterator d = destination.find(dest);
301  if (d != destination.end()) {
302  Destination & destin = d->second;
303  std::map<std::string,Category>::iterator c = destin.sev.find(cat);
304  if (c != destin.sev.end()) {
305  tim = c->second.timespan;
306  }
307  }
308  std::map<std::string,Destination>::iterator dd = destination.find("default");
309  if ( tim == NO_VALUE_SET ) {
310  if (dd != destination.end()) {
311  Destination & def_destin = dd->second;
312  std::map<std::string,Category>::iterator
313  c = def_destin.sev.find(cat);
314  if (c != def_destin.sev.end()) {
315  tim = c->second.timespan;
316  }
317  }
318  }
319  if ( tim == NO_VALUE_SET ) {
320  if (d != destination.end()) {
321  Destination & destin = d->second;
322  std::map<std::string,Category>::iterator
323  cd = destin.sev.find("default");
324  if (cd != destin.sev.end()) {
325  tim = cd->second.timespan;
326  }
327  }
328  }
329  if ( tim == NO_VALUE_SET ) {
330  if (dd != destination.end()) {
331  Destination & def_destin = dd->second;
332  std::map<std::string,Category>::iterator
333  cdd = def_destin.sev.find("default");
334  if (cdd != def_destin.sev.end()) {
335  tim = cdd->second.timespan;
336  }
337  }
338  }
339  return tim;
340 } // sev_timespan
def cat(path)
Definition: eostools.py:400
std::map< std::string, Destination > destination
std::string MessageLoggerDefaults::threshold ( std::string const &  dest)

Definition at line 28 of file MessageLoggerDefaults.cc.

References edmIntegrityCheck::d, createTree::dd, destination, output(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::service::MessageLoggerDefaults::Destination::threshold.

29 {
30  std::string thr = "";
31  std::map<std::string,Destination>::iterator d = destination.find(dest);
32  if (d != destination.end()) {
33  Destination & destin = d->second;
34  thr = destin.threshold;
35  }
36  std::map<std::string,Destination>::iterator dd = destination.find("default");
37  if ( thr == "" ) {
38  if (dd != destination.end()) {
39  Destination & def_destin = dd->second;
40  thr = def_destin.threshold;
41  }
42  }
43  return thr;
44 } // threshold
std::map< std::string, Destination > destination
int MessageLoggerDefaults::timespan ( std::string const &  dest,
std::string const &  cat 
)

Definition at line 156 of file MessageLoggerDefaults.cc.

References EnergyCorrector::c, edm::service::MessageLoggerDefaults::Destination::category, edmIntegrityCheck::d, createTree::dd, destination, NO_VALUE_SET, and sev_limit().

Referenced by reportEvery().

157 {
158  int tim = NO_VALUE_SET;
159  std::map<std::string,Destination>::iterator d = destination.find(dest);
160  if (d != destination.end()) {
161  Destination & destin = d->second;
162  std::map<std::string,Category>::iterator c = destin.category.find(cat);
163  if (c != destin.category.end()) {
164  tim = c->second.timespan;
165  }
166  }
167  std::map<std::string,Destination>::iterator dd = destination.find("default");
168  if ( tim == NO_VALUE_SET ) {
169  if (dd != destination.end()) {
170  Destination & def_destin = dd->second;
171  std::map<std::string,Category>::iterator
172  c = def_destin.category.find(cat);
173  if (c != def_destin.category.end()) {
174  tim = c->second.timespan;
175  }
176  }
177  }
178  if ( tim == NO_VALUE_SET ) {
179  if (d != destination.end()) {
180  Destination & destin = d->second;
181  std::map<std::string,Category>::iterator
182  cd = destin.category.find("default");
183  if (cd != destin.category.end()) {
184  tim = cd->second.timespan;
185  }
186  }
187  }
188  if ( tim == NO_VALUE_SET ) {
189  if (dd != destination.end()) {
190  Destination & def_destin = dd->second;
191  std::map<std::string,Category>::iterator
192  cdd = def_destin.category.find("default");
193  if (cdd != def_destin.category.end()) {
194  tim = cdd->second.timespan;
195  }
196  }
197  }
198  return tim;
199 } // timespan
def cat(path)
Definition: eostools.py:400
std::map< std::string, Destination > destination

Member Data Documentation

std::vector<std::string> edm::service::MessageLoggerDefaults::categories
std::map<std::string,Destination> edm::service::MessageLoggerDefaults::destination
std::vector<std::string> edm::service::MessageLoggerDefaults::destinations
std::vector<std::string> edm::service::MessageLoggerDefaults::fwkJobReports

Definition at line 96 of file MessageLoggerDefaults.h.

const int edm::service::MessageLoggerDefaults::NO_VALUE_SET = -45654
static
std::vector<std::string> edm::service::MessageLoggerDefaults::statistics