CMS 3D CMS Logo

VisG4MagFieldContent Class Reference

Data proxy to create the magnetic field twig. More...

#include <VisSimulation/VisSimBase/interface/VisG4MagFieldContent.h>

Inheritance diagram for VisG4MagFieldContent:

VisContent IgExtension IgStateElement

List of all members.

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.


Detailed Description

Data proxy to create the magnetic field twig.

Definition at line 16 of file VisG4MagFieldContent.h.


Constructor & Destructor Documentation

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 {}


Member Function Documentation

VisG4MagFieldContent::IG_DECLARE_STATE_ELEMENT ( VisG4MagFieldContent   )  [private]

void VisG4MagFieldContent::init ( void   )  [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 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:24 2009 for CMSSW by  doxygen 1.5.4