00001
00002
00003 #include "VisReco/VisMuonCSC/interface/VisMuonCSCContent.h"
00004 #include "VisReco/VisMuonCSC/interface/VisCSCStripDigiTwig.h"
00005 #include "VisReco/VisMuonCSC/interface/VisCSCWireDigiTwig.h"
00006 #include "VisReco/VisMuonCSC/interface/VisCSCComparatorDigiTwig.h"
00007 #include "VisReco/VisMuonCSC/interface/VisCSCCorrelatedLCTDigiTwig.h"
00008 #include "VisReco/VisMuonCSC/interface/VisCSCALCTDigiTwig.h"
00009 #include "VisReco/VisMuonCSC/interface/VisCSCCLCTDigiTwig.h"
00010 #include "VisReco/VisMuonCSC/interface/VisCSCSegmentTwig.h"
00011 #include "VisReco/VisMuonCSC/interface/VisCSCRecHit2DTwig.h"
00012 #include "VisFramework/VisFrameworkBase/interface/debug.h"
00013 #include "Iguana/Studio/interface/IgDocumentData.h"
00014 #include "Iguana/Framework/interface/IgTwig.h"
00015 #include "Iguana/Studio/interface/IgQtLock.h"
00016 #include <qstring.h>
00017 #include <classlib/utils/Callback.h>
00018
00019
00020
00021
00022
00023
00024
00025
00026 IG_DEFINE_STATE_ELEMENT (VisMuonCSCContent, "Data/Reco/MuonCSC");
00027
00028
00029
00030
00031
00033 VisMuonCSCContent::VisMuonCSCContent (IgState *state)
00034 : VisContent (state, s_key, MAIN_THREAD,
00035 lat::CreateCallback (this, &VisMuonCSCContent::init))
00036 {
00037 }
00038
00041 void
00042 VisMuonCSCContent::init (void)
00043 {
00044 LOG (0, trace, LFfwvis, "VisMuonCSCContent::init()\n");
00045
00046 IgQtLock ();
00047
00048 IgTwig *rootTwig = IgDocumentData::get (state ())->root ();
00049 IgTwig *topTwig = 0;
00050 IgTwig *eventTwig = 0;
00051
00052 topTwig = rootTwig->lookup ("CMS Event and Detector");
00053 if (!topTwig) topTwig = new IgSimpleTwig (rootTwig, "CMS Event and Detector");
00054
00055 eventTwig = topTwig->lookup ("CMS Event");
00056 if (!eventTwig) eventTwig = new IgSimpleTwig (topTwig, "CMS Event");
00057
00058 IgTwig *muonEventTwig = new IgSimpleTwig (eventTwig, "Muon CSC Event");
00059
00060 new VisCSCStripDigiTwig (state (), muonEventTwig, "Strip digis");
00061 new VisCSCWireDigiTwig (state (), muonEventTwig, "Wire digis");
00062 new VisCSCComparatorDigiTwig (state (), muonEventTwig, "Comparator digis");
00063 new VisCSCCorrelatedLCTDigiTwig (state (), muonEventTwig, "Correlated LCT digis");
00064 new VisCSCALCTDigiTwig (state (), muonEventTwig, "ALCT digis");
00065 new VisCSCCLCTDigiTwig (state (), muonEventTwig, "CLCT digis");
00066 new VisCSCRecHit2DTwig (state (), muonEventTwig, "Rec Hit 2D");
00067 new VisCSCSegmentTwig (state (), muonEventTwig, "Segments");
00068 }
00069