CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Types | Static Private Member Functions | Private Attributes
LogErrorEventFilter Class Reference
Inheritance diagram for LogErrorEventFilter:
edm::one::EDFilter< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::EndLuminosityBlockProducer > edm::one::EDFilterBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Classes

struct  ErrorSort
 

Public Member Functions

virtual void beginLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &iSetup) override
 
virtual void beginRun (const edm::Run &run, const edm::EventSetup &iSetup) override
 
virtual void endJob () override
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &iSetup) override
 
virtual void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, const edm::EventSetup &iSetup) override
 
virtual void endRun (const edm::Run &run, const edm::EventSetup &iSetup) override
 
virtual bool filter (edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
 LogErrorEventFilter (const edm::ParameterSet &iConfig)
 
virtual ~LogErrorEventFilter ()
 
- Public Member Functions inherited from edm::one::EDFilter< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::EndLuminosityBlockProducer >
 EDFilter ()=default
 
- Public Member Functions inherited from edm::one::EDFilterBase
 EDFilterBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDFilterBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Types

typedef edm::ErrorSummaryEntry Error
 
typedef std::vector
< edm::ErrorSummaryEntry
ErrorList
 
typedef std::set
< edm::ErrorSummaryEntry,
ErrorSort
ErrorSet
 

Static Private Member Functions

template<typename Collection >
static void increment (ErrorSet &scoreboard, Collection &list)
 
template<typename Collection >
static void print (const Collection &errors)
 
static std::auto_ptr< ErrorListserialize (const ErrorSet &set)
 

Private Attributes

std::set< std::string > categoriesToIgnore_
 
std::set< std::string > categoriesToWatch_
 
ErrorSet errorCollectionAll_
 
ErrorSet errorCollectionThisLumi_
 
ErrorSet errorCollectionThisRun_
 
bool forcedValue_
 
size_t maxSavedEventsPerLumi_
 
std::set< std::string > modulesToIgnore_
 
std::set< std::string > modulesToWatch_
 
size_t nfailLumi_
 
size_t nfailRun_
 
size_t npassLumi_
 
size_t npassRun_
 
bool readSummaryMode_
 
edm::InputTag src_
 
edm::EDGetTokenT< ErrorListsrcT_
 
std::map< std::pair< uint32_t,
uint32_t >, std::pair< size_t,
size_t > > 
statsPerLumi_
 
std::map< uint32_t, std::pair
< size_t, size_t > > 
statsPerRun_
 
bool taggedMode_
 
double thresholdPerLumi_
 
double thresholdPerRun_
 
bool verbose_
 
bool veryVerbose_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDFilterBase
typedef EDFilterBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDFilterBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 33 of file LogErrorEventFilter.cc.

Member Typedef Documentation

Definition at line 49 of file LogErrorEventFilter.cc.

Definition at line 58 of file LogErrorEventFilter.cc.

Definition at line 59 of file LogErrorEventFilter.cc.

Constructor & Destructor Documentation

LogErrorEventFilter::LogErrorEventFilter ( const edm::ParameterSet iConfig)
explicit

Definition at line 88 of file LogErrorEventFilter.cc.

References MillePedeFileConverter_cfg::categories, categoriesToIgnore_, categoriesToWatch_, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), edmConvertToStreamModule::modules, modulesToIgnore_, and modulesToWatch_.

88  :
89  src_(iConfig.getParameter<edm::InputTag>("src")),
90  srcT_(consumes<ErrorList>(iConfig.getParameter<edm::InputTag>("src"))),
91  readSummaryMode_(iConfig.existsAs<bool>("readSummaryMode") ? iConfig.getParameter<bool>("readSummaryMode") : false),
92  thresholdPerLumi_(iConfig.getParameter<double>("maxErrorFractionInLumi")),
93  thresholdPerRun_(iConfig.getParameter<double>("maxErrorFractionInRun")),
94  maxSavedEventsPerLumi_(iConfig.getParameter<uint32_t>("maxSavedEventsPerLumiAndError")),
95  verbose_(iConfig.getUntrackedParameter<bool>("verbose", false)),
96  veryVerbose_(iConfig.getUntrackedParameter<bool>("veryVerbose", false)),
97  taggedMode_(iConfig.getUntrackedParameter<bool>("taggedMode", false)),
98  forcedValue_(iConfig.getUntrackedParameter<bool>("forcedValue", true))
99 {
100  produces<ErrorList, edm::InLumi>();
101  produces<int, edm::InLumi>("pass");
102  produces<int, edm::InLumi>("fail");
103  //produces<ErrorList, edm::InRun>();
104  produces<bool>();
105 
106  if (iConfig.existsAs<std::vector<std::string> >("modulesToWatch")) {
107  std::vector<std::string> modules = iConfig.getParameter<std::vector<std::string> >("modulesToWatch");
108  if (!(modules.size() == 1 && modules[0] == "*")) {
109  modulesToWatch_.insert(modules.begin(), modules.end());
110  }
111  }
112  if (iConfig.existsAs<std::vector<std::string> >("modulesToIgnore")) {
113  std::vector<std::string> modules = iConfig.getParameter<std::vector<std::string> >("modulesToIgnore");
114  if (!(modules.size() == 1 && modules[0] == "*")) {
115  modulesToIgnore_.insert(modules.begin(), modules.end());
116  }
117  }
118  if (iConfig.existsAs<std::vector<std::string> >("categoriesToWatch")) {
119  std::vector<std::string> categories = iConfig.getParameter<std::vector<std::string> >("categoriesToWatch");
120  if (!(categories.size() == 1 && categories[0] == "*")) {
121  categoriesToWatch_.insert(categories.begin(), categories.end());
122  }
123  }
124  if (iConfig.existsAs<std::vector<std::string> >("categoriesToIgnore")) {
125  std::vector<std::string> categories = iConfig.getParameter<std::vector<std::string> >("categoriesToIgnore");
126  if (!(categories.size() == 1 && categories[0] == "*")) {
127  categoriesToIgnore_.insert(categories.begin(), categories.end());
128  }
129  }
130  //std::ostream_iterator<std::string> dump(std::cout, ", ");
131  //std::cout << "\nWatch modules: " ; std::copy(modulesToWatch_.begin(), modulesToWatch_.end(), dump);
132  //std::cout << "\nIgnore modules: " ; std::copy(modulesToIgnore_.begin(), modulesToIgnore_.end(), dump);
133  //std::cout << "\nIgnore categories: " ; std::copy(categoriesToIgnore_.begin(), categoriesToIgnore_.end(), dump);
134  //std::cout << "\nWatch categories: " ; std::copy(categoriesToWatch_.begin(), categoriesToWatch_.end(), dump);
135  //std::cout << std::endl;
136 
137 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::set< std::string > categoriesToIgnore_
std::set< std::string > modulesToWatch_
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:186
std::set< std::string > categoriesToWatch_
std::set< std::string > modulesToIgnore_
edm::EDGetTokenT< ErrorList > srcT_
virtual LogErrorEventFilter::~LogErrorEventFilter ( )
inlinevirtual

Definition at line 38 of file LogErrorEventFilter.cc.

38 { }

Member Function Documentation

void LogErrorEventFilter::beginLuminosityBlock ( const edm::LuminosityBlock lumi,
const edm::EventSetup iSetup 
)
overridevirtual

Definition at line 140 of file LogErrorEventFilter.cc.

References errorCollectionThisLumi_, edm::LuminosityBlock::getByLabel(), patZpeak::handle, increment(), edm::InputTag::label(), nfailLumi_, nfailRun_, npassLumi_, npassRun_, edm::InputTag::process(), readSummaryMode_, and src_.

140  {
141  npassLumi_ = 0; nfailLumi_ = 0;
142  errorCollectionThisLumi_.clear();
143  if (readSummaryMode_) {
145  edm::Handle<int> hpass, hfail;
146  lumi.getByLabel(src_, handle);
147  lumi.getByLabel(edm::InputTag(src_.label(), "pass", src_.process()), hpass);
148  lumi.getByLabel(edm::InputTag(src_.label(), "fail", src_.process()), hfail);
150  npassLumi_ = *hpass;
151  nfailLumi_ = *hfail;
154  }
155 }
bool getByLabel(std::string const &label, Handle< PROD > &result) const
static void increment(ErrorSet &scoreboard, Collection &list)
tuple handle
Definition: patZpeak.py:22
std::string const & label() const
Definition: InputTag.h:43
std::string const & process() const
Definition: InputTag.h:47
void LogErrorEventFilter::beginRun ( const edm::Run run,
const edm::EventSetup iSetup 
)
overridevirtual

Definition at line 179 of file LogErrorEventFilter.cc.

References errorCollectionThisRun_, nfailRun_, and npassRun_.

179  {
180  npassRun_ = 0; nfailRun_ = 0;
181  errorCollectionThisRun_.clear();
182 }
void LogErrorEventFilter::endJob ( void  )
overridevirtual

Reimplemented from edm::one::EDFilterBase.

Definition at line 200 of file LogErrorEventFilter.cc.

References counter, gather_cfg::cout, errorCollectionAll_, funct::fract(), print(), statsPerLumi_, statsPerRun_, thresholdPerLumi_, thresholdPerRun_, and verbose_.

200  {
201  if (verbose_) {
202  std::cout << "\n === REPORT FOR JOB === " << std::endl;
204 
205  typedef std::pair<size_t,size_t> counter;
206 
207  std::cout << "\n === SCOREBOARD PER RUN === " << std::endl;
208  typedef std::pair<uint32_t, counter> hitRun;
209  foreach(const hitRun &hit, statsPerRun_) {
210  double fract = hit.second.second/double(hit.second.first + hit.second.second);
211  printf("run %6d: fail %7zu, pass %7zu, fraction %7.3f%%%s\n", hit.first, hit.second.second, hit.second.first, fract*100., (fract >= thresholdPerRun_ ? " (run excluded from summary list)" : ""));
212  }
213 
214  std::cout << "\n === SCOREBOARD PER LUMI === " << std::endl;
215  typedef std::pair<std::pair<uint32_t,uint32_t>, counter> hitLumi;
216  foreach(const hitLumi &hit, statsPerLumi_) {
217  double fract = hit.second.second/double(hit.second.first + hit.second.second);
218  printf("run %6d, lumi %4d: fail %zu, pass %zu, fraction %7.3f%%%s\n", hit.first.first, hit.first.second, hit.second.second, hit.second.first, fract*100., (fract >= thresholdPerLumi_ ? " (lumi excluded from run list)" : ""));
219  }
220  }
221 }
static void print(const Collection &errors)
const Fraction< n, m >::type & fract()
Definition: Fraction.h:38
std::map< uint32_t, std::pair< size_t, size_t > > statsPerRun_
std::map< std::pair< uint32_t, uint32_t >, std::pair< size_t, size_t > > statsPerLumi_
static std::atomic< unsigned int > counter
tuple cout
Definition: gather_cfg.py:121
void LogErrorEventFilter::endLuminosityBlock ( const edm::LuminosityBlock lumi,
const edm::EventSetup iSetup 
)
overridevirtual

Definition at line 157 of file LogErrorEventFilter.cc.

References gather_cfg::cout, errorCollectionThisLumi_, errorCollectionThisRun_, increment(), edm::LuminosityBlockBase::luminosityBlock(), nfailLumi_, npassLumi_, print(), edm::LuminosityBlockBase::run(), statsPerLumi_, thresholdPerLumi_, and verbose_.

157  {
158  statsPerLumi_[std::pair<uint32_t,uint32_t>(lumi.run(), lumi.luminosityBlock())] = std::pair<size_t,size_t>(npassLumi_, nfailLumi_);
161  }
162  if (verbose_) {
163  if (!errorCollectionThisLumi_.empty()) {
164  std::cout << "\n === REPORT FOR RUN " << lumi.run() << " LUMI " << lumi.luminosityBlock() << " === " << std::endl;
166  }
167  }
168 }
static void print(const Collection &errors)
LuminosityBlockNumber_t luminosityBlock() const
static void increment(ErrorSet &scoreboard, Collection &list)
RunNumber_t run() const
std::map< std::pair< uint32_t, uint32_t >, std::pair< size_t, size_t > > statsPerLumi_
tuple cout
Definition: gather_cfg.py:121
void LogErrorEventFilter::endLuminosityBlockProduce ( edm::LuminosityBlock lumi,
const edm::EventSetup iSetup 
)
overridevirtual

Definition at line 171 of file LogErrorEventFilter.cc.

References errorCollectionThisLumi_, nfailLumi_, npassLumi_, edm::LuminosityBlock::put(), and serialize().

171  {
173  std::auto_ptr<int> outpass(new int(npassLumi_)); lumi.put(outpass, "pass");
174  std::auto_ptr<int> outfail(new int(nfailLumi_)); lumi.put(outfail, "fail");
175 }
static std::auto_ptr< ErrorList > serialize(const ErrorSet &set)
void put(std::auto_ptr< PROD > product)
Put a new product.
void LogErrorEventFilter::endRun ( const edm::Run run,
const edm::EventSetup iSetup 
)
overridevirtual

Definition at line 185 of file LogErrorEventFilter.cc.

References gather_cfg::cout, errorCollectionAll_, errorCollectionThisRun_, increment(), nfailRun_, npassRun_, print(), edm::RunBase::run(), statsPerRun_, thresholdPerRun_, and verbose_.

185  {
186  statsPerRun_[run.run()] = std::pair<size_t,size_t>(npassRun_, nfailRun_);
187  if (nfailRun_ < thresholdPerRun_*(npassRun_+nfailRun_)) {
189  }
190  if (verbose_) {
191  if (!errorCollectionThisRun_.empty()) {
192  std::cout << "\n === REPORT FOR RUN " << run.run() << " === " << std::endl;
194  }
195  }
196  //run.put(serialize(errorCollectionThisRun_));
197 }
static void print(const Collection &errors)
RunNumber_t run() const
Definition: RunBase.h:42
static void increment(ErrorSet &scoreboard, Collection &list)
std::map< uint32_t, std::pair< size_t, size_t > > statsPerRun_
tuple cout
Definition: gather_cfg.py:121
bool LogErrorEventFilter::filter ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Implements edm::one::EDFilterBase.

Definition at line 224 of file LogErrorEventFilter.cc.

References categoriesToIgnore_, categoriesToWatch_, edm::ErrorSummaryEntry::category, edm::ErrorSummaryEntry::count, gather_cfg::cout, errorCollectionThisLumi_, benchmark_cfg::errors, edm::EventID::event(), cmsPerfPublish::fail(), forcedValue_, edm::Event::getByToken(), edm::EventBase::id(), citk::if(), edm::EventBase::luminosityBlock(), maxSavedEventsPerLumi_, edm::ErrorSummaryEntry::module, modulesToIgnore_, modulesToWatch_, nfailLumi_, nfailRun_, npassLumi_, npassRun_, print(), edm::Event::put(), readSummaryMode_, query::result, edm::Event::run(), cuy::save, srcT_, taggedMode_, and veryVerbose_.

Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filter(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setDataAccessor(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView().

224  {
225  if (readSummaryMode_) return true;
226 
227  bool fail = false, save = false;
228 
230  iEvent.getByToken(srcT_, errors);
231 
232 
233  if (errors->empty()) {
234  npassRun_++; npassLumi_++;
235  iEvent.put( std::auto_ptr<bool>(new bool(false)) );
236 
237  if(taggedMode_) return forcedValue_;
238  return false;
239  }
240 
241  foreach (const Error &err, *errors) {
242  if (!modulesToWatch_.empty() && (modulesToWatch_.count(err.module) == 0)) continue;
243  if (!categoriesToWatch_.empty() && (categoriesToWatch_.count(err.category) == 0)) continue;
244  if (!modulesToIgnore_.empty() && (modulesToIgnore_.count(err.module) != 0)) continue;
245  if (!categoriesToIgnore_.empty() && (categoriesToIgnore_.count(err.category) != 0)) continue;
246 
247  fail = true;
248  std::pair<ErrorSet::iterator, bool> result = errorCollectionThisLumi_.insert(err);
249  if (!result.second) { // already there
250  // need the const_cast as set elements are const
251  const_cast<unsigned int &>(result.first->count) += err.count;
252  if (result.first->count < maxSavedEventsPerLumi_) save = true;
253  } else {
254  save = true;
255  }
256 
257  }
258  if (save && veryVerbose_) {
259  std::cout << "\n === REPORT FOR EVENT " << iEvent.id().event() << " RUN " << iEvent.run() << " LUMI " << iEvent.luminosityBlock() << " === " << std::endl;
260  print(*errors);
261  }
262 
263 
264  if (fail) { nfailLumi_++; nfailRun_++; } else { npassRun_++; npassLumi_++; }
265  iEvent.put( std::auto_ptr<bool>(new bool(fail)) ); // fail is the unbiased boolean
266 
267  if(taggedMode_) return forcedValue_;
268  return save;
269 }
EventNumber_t event() const
Definition: EventID.h:41
static void print(const Collection &errors)
std::set< std::string > categoriesToIgnore_
std::set< std::string > modulesToWatch_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:464
edm::ErrorSummaryEntry Error
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:63
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:120
tuple result
Definition: query.py:137
RunNumber_t run() const
Definition: Event.h:92
if(c.getParameter< edm::InputTag >("puppiValueMap").label().size()!=0)
std::set< std::string > categoriesToWatch_
std::set< std::string > modulesToIgnore_
edm::EventID id() const
Definition: EventBase.h:60
list save
Definition: cuy.py:1163
tuple cout
Definition: gather_cfg.py:121
edm::EDGetTokenT< ErrorList > srcT_
template<typename Collection >
void LogErrorEventFilter::increment ( ErrorSet scoreboard,
Collection &  list 
)
staticprivate

Definition at line 273 of file LogErrorEventFilter.cc.

References edm::ErrorSummaryEntry::count, and query::result.

Referenced by beginLuminosityBlock(), endLuminosityBlock(), and endRun().

273  {
274  foreach (const Error &err, list) {
275  std::pair<ErrorSet::iterator, bool> result = scoreboard.insert(err);
276  // need the const_cast as set elements are const
277  if (!result.second) const_cast<unsigned int &>(result.first->count) += err.count;
278  }
279 }
edm::ErrorSummaryEntry Error
tuple result
Definition: query.py:137
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 list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
template<typename Collection >
void LogErrorEventFilter::print ( const Collection &  errors)
staticprivate

Definition at line 283 of file LogErrorEventFilter.cc.

References edm::ErrorSummaryEntry::category, edm::ErrorSummaryEntry::count, gather_cfg::cout, edm::ELseverityLevel::getName(), edm::ErrorSummaryEntry::module, and edm::ErrorSummaryEntry::severity.

Referenced by endJob(), endLuminosityBlock(), endRun(), and filter().

283  {
284  using namespace std;
285  cout << setw(40) << left << "Category" << " " <<
286  setw(60) << left << "Module" << " " <<
287  setw(10) << left << "Level" << " " <<
288  setw(9) << right << "Count" << "\n";
289  cout << setw(40) << left << "----------------------------------------" << " " <<
290  setw(60) << left << "------------------------------------------------------------" << " " <<
291  setw(10) << left << "----------" << " " <<
292  setw(9) << right << "---------" << "\n";
293  foreach (const Error &err, errors) {
294  cout << setw(40) << left << err.category << " " <<
295  setw(60) << left << err.module << " " <<
296  setw(10) << left << err.severity.getName() << " " <<
297  setw(9) << right << err.count << "\n";
298  }
299  cout << flush;
300 }
edm::ErrorSummaryEntry Error
tuple cout
Definition: gather_cfg.py:121
static std::auto_ptr<ErrorList > LogErrorEventFilter::serialize ( const ErrorSet set)
inlinestaticprivate

Definition at line 82 of file LogErrorEventFilter.cc.

References run_regression::ret.

Referenced by endLuminosityBlockProduce().

82  {
83  std::auto_ptr<ErrorList> ret(new ErrorList(set.begin(), set.end()));
84  return ret;
85  }
std::vector< edm::ErrorSummaryEntry > ErrorList

Member Data Documentation

std::set<std::string> LogErrorEventFilter::categoriesToIgnore_
private

Definition at line 69 of file LogErrorEventFilter.cc.

Referenced by filter(), and LogErrorEventFilter().

std::set<std::string> LogErrorEventFilter::categoriesToWatch_
private

Definition at line 68 of file LogErrorEventFilter.cc.

Referenced by filter(), and LogErrorEventFilter().

ErrorSet LogErrorEventFilter::errorCollectionAll_
private

Definition at line 72 of file LogErrorEventFilter.cc.

Referenced by endJob(), and endRun().

ErrorSet LogErrorEventFilter::errorCollectionThisLumi_
private
ErrorSet LogErrorEventFilter::errorCollectionThisRun_
private

Definition at line 73 of file LogErrorEventFilter.cc.

Referenced by beginRun(), endLuminosityBlock(), and endRun().

bool LogErrorEventFilter::forcedValue_
private

Definition at line 77 of file LogErrorEventFilter.cc.

Referenced by filter().

size_t LogErrorEventFilter::maxSavedEventsPerLumi_
private

Definition at line 75 of file LogErrorEventFilter.cc.

Referenced by filter().

std::set<std::string> LogErrorEventFilter::modulesToIgnore_
private

Definition at line 67 of file LogErrorEventFilter.cc.

Referenced by filter(), and LogErrorEventFilter().

std::set<std::string> LogErrorEventFilter::modulesToWatch_
private

Definition at line 66 of file LogErrorEventFilter.cc.

Referenced by filter(), and LogErrorEventFilter().

size_t LogErrorEventFilter::nfailLumi_
private
size_t LogErrorEventFilter::nfailRun_
private

Definition at line 65 of file LogErrorEventFilter.cc.

Referenced by beginLuminosityBlock(), beginRun(), endRun(), and filter().

size_t LogErrorEventFilter::npassLumi_
private
size_t LogErrorEventFilter::npassRun_
private

Definition at line 65 of file LogErrorEventFilter.cc.

Referenced by beginLuminosityBlock(), beginRun(), endRun(), and filter().

bool LogErrorEventFilter::readSummaryMode_
private

Definition at line 63 of file LogErrorEventFilter.cc.

Referenced by beginLuminosityBlock(), and filter().

edm::InputTag LogErrorEventFilter::src_
private

Definition at line 61 of file LogErrorEventFilter.cc.

Referenced by beginLuminosityBlock().

edm::EDGetTokenT<ErrorList> LogErrorEventFilter::srcT_
private

Definition at line 62 of file LogErrorEventFilter.cc.

Referenced by filter().

std::map<std::pair<uint32_t,uint32_t>, std::pair<size_t,size_t> > LogErrorEventFilter::statsPerLumi_
private

Definition at line 70 of file LogErrorEventFilter.cc.

Referenced by endJob(), and endLuminosityBlock().

std::map<uint32_t, std::pair<size_t,size_t> > LogErrorEventFilter::statsPerRun_
private

Definition at line 71 of file LogErrorEventFilter.cc.

Referenced by endJob(), and endRun().

bool LogErrorEventFilter::taggedMode_
private

Definition at line 77 of file LogErrorEventFilter.cc.

Referenced by filter().

double LogErrorEventFilter::thresholdPerLumi_
private

Definition at line 74 of file LogErrorEventFilter.cc.

Referenced by endJob(), and endLuminosityBlock().

double LogErrorEventFilter::thresholdPerRun_
private

Definition at line 74 of file LogErrorEventFilter.cc.

Referenced by endJob(), and endRun().

bool LogErrorEventFilter::verbose_
private

Definition at line 76 of file LogErrorEventFilter.cc.

Referenced by endJob(), endLuminosityBlock(), and endRun().

bool LogErrorEventFilter::veryVerbose_
private

Definition at line 76 of file LogErrorEventFilter.cc.

Referenced by filter().