#include <VisReco/VisMuon/interface/VisMuonContent.h>
Public Member Functions | |
VisMuonContent (IgState *state) | |
Private Member Functions | |
IG_DECLARE_STATE_ELEMENT (VisMuonContent) | |
void | init (void) |
Actual (in-event-thread) initialisation: add the Muon data twigs to the document data tree. |
Definition at line 15 of file VisMuonContent.h.
VisMuonContent::VisMuonContent | ( | IgState * | state | ) |
Definition at line 26 of file VisMuonContent.cc.
00027 : VisContent (state, s_key, MAIN_THREAD, 00028 lat::CreateCallback (this, &VisMuonContent::init)) 00029 {}
VisMuonContent::IG_DECLARE_STATE_ELEMENT | ( | VisMuonContent | ) | [private] |
Actual (in-event-thread) initialisation: add the Muon data twigs to the document data tree.
Definition at line 34 of file VisMuonContent.cc.
References VisExceptionService::cmsExceptionCallback(), lat::CreateCallback(), VisExceptionService::errorCallback(), VisExceptionService::exceptionCallback(), DBSPlugin::get(), IgTwig::lookup(), muons_cfi::muons, VisQueuedTwig::onCmsException(), VisQueuedTwig::onError(), VisQueuedTwig::onException(), VisQueuedTwig::onUnhandledException(), VisContent::state(), tracks, and VisExceptionService::unhandledExceptionCallback().
00035 { 00036 IgQtLock (); 00037 00038 IgTwig *rootTwig = IgDocumentData::get (state ())->root (); 00039 IgTwig *topTwig = 0; 00040 IgTwig *eventTwig = 0; 00041 00042 topTwig = rootTwig->lookup ("CMS Event and Detector"); 00043 if (!topTwig) topTwig = new IgSimpleTwig (rootTwig, "CMS Event and Detector"); 00044 00045 eventTwig = topTwig->lookup ("Event"); 00046 if (!eventTwig) eventTwig = new IgSimpleTwig (topTwig, "Event"); 00047 00048 VisExceptionService *exService = VisExceptionService::get (state ()); 00049 if (! exService) 00050 { 00051 exService = new VisExceptionService (state ()); 00052 } 00053 00054 VisTrackTwig *tracks = new VisTrackTwig (state (), eventTwig, "Tracks"); 00055 tracks->onException (lat::CreateCallback (exService, &VisExceptionService::exceptionCallback)); 00056 tracks->onError (lat::CreateCallback (exService, &VisExceptionService::errorCallback)); 00057 tracks->onCmsException (lat::CreateCallback (exService, &VisExceptionService::cmsExceptionCallback)); 00058 tracks->onUnhandledException (lat::CreateCallback (exService, &VisExceptionService::unhandledExceptionCallback)); 00059 00060 VisMuonTwig *muons = new VisMuonTwig (state (), eventTwig, "Muons"); 00061 muons->onException (lat::CreateCallback (exService, &VisExceptionService::exceptionCallback)); 00062 muons->onError (lat::CreateCallback (exService, &VisExceptionService::errorCallback)); 00063 muons->onCmsException (lat::CreateCallback (exService, &VisExceptionService::cmsExceptionCallback)); 00064 muons->onUnhandledException (lat::CreateCallback (exService, &VisExceptionService::unhandledExceptionCallback)); 00065 }