CMS 3D CMS Logo

VisSimDataContent Class Reference

#include <VisSimulation/VisSimData/interface/VisSimDataContent.h>

Inheritance diagram for VisSimDataContent:

VisContent IgExtension IgStateElement

List of all members.

Public Member Functions

 VisSimDataContent (IgState *state)
 Initialise the simulated data formats data proxy.

Private Member Functions

 IG_DECLARE_STATE_ELEMENT (VisSimDataContent)
void init (void)
 Actual (in-event-thread) initialisation: add the sim hits twigs to the document data tree.


Detailed Description

Definition at line 15 of file VisSimDataContent.h.


Constructor & Destructor Documentation

VisSimDataContent::VisSimDataContent ( IgState state  ) 

Initialise the simulated data formats data proxy.

Definition at line 25 of file VisSimDataContent.cc.

00026     : VisContent (state, s_key, MAIN_THREAD,
00027                   lat::CreateCallback (this, &VisSimDataContent::init))
00028 {
00029 }


Member Function Documentation

VisSimDataContent::IG_DECLARE_STATE_ELEMENT ( VisSimDataContent   )  [private]

void VisSimDataContent::init ( void   )  [private]

Actual (in-event-thread) initialisation: add the sim hits twigs to the document data tree.

Definition at line 34 of file VisSimDataContent.cc.

References DBSPlugin::get(), IgTwig::lookup(), and VisContent::state().

00035 {
00036     IgQtLock ();
00037     
00038     IgTwig *rootTwig = IgDocumentData::get (state ())->root ();
00039     IgTwig *topTwig = 0;
00040     IgTwig *eventTwig = 0;
00041 
00042     topTwig = rootTwig->lookup ("CMS Event and Detector");
00043     if (!topTwig) topTwig = new IgSimpleTwig (rootTwig, "CMS Event and Detector");
00044 
00045     eventTwig = topTwig->lookup ("CMS Event");
00046     if (!eventTwig) eventTwig = new IgSimpleTwig (topTwig, "CMS Event");
00047     
00048     IgTwig *simEventTwig = new IgSimpleTwig (eventTwig, "Simulated Event Data");
00049     new VisHepMCProductTwig (state (), simEventTwig, "HepMC product");
00050 }


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