![]() |
![]() |
#include <VisSimulation/VisSimData/interface/VisSimDataContent.h>
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. |
Definition at line 15 of file VisSimDataContent.h.
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 }
VisSimDataContent::IG_DECLARE_STATE_ELEMENT | ( | VisSimDataContent | ) | [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 }