CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
MultiMetricsUpdator Class Reference

#include <MultiMetricsUpdator.h>

Inheritance diagram for MultiMetricsUpdator:
KalmanAlignmentMetricsUpdator

Public Member Functions

virtual const std::vector
< Alignable * > 
additionalAlignables (const std::vector< Alignable * > &alignables)
 
virtual const std::vector
< Alignable * > 
alignables (void) const
 
 MultiMetricsUpdator (const edm::ParameterSet &config)
 
virtual void update (const std::vector< Alignable * > &alignables)
 
virtual ~MultiMetricsUpdator (void)
 
- Public Member Functions inherited from KalmanAlignmentMetricsUpdator
 KalmanAlignmentMetricsUpdator (const edm::ParameterSet &config)
 
virtual ~KalmanAlignmentMetricsUpdator (void)
 

Private Attributes

std::vector
< SimpleMetricsUpdator * > 
theMetricsUpdators
 

Detailed Description

Definition at line 11 of file MultiMetricsUpdator.h.

Constructor & Destructor Documentation

MultiMetricsUpdator::MultiMetricsUpdator ( const edm::ParameterSet config)

Definition at line 11 of file MultiMetricsUpdator.cc.

References edm::ParameterSet::getParameter(), and theMetricsUpdators.

12 {
13  std::vector<std::string> strConfig = config.getParameter< std::vector<std::string> >( "Configurations" );
14  std::vector<std::string>::iterator itConfig;
15  for ( itConfig = strConfig.begin(); itConfig != strConfig.end(); ++itConfig )
16  {
17  edm::ParameterSet updatorConfig = config.getParameter<edm::ParameterSet>( *itConfig );
18  theMetricsUpdators.push_back( new SimpleMetricsUpdator( updatorConfig ) );
19  }
20 
21 
22  edm::LogInfo("Alignment") << "@SUB=MultiMetricsUpdator::MultiMetricsUpdator "
23  << "\nInstance of MultiMetricsUpdator created.";;
24 }
T getParameter(std::string const &) const
KalmanAlignmentMetricsUpdator(const edm::ParameterSet &config)
std::vector< SimpleMetricsUpdator * > theMetricsUpdators
MultiMetricsUpdator::~MultiMetricsUpdator ( void  )
virtual

Definition at line 27 of file MultiMetricsUpdator.cc.

References theMetricsUpdators.

28 {
29  std::vector< SimpleMetricsUpdator* >::const_iterator it;
30 
31  for ( it = theMetricsUpdators.begin(); it != theMetricsUpdators.end(); ++it )
32  delete *it;
33 }
std::vector< SimpleMetricsUpdator * > theMetricsUpdators

Member Function Documentation

const std::vector< Alignable * > MultiMetricsUpdator::additionalAlignables ( const std::vector< Alignable * > &  alignables)
virtual

Implements KalmanAlignmentMetricsUpdator.

Definition at line 47 of file MultiMetricsUpdator.cc.

References query::result, and theMetricsUpdators.

48 {
49  std::set< Alignable* > alignableSet;
50 
51  std::vector< SimpleMetricsUpdator* >::const_iterator it;
52  for ( it = theMetricsUpdators.begin(); it != theMetricsUpdators.end(); ++it )
53  {
54  const std::vector< Alignable* > additional = (*it)->additionalAlignables( alignables );
55  alignableSet.insert( additional.begin(), additional.end() );
56  }
57 
58  std::vector< Alignable* > result;
59  result.insert( result.end(), alignableSet.begin(), alignableSet.end() );
60  return result;
61 }
virtual const std::vector< Alignable * > alignables(void) const
tuple result
Definition: query.py:137
std::vector< SimpleMetricsUpdator * > theMetricsUpdators
const std::vector< Alignable * > MultiMetricsUpdator::alignables ( void  ) const
virtual

Implements KalmanAlignmentMetricsUpdator.

Definition at line 65 of file MultiMetricsUpdator.cc.

References query::result, and theMetricsUpdators.

66 {
67  std::set< Alignable* > alignableSet;
68 
69  std::vector< SimpleMetricsUpdator* >::const_iterator it;
70  for ( it = theMetricsUpdators.begin(); it != theMetricsUpdators.end(); ++it )
71  {
72  const std::vector< Alignable* > alignables = (*it)->alignables();
73  alignableSet.insert( alignables.begin(), alignables.end() );
74  }
75 
76  std::vector< Alignable* > result;
77  result.insert( result.end(), alignableSet.begin(), alignableSet.end() );
78  return result;
79 }
virtual const std::vector< Alignable * > alignables(void) const
tuple result
Definition: query.py:137
std::vector< SimpleMetricsUpdator * > theMetricsUpdators
void MultiMetricsUpdator::update ( const std::vector< Alignable * > &  alignables)
virtual

Implements KalmanAlignmentMetricsUpdator.

Definition at line 36 of file MultiMetricsUpdator.cc.

References theMetricsUpdators.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), python.seqvaluedict.seqdict::__setslice__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.seqvaluedict.seqdict::extend(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

37 {
38  std::vector< SimpleMetricsUpdator* >::const_iterator it;
39  for ( it = theMetricsUpdators.begin(); it != theMetricsUpdators.end(); ++it )
40  {
41  (*it)->update( alignables );
42  }
43 }
virtual const std::vector< Alignable * > alignables(void) const
std::vector< SimpleMetricsUpdator * > theMetricsUpdators

Member Data Documentation

std::vector<SimpleMetricsUpdator*> MultiMetricsUpdator::theMetricsUpdators
private