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