CMS 3D CMS Logo

VisRecoToolsContent.cc

Go to the documentation of this file.
00001 //<<<<<< INCLUDES                                                       >>>>>>
00002 
00003 #include "VisReco/VisRecoTools/interface/VisRecoToolsContent.h"
00004 #include "VisReco/VisRecoTools/interface/VisRecoToolsTwig.h"
00005 #include "Iguana/Studio/interface/IgDocumentData.h"
00006 #include "Iguana/Framework/interface/IgTwig.h"
00007 #include "Iguana/Studio/interface/IgQtLock.h"
00008 #include <classlib/utils/Callback.h>
00009 
00010 //<<<<<< PRIVATE DEFINES                                                >>>>>>
00011 //<<<<<< PRIVATE CONSTANTS                                              >>>>>>
00012 //<<<<<< PRIVATE TYPES                                                  >>>>>>
00013 //<<<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>>>
00014 //<<<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>>>
00015 //<<<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>>>
00016 
00017 IG_DEFINE_STATE_ELEMENT (VisRecoToolsContent, "Data/Reco/Tools");
00018 
00019 //<<<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>>>
00020 //<<<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>>>
00021 //<<<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>>>
00022 
00024 VisRecoToolsContent::VisRecoToolsContent (IgState *state)
00025     : VisContent (state, s_key, MAIN_THREAD,
00026                   lat::CreateCallback (this, &VisRecoToolsContent::init))
00027 {
00028 }
00029 
00032 void
00033 VisRecoToolsContent::init (void)
00034 {    
00035     IgQtLock ();
00036 
00037     IgTwig *rootTwig = IgDocumentData::get (state ())->root ();
00038     IgTwig *topTwig = 0;
00039     IgTwig *eventTwig = 0;
00040 
00041     topTwig = rootTwig->lookup ("CMS Event and Detector");
00042     if (!topTwig) topTwig = new IgSimpleTwig (rootTwig, "CMS Event and Detector");
00043 
00044     eventTwig = topTwig->lookup ("CMS Event");
00045     if (!eventTwig) eventTwig = new VisRecoToolsTwig (state (), topTwig, "CMS Event Tools");
00046 }

Generated on Tue Jun 9 17:50:26 2009 for CMSSW by  doxygen 1.5.4