00001 //<<<<<< INCLUDES >>>>>> 00002 00003 #include "VisReco/VisRecoJets/interface/VisRecoCandidateContent.h" 00004 #include "VisReco/VisRecoJets/interface/VisCandidateTwig.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 (VisRecoCandidateContent, "Data/Reco/Candidate"); 00018 00019 //<<<<<< PRIVATE FUNCTION DEFINITIONS >>>>>> 00020 //<<<<<< PUBLIC FUNCTION DEFINITIONS >>>>>> 00021 //<<<<<< MEMBER FUNCTION DEFINITIONS >>>>>> 00022 00024 VisRecoCandidateContent::VisRecoCandidateContent (IgState *state) 00025 : VisContent (state, s_key, MAIN_THREAD, 00026 lat::CreateCallback (this, &VisRecoCandidateContent::init)) 00027 { 00028 } 00029 00032 void 00033 VisRecoCandidateContent::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 IgSimpleTwig (topTwig, "CMS Event"); 00046 00047 new VisCandidateTwig (state (), eventTwig, "Candidates"); 00048 }