#include <FWFFService.h>
Definition at line 31 of file FWFFService.h.
◆ FWFFService() [1/2]
Definition at line 99 of file FWFFService.cc.
110 printf(
"FWFFService::FWFFService CTOR\n");
120 const char* releaseBase = std::getenv(
"CMSSW_RELEASE_BASE");
121 const char* workarea = std::getenv(
"CMSSW_BASE");
122 std::string displayConfigRelFilename =
"/src/Fireworks/FWInterface/macros/ffw.fwc";
123 std::string geometryRelFilename =
"/src/Fireworks/FWInterface/data/cmsGeom10.root";
128 if (releaseBase && access((releaseBase + displayConfigFilename).c_str(), R_OK) == 0)
129 displayConfigFilename = releaseBase + displayConfigRelFilename;
130 if (workarea && access((workarea + displayConfigRelFilename).c_str(), R_OK) == 0)
131 displayConfigFilename = workarea + displayConfigRelFilename;
133 if (releaseBase && access((releaseBase + geometryRelFilename).c_str(), R_OK) == 0)
135 if (workarea && access((workarea + geometryRelFilename).c_str(), R_OK) == 0)
References CmsShowTaskExecutor::addTask(), CmsShowMainBase::eiManager(), f, CmsShowMainBase::geometryFilename(), edm::ParameterSet::getUntrackedParameter(), CmsShowMainBase::loadGeometry(), m_context, m_MagField, m_metadataManager, m_navigator, postBeginJob(), postBeginRun(), postEndJob(), postProcessEvent(), CmsShowMainBase::setConfigFilename(), FWEventItemsManager::setContext(), CmsShowMainBase::setGeometryFilename(), CmsShowMainBase::setup(), CmsShowMainBase::startupTasks(), AlCaHLTBitMon_QueryRunRegistry::string, edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostBeginRun(), edm::ActivityRegistry::watchPostEndJob(), and edm::ActivityRegistry::watchPostProcessEvent().
◆ ~FWFFService()
FWFFService::~FWFFService |
( |
| ) |
|
|
override |
◆ FWFFService() [2/2]
◆ autoLoadNewEvent()
void FWFFService::autoLoadNewEvent |
( |
| ) |
|
|
inlineoverridevirtual |
◆ checkPosition()
void FWFFService::checkPosition |
( |
| ) |
|
|
overridevirtual |
◆ display()
void FWFFService::display |
( |
const std::string & |
info = "" | ) |
|
◆ getMagField()
TEveMagField * FWFFService::getMagField |
( |
| ) |
|
◆ operator=()
◆ postBeginJob()
void FWFFService::postBeginJob |
( |
| ) |
|
◆ postBeginRun()
Definition at line 213 of file FWFFService.cc.
237 float current = 18160.0f;
243 printf(
"Got current from conds in edm %f\n", runCond->
BAvgCurrent);
246 printf(
"Could not extract run-conditions get-result=%d, is-valid=%d\n",
res, runCond.
isValid());
251 current = sum->m_avg_current;
252 printf(
"Got current from RunInfoRcd %f\n", sum->m_avg_current);
255 static_cast<CmsEveMagField*>(
m_MagField)->SetFieldByCurrent(current);
References edm::ConditionsInRunBlock::BAvgCurrent, edm::EventSetup::get(), get, edm::Run::getByLabel(), CmsShowMainBase::getGeom(), CmsShowMainBase::guiManager(), FWRecoGeometry::idToName, FWGeometry::initMap(), edm::HandleBase::isValid(), m_context, m_firstTime, m_MagField, edm::ESTransientHandle< T >::product(), CmsShowMainBase::setupActions(), CmsShowMainBase::setupConfiguration(), CmsShowMainBase::setupViewManagers(), and FWGUIManager::updateStatus().
Referenced by FWFFService().
◆ postEndJob()
void FWFFService::postEndJob |
( |
| ) |
|
◆ postProcessEvent()
◆ quit()
void FWFFService::quit |
( |
| ) |
|
|
overridevirtual |
◆ setupFieldForPropagator()
void FWFFService::setupFieldForPropagator |
( |
TEveTrackPropagator * |
prop | ) |
|
◆ stopPlaying()
void FWFFService::stopPlaying |
( |
| ) |
|
|
inlineoverridevirtual |
◆ m_AllowStep
bool FWFFService::m_AllowStep |
|
private |
◆ m_appHelper
◆ m_context
◆ m_EveManager
TEveManager* FWFFService::m_EveManager |
|
private |
◆ m_firstTime
bool FWFFService::m_firstTime |
|
private |
◆ m_MagField
TEveMagField* FWFFService::m_MagField |
|
private |
◆ m_metadataManager
◆ m_navigator
◆ m_Rint
TRint* FWFFService::m_Rint |
|
private |
◆ m_ShowEvent
bool FWFFService::m_ShowEvent |
|
private |
FWModelChangeManager * changeManager()
void setupConfiguration()
FWGUIManager * guiManager()
void enableNavigatorControls()
void setup(FWNavigatorBase *navigator, fireworks::Context *context, FWJobMetadataManager *metadataManager)
void setConfigFilename(const std::string &f)
FWColorManager * colorManager()
CmsShowTaskExecutor * startupTasks()
const std::string & geometryFilename(void)
void setGeometryFilename(const std::string &filename)
FWSelectionManager * selectionManager()
FWEventItemsManager * eiManager()