1 #ifndef FWCore_ServiceRegistry_ActivityRegistry_h 2 #define FWCore_ServiceRegistry_ActivityRegistry_h 39 #define AR_WATCH_USING_METHOD_0(method) template<class TClass, class TMethod> void method (TClass* iObject, TMethod iMethod) { method (std::bind(std::mem_fn(iMethod), iObject)); } 40 #define AR_WATCH_USING_METHOD_1(method) template<class TClass, class TMethod> void method (TClass* iObject, TMethod iMethod) { method (std::bind(std::mem_fn(iMethod), iObject, std::placeholders::_1)); } 41 #define AR_WATCH_USING_METHOD_2(method) template<class TClass, class TMethod> void method (TClass* iObject, TMethod iMethod) { method (std::bind(std::mem_fn(iMethod), iObject, std::placeholders::_1, std::placeholders::_2)); } 42 #define AR_WATCH_USING_METHOD_3(method) template<class TClass, class TMethod> void method (TClass* iObject, TMethod iMethod) { method (std::bind(std::mem_fn(iMethod), iObject, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3)); } 46 class LuminosityBlockID;
49 class ModuleDescription;
59 class ModuleCallingContext;
60 class PathsAndConsumesOfModulesBase;
65 namespace signalslot {
98 preallocateSignal_.
connect(iSlot);
104 PreBeginJob preBeginJobSignal_;
106 void watchPreBeginJob(PreBeginJob::slot_type const& iSlot) {
107 preBeginJobSignal_.
connect(iSlot);
113 PostBeginJob postBeginJobSignal_;
115 void watchPostBeginJob(PostBeginJob::slot_type const& iSlot) {
116 postBeginJobSignal_.
connect(iSlot);
122 PreEndJob preEndJobSignal_;
123 void watchPreEndJob(PreEndJob::slot_type const& iSlot) {
130 PostEndJob postEndJobSignal_;
131 void watchPostEndJob(PostEndJob::slot_type const& iSlot) {
139 JobFailure jobFailureSignal_;
141 void watchJobFailure(JobFailure::slot_type const& iSlot) {
148 PreSourceEvent preSourceSignal_;
149 void watchPreSourceEvent(PreSourceEvent::slot_type const& iSlot) {
150 preSourceSignal_.
connect(iSlot);
156 PostSourceEvent postSourceSignal_;
157 void watchPostSourceEvent(PostSourceEvent::slot_type const& iSlot) {
164 PreSourceLumi preSourceLumiSignal_;
165 void watchPreSourceLumi(PreSourceLumi::slot_type const& iSlot) {
166 preSourceLumiSignal_.
connect(iSlot);
172 PostSourceLumi postSourceLumiSignal_;
173 void watchPostSourceLumi(PostSourceLumi::slot_type const& iSlot) {
180 PreSourceRun preSourceRunSignal_;
181 void watchPreSourceRun(PreSourceRun::slot_type const& iSlot) {
182 preSourceRunSignal_.
connect(iSlot);
188 PostSourceRun postSourceRunSignal_;
189 void watchPostSourceRun(PostSourceRun::slot_type const& iSlot) {
196 PreOpenFile preOpenFileSignal_;
197 void watchPreOpenFile(PreOpenFile::slot_type const& iSlot) {
198 preOpenFileSignal_.
connect(iSlot);
205 PostOpenFile postOpenFileSignal_;
206 void watchPostOpenFile(PostOpenFile::slot_type const& iSlot) {
215 PreCloseFile preCloseFileSignal_;
216 void watchPreCloseFile(PreCloseFile::slot_type const& iSlot) {
217 preCloseFileSignal_.
connect(iSlot);
223 PostCloseFile postCloseFileSignal_;
224 void watchPostCloseFile(PostCloseFile::slot_type const& iSlot) {
230 PreModuleBeginStream preModuleBeginStreamSignal_;
231 void watchPreModuleBeginStream(PreModuleBeginStream::slot_type const& iSlot) {
232 preModuleBeginStreamSignal_.
connect(iSlot);
237 PostModuleBeginStream postModuleBeginStreamSignal_;
238 void watchPostModuleBeginStream(PostModuleBeginStream::slot_type const& iSlot) {
244 PreModuleEndStream preModuleEndStreamSignal_;
245 void watchPreModuleEndStream(PreModuleEndStream::slot_type const& iSlot) {
246 preModuleEndStreamSignal_.
connect(iSlot);
251 PostModuleEndStream postModuleEndStreamSignal_;
252 void watchPostModuleEndStream(PostModuleEndStream::slot_type const& iSlot) {
259 PreGlobalBeginRun preGlobalBeginRunSignal_;
260 void watchPreGlobalBeginRun(PreGlobalBeginRun::slot_type const& iSlot) {
261 preGlobalBeginRunSignal_.
connect(iSlot);
266 PostGlobalBeginRun postGlobalBeginRunSignal_;
267 void watchPostGlobalBeginRun(PostGlobalBeginRun::slot_type const& iSlot) {
273 PreGlobalEndRun preGlobalEndRunSignal_;
274 void watchPreGlobalEndRun(PreGlobalEndRun::slot_type const& iSlot) {
275 preGlobalEndRunSignal_.
connect(iSlot);
280 PostGlobalEndRun postGlobalEndRunSignal_;
281 void watchPostGlobalEndRun(PostGlobalEndRun::slot_type const& iSlot) {
287 PreStreamBeginRun preStreamBeginRunSignal_;
288 void watchPreStreamBeginRun(PreStreamBeginRun::slot_type const& iSlot) {
289 preStreamBeginRunSignal_.
connect(iSlot);
294 PostStreamBeginRun postStreamBeginRunSignal_;
295 void watchPostStreamBeginRun(PostStreamBeginRun::slot_type const& iSlot) {
301 PreStreamEndRun preStreamEndRunSignal_;
302 void watchPreStreamEndRun(PreStreamEndRun::slot_type const& iSlot) {
303 preStreamEndRunSignal_.
connect(iSlot);
308 PostStreamEndRun postStreamEndRunSignal_;
309 void watchPostStreamEndRun(PostStreamEndRun::slot_type const& iSlot) {
315 PreGlobalBeginLumi preGlobalBeginLumiSignal_;
316 void watchPreGlobalBeginLumi(PreGlobalBeginLumi::slot_type const& iSlot) {
317 preGlobalBeginLumiSignal_.
connect(iSlot);
322 PostGlobalBeginLumi postGlobalBeginLumiSignal_;
323 void watchPostGlobalBeginLumi(PostGlobalBeginLumi::slot_type const& iSlot) {
329 PreGlobalEndLumi preGlobalEndLumiSignal_;
330 void watchPreGlobalEndLumi(PreGlobalEndLumi::slot_type const& iSlot) {
331 preGlobalEndLumiSignal_.
connect(iSlot);
336 PostGlobalEndLumi postGlobalEndLumiSignal_;
337 void watchPostGlobalEndLumi(PostGlobalEndLumi::slot_type const& iSlot) {
343 PreStreamBeginLumi preStreamBeginLumiSignal_;
344 void watchPreStreamBeginLumi(PreStreamBeginLumi::slot_type const& iSlot) {
345 preStreamBeginLumiSignal_.
connect(iSlot);
350 PostStreamBeginLumi postStreamBeginLumiSignal_;
351 void watchPostStreamBeginLumi(PostStreamBeginLumi::slot_type const& iSlot) {
357 PreStreamEndLumi preStreamEndLumiSignal_;
358 void watchPreStreamEndLumi(PreStreamEndLumi::slot_type const& iSlot) {
359 preStreamEndLumiSignal_.
connect(iSlot);
364 PostStreamEndLumi postStreamEndLumiSignal_;
365 void watchPostStreamEndLumi(PostStreamEndLumi::slot_type const& iSlot) {
372 PreEvent preEventSignal_;
373 void watchPreEvent(PreEvent::slot_type const& iSlot) {
374 preEventSignal_.
connect(iSlot);
380 PostEvent postEventSignal_;
381 void watchPostEvent(PostEvent::slot_type const& iSlot) {
388 PrePathEvent prePathEventSignal_;
389 void watchPrePathEvent(PrePathEvent::slot_type const& iSlot) {
390 prePathEventSignal_.
connect(iSlot);
396 PostPathEvent postPathEventSignal_;
397 void watchPostPathEvent(PostPathEvent::slot_type const& iSlot) {
405 PreStreamEarlyTermination preStreamEarlyTerminationSignal_;
406 void watchPreStreamEarlyTermination(PreStreamEarlyTermination::slot_type const& iSlot) {
407 preStreamEarlyTerminationSignal_.
connect(iSlot);
414 PreGlobalEarlyTermination preGlobalEarlyTerminationSignal_;
415 void watchPreGlobalEarlyTermination(PreGlobalEarlyTermination::slot_type const& iSlot) {
416 preGlobalEarlyTerminationSignal_.
connect(iSlot);
423 PreSourceEarlyTermination preSourceEarlyTerminationSignal_;
424 void watchPreSourceEarlyTermination(PreSourceEarlyTermination::slot_type const& iSlot) {
425 preSourceEarlyTerminationSignal_.
connect(iSlot);
432 PreProcessEvent preProcessEventSignal_;
433 void watchPreProcessEvent(PreProcessEvent::slot_type const& iSlot) {
434 preProcessEventSignal_.
connect(iSlot);
441 PostProcessEvent postProcessEventSignal_;
442 void watchPostProcessEvent(PostProcessEvent::slot_type const& iSlot) {
450 PreBeginRun preBeginRunSignal_;
451 void watchPreBeginRun(PreBeginRun::slot_type const& iSlot) {
452 preBeginRunSignal_.
connect(iSlot);
459 PostBeginRun postBeginRunSignal_;
460 void watchPostBeginRun(PostBeginRun::slot_type const& iSlot) {
468 PreEndRun preEndRunSignal_;
469 void watchPreEndRun(PreEndRun::slot_type const& iSlot) {
470 preEndRunSignal_.
connect(iSlot);
477 PostEndRun postEndRunSignal_;
478 void watchPostEndRun(PostEndRun::slot_type const& iSlot) {
486 PreBeginLumi preBeginLumiSignal_;
487 void watchPreBeginLumi(PreBeginLumi::slot_type const& iSlot) {
488 preBeginLumiSignal_.
connect(iSlot);
495 PostBeginLumi postBeginLumiSignal_;
496 void watchPostBeginLumi(PostBeginLumi::slot_type const& iSlot) {
504 PreEndLumi preEndLumiSignal_;
505 void watchPreEndLumi(PreEndLumi::slot_type const& iSlot) {
506 preEndLumiSignal_.
connect(iSlot);
513 PostEndLumi postEndLumiSignal_;
514 void watchPostEndLumi(PostEndLumi::slot_type const& iSlot) {
522 PreProcessPath preProcessPathSignal_;
523 void watchPreProcessPath(PreProcessPath::slot_type const& iSlot) {
524 preProcessPathSignal_.
connect(iSlot);
531 PostProcessPath postProcessPathSignal_;
532 void watchPostProcessPath(PostProcessPath::slot_type const& iSlot) {
540 PrePathBeginRun prePathBeginRunSignal_;
541 void watchPrePathBeginRun(PrePathBeginRun::slot_type const& iSlot) {
542 prePathBeginRunSignal_.
connect(iSlot);
549 PostPathBeginRun postPathBeginRunSignal_;
550 void watchPostPathBeginRun(PostPathBeginRun::slot_type const& iSlot) {
558 PrePathEndRun prePathEndRunSignal_;
559 void watchPrePathEndRun(PrePathEndRun::slot_type const& iSlot) {
560 prePathEndRunSignal_.
connect(iSlot);
567 PostPathEndRun postPathEndRunSignal_;
568 void watchPostPathEndRun(PostPathEndRun::slot_type const& iSlot) {
576 PrePathBeginLumi prePathBeginLumiSignal_;
577 void watchPrePathBeginLumi(PrePathBeginLumi::slot_type const& iSlot) {
578 prePathBeginLumiSignal_.
connect(iSlot);
585 PostPathBeginLumi postPathBeginLumiSignal_;
586 void watchPostPathBeginLumi(PostPathBeginLumi::slot_type const& iSlot) {
594 PrePathEndLumi prePathEndLumiSignal_;
595 void watchPrePathEndLumi(PrePathEndLumi::slot_type const& iSlot) {
596 prePathEndLumiSignal_.
connect(iSlot);
603 PostPathEndLumi postPathEndLumiSignal_;
604 void watchPostPathEndLumi(PostPathEndLumi::slot_type const& iSlot) {
623 PreModuleConstruction preModuleConstructionSignal_;
624 void watchPreModuleConstruction(PreModuleConstruction::slot_type const& iSlot) {
625 preModuleConstructionSignal_.
connect(iSlot);
632 PostModuleConstruction postModuleConstructionSignal_;
633 void watchPostModuleConstruction(PostModuleConstruction::slot_type const& iSlot) {
641 PreModuleBeginJob preModuleBeginJobSignal_;
642 void watchPreModuleBeginJob(PreModuleBeginJob::slot_type const& iSlot) {
643 preModuleBeginJobSignal_.
connect(iSlot);
649 PostModuleBeginJob postModuleBeginJobSignal_;
650 void watchPostModuleBeginJob(PostModuleBeginJob::slot_type const& iSlot) {
657 PreModuleEndJob preModuleEndJobSignal_;
658 void watchPreModuleEndJob(PreModuleEndJob::slot_type const& iSlot) {
659 preModuleEndJobSignal_.
connect(iSlot);
665 PostModuleEndJob postModuleEndJobSignal_;
666 void watchPostModuleEndJob(PostModuleEndJob::slot_type const& iSlot) {
673 PreModuleEventPrefetching preModuleEventPrefetchingSignal_;
674 void watchPreModuleEventPrefetching(PreModuleEventPrefetching::slot_type const& iSlot) {
675 preModuleEventPrefetchingSignal_.
connect(iSlot);
681 PostModuleEventPrefetching postModuleEventPrefetchingSignal_;
682 void watchPostModuleEventPrefetching(PostModuleEventPrefetching::slot_type const& iSlot) {
689 PreModuleEvent preModuleEventSignal_;
690 void watchPreModuleEvent(PreModuleEvent::slot_type const& iSlot) {
691 preModuleEventSignal_.
connect(iSlot);
697 PostModuleEvent postModuleEventSignal_;
698 void watchPostModuleEvent(PostModuleEvent::slot_type const& iSlot) {
705 PreModuleEventDelayedGet preModuleEventDelayedGetSignal_;
706 void watchPreModuleEventDelayedGet(PreModuleEventDelayedGet::slot_type const& iSlot) {
707 preModuleEventDelayedGetSignal_.
connect(iSlot);
713 PostModuleEventDelayedGet postModuleEventDelayedGetSignal_;
714 void watchPostModuleEventDelayedGet(PostModuleEventDelayedGet::slot_type const& iSlot) {
721 PreEventReadFromSource preEventReadFromSourceSignal_;
722 void watchPreEventReadFromSource(PreEventReadFromSource::slot_type const& iSlot) {
723 preEventReadFromSourceSignal_.
connect(iSlot);
729 PostEventReadFromSource postEventReadFromSourceSignal_;
730 void watchPostEventReadFromSource(PostEventReadFromSource::slot_type const& iSlot) {
736 PreModuleStreamBeginRun preModuleStreamBeginRunSignal_;
737 void watchPreModuleStreamBeginRun(PreModuleStreamBeginRun::slot_type const& iSlot) {
738 preModuleStreamBeginRunSignal_.
connect(iSlot);
743 PostModuleStreamBeginRun postModuleStreamBeginRunSignal_;
744 void watchPostModuleStreamBeginRun(PostModuleStreamBeginRun::slot_type const& iSlot) {
750 PreModuleStreamEndRun preModuleStreamEndRunSignal_;
751 void watchPreModuleStreamEndRun(PreModuleStreamEndRun::slot_type const& iSlot) {
752 preModuleStreamEndRunSignal_.
connect(iSlot);
757 PostModuleStreamEndRun postModuleStreamEndRunSignal_;
758 void watchPostModuleStreamEndRun(PostModuleStreamEndRun::slot_type const& iSlot) {
764 PreModuleStreamBeginLumi preModuleStreamBeginLumiSignal_;
765 void watchPreModuleStreamBeginLumi(PreModuleStreamBeginLumi::slot_type const& iSlot) {
766 preModuleStreamBeginLumiSignal_.
connect(iSlot);
771 PostModuleStreamBeginLumi postModuleStreamBeginLumiSignal_;
772 void watchPostModuleStreamBeginLumi(PostModuleStreamBeginLumi::slot_type const& iSlot) {
778 PreModuleStreamEndLumi preModuleStreamEndLumiSignal_;
779 void watchPreModuleStreamEndLumi(PreModuleStreamEndLumi::slot_type const& iSlot) {
780 preModuleStreamEndLumiSignal_.
connect(iSlot);
785 PostModuleStreamEndLumi postModuleStreamEndLumiSignal_;
786 void watchPostModuleStreamEndLumi(PostModuleStreamEndLumi::slot_type const& iSlot) {
792 PreModuleGlobalBeginRun preModuleGlobalBeginRunSignal_;
793 void watchPreModuleGlobalBeginRun(PreModuleGlobalBeginRun::slot_type const& iSlot) {
794 preModuleGlobalBeginRunSignal_.
connect(iSlot);
799 PostModuleGlobalBeginRun postModuleGlobalBeginRunSignal_;
800 void watchPostModuleGlobalBeginRun(PostModuleGlobalBeginRun::slot_type const& iSlot) {
806 PreModuleGlobalEndRun preModuleGlobalEndRunSignal_;
807 void watchPreModuleGlobalEndRun(PreModuleGlobalEndRun::slot_type const& iSlot) {
808 preModuleGlobalEndRunSignal_.
connect(iSlot);
813 PostModuleGlobalEndRun postModuleGlobalEndRunSignal_;
814 void watchPostModuleGlobalEndRun(PostModuleGlobalEndRun::slot_type const& iSlot) {
820 PreModuleGlobalBeginLumi preModuleGlobalBeginLumiSignal_;
821 void watchPreModuleGlobalBeginLumi(PreModuleGlobalBeginLumi::slot_type const& iSlot) {
822 preModuleGlobalBeginLumiSignal_.
connect(iSlot);
827 PostModuleGlobalBeginLumi postModuleGlobalBeginLumiSignal_;
828 void watchPostModuleGlobalBeginLumi(PostModuleGlobalBeginLumi::slot_type const& iSlot) {
834 PreModuleGlobalEndLumi preModuleGlobalEndLumiSignal_;
835 void watchPreModuleGlobalEndLumi(PreModuleGlobalEndLumi::slot_type const& iSlot) {
836 preModuleGlobalEndLumiSignal_.
connect(iSlot);
841 PostModuleGlobalEndLumi postModuleGlobalEndLumiSignal_;
842 void watchPostModuleGlobalEndLumi(PostModuleGlobalEndLumi::slot_type const& iSlot) {
850 PreModule preModuleSignal_;
851 void watchPreModule(PreModule::slot_type const& iSlot) {
852 preModuleSignal_.
connect(iSlot);
859 PostModule postModuleSignal_;
860 void watchPostModule(PostModule::slot_type const& iSlot) {
868 PreModuleBeginRun preModuleBeginRunSignal_;
869 void watchPreModuleBeginRun(PreModuleBeginRun::slot_type const& iSlot) {
870 preModuleBeginRunSignal_.
connect(iSlot);
877 PostModuleBeginRun postModuleBeginRunSignal_;
878 void watchPostModuleBeginRun(PostModuleBeginRun::slot_type const& iSlot) {
887 PreModuleEndRun preModuleEndRunSignal_;
888 void watchPreModuleEndRun(PreModuleEndRun::slot_type const& iSlot) {
889 preModuleEndRunSignal_.
connect(iSlot);
896 PostModuleEndRun postModuleEndRunSignal_;
897 void watchPostModuleEndRun(PostModuleEndRun::slot_type const& iSlot) {
905 PreModuleBeginLumi preModuleBeginLumiSignal_;
906 void watchPreModuleBeginLumi(PreModuleBeginLumi::slot_type const& iSlot) {
907 preModuleBeginLumiSignal_.
connect(iSlot);
914 PostModuleBeginLumi postModuleBeginLumiSignal_;
915 void watchPostModuleBeginLumi(PostModuleBeginLumi::slot_type const& iSlot) {
923 PreModuleEndLumi preModuleEndLumiSignal_;
924 void watchPreModuleEndLumi(PreModuleEndLumi::slot_type const& iSlot) {
925 preModuleEndLumiSignal_.
connect(iSlot);
932 PostModuleEndLumi postModuleEndLumiSignal_;
933 void watchPostModuleEndLumi(PostModuleEndLumi::slot_type const& iSlot) {
940 PreSourceConstruction preSourceConstructionSignal_;
941 void watchPreSourceConstruction(PreSourceConstruction::slot_type const& iSlot) {
942 preSourceConstructionSignal_.
connect(iSlot);
949 PostSourceConstruction postSourceConstructionSignal_;
950 void watchPostSourceConstruction(PostSourceConstruction::slot_type const& iSlot) {
980 #undef AR_WATCH_USING_METHOD
void watchPreallocate(Preallocate::slot_type const &iSlot)
void throwObsoleteSignalException()
signalslot::Signal< void(service::SystemBounds const &)> Preallocate
void connect_front(U iFunc)
Preallocate preallocateSignal_
signal is emitted before beginJob
std::function< T > slot_type
std::function< void(service::SystemBounds const &) > slot_type
#define AR_WATCH_USING_METHOD_1(method)
#define AR_WATCH_USING_METHOD_0(method)
edm::Handle< T > connect(const T *&ptr, edm::EDGetTokenT< T > token, const edm::Event &evt)
#define AR_WATCH_USING_METHOD_3(method)
#define AR_WATCH_USING_METHOD_2(method)