#include <VisFramework/VisFrameworkBase/interface/VisActiveConfigurable.h>
Public Types | |
typedef VisActiveConfigurable< T > | self |
Public Member Functions | |
const T & | value () const |
T & | value () |
VisActiveConfigurable (IgState *state, lat::Callback notify, const T &t, const std::string &name) | |
constructor from default value, name and configuration | |
Protected Member Functions | |
virtual std::string | get (void) const |
virtual void | set (const double value) |
virtual void | set (const std::string &input) |
Private Member Functions | |
VisActiveConfigurable (void) | |
Private Attributes | |
lat::Callback | m_notify |
T | m_value |
Definition at line 22 of file VisActiveConfigurable.h.
typedef VisActiveConfigurable<T> VisActiveConfigurable< T >::self |
Definition at line 25 of file VisActiveConfigurable.h.
VisActiveConfigurable< T >::VisActiveConfigurable | ( | IgState * | state, | |
lat::Callback | notify, | |||
const T & | t, | |||
const std::string & | name | |||
) | [inline] |
constructor from default value, name and configuration
Definition at line 50 of file VisActiveConfigurable.h.
References VisConfigurable::baseInit(), edm::ParameterSet::getUntrackedParameter(), LFfwvis, LOG, VisActiveConfigurable< T >::m_value, VisConfigurationService::pSet(), python::EventAnalyzer_cfg::pset, GsfMatrixTools::trace(), and VisActiveConfigurable< T >::value().
00051 : VisConfigurable (state), 00052 m_value (t), 00053 m_notify (notify) 00054 { 00055 LOG (0, trace, LFfwvis, "VisActiveConfigurable[" << name 00056 << "]\n"); 00057 00058 baseInit (name); 00059 00060 const edm::ParameterSet *pset = VisConfigurationService::pSet (); 00061 if (pset) 00062 { 00063 T value = pset->getUntrackedParameter<T> (name, m_value); 00064 set (value); 00065 } 00066 }
VisActiveConfigurable< T >::VisActiveConfigurable | ( | void | ) | [inline, private] |
std::string VisActiveConfigurable< T >::get | ( | void | ) | const [inline, protected, virtual] |
Implements VisConfigurable.
Definition at line 86 of file VisActiveConfigurable.h.
References VisActiveConfigurable< T >::m_value, and out.
void VisActiveConfigurable< T >::set | ( | const double | value | ) | [inline, protected, virtual] |
void VisActiveConfigurable< T >::set | ( | const std::string & | input | ) | [inline, protected, virtual] |
Implements VisConfigurable.
Definition at line 70 of file VisActiveConfigurable.h.
References in, VisActiveConfigurable< T >::m_notify, and VisActiveConfigurable< T >::m_value.
00071 { 00072 std::istringstream in (input.c_str ()); 00073 in >> m_value; 00074 m_notify (); 00075 }
const T& VisActiveConfigurable< T >::value | ( | void | ) | const [inline] |
T& VisActiveConfigurable< T >::value | ( | void | ) | [inline] |
Definition at line 32 of file VisActiveConfigurable.h.
Referenced by VisEventMenu::autoEvents(), VisEventMenu::autoPrint(), VisHcalDetTwig::buildLegoDet(), VisExceptionService::cmsExceptionCallback(), VisHBHERecHitTwig::energyColor(), VisExceptionService::errorCallback(), VisExceptionService::exceptionCallback(), VisCuTkGeometryTwig::selectCrossedModules(), VisExceptionService::unhandledExceptionCallback(), VisTkRecTracksTwig::update(), VisHORecHitTwig::update(), VisEcalRecHitTwig::update(), VisRPCGeometryTwig::update(), VisPSimHitTwig::update(), VisTrackerClusterTwig::update(), VisTrackerGeometryTwig::update(), VisTrajectorySeedTwig::update(), VisEcalUncalibratedRecHitTwig::update(), VisGsfTrackTwig::update(), VisGenJetTwig::update(), VisHBHERecHitTwig::update(), VisBasicClusterTwig::update(), VisTrackerRechit2DTwig::update(), VisTrackTwig::update(), VisHFRecHitTwig::update(), VisTkIdealHelixTracksTwig::update(), VisCaloTowerTwig::update(), VisCaloJetTwig::update(), VisSuperClusterCollectionTwig::update(), VisBasicClusterCollectionTwig::update(), VisTrackerRechit2DMatchedTwig::update(), VisCandidateTwig::update(), VisMuonTwig::update(), VisDTGeometryTwig::update(), VisRefitTrackTwig::update(), VisCSCGeometryTwig::update(), VisCaloGeometryTwig::update(), VisSimTrackTwig::update(), VisTrackerDigiTwig::update(), VisSuperClusterTwig::update(), VisGenJetCollectionTwig::update(), VisActiveConfigurable< T >::VisActiveConfigurable(), VisDetTextureTwig::VisDetTextureTwig(), VisEventMenu::VisEventMenu(), and VisEventSetupService::visible().
00032 { return m_value;}
lat::Callback VisActiveConfigurable< T >::m_notify [private] |
Definition at line 44 of file VisActiveConfigurable.h.
Referenced by VisActiveConfigurable< T >::set().
T VisActiveConfigurable< T >::m_value [private] |
Definition at line 43 of file VisActiveConfigurable.h.
Referenced by VisActiveConfigurable< std::string >::get(), VisActiveConfigurable< T >::get(), VisActiveConfigurable< T >::set(), VisActiveConfigurable< std::string >::set(), VisActiveConfigurable< unsigned int >::value(), and VisActiveConfigurable< T >::VisActiveConfigurable().