CMS 3D CMS Logo

GetComponents.h
Go to the documentation of this file.
1 #ifndef GsfToolsGetComponents_H
2 #define GsfToolsGetComponents_H
4 struct GetComponents {
5  explicit GetComponents(TrajectoryStateOnSurface const &tsos) : comps(&single) {
6  if (tsos.singleState())
7  single.push_back(tsos);
8  else
9  comps = &tsos.components();
10  }
12 
15 };
16 #endif
TrajectoryStateOnSurface::Components const & operator()() const
Definition: GetComponents.h:11
Components const & components() const
TrajectoryStateOnSurface::Components const * comps
Definition: GetComponents.h:14
BasicTrajectoryState::Components Components
TrajectoryStateOnSurface::Components single
Definition: GetComponents.h:13
GetComponents(TrajectoryStateOnSurface const &tsos)
Definition: GetComponents.h:5