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 PreModuleEventAcquire preModuleEventAcquireSignal_;
706 void watchPreModuleEventAcquire(PreModuleEventAcquire::slot_type const& iSlot) {
707 preModuleEventAcquireSignal_.
connect(iSlot);
713 PostModuleEventAcquire postModuleEventAcquireSignal_;
714 void watchPostModuleEventAcquire(PostModuleEventAcquire::slot_type const& iSlot) {
721 PreModuleEventDelayedGet preModuleEventDelayedGetSignal_;
722 void watchPreModuleEventDelayedGet(PreModuleEventDelayedGet::slot_type const& iSlot) {
723 preModuleEventDelayedGetSignal_.
connect(iSlot);
729 PostModuleEventDelayedGet postModuleEventDelayedGetSignal_;
730 void watchPostModuleEventDelayedGet(PostModuleEventDelayedGet::slot_type const& iSlot) {
737 PreEventReadFromSource preEventReadFromSourceSignal_;
738 void watchPreEventReadFromSource(PreEventReadFromSource::slot_type const& iSlot) {
739 preEventReadFromSourceSignal_.
connect(iSlot);
745 PostEventReadFromSource postEventReadFromSourceSignal_;
746 void watchPostEventReadFromSource(PostEventReadFromSource::slot_type const& iSlot) {
752 PreModuleStreamBeginRun preModuleStreamBeginRunSignal_;
753 void watchPreModuleStreamBeginRun(PreModuleStreamBeginRun::slot_type const& iSlot) {
754 preModuleStreamBeginRunSignal_.
connect(iSlot);
759 PostModuleStreamBeginRun postModuleStreamBeginRunSignal_;
760 void watchPostModuleStreamBeginRun(PostModuleStreamBeginRun::slot_type const& iSlot) {
766 PreModuleStreamEndRun preModuleStreamEndRunSignal_;
767 void watchPreModuleStreamEndRun(PreModuleStreamEndRun::slot_type const& iSlot) {
768 preModuleStreamEndRunSignal_.
connect(iSlot);
773 PostModuleStreamEndRun postModuleStreamEndRunSignal_;
774 void watchPostModuleStreamEndRun(PostModuleStreamEndRun::slot_type const& iSlot) {
780 PreModuleStreamBeginLumi preModuleStreamBeginLumiSignal_;
781 void watchPreModuleStreamBeginLumi(PreModuleStreamBeginLumi::slot_type const& iSlot) {
782 preModuleStreamBeginLumiSignal_.
connect(iSlot);
787 PostModuleStreamBeginLumi postModuleStreamBeginLumiSignal_;
788 void watchPostModuleStreamBeginLumi(PostModuleStreamBeginLumi::slot_type const& iSlot) {
794 PreModuleStreamEndLumi preModuleStreamEndLumiSignal_;
795 void watchPreModuleStreamEndLumi(PreModuleStreamEndLumi::slot_type const& iSlot) {
796 preModuleStreamEndLumiSignal_.
connect(iSlot);
801 PostModuleStreamEndLumi postModuleStreamEndLumiSignal_;
802 void watchPostModuleStreamEndLumi(PostModuleStreamEndLumi::slot_type const& iSlot) {
808 PreModuleGlobalBeginRun preModuleGlobalBeginRunSignal_;
809 void watchPreModuleGlobalBeginRun(PreModuleGlobalBeginRun::slot_type const& iSlot) {
810 preModuleGlobalBeginRunSignal_.
connect(iSlot);
815 PostModuleGlobalBeginRun postModuleGlobalBeginRunSignal_;
816 void watchPostModuleGlobalBeginRun(PostModuleGlobalBeginRun::slot_type const& iSlot) {
822 PreModuleGlobalEndRun preModuleGlobalEndRunSignal_;
823 void watchPreModuleGlobalEndRun(PreModuleGlobalEndRun::slot_type const& iSlot) {
824 preModuleGlobalEndRunSignal_.
connect(iSlot);
829 PostModuleGlobalEndRun postModuleGlobalEndRunSignal_;
830 void watchPostModuleGlobalEndRun(PostModuleGlobalEndRun::slot_type const& iSlot) {
836 PreModuleGlobalBeginLumi preModuleGlobalBeginLumiSignal_;
837 void watchPreModuleGlobalBeginLumi(PreModuleGlobalBeginLumi::slot_type const& iSlot) {
838 preModuleGlobalBeginLumiSignal_.
connect(iSlot);
843 PostModuleGlobalBeginLumi postModuleGlobalBeginLumiSignal_;
844 void watchPostModuleGlobalBeginLumi(PostModuleGlobalBeginLumi::slot_type const& iSlot) {
850 PreModuleGlobalEndLumi preModuleGlobalEndLumiSignal_;
851 void watchPreModuleGlobalEndLumi(PreModuleGlobalEndLumi::slot_type const& iSlot) {
852 preModuleGlobalEndLumiSignal_.
connect(iSlot);
857 PostModuleGlobalEndLumi postModuleGlobalEndLumiSignal_;
858 void watchPostModuleGlobalEndLumi(PostModuleGlobalEndLumi::slot_type const& iSlot) {
866 PreModule preModuleSignal_;
867 void watchPreModule(PreModule::slot_type const& iSlot) {
868 preModuleSignal_.
connect(iSlot);
875 PostModule postModuleSignal_;
876 void watchPostModule(PostModule::slot_type const& iSlot) {
884 PreModuleBeginRun preModuleBeginRunSignal_;
885 void watchPreModuleBeginRun(PreModuleBeginRun::slot_type const& iSlot) {
886 preModuleBeginRunSignal_.
connect(iSlot);
893 PostModuleBeginRun postModuleBeginRunSignal_;
894 void watchPostModuleBeginRun(PostModuleBeginRun::slot_type const& iSlot) {
903 PreModuleEndRun preModuleEndRunSignal_;
904 void watchPreModuleEndRun(PreModuleEndRun::slot_type const& iSlot) {
905 preModuleEndRunSignal_.
connect(iSlot);
912 PostModuleEndRun postModuleEndRunSignal_;
913 void watchPostModuleEndRun(PostModuleEndRun::slot_type const& iSlot) {
921 PreModuleBeginLumi preModuleBeginLumiSignal_;
922 void watchPreModuleBeginLumi(PreModuleBeginLumi::slot_type const& iSlot) {
923 preModuleBeginLumiSignal_.
connect(iSlot);
930 PostModuleBeginLumi postModuleBeginLumiSignal_;
931 void watchPostModuleBeginLumi(PostModuleBeginLumi::slot_type const& iSlot) {
939 PreModuleEndLumi preModuleEndLumiSignal_;
940 void watchPreModuleEndLumi(PreModuleEndLumi::slot_type const& iSlot) {
941 preModuleEndLumiSignal_.
connect(iSlot);
948 PostModuleEndLumi postModuleEndLumiSignal_;
949 void watchPostModuleEndLumi(PostModuleEndLumi::slot_type const& iSlot) {
956 PreSourceConstruction preSourceConstructionSignal_;
957 void watchPreSourceConstruction(PreSourceConstruction::slot_type const& iSlot) {
958 preSourceConstructionSignal_.
connect(iSlot);
965 PostSourceConstruction postSourceConstructionSignal_;
966 void watchPostSourceConstruction(PostSourceConstruction::slot_type const& iSlot) {
996 #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)