00001
00002
00003 #include "VisReco/VisTrigger/interface/VisTriggerContent.h"
00004 #include "VisReco/VisTrigger/interface/VisTriggerResultsTwig.h"
00005 #include "VisReco/VisTrigger/interface/VisL1MuDTChambPhContainerTwig.h"
00006 #include "VisReco/VisTrigger/interface/VisL1MuDTChambThContainerTwig.h"
00007 #include "VisReco/VisTrigger/interface/VisL1MuDTTrackContainerTwig.h"
00008 #include "VisReco/VisTrigger/interface/VisL1GlobalTriggerReadoutRecordTwig.h"
00009 #include "Iguana/Studio/interface/IgDocumentData.h"
00010 #include "Iguana/Framework/interface/IgTwig.h"
00011 #include "Iguana/Studio/interface/IgQtLock.h"
00012 #include <classlib/utils/Callback.h>
00013
00014
00015
00016
00017
00018
00019
00020
00021 IG_DEFINE_STATE_ELEMENT (VisTriggerContent, "Data/Reco/Trigger");
00022
00023
00024
00025
00026
00028 VisTriggerContent::VisTriggerContent (IgState *state)
00029 : VisContent (state, s_key, MAIN_THREAD,
00030 lat::CreateCallback (this, &VisTriggerContent::init))
00031 {
00032 }
00033
00036 void
00037 VisTriggerContent::init (void)
00038 {
00039 IgQtLock ();
00040
00041 IgTwig *rootTwig = IgDocumentData::get (state ())->root ();
00042 IgTwig *topTwig = 0;
00043 IgTwig *eventTwig = 0;
00044
00045 topTwig = rootTwig->lookup ("CMS Event and Detector");
00046 if (!topTwig) topTwig = new IgSimpleTwig (rootTwig, "CMS Event and Detector");
00047
00048 eventTwig = topTwig->lookup ("CMS Event");
00049 if (!eventTwig) eventTwig = new IgSimpleTwig (topTwig, "CMS Event");
00050
00051 IgTwig *triggerTwig = new IgSimpleTwig (eventTwig, "Trigger");
00052 new VisTriggerResultsTwig (state (), triggerTwig, "Trigger Results");
00053 new VisL1MuDTChambPhContainerTwig (state (), triggerTwig, "L1 Muon DT Ph");
00054 new VisL1MuDTChambThContainerTwig (state (), triggerTwig, "L1 Muon DT Th");
00055 new VisL1MuDTTrackContainerTwig (state (), triggerTwig, "L1 Muon DT Tracks");
00056 new VisL1GlobalTriggerReadoutRecordTwig (state (), triggerTwig, "L1GlobalTriggerReadoutRecord");
00057 }