CMS 3D CMS Logo

VisRecoJetContent.cc

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

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