CMS 3D CMS Logo

TestServiceOne.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FWCore/Integration
4 // Class : TestServiceOne
5 //
6 // Implementation:
7 // Service initially intended for testing behavior after exceptions.
8 // ExceptionThrowingProducer uses this and is in the same test plugin
9 // library and could be used to access the service if it was ever useful
10 // for debugging issues related to begin/end transitions.
11 //
12 // Original Author: W. David Dagenhart
13 // Created: 13 March 2024
14 
16 
26 
27 #include <ostream>
28 
29 using edm::GlobalContext;
31 using edm::StreamContext;
32 
33 namespace {
34 
35  class TimeStamper {
36  public:
37  TimeStamper(bool enable) : enabled_(enable) {}
38 
39  friend std::ostream& operator<<(std::ostream& out, TimeStamper const& timestamp) {
40  if (timestamp.enabled_)
41  out << std::setprecision(2) << edm::TimeOfDay() << " ";
42  return out;
43  }
44 
45  private:
46  bool enabled_;
47  };
48 
49  const char* globalIndent = " ";
50  const char* globalModuleIndent = " ";
51  const char* streamIndent = " ";
52  const char* streamModuleIndent = " ";
53 } // namespace
54 
55 namespace edmtest {
56 
58  : verbose_(iPS.getUntrackedParameter<bool>("verbose")),
59  printTimestamps_(iPS.getUntrackedParameter<bool>("printTimestamps")) {
62  iRegistry.watchPreEndJob(this, &TestServiceOne::preEndJob);
64 
69 
74 
79 
84 
89 
94 
99 
104 
109 
112 
117 
122 
127 
132 
135  }
136 
139  desc.addUntracked<bool>("verbose", false)->setComment("Prints LogAbsolute messages for every transition");
140  desc.addUntracked<bool>("printTimestamps", false)
141  ->setComment("Include a time stamp in message printed for every transition");
142  descriptions.add("TestServiceOne", desc);
143  }
144 
146  ++nPreBeginJob_;
147  if (verbose_) {
148  edm::LogAbsolute out("TestServiceOne");
149  out << globalIndent << "TestServiceOne::preBeginJob " << TimeStamper(printTimestamps_);
150  }
151  }
152 
154  ++nPostBeginJob_;
155  if (verbose_) {
156  edm::LogAbsolute out("TestServiceOne");
157  out << globalIndent << "TestServiceOne::postBeginJob " << TimeStamper(printTimestamps_);
158  }
159  }
160 
162  ++nPreEndJob_;
163  if (verbose_) {
164  edm::LogAbsolute out("TestServiceOne");
165  out << globalIndent << "TestServiceOne::preEndJob " << TimeStamper(printTimestamps_);
166  }
167  }
168 
170  ++nPostEndJob_;
171  if (verbose_) {
172  edm::LogAbsolute out("TestServiceOne");
173  out << globalIndent << "TestServiceOne::postEndJob " << TimeStamper(printTimestamps_);
174  }
175  }
176 
179  if (verbose_) {
180  edm::LogAbsolute out("TestServiceOne");
181  out << globalModuleIndent << "TestServiceOne::preModuleBeginJob " << TimeStamper(printTimestamps_)
182  << " label = " << desc.moduleLabel();
183  }
184  }
185 
188  if (verbose_) {
189  edm::LogAbsolute out("TestServiceOne");
190  out << globalModuleIndent << "TestServiceOne::postModuleBeginJob " << TimeStamper(printTimestamps_)
191  << " label = " << desc.moduleLabel();
192  }
193  }
194 
197  if (verbose_) {
198  edm::LogAbsolute out("TestServiceOne");
199  out << globalModuleIndent << "TestServiceOne::preModuleEndJob " << TimeStamper(printTimestamps_)
200  << " label = " << desc.moduleLabel();
201  }
202  }
203 
206  if (verbose_) {
207  edm::LogAbsolute out("TestServiceOne");
208  out << globalModuleIndent << "TestServiceOne::postModuleEndJob " << TimeStamper(printTimestamps_)
209  << " label = " << desc.moduleLabel();
210  }
211  }
212 
215  if (verbose_) {
216  edm::LogAbsolute out("TestServiceOne");
217  out << streamIndent << "TestServiceOne::preBeginStream " << TimeStamper(printTimestamps_)
218  << " stream = " << sc.streamID();
219  }
220  }
221 
224  if (verbose_) {
225  edm::LogAbsolute out("TestServiceOne");
226  out << streamIndent << "TestServiceOne::postBeginStream " << TimeStamper(printTimestamps_)
227  << " stream = " << sc.streamID();
228  }
229  }
230 
232  ++nPreEndStream_;
233  if (verbose_) {
234  edm::LogAbsolute out("TestServiceOne");
235  out << streamIndent << "TestServiceOne::preEndStream " << TimeStamper(printTimestamps_)
236  << " stream = " << sc.streamID();
237  }
238  }
239 
241  ++nPostEndStream_;
242  if (verbose_) {
243  edm::LogAbsolute out("TestServiceOne");
244  out << streamIndent << "TestServiceOne::postEndStream " << TimeStamper(printTimestamps_)
245  << " stream = " << sc.streamID();
246  }
247  }
248 
251  if (verbose_) {
252  edm::LogAbsolute out("TestServiceOne");
253  out << streamModuleIndent << "TestServiceOne::preModuleBeginStream " << TimeStamper(printTimestamps_)
254  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel();
255  }
256  }
257 
260  if (verbose_) {
261  edm::LogAbsolute out("TestServiceOne");
262  out << streamModuleIndent << "TestServiceOne::postModuleBeginStream " << TimeStamper(printTimestamps_)
263  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel();
264  }
265  }
266 
269  if (verbose_) {
270  edm::LogAbsolute out("TestServiceOne");
271  out << streamModuleIndent << "TestServiceOne::preModuleEndStream " << TimeStamper(printTimestamps_)
272  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel();
273  }
274  }
275 
278  if (verbose_) {
279  edm::LogAbsolute out("TestServiceOne");
280  out << streamModuleIndent << "TestServiceOne::postModuleEndStream " << TimeStamper(printTimestamps_)
281  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel();
282  }
283  }
284 
287  if (verbose_) {
288  edm::LogAbsolute out("TestServiceOne");
289  out << globalIndent << "TestServiceOne::preBeginProcessBlock " << TimeStamper(printTimestamps_);
290  }
291  }
292 
295  if (verbose_) {
296  edm::LogAbsolute out("TestServiceOne");
297  out << globalIndent << "TestServiceOne::postBeginProcessBlock " << TimeStamper(printTimestamps_);
298  }
299  }
300 
303  if (verbose_) {
304  edm::LogAbsolute out("TestServiceOne");
305  out << globalIndent << "TestServiceOne::preEndProcessBlock " << TimeStamper(printTimestamps_);
306  }
307  }
308 
311  if (verbose_) {
312  edm::LogAbsolute out("TestServiceOne");
313  out << globalIndent << "TestServiceOne::postEndProcessBlock " << TimeStamper(printTimestamps_);
314  }
315  }
316 
319  if (verbose_) {
320  edm::LogAbsolute out("TestServiceOne");
321  out << globalModuleIndent << "TestServiceOne::preModuleBeginProcessBlock " << TimeStamper(printTimestamps_)
322  << " label = " << mcc.moduleDescription()->moduleLabel();
323  }
324  }
325 
328  if (verbose_) {
329  edm::LogAbsolute out("TestServiceOne");
330  out << globalModuleIndent << "TestServiceOne::postModuleBeginProcessBlock " << TimeStamper(printTimestamps_)
331  << " label = " << mcc.moduleDescription()->moduleLabel();
332  }
333  }
334 
337  if (verbose_) {
338  edm::LogAbsolute out("TestServiceOne");
339  out << globalModuleIndent << "TestServiceOne::preModuleEndProcessBlock " << TimeStamper(printTimestamps_)
340  << " label = " << mcc.moduleDescription()->moduleLabel();
341  }
342  }
343 
346  if (verbose_) {
347  edm::LogAbsolute out("TestServiceOne");
348  out << globalModuleIndent << "TestServiceOne::postModuleEndProcessBlock " << TimeStamper(printTimestamps_)
349  << " label = " << mcc.moduleDescription()->moduleLabel();
350  }
351  }
352 
355  if (verbose_) {
356  edm::LogAbsolute out("TestServiceOne");
357  out << streamIndent << "TestServiceOne::preStreamBeginLumi " << TimeStamper(printTimestamps_)
358  << " stream = " << sc.streamID() << " run = " << sc.eventID().run()
359  << " lumi = " << sc.eventID().luminosityBlock();
360  }
361  }
362 
365  if (verbose_) {
366  edm::LogAbsolute out("TestServiceOne");
367  out << streamIndent << "TestServiceOne::postStreamBeginLumi " << TimeStamper(printTimestamps_)
368  << " stream = " << sc.streamID() << " run = " << sc.eventID().run()
369  << " lumi = " << sc.eventID().luminosityBlock();
370  }
371  }
372 
375  if (verbose_) {
376  edm::LogAbsolute out("TestServiceOne");
377  out << streamIndent << "TestServiceOne::preStreamEndLumi " << TimeStamper(printTimestamps_)
378  << " stream = " << sc.streamID() << " run = " << sc.eventID().run()
379  << " lumi = " << sc.eventID().luminosityBlock();
380  }
381  }
382 
385  if (verbose_) {
386  edm::LogAbsolute out("TestServiceOne");
387  out << streamIndent << "TestServiceOne::postStreamEndLumi " << TimeStamper(printTimestamps_)
388  << " stream = " << sc.streamID() << " run = " << sc.eventID().run()
389  << " lumi = " << sc.eventID().luminosityBlock();
390  }
391  }
392 
395  if (verbose_) {
396  edm::LogAbsolute out("TestServiceOne");
397  out << streamModuleIndent << "TestServiceOne::preModuleStreamBeginLumi " << TimeStamper(printTimestamps_)
398  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel()
399  << " run = " << sc.eventID().run() << " lumi = " << sc.eventID().luminosityBlock();
400  }
401  }
402 
405  if (verbose_) {
406  edm::LogAbsolute out("TestServiceOne");
407  out << streamModuleIndent << "TestServiceOne::postModuleStreamBeginLumi " << TimeStamper(printTimestamps_)
408  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel()
409  << " run = " << sc.eventID().run() << " lumi = " << sc.eventID().luminosityBlock();
410  }
411  }
412 
415  if (verbose_) {
416  edm::LogAbsolute out("TestServiceOne");
417  out << streamModuleIndent << "TestServiceOne::preModuleStreamEndLumi " << TimeStamper(printTimestamps_)
418  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel()
419  << " run = " << sc.eventID().run() << " lumi = " << sc.eventID().luminosityBlock();
420  }
421  }
422 
425  if (verbose_) {
426  edm::LogAbsolute out("TestServiceOne");
427  out << streamModuleIndent << "TestServiceOne::postModuleStreamEndLumi " << TimeStamper(printTimestamps_)
428  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel()
429  << " run = " << sc.eventID().run() << " lumi = " << sc.eventID().luminosityBlock();
430  }
431  }
432 
435  if (verbose_) {
436  edm::LogAbsolute out("TestServiceOne");
437  out << globalIndent << "TestServiceOne::preGlobalBeginLumi " << TimeStamper(printTimestamps_)
438  << " run = " << gc.luminosityBlockID().run() << " lumi = " << gc.luminosityBlockID().luminosityBlock();
439  }
440  }
441 
444  if (verbose_) {
445  edm::LogAbsolute out("TestServiceOne");
446  out << globalIndent << "TestServiceOne::postGlobalBeginLumi " << TimeStamper(printTimestamps_)
447  << " run = " << gc.luminosityBlockID().run() << " lumi = " << gc.luminosityBlockID().luminosityBlock();
448  }
449  }
450 
453  if (verbose_) {
454  edm::LogAbsolute out("TestServiceOne");
455  out << globalIndent << "TestServiceOne::preGlobalEndLumi " << TimeStamper(printTimestamps_)
456  << " run = " << gc.luminosityBlockID().run() << " lumi = " << gc.luminosityBlockID().luminosityBlock();
457  }
458  }
459 
462  if (verbose_) {
463  edm::LogAbsolute out("TestServiceOne");
464  out << globalIndent << "TestServiceOne::postGlobalEndLumi " << TimeStamper(printTimestamps_)
465  << " run = " << gc.luminosityBlockID().run() << " lumi = " << gc.luminosityBlockID().luminosityBlock();
466  }
467  }
468 
471  if (verbose_) {
472  edm::LogAbsolute out("TestServiceOne");
473  out << globalModuleIndent << "TestServiceOne::preModuleGlobalBeginLumi " << TimeStamper(printTimestamps_)
474  << " label = " << mcc.moduleDescription()->moduleLabel() << " run = " << gc.luminosityBlockID().run()
475  << " lumi = " << gc.luminosityBlockID().luminosityBlock();
476  }
477  }
478 
481  if (verbose_) {
482  edm::LogAbsolute out("TestServiceOne");
483  out << globalModuleIndent << "TestServiceOne::postModuleGlobalBeginLumi " << TimeStamper(printTimestamps_)
484  << " label = " << mcc.moduleDescription()->moduleLabel() << " run = " << gc.luminosityBlockID().run()
485  << " lumi = " << gc.luminosityBlockID().luminosityBlock();
486  }
487  }
488 
491  if (verbose_) {
492  edm::LogAbsolute out("TestServiceOne");
493  out << globalModuleIndent << "TestServiceOne::preModuleGlobalEndLumi " << TimeStamper(printTimestamps_)
494  << " label = " << mcc.moduleDescription()->moduleLabel() << " run = " << gc.luminosityBlockID().run()
495  << " lumi = " << gc.luminosityBlockID().luminosityBlock();
496  }
497  }
498 
501  if (verbose_) {
502  edm::LogAbsolute out("TestServiceOne");
503  out << globalModuleIndent << "TestServiceOne::postModuleGlobalEndLumi " << TimeStamper(printTimestamps_)
504  << " label = " << mcc.moduleDescription()->moduleLabel() << " run = " << gc.luminosityBlockID().run()
505  << " lumi = " << gc.luminosityBlockID().luminosityBlock();
506  }
507  }
508 
511  if (verbose_) {
512  edm::LogAbsolute out("TestServiceOne");
513  out << globalIndent << "TestServiceOne::preGlobalWriteLumi " << TimeStamper(printTimestamps_)
514  << " run = " << gc.luminosityBlockID().run() << " lumi = " << gc.luminosityBlockID().luminosityBlock();
515  }
516  }
517 
520  if (verbose_) {
521  edm::LogAbsolute out("TestServiceOne");
522  out << globalIndent << "TestServiceOne::postGlobalWriteLumi " << TimeStamper(printTimestamps_)
523  << " run = " << gc.luminosityBlockID().run() << " lumi = " << gc.luminosityBlockID().luminosityBlock();
524  }
525  }
526 
529  if (verbose_) {
530  edm::LogAbsolute out("TestServiceOne");
531  out << streamIndent << "TestServiceOne::preStreamBeginRun " << TimeStamper(printTimestamps_)
532  << " stream = " << sc.streamID() << " run = " << sc.eventID().run();
533  }
534  }
535 
538  if (verbose_) {
539  edm::LogAbsolute out("TestServiceOne");
540  out << streamIndent << "TestServiceOne::postStreamBeginRun " << TimeStamper(printTimestamps_)
541  << " stream = " << sc.streamID() << " run = " << sc.eventID().run();
542  }
543  }
544 
547  if (verbose_) {
548  edm::LogAbsolute out("TestServiceOne");
549  out << streamIndent << "TestServiceOne::preStreamEndRun " << TimeStamper(printTimestamps_)
550  << " stream = " << sc.streamID() << " run = " << sc.eventID().run();
551  }
552  }
553 
556  if (verbose_) {
557  edm::LogAbsolute out("TestServiceOne");
558  out << streamIndent << "TestServiceOne::postStreamEndRun " << TimeStamper(printTimestamps_)
559  << " stream = " << sc.streamID() << " run = " << sc.eventID().run();
560  }
561  }
562 
565  if (verbose_) {
566  edm::LogAbsolute out("TestServiceOne");
567  out << streamModuleIndent << "TestServiceOne::preModuleStreamBeginRun " << TimeStamper(printTimestamps_)
568  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel()
569  << " run = " << sc.eventID().run();
570  }
571  }
572 
575  if (verbose_) {
576  edm::LogAbsolute out("TestServiceOne");
577  out << streamModuleIndent << "TestServiceOne::postModuleStreamBeginRun " << TimeStamper(printTimestamps_)
578  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel()
579  << " run = " << sc.eventID().run();
580  }
581  }
582 
585  if (verbose_) {
586  edm::LogAbsolute out("TestServiceOne");
587  out << streamModuleIndent << "TestServiceOne::preModuleStreamEndRun " << TimeStamper(printTimestamps_)
588  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel()
589  << " run = " << sc.eventID().run();
590  }
591  }
592 
595  if (verbose_) {
596  edm::LogAbsolute out("TestServiceOne");
597  out << streamModuleIndent << "TestServiceOne::postModuleStreamEndRun " << TimeStamper(printTimestamps_)
598  << " stream = " << sc.streamID() << " label = " << mcc.moduleDescription()->moduleLabel()
599  << " run = " << sc.eventID().run();
600  }
601  }
602 
605  if (verbose_) {
606  edm::LogAbsolute out("TestServiceOne");
607  out << globalIndent << "TestServiceOne::preGlobalBeginRun " << TimeStamper(printTimestamps_)
608  << " run = " << gc.luminosityBlockID().run();
609  }
610  }
611 
614  if (verbose_) {
615  edm::LogAbsolute out("TestServiceOne");
616  out << globalIndent << "TestServiceOne::postGlobalBeginRun " << TimeStamper(printTimestamps_)
617  << " run = " << gc.luminosityBlockID().run();
618  }
619  }
620 
623  if (verbose_) {
624  edm::LogAbsolute out("TestServiceOne");
625  out << globalIndent << "TestServiceOne::preGlobalEndRun " << TimeStamper(printTimestamps_)
626  << " run = " << gc.luminosityBlockID().run();
627  }
628  }
629 
632  if (verbose_) {
633  edm::LogAbsolute out("TestServiceOne");
634  out << globalIndent << "TestServiceOne::postGlobalEndRun " << TimeStamper(printTimestamps_)
635  << " run = " << gc.luminosityBlockID().run();
636  }
637  }
638 
641  if (verbose_) {
642  edm::LogAbsolute out("TestServiceOne");
643  out << globalModuleIndent << "TestServiceOne::preModuleGlobalBeginRun " << TimeStamper(printTimestamps_)
644  << " label = " << mcc.moduleDescription()->moduleLabel() << " run = " << gc.luminosityBlockID().run();
645  }
646  }
647 
650  if (verbose_) {
651  edm::LogAbsolute out("TestServiceOne");
652  out << globalModuleIndent << "TestServiceOne::postModuleGlobalBeginRun " << TimeStamper(printTimestamps_)
653  << " label = " << mcc.moduleDescription()->moduleLabel() << " run = " << gc.luminosityBlockID().run();
654  }
655  }
656 
659  if (verbose_) {
660  edm::LogAbsolute out("TestServiceOne");
661  out << globalModuleIndent << "TestServiceOne::preModuleGlobalEndRun " << TimeStamper(printTimestamps_)
662  << " label = " << mcc.moduleDescription()->moduleLabel() << " run = " << gc.luminosityBlockID().run();
663  }
664  }
665 
668  if (verbose_) {
669  edm::LogAbsolute out("TestServiceOne");
670  out << globalModuleIndent << "TestServiceOne::postModuleGlobalEndRun " << TimeStamper(printTimestamps_)
671  << " label = " << mcc.moduleDescription()->moduleLabel() << " run = " << gc.luminosityBlockID().run();
672  }
673  }
674 
677  if (verbose_) {
678  edm::LogAbsolute out("TestServiceOne");
679  out << globalIndent << "TestServiceOne::preGlobalWriteRun " << TimeStamper(printTimestamps_)
680  << " run = " << gc.luminosityBlockID().run();
681  }
682  }
683 
686  if (verbose_) {
687  edm::LogAbsolute out("TestServiceOne");
688  out << globalIndent << "TestServiceOne::postGlobalWriteRun " << TimeStamper(printTimestamps_)
689  << " run = " << gc.luminosityBlockID().run();
690  }
691  }
692 
693  unsigned int TestServiceOne::nPreBeginJob() const { return nPreBeginJob_.load(); }
694  unsigned int TestServiceOne::nPostBeginJob() const { return nPostBeginJob_.load(); }
695  unsigned int TestServiceOne::nPreEndJob() const { return nPreEndJob_.load(); }
696  unsigned int TestServiceOne::nPostEndJob() const { return nPostEndJob_.load(); }
697 
698  unsigned int TestServiceOne::nPreModuleBeginJob() const { return nPreModuleBeginJob_.load(); }
699  unsigned int TestServiceOne::nPostModuleBeginJob() const { return nPostModuleBeginJob_.load(); }
700  unsigned int TestServiceOne::nPreModuleEndJob() const { return nPreModuleEndJob_.load(); }
701  unsigned int TestServiceOne::nPostModuleEndJob() const { return nPostModuleEndJob_.load(); }
702 
703  unsigned int TestServiceOne::nPreBeginStream() const { return nPreBeginStream_.load(); }
704  unsigned int TestServiceOne::nPostBeginStream() const { return nPostBeginStream_.load(); }
705  unsigned int TestServiceOne::nPreEndStream() const { return nPreEndStream_.load(); }
706  unsigned int TestServiceOne::nPostEndStream() const { return nPostEndStream_.load(); }
707 
708  unsigned int TestServiceOne::nPreModuleBeginStream() const { return nPreModuleBeginStream_.load(); }
709  unsigned int TestServiceOne::nPostModuleBeginStream() const { return nPostModuleBeginStream_.load(); }
710  unsigned int TestServiceOne::nPreModuleEndStream() const { return nPreModuleEndStream_.load(); }
711  unsigned int TestServiceOne::nPostModuleEndStream() const { return nPostModuleEndStream_.load(); }
712 
713  unsigned int TestServiceOne::nPreBeginProcessBlock() const { return nPreBeginProcessBlock_.load(); }
714  unsigned int TestServiceOne::nPostBeginProcessBlock() const { return nPostBeginProcessBlock_.load(); }
715  unsigned int TestServiceOne::nPreEndProcessBlock() const { return nPreEndProcessBlock_.load(); }
716  unsigned int TestServiceOne::nPostEndProcessBlock() const { return nPostEndProcessBlock_.load(); }
717 
722 
723  unsigned int TestServiceOne::nPreStreamBeginLumi() const { return nPreStreamBeginLumi_.load(); }
724  unsigned int TestServiceOne::nPostStreamBeginLumi() const { return nPostStreamBeginLumi_.load(); }
725  unsigned int TestServiceOne::nPreStreamEndLumi() const { return nPreStreamEndLumi_.load(); }
726  unsigned int TestServiceOne::nPostStreamEndLumi() const { return nPostStreamEndLumi_.load(); }
727 
732 
733  unsigned int TestServiceOne::nPreGlobalBeginLumi() const { return nPreGlobalBeginLumi_.load(); }
734  unsigned int TestServiceOne::nPostGlobalBeginLumi() const { return nPostGlobalBeginLumi_.load(); }
735  unsigned int TestServiceOne::nPreGlobalEndLumi() const { return nPreGlobalEndLumi_.load(); }
736  unsigned int TestServiceOne::nPostGlobalEndLumi() const { return nPostGlobalEndLumi_.load(); }
737 
742 
743  unsigned int TestServiceOne::nPreGlobalWriteLumi() const { return nPreGlobalWriteLumi_.load(); }
744  unsigned int TestServiceOne::nPostGlobalWriteLumi() const { return nPostGlobalWriteLumi_.load(); }
745 
746  unsigned int TestServiceOne::nPreStreamBeginRun() const { return nPreStreamBeginRun_.load(); }
747  unsigned int TestServiceOne::nPostStreamBeginRun() const { return nPostStreamBeginRun_.load(); }
748  unsigned int TestServiceOne::nPreStreamEndRun() const { return nPreStreamEndRun_.load(); }
749  unsigned int TestServiceOne::nPostStreamEndRun() const { return nPostStreamEndRun_.load(); }
750 
753  unsigned int TestServiceOne::nPreModuleStreamEndRun() const { return nPreModuleStreamEndRun_.load(); }
755 
756  unsigned int TestServiceOne::nPreGlobalBeginRun() const { return nPreGlobalBeginRun_.load(); }
757  unsigned int TestServiceOne::nPostGlobalBeginRun() const { return nPostGlobalBeginRun_.load(); }
758  unsigned int TestServiceOne::nPreGlobalEndRun() const { return nPreGlobalEndRun_.load(); }
759  unsigned int TestServiceOne::nPostGlobalEndRun() const { return nPostGlobalEndRun_.load(); }
760 
763  unsigned int TestServiceOne::nPreModuleGlobalEndRun() const { return nPreModuleGlobalEndRun_.load(); }
765 
766  unsigned int TestServiceOne::nPreGlobalWriteRun() const { return nPreGlobalWriteRun_.load(); }
767  unsigned int TestServiceOne::nPostGlobalWriteRun() const { return nPostGlobalWriteRun_.load(); }
768 } // namespace edmtest
769 
std::atomic< unsigned int > nPreGlobalEndRun_
std::atomic< unsigned int > nPostModuleGlobalEndLumi_
void postModuleGlobalEndRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostModuleBeginStream_
void postModuleEndJob(edm::ModuleDescription const &)
void watchPostModuleGlobalEndLumi(PostModuleGlobalEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPostModuleGlobalBeginRun_
std::atomic< unsigned int > nPreGlobalWriteLumi_
unsigned int nPreStreamEndLumi() const
std::atomic< unsigned int > nPostGlobalEndLumi_
void watchPreModuleGlobalBeginRun(PreModuleGlobalBeginRun::slot_type const &iSlot)
std::atomic< unsigned int > nPostModuleBeginJob_
std::atomic< unsigned int > nPostStreamEndLumi_
unsigned int nPostBeginJob() const
unsigned int nPreModuleGlobalBeginLumi() const
LuminosityBlockNumber_t luminosityBlock() const
void preModuleGlobalBeginLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPreGlobalBeginLumi_
void preStreamBeginRun(edm::StreamContext const &)
unsigned int nPreStreamBeginLumi() const
void postGlobalBeginLumi(edm::GlobalContext const &)
unsigned int nPostBeginProcessBlock() const
void postStreamBeginLumi(edm::StreamContext const &)
unsigned int nPreModuleEndJob() const
void preModuleGlobalEndLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void preGlobalWriteLumi(edm::GlobalContext const &)
std::atomic< unsigned int > nPreStreamEndRun_
void preGlobalEndLumi(edm::GlobalContext const &)
void preBeginJob(edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &)
void postModuleEndProcessBlock(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void watchPostModuleEndProcessBlock(PostModuleEndProcessBlock::slot_type const &iSlot)
void preModuleStreamEndRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostModuleGlobalBeginLumi_
void preModuleStreamBeginRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
void postModuleStreamEndRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
void preModuleStreamBeginLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
void watchPostModuleEndStream(PostModuleEndStream::slot_type const &iSlot)
std::atomic< unsigned int > nPostEndJob_
void watchPreModuleEndProcessBlock(PreModuleEndProcessBlock::slot_type const &iSlot)
void watchPreGlobalEndLumi(PreGlobalEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPreModuleBeginJob_
void postStreamEndRun(edm::StreamContext const &)
void preGlobalBeginRun(edm::GlobalContext const &)
void watchPreStreamEndRun(PreStreamEndRun::slot_type const &iSlot)
unsigned int nPostModuleStreamEndLumi() const
void watchPreGlobalBeginLumi(PreGlobalBeginLumi::slot_type const &iSlot)
void watchPostStreamEndLumi(PostStreamEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPostGlobalWriteLumi_
void watchPostEndProcessBlock(PostEndProcessBlock::slot_type const &iSlot)
void watchPostModuleGlobalBeginLumi(PostModuleGlobalBeginLumi::slot_type const &iSlot)
void watchPostModuleStreamEndLumi(PostModuleStreamEndLumi::slot_type const &iSlot)
unsigned int nPostGlobalBeginRun() const
std::atomic< unsigned int > nPostBeginProcessBlock_
void watchPostGlobalBeginLumi(PostGlobalBeginLumi::slot_type const &iSlot)
unsigned int nPreModuleStreamBeginRun() const
std::atomic< unsigned int > nPostStreamBeginLumi_
void watchPostModuleStreamBeginRun(PostModuleStreamBeginRun::slot_type const &iSlot)
void preGlobalEndRun(edm::GlobalContext const &)
void watchPreBeginProcessBlock(PreBeginProcessBlock::slot_type const &iSlot)
void watchPreEndProcessBlock(PreEndProcessBlock::slot_type const &iSlot)
void watchPreModuleBeginStream(PreModuleBeginStream::slot_type const &iSlot)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
std::atomic< unsigned int > nPostBeginJob_
std::atomic< unsigned int > nPostModuleEndJob_
ModuleDescription const * moduleDescription() const noexcept
unsigned int nPreBeginProcessBlock() const
std::atomic< unsigned int > nPostStreamEndRun_
void watchPreStreamEndLumi(PreStreamEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPreBeginStream_
void preGlobalWriteRun(edm::GlobalContext const &)
std::atomic< unsigned int > nPostModuleStreamEndRun_
void watchPreModuleGlobalEndRun(PreModuleGlobalEndRun::slot_type const &iSlot)
std::atomic< unsigned int > nPreModuleGlobalBeginRun_
void postGlobalWriteLumi(edm::GlobalContext const &)
void preModuleBeginStream(edm::StreamContext const &, edm::ModuleCallingContext const &)
void preModuleEndJob(edm::ModuleDescription const &)
unsigned int nPreModuleBeginJob() const
void postModuleGlobalEndLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
unsigned int nPreModuleGlobalEndRun() const
unsigned int nPostGlobalEndLumi() const
std::atomic< unsigned int > nPostGlobalWriteRun_
void preEndProcessBlock(edm::GlobalContext const &)
unsigned int nPostModuleGlobalEndRun() const
LuminosityBlockNumber_t luminosityBlock() const
Definition: EventID.h:39
unsigned int nPreGlobalEndLumi() const
void postModuleEndStream(edm::StreamContext const &, edm::ModuleCallingContext const &)
void preStreamBeginLumi(edm::StreamContext const &)
void postEndProcessBlock(edm::GlobalContext const &)
std::atomic< unsigned int > nPreModuleStreamBeginRun_
void postModuleGlobalBeginLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
unsigned int nPostGlobalWriteLumi() const
unsigned int nPreModuleBeginProcessBlock() const
void postModuleGlobalBeginRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
unsigned int nPostModuleStreamBeginLumi() const
unsigned int nPostModuleEndProcessBlock() const
void watchPostGlobalBeginRun(PostGlobalBeginRun::slot_type const &iSlot)
unsigned int nPreModuleBeginStream() const
unsigned int nPostModuleEndJob() const
std::atomic< unsigned int > nPostGlobalBeginLumi_
unsigned int nPreGlobalBeginLumi() const
unsigned int nPreEndJob() const
void watchPreGlobalEndRun(PreGlobalEndRun::slot_type const &iSlot)
unsigned int nPreEndStream() const
unsigned int nPreModuleStreamBeginLumi() const
unsigned int nPostModuleGlobalBeginLumi() const
void watchPostBeginProcessBlock(PostBeginProcessBlock::slot_type const &iSlot)
void postGlobalEndLumi(edm::GlobalContext const &)
void watchPostBeginStream(PostBeginStream::slot_type const &iSlot)
std::atomic< unsigned int > nPreModuleGlobalEndLumi_
void preEndStream(edm::StreamContext const &)
void postEndStream(edm::StreamContext const &)
std::atomic< unsigned int > nPreGlobalWriteRun_
TestServiceOne(const edm::ParameterSet &, edm::ActivityRegistry &)
void watchPostStreamBeginLumi(PostStreamBeginLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPreModuleBeginStream_
std::atomic< unsigned int > nPreModuleEndStream_
std::atomic< unsigned int > nPreGlobalEndLumi_
std::atomic< unsigned int > nPostModuleBeginProcessBlock_
unsigned int nPostStreamBeginLumi() const
unsigned int nPreStreamBeginRun() const
std::atomic< unsigned int > nPostBeginStream_
StreamID const & streamID() const
Definition: StreamContext.h:55
unsigned int nPostGlobalEndRun() const
void preModuleGlobalEndRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostStreamBeginRun_
void watchPreModuleBeginProcessBlock(PreModuleBeginProcessBlock::slot_type const &iSlot)
unsigned int nPostStreamEndRun() const
void watchPostEndStream(PostEndStream::slot_type const &iSlot)
unsigned int nPreBeginStream() const
void watchPreModuleEndJob(PreModuleEndJob::slot_type const &iSlot)
std::atomic< unsigned int > nPreBeginJob_
void postGlobalBeginRun(edm::GlobalContext const &)
unsigned int nPreGlobalEndRun() const
void postStreamEndLumi(edm::StreamContext const &)
void watchPostGlobalEndLumi(PostGlobalEndLumi::slot_type const &iSlot)
void watchPreEndStream(PreEndStream::slot_type const &iSlot)
std::atomic< unsigned int > nPreBeginProcessBlock_
void postGlobalWriteRun(edm::GlobalContext const &)
std::atomic< unsigned int > nPostGlobalBeginRun_
std::atomic< unsigned int > nPreModuleGlobalEndRun_
void postBeginProcessBlock(edm::GlobalContext const &)
std::atomic< unsigned int > nPostModuleEndStream_
enable
Messages.
Definition: DiMuonV_cfg.py:93
std::atomic< unsigned int > nPostEndStream_
void watchPreModuleBeginJob(PreModuleBeginJob::slot_type const &iSlot)
unsigned int nPreModuleEndStream() const
void postModuleBeginJob(edm::ModuleDescription const &)
void watchPostStreamEndRun(PostStreamEndRun::slot_type const &iSlot)
LuminosityBlockID const & luminosityBlockID() const
Definition: GlobalContext.h:66
unsigned int nPreGlobalWriteLumi() const
unsigned int nPreStreamEndRun() const
std::atomic< unsigned int > nPreEndStream_
RunNumber_t run() const
unsigned int nPreGlobalWriteRun() const
std::atomic< unsigned int > nPreModuleGlobalBeginLumi_
unsigned int nPostModuleBeginProcessBlock() const
void watchPostModuleStreamEndRun(PostModuleStreamEndRun::slot_type const &iSlot)
void watchPreModuleGlobalBeginLumi(PreModuleGlobalBeginLumi::slot_type const &iSlot)
void preModuleBeginProcessBlock(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void watchPostModuleBeginProcessBlock(PostModuleBeginProcessBlock::slot_type const &iSlot)
void watchPreGlobalBeginRun(PreGlobalBeginRun::slot_type const &iSlot)
void watchPreModuleStreamBeginLumi(PreModuleStreamBeginLumi::slot_type const &iSlot)
void watchPreGlobalWriteLumi(PreGlobalWriteLumi::slot_type const &iSlot)
unsigned int nPostModuleBeginJob() const
unsigned int nPreModuleGlobalBeginRun() const
void preStreamEndLumi(edm::StreamContext const &)
RunNumber_t run() const
Definition: EventID.h:38
#define DEFINE_FWK_SERVICE(type)
Definition: ServiceMaker.h:97
unsigned int nPostModuleGlobalBeginRun() const
void preStreamEndRun(edm::StreamContext const &)
void watchPostModuleBeginStream(PostModuleBeginStream::slot_type const &iSlot)
void preModuleEndStream(edm::StreamContext const &, edm::ModuleCallingContext const &)
unsigned int nPostModuleEndStream() const
std::atomic< unsigned int > nPostModuleStreamBeginLumi_
void postBeginStream(edm::StreamContext const &)
void preModuleGlobalBeginRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void watchPostModuleGlobalEndRun(PostModuleGlobalEndRun::slot_type const &iSlot)
void watchPostGlobalWriteRun(PostGlobalWriteRun::slot_type const &iSlot)
void watchPostModuleStreamBeginLumi(PostModuleStreamBeginLumi::slot_type const &iSlot)
void postModuleStreamEndLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
unsigned int nPostEndStream() const
std::atomic< unsigned int > nPreEndProcessBlock_
std::atomic< unsigned int > nPreStreamBeginRun_
void watchPreModuleStreamEndLumi(PreModuleStreamEndLumi::slot_type const &iSlot)
void watchPreModuleStreamBeginRun(PreModuleStreamBeginRun::slot_type const &iSlot)
unsigned int nPreBeginJob() const
unsigned int nPostGlobalBeginLumi() const
void postModuleStreamBeginRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
void watchPostGlobalEndRun(PostGlobalEndRun::slot_type const &iSlot)
void watchPreStreamBeginLumi(PreStreamBeginLumi::slot_type const &iSlot)
void postStreamBeginRun(edm::StreamContext const &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void watchPreModuleEndStream(PreModuleEndStream::slot_type const &iSlot)
void preModuleBeginJob(edm::ModuleDescription const &)
unsigned int nPostModuleStreamBeginRun() const
unsigned int nPostModuleGlobalEndLumi() const
void watchPreBeginJob(PreBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
std::atomic< unsigned int > nPreStreamEndLumi_
std::atomic< unsigned int > nPostEndProcessBlock_
std::atomic< unsigned int > nPreModuleStreamBeginLumi_
unsigned int nPreModuleStreamEndLumi() const
void watchPreEndJob(PreEndJob::slot_type const &iSlot)
std::atomic< unsigned int > nPreEndJob_
void watchPostStreamBeginRun(PostStreamBeginRun::slot_type const &iSlot)
std::atomic< unsigned int > nPreGlobalBeginRun_
void preBeginStream(edm::StreamContext const &)
void watchPostGlobalWriteLumi(PostGlobalEndLumi::slot_type const &iSlot)
void watchPreStreamBeginRun(PreStreamBeginRun::slot_type const &iSlot)
unsigned int nPreModuleEndProcessBlock() const
unsigned int nPreModuleGlobalEndLumi() const
void watchPreModuleStreamEndRun(PreModuleStreamEndRun::slot_type const &iSlot)
EventID const & eventID() const
Definition: StreamContext.h:60
std::atomic< unsigned int > nPreModuleEndJob_
std::atomic< unsigned int > nPostModuleStreamEndLumi_
void watchPostModuleBeginJob(PostModuleBeginJob::slot_type const &iSlot)
unsigned int nPostEndProcessBlock() const
unsigned int nPostBeginStream() const
std::atomic< unsigned int > nPreModuleStreamEndLumi_
void watchPostModuleGlobalBeginRun(PostModuleGlobalBeginRun::slot_type const &iSlot)
void preModuleEndProcessBlock(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostGlobalEndRun_
unsigned int nPostGlobalWriteRun() const
unsigned int nPostModuleStreamEndRun() const
unsigned int nPostEndJob() const
void postModuleStreamBeginLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostModuleEndProcessBlock_
std::atomic< unsigned int > nPostModuleStreamBeginRun_
void postModuleBeginProcessBlock(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void postGlobalEndRun(edm::GlobalContext const &)
std::atomic< unsigned int > nPreModuleBeginProcessBlock_
unsigned int nPreModuleStreamEndRun() const
std::string const & moduleLabel() const
unsigned int nPostStreamBeginRun() const
void watchPreGlobalWriteRun(PreGlobalWriteRun::slot_type const &iSlot)
unsigned int nPostModuleBeginStream() const
std::atomic< unsigned int > nPreStreamBeginLumi_
void watchPostModuleEndJob(PostModuleEndJob::slot_type const &iSlot)
void preGlobalBeginLumi(edm::GlobalContext const &)
void preBeginProcessBlock(edm::GlobalContext const &)
std::atomic< unsigned int > nPostModuleGlobalEndRun_
void watchPreModuleGlobalEndLumi(PreModuleGlobalEndLumi::slot_type const &iSlot)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void preModuleStreamEndLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPreModuleStreamEndRun_
void watchPreBeginStream(PreBeginStream::slot_type const &iSlot)
unsigned int nPostStreamEndLumi() const
std::atomic< unsigned int > nPreModuleEndProcessBlock_
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
unsigned int nPreGlobalBeginRun() const
void postModuleBeginStream(edm::StreamContext const &, edm::ModuleCallingContext const &)
unsigned int nPreEndProcessBlock() const