#include <VisReco/VisRecoTools/interface/VisRecoToolsContent.h>
Public Member Functions | |
VisRecoToolsContent (IgState *state) | |
Initialise the reco tools data proxy. | |
Private Member Functions | |
IG_DECLARE_STATE_ELEMENT (VisRecoToolsContent) | |
void | init (void) |
Actual (in-event-thread) initialisation: add the reco tools twig to the document data tree. |
Definition at line 15 of file VisRecoToolsContent.h.
VisRecoToolsContent::VisRecoToolsContent | ( | IgState * | state | ) |
Initialise the reco tools data proxy.
Definition at line 24 of file VisRecoToolsContent.cc.
00025 : VisContent (state, s_key, MAIN_THREAD, 00026 lat::CreateCallback (this, &VisRecoToolsContent::init)) 00027 { 00028 }
VisRecoToolsContent::IG_DECLARE_STATE_ELEMENT | ( | VisRecoToolsContent | ) | [private] |
Actual (in-event-thread) initialisation: add the reco tools twig to the document data tree.
Definition at line 33 of file VisRecoToolsContent.cc.
References DBSPlugin::get(), IgTwig::lookup(), and VisContent::state().
00034 { 00035 IgQtLock (); 00036 00037 IgTwig *rootTwig = IgDocumentData::get (state ())->root (); 00038 IgTwig *topTwig = 0; 00039 IgTwig *eventTwig = 0; 00040 00041 topTwig = rootTwig->lookup ("CMS Event and Detector"); 00042 if (!topTwig) topTwig = new IgSimpleTwig (rootTwig, "CMS Event and Detector"); 00043 00044 eventTwig = topTwig->lookup ("CMS Event"); 00045 if (!eventTwig) eventTwig = new VisRecoToolsTwig (state (), topTwig, "CMS Event Tools"); 00046 }