#include <VisReco/VisMETReco/interface/VisMETRecoContent.h>
Public Member Functions | |
VisMETRecoContent (IgState *state) | |
Initialise the reconsructed MET data data proxy. | |
Private Member Functions | |
IG_DECLARE_STATE_ELEMENT (VisMETRecoContent) | |
void | init (void) |
Actual (in-event-thread) initialisation: add the MET twigs to the document data tree. |
Definition at line 15 of file VisMETRecoContent.h.
VisMETRecoContent::VisMETRecoContent | ( | IgState * | state | ) |
Initialise the reconsructed MET data data proxy.
Definition at line 27 of file VisMETRecoContent.cc.
00028 : VisContent (state, s_key, MAIN_THREAD, 00029 lat::CreateCallback (this, &VisMETRecoContent::init)) 00030 { 00031 }
VisMETRecoContent::IG_DECLARE_STATE_ELEMENT | ( | VisMETRecoContent | ) | [private] |
Actual (in-event-thread) initialisation: add the MET twigs to the document data tree.
Definition at line 36 of file VisMETRecoContent.cc.
References DBSPlugin::get(), LFfwvis, LOG, IgTwig::lookup(), VisContent::state(), and GsfMatrixTools::trace().
00037 { 00038 LOG (0, trace, LFfwvis, "VisMETRecoContent::init()\n"); 00039 00040 IgQtLock (); 00041 00042 IgTwig *rootTwig = IgDocumentData::get (state ())->root (); 00043 IgTwig *topTwig = 0; 00044 IgTwig *eventTwig = 0; 00045 00046 topTwig = rootTwig->lookup ("CMS Event and Detector"); 00047 if (!topTwig) topTwig = new IgSimpleTwig (topTwig, "CMS Event and Detector"); 00048 00049 eventTwig = topTwig->lookup ("CMS Event"); 00050 if (!eventTwig) eventTwig = new IgSimpleTwig (topTwig, "CMS Event"); 00051 00052 IgTwig *metEventTwig = new IgSimpleTwig (eventTwig, "MET data"); 00053 00054 new VisCaloMETTwig (state (), metEventTwig, "Calo MET"); 00055 new VisGenMETTwig (state (), metEventTwig, "Gen MET"); 00056 new VisMETTwig (state (), metEventTwig, "MET"); 00057 }