00001
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
00014
00015
00016
00017
00018
00019
00020 IG_DEFINE_STATE_ELEMENT (VisRecoJetContent, "Data/Reco/Jets");
00021
00022
00023
00024
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
00050 }
00051