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
DummyMetricsUpdator Class Reference

#include <DummyMetricsUpdator.h>

Inheritance diagram for DummyMetricsUpdator:
KalmanAlignmentMetricsUpdator KalmanAlignmentMetricsUpdator

Public Member Functions

virtual const std::vector
< Alignable * > 
additionalAlignables (const std::vector< Alignable * > &alignables)
 
virtual const std::vector
< Alignable * > 
additionalAlignables (const std::vector< Alignable * > &alignables)
 
virtual const std::map
< Alignable *, short int > 
additionalAlignablesWithDistances (const std::vector< Alignable * > &alignables)
 
virtual const std::map
< Alignable *, short int > 
additionalAlignablesWithDistances (const std::vector< Alignable * > &alignables)
 
virtual const std::vector
< Alignable * > 
alignables (void) const
 
virtual const std::vector
< Alignable * > 
alignables (void) const
 
 DummyMetricsUpdator (const edm::ParameterSet &config)
 
 DummyMetricsUpdator (const edm::ParameterSet &config)
 
virtual void update (const std::vector< Alignable * > &alignables)
 
virtual void update (const std::vector< Alignable * > &alignables)
 
virtual ~DummyMetricsUpdator (void)
 
virtual ~DummyMetricsUpdator (void)
 
- Public Member Functions inherited from KalmanAlignmentMetricsUpdator
 KalmanAlignmentMetricsUpdator (const edm::ParameterSet &config)
 
virtual ~KalmanAlignmentMetricsUpdator (void)
 

Private Attributes

std::vector< unsigned int > theFixedAlignableIds
 
std::set< Alignable * > theSetOfAllAlignables
 

Detailed Description

A dummy metrics updator. It does not calculate the metrics but holds only a list of all Alignables that it so far was updated with.

Definition at line 13 of file DummyMetricsUpdator.h.

Constructor & Destructor Documentation

DummyMetricsUpdator::DummyMetricsUpdator ( const edm::ParameterSet config)

Definition at line 8 of file DummyMetricsUpdator.cc.

References edm::ParameterSet::getUntrackedParameter(), and theFixedAlignableIds.

9 {
10  std::vector< unsigned int > dummy;
11  theFixedAlignableIds = config.getUntrackedParameter< std::vector<unsigned int> >( "FixedAlignableIds", dummy );
12 }
T getUntrackedParameter(std::string const &, T const &) const
std::vector< unsigned int > theFixedAlignableIds
KalmanAlignmentMetricsUpdator(const edm::ParameterSet &config)
virtual DummyMetricsUpdator::~DummyMetricsUpdator ( void  )
inlinevirtual

Definition at line 20 of file DummyMetricsUpdator.h.

20 {}
DummyMetricsUpdator::DummyMetricsUpdator ( const edm::ParameterSet config)
virtual DummyMetricsUpdator::~DummyMetricsUpdator ( void  )
inlinevirtual

Definition at line 20 of file DummyMetricsUpdator.h.

20 {}

Member Function Documentation

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

Implements KalmanAlignmentMetricsUpdator.

Definition at line 31 of file DummyMetricsUpdator.cc.

References spr::find(), query::result, and theSetOfAllAlignables.

32 {
33  std::vector< Alignable* > result;
34  result.reserve( theSetOfAllAlignables.size() );
35 
36  std::set< Alignable* >::iterator itS = theSetOfAllAlignables.begin();
37  while ( itS != theSetOfAllAlignables.end() )
38  {
39  if ( find( alignables.begin(), alignables.end(), *itS ) == alignables.end() ) result.push_back( *itS );
40  ++itS;
41  }
42 
43  return result;
44 }
virtual const std::vector< Alignable * > alignables(void) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
tuple result
Definition: query.py:137
std::set< Alignable * > theSetOfAllAlignables
virtual const std::vector< Alignable* > DummyMetricsUpdator::additionalAlignables ( const std::vector< Alignable * > &  alignables)
virtual
virtual const std::map< Alignable*, short int > DummyMetricsUpdator::additionalAlignablesWithDistances ( const std::vector< Alignable * > &  alignables)
virtual
const std::map< Alignable *, short int > DummyMetricsUpdator::additionalAlignablesWithDistances ( const std::vector< Alignable * > &  alignables)
virtual

Definition at line 48 of file DummyMetricsUpdator.cc.

References spr::find(), query::result, and theSetOfAllAlignables.

49 {
50  std::map< Alignable*, short int > result;
51 
52  std::set< Alignable* >::iterator itS = theSetOfAllAlignables.begin();
53  while ( itS != theSetOfAllAlignables.end() )
54  {
55  if ( find( alignables.begin(), alignables.end(), *itS ) == alignables.end() ) result[*itS] = 0;
56  ++itS;
57  }
58 
59  return result;
60 }
virtual const std::vector< Alignable * > alignables(void) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
tuple result
Definition: query.py:137
std::set< Alignable * > theSetOfAllAlignables
const std::vector< Alignable * > DummyMetricsUpdator::alignables ( void  ) const
virtual

Implements KalmanAlignmentMetricsUpdator.

Definition at line 63 of file DummyMetricsUpdator.cc.

References theSetOfAllAlignables.

64 {
65  std::vector< Alignable* > alignables;
66  alignables.reserve( theSetOfAllAlignables.size() );
67  alignables.insert( alignables.begin(), theSetOfAllAlignables.begin(), theSetOfAllAlignables.end() );
68  return alignables;
69 }
virtual const std::vector< Alignable * > alignables(void) const
std::set< Alignable * > theSetOfAllAlignables
virtual const std::vector< Alignable* > DummyMetricsUpdator::alignables ( void  ) const
virtual
void DummyMetricsUpdator::update ( const std::vector< Alignable * > &  alignables)
virtual

Implements KalmanAlignmentMetricsUpdator.

Definition at line 15 of file DummyMetricsUpdator.cc.

References spr::find(), theFixedAlignableIds, and theSetOfAllAlignables.

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().

16 {
17  std::vector< Alignable* >::const_iterator itAD = alignables.begin();
18  while ( itAD != alignables.end() )
19  {
20  unsigned int subdetId = static_cast< unsigned int >( (*itAD)->geomDetId().subdetId() );
21  if ( find( theFixedAlignableIds.begin(), theFixedAlignableIds.end(), subdetId ) == theFixedAlignableIds.end() )
22  {
23  theSetOfAllAlignables.insert( *itAD );
24  }
25  ++itAD;
26  }
27 }
virtual const std::vector< Alignable * > alignables(void) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< unsigned int > theFixedAlignableIds
std::set< Alignable * > theSetOfAllAlignables
virtual void DummyMetricsUpdator::update ( const std::vector< Alignable * > &  alignables)
virtual

Implements KalmanAlignmentMetricsUpdator.

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().

Member Data Documentation

std::vector< unsigned int > DummyMetricsUpdator::theFixedAlignableIds
private

Definition at line 34 of file DummyMetricsUpdator.h.

Referenced by DummyMetricsUpdator(), and update().

std::set< Alignable * > DummyMetricsUpdator::theSetOfAllAlignables
private