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
GetComponents::GetComponents
GetComponents(TrajectoryStateOnSurface const &tsos)
Definition: GetComponents.h:5
TrajectoryStateOnSurface.h
TrajectoryStateOnSurface::Components
BasicTrajectoryState::Components Components
Definition: TrajectoryStateOnSurface.h:84
GetComponents::operator()
const TrajectoryStateOnSurface::Components & operator()() const
Definition: GetComponents.h:11
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
GetComponents
Definition: GetComponents.h:4
TrajectoryStateOnSurface::components
Components const & components() const
Definition: TrajectoryStateOnSurface.h:85
GetComponents::single
TrajectoryStateOnSurface::Components single
Definition: GetComponents.h:13
TrajectoryStateOnSurface::singleState
bool singleState() const
Definition: TrajectoryStateOnSurface.h:86
GetComponents::comps
const TrajectoryStateOnSurface::Components * comps
Definition: GetComponents.h:14