#include <VisSimulation/VisSimBase/interface/VisG4MagFieldContent.h>
Public Member Functions | |
VisG4MagFieldContent (IgState *state) | |
Initialise the Simulation magnetic field data content. | |
Private Member Functions | |
IG_DECLARE_STATE_ELEMENT (VisG4MagFieldContent) | |
void | init (void) |
Actual (in-event-thread) initialisation: add the hits twig to the document data tree. |
Definition at line 16 of file VisG4MagFieldContent.h.
VisG4MagFieldContent::VisG4MagFieldContent | ( | IgState * | state | ) |
Initialise the Simulation magnetic field data content.
Definition at line 24 of file VisG4MagFieldContent.cc.
00025 : VisContent (state, s_key, MAIN_THREAD, 00026 lat::CreateCallback (this, &VisG4MagFieldContent::init)) 00027 {}
VisG4MagFieldContent::IG_DECLARE_STATE_ELEMENT | ( | VisG4MagFieldContent | ) | [private] |
Actual (in-event-thread) initialisation: add the hits twig to the document data tree.
Definition at line 32 of file VisG4MagFieldContent.cc.
References DBSPlugin::get(), IgRepSet::invalidate(), IgTwig::lookup(), pydbsAccessor::root, IgTwig::SELF_MASK, VisContent::state(), and IgTwig::STRUCTURE_MASK.
00033 { 00034 // FIXME: need to document model registration + browsing support 00035 qApp->lock (); 00036 IgTwig *root = IgDocumentData::get (state ())->root (); 00037 if (root->lookup ("CMS Event and Detector")) 00038 root = root->lookup ("CMS Event and Detector"); 00039 00040 IgTwig *annotations = 0; 00041 00042 annotations = root->lookup ("Annotations"); 00043 00044 if (! annotations) 00045 annotations = new IgSimpleTwig (root, "Annotations"); 00046 00047 new VisG4MagFieldTwig (annotations, state ()); 00048 00049 IgRepSet::invalidate (root, IgTwig::SELF_MASK | IgTwig::STRUCTURE_MASK); 00050 qApp->unlock (false); 00051 }