127 printf(
"FWFFService::FWFFService CTOR\n");
137 const char *releaseBase = getenv(
"CMSSW_RELEASE_BASE");
138 const char *workarea = getenv(
"CMSSW_BASE");
139 std::string displayConfigRelFilename =
"/src/Fireworks/FWInterface/macros/ffw.fwc";
140 std::string geometryRelFilename =
"/src/Fireworks/FWInterface/data/cmsGeom10.root";
142 std::string displayConfigFilename =
"ffw.fwc";
145 if (releaseBase && access((releaseBase + displayConfigFilename).c_str(), R_OK) == 0)
146 displayConfigFilename = releaseBase + displayConfigRelFilename;
147 if (workarea && access((workarea + displayConfigRelFilename).c_str(), R_OK) == 0)
148 displayConfigFilename = workarea + displayConfigRelFilename;
150 if (releaseBase && access((releaseBase + geometryRelFilename).c_str(), R_OK) == 0)
151 geometryFilename = releaseBase + geometryRelFilename;
152 if (workarea && access((workarea + geometryRelFilename).c_str(), R_OK) == 0)
153 geometryFilename = workarea + geometryRelFilename;
155 displayConfigFilename = ps.
getUntrackedParameter<std::string>(
"diplayConfigFilename", displayConfigFilename);
163 if (!geometryFilename.empty())
void watchPostBeginRun(PostBeginRun::slot_type const &iSlot)
T getUntrackedParameter(std::string const &, T const &) const
FWSelectionManager * selectionManager()
std::auto_ptr< FWFFNavigator > m_navigator
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
FWColorManager * colorManager()
void postProcessEvent(const edm::Event &, const edm::EventSetup &)
FWEventItemsManager * eiManager()
void postBeginRun(const edm::Run &, const edm::EventSetup &)
void setup(FWNavigatorBase *navigator, fireworks::Context *context, FWJobMetadataManager *metadataManager)
void setContext(fireworks::Context *)
FWModelChangeManager * changeManager()
void setGeometryFilename(const std::string &filename)
void watchPostProcessEvent(PostProcessEvent::slot_type const &iSlot)
CmsShowTaskExecutor * startupTasks()
TEveMagField * m_MagField
std::auto_ptr< FWFFMetadataManager > m_metadataManager
boost::function0< void > TaskFunctor
void addTask(const TaskFunctor &iTask)
std::auto_ptr< fireworks::Context > m_context
const std::string & geometryFilename(void)
void setConfigFilename(const std::string &f)
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal