CMS 3D CMS Logo

VisEcalRecoContent Class Reference

#include <VisReco/VisEcal/interface/VisEcalRecoContent.h>

Inheritance diagram for VisEcalRecoContent:

VisContent IgExtension IgStateElement

List of all members.

Public Member Functions

 VisEcalRecoContent (IgState *state)
 Initialise the reconsructed Ecal data data proxy.

Private Member Functions

 IG_DECLARE_STATE_ELEMENT (VisEcalRecoContent)
void init (void)
 Actual (in-event-thread) initialisation: add the Ecal twigs to the document data tree.


Detailed Description

Definition at line 15 of file VisEcalRecoContent.h.


Constructor & Destructor Documentation

VisEcalRecoContent::VisEcalRecoContent ( IgState state  ) 

Initialise the reconsructed Ecal data data proxy.

Definition at line 28 of file VisEcalRecoContent.cc.

00029     : VisContent (state, s_key, MAIN_THREAD,
00030                   lat::CreateCallback (this, &VisEcalRecoContent::init))
00031 {
00032 }


Member Function Documentation

VisEcalRecoContent::IG_DECLARE_STATE_ELEMENT ( VisEcalRecoContent   )  [private]

void VisEcalRecoContent::init ( void   )  [private]

Actual (in-event-thread) initialisation: add the Ecal twigs to the document data tree.

Definition at line 37 of file VisEcalRecoContent.cc.

References VisExceptionService::cmsExceptionCallback(), lat::CreateCallback(), VisExceptionService::errorCallback(), VisExceptionService::exceptionCallback(), find(), DBSPlugin::get(), edm::ParameterSet::getUntrackedParameter(), IgTwig::lookup(), VisQueuedTwig::onCmsException(), VisQueuedTwig::onError(), VisQueuedTwig::onException(), VisQueuedTwig::onUnhandledException(), VisConfigurationService::pSet(), python::EventAnalyzer_cfg::pset, VisContent::state(), and VisExceptionService::unhandledExceptionCallback().

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     std::vector<std::string> twigs (3);
00049     twigs.push_back ("VisEcalUncalibratedRecHitTwig");
00050     twigs.push_back ("VisEcalRecHitTwig");
00051     twigs.push_back ("VisBasicClusterCollectionTwig");
00052     twigs.push_back ("VisSuperClusterCollectionTwig");
00053 
00054     const edm::ParameterSet *pset = VisConfigurationService::pSet ();
00055     if (pset)
00056     {
00057         twigs = pset->getUntrackedParameter<std::vector<std::string> > ("VisEcalContent", twigs);
00058     }
00059 
00060     VisExceptionService *exService = VisExceptionService::get (state ());
00061     if (! exService)
00062     {
00063         exService = new VisExceptionService (state ());
00064     }
00065    
00066     IgTwig *ecalEventTwig = new IgSimpleTwig (topTwig, "ECAL Event");
00067 
00068     if (std::find (twigs.begin (), twigs.end (), "VisEcalUncalibratedRecHitTwig") != twigs.end ()) 
00069     {
00070         VisEcalUncalibratedRecHitTwig *ucRecHits = new VisEcalUncalibratedRecHitTwig (state (), ecalEventTwig, "Uncalibrated Rec Hits");
00071         ucRecHits->onException (lat::CreateCallback (exService, &VisExceptionService::exceptionCallback));
00072         ucRecHits->onError (lat::CreateCallback (exService, &VisExceptionService::errorCallback));
00073         ucRecHits->onCmsException (lat::CreateCallback (exService, &VisExceptionService::cmsExceptionCallback));
00074         ucRecHits->onUnhandledException (lat::CreateCallback (exService, &VisExceptionService::unhandledExceptionCallback));
00075     }
00076     
00077     if (std::find (twigs.begin (), twigs.end (), "VisEcalRecHitTwig") != twigs.end ()) 
00078     {
00079         VisEcalRecHitTwig *recHits = new VisEcalRecHitTwig (state (), ecalEventTwig, "Rec Hits");
00080         recHits->onException (lat::CreateCallback (exService, &VisExceptionService::exceptionCallback));
00081         recHits->onError (lat::CreateCallback (exService, &VisExceptionService::errorCallback));
00082         recHits->onCmsException (lat::CreateCallback (exService, &VisExceptionService::cmsExceptionCallback));
00083         recHits->onUnhandledException (lat::CreateCallback (exService, &VisExceptionService::unhandledExceptionCallback));
00084     }
00085     if (std::find (twigs.begin (), twigs.end (), "VisBasicClusterCollectionTwig") != twigs.end ()) 
00086     {
00087         VisBasicClusterCollectionTwig *bclustres = new VisBasicClusterCollectionTwig (state (), ecalEventTwig, "Basic Clusters");
00088         bclustres->onException (lat::CreateCallback (exService, &VisExceptionService::exceptionCallback));
00089         bclustres->onError (lat::CreateCallback (exService, &VisExceptionService::errorCallback));
00090         bclustres->onCmsException (lat::CreateCallback (exService, &VisExceptionService::cmsExceptionCallback));
00091         bclustres->onUnhandledException (lat::CreateCallback (exService, &VisExceptionService::unhandledExceptionCallback));
00092     }
00093     if (std::find (twigs.begin (), twigs.end (), "VisSuperClusterCollectionTwig") != twigs.end ()) 
00094     {
00095         VisSuperClusterCollectionTwig *sclustres = new VisSuperClusterCollectionTwig (state (), ecalEventTwig, "Super Clusters");
00096         sclustres->onException (lat::CreateCallback (exService, &VisExceptionService::exceptionCallback));
00097         sclustres->onError (lat::CreateCallback (exService, &VisExceptionService::errorCallback));
00098         sclustres->onCmsException (lat::CreateCallback (exService, &VisExceptionService::cmsExceptionCallback));
00099         sclustres->onUnhandledException (lat::CreateCallback (exService, &VisExceptionService::unhandledExceptionCallback));
00100     }
00101 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:20 2009 for CMSSW by  doxygen 1.5.4