CMS 3D CMS Logo

VisActiveConfigurable< T > Class Template Reference

#include <VisFramework/VisFrameworkBase/interface/VisActiveConfigurable.h>

Inheritance diagram for VisActiveConfigurable< T >:

VisConfigurable VisAnimate VisAnnotateGeometry VisAutoPrint VisAutoStart VisCaloAnnotation VisCuTkAccessDbConnection VisCuTkAutoIntegrate VisCuTkCrossedModulesOnly VisGsfTrackDirection VisHcalShowHit VisHcalShowTower VisHiddenLineView VisMuonAnnotation VisShowDT4DSegmentChamber VisShowHitDets VisSimHitConnect VisSimTrackAnnotation VisTrackShowDets VisTrackShowHits VisTrackShowRefPoint VisVolatileGeometry

List of all members.

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
m_value


Detailed Description

template<class T>
class VisActiveConfigurable< T >

Definition at line 22 of file VisActiveConfigurable.h.


Member Typedef Documentation

template<class T>
typedef VisActiveConfigurable<T> VisActiveConfigurable< T >::self

Definition at line 25 of file VisActiveConfigurable.h.


Constructor & Destructor Documentation

template<class T>
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 }

template<class T>
VisActiveConfigurable< T >::VisActiveConfigurable ( void   )  [inline, private]

Definition at line 41 of file VisActiveConfigurable.h.

00041 {}


Member Function Documentation

template<class T>
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.

00087 {
00088     std::ostringstream out;
00089     out << m_value;
00090     return out.str ();
00091 }

template<class T>
void VisActiveConfigurable< T >::set ( const double  value  )  [inline, protected, virtual]

Definition at line 79 of file VisActiveConfigurable.h.

References s.

00080 { 
00081     const std::string s = boost::lexical_cast<std::string>(value);
00082     set (s);
00083 }

template<class T>
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 }

template<class T>
const T& VisActiveConfigurable< T >::value ( void   )  const [inline]

Definition at line 33 of file VisActiveConfigurable.h.

00033 { return m_value;}

template<class T>
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;}


Member Data Documentation

template<class T>
lat::Callback VisActiveConfigurable< T >::m_notify [private]

Definition at line 44 of file VisActiveConfigurable.h.

Referenced by VisActiveConfigurable< T >::set().

template<class T>
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().


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