#include <VisFramework/VisEvent/interface/VisEventCoreContent.h>
Public Member Functions | |
VisEventCoreContent (IgState *state) | |
Initialise the Event data content. | |
Private Member Functions | |
IG_DECLARE_STATE_ELEMENT (VisEventCoreContent) | |
void | init (void) |
Actual (in-event-thread) initialisation: add the event twig to the document data tree. |
Definition at line 15 of file VisEventCoreContent.h.
VisEventCoreContent::VisEventCoreContent | ( | IgState * | state | ) |
Initialise the Event data content.
Definition at line 30 of file VisEventCoreContent.cc.
00031 : VisContent (state, s_key, MAIN_THREAD, 00032 lat::CreateCallback (this, &VisEventCoreContent::init)) 00033 { 00034 }
VisEventCoreContent::IG_DECLARE_STATE_ELEMENT | ( | VisEventCoreContent | ) | [private] |
Actual (in-event-thread) initialisation: add the event twig to the document data tree.
Definition at line 39 of file VisEventCoreContent.cc.
References ASSERT, lat::CreateCallback(), DBSPlugin::get(), VisEventContentTwigOps::menuAction(), IgTwigOps::menuAction(), VisEventContentTwig::onNewEvent(), VisEventContentTwig::onPreEvent(), and VisContent::state().
00040 { 00041 IgQtLock (); 00042 00043 IgTwig *rootTwig = IgDocumentData::get (state ())->root (); 00044 IgTwig *eventTwig = 0; 00045 00046 eventTwig = IgDocumentData::get (state ())->find ("Event Collections"); 00047 if (!eventTwig) eventTwig = new IgSimpleTwig (rootTwig, "Event Collections"); 00048 00049 VisEventContentTwig *evtCntTwig = new VisEventContentTwig (state (), eventTwig, "Alias (FriendlyName:ModuleLabel:InstanceName:ProcessName)"); 00050 00051 new VisEventIdTwig (state (), eventTwig, "Run and Event Number"); 00052 new VisFEDRawDataCollectionTwig (state (), eventTwig, "FEDRawData"); 00053 00054 ASSERT (IgQtObjectMenuService::get (state ())); 00055 IgQtObjectMenuService::get (state ()) 00056 ->add (lat::CreateCallback (new IgTwigOps, &IgTwigOps::menuAction)); 00057 00058 if (VisEventProcessorService *procService = VisEventProcessorService::get (state ())) 00059 { 00060 (*procService)->preProcessEventSignal().connect (sigc::mem_fun (evtCntTwig, &VisEventContentTwig::onPreEvent)); 00061 (*procService)->postProcessEventSignal().connect (sigc::mem_fun (evtCntTwig, &VisEventContentTwig::onNewEvent)); 00062 } 00063 00064 // Register object action menus 00065 ASSERT (IgQtObjectMenuService::get (state ())); 00066 IgQtObjectMenuService::get (state ()) 00067 ->add (lat::CreateCallback (new VisEventContentTwigOps, &VisEventContentTwigOps::menuAction)); 00068 }