CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
GetComponents Struct Reference

#include <GetComponents.h>

Public Member Functions

 GetComponents (TrajectoryStateOnSurface const &tsos)
 
TrajectoryStateOnSurface::Components const & operator() () const
 

Public Attributes

TrajectoryStateOnSurface::Components const * comps
 
TrajectoryStateOnSurface::Components single
 

Detailed Description

Definition at line 4 of file GetComponents.h.

Constructor & Destructor Documentation

◆ GetComponents()

GetComponents::GetComponents ( TrajectoryStateOnSurface const &  tsos)
inlineexplicit

Definition at line 5 of file GetComponents.h.

References TrajectoryStateOnSurface::components(), comps, single, and TrajectoryStateOnSurface::singleState().

5  : comps(&single) {
6  if (tsos.singleState())
7  single.push_back(tsos);
8  else
9  comps = &tsos.components();
10  }
TrajectoryStateOnSurface::Components const * comps
Definition: GetComponents.h:14
TrajectoryStateOnSurface::Components single
Definition: GetComponents.h:13

Member Function Documentation

◆ operator()()

TrajectoryStateOnSurface::Components const& GetComponents::operator() ( ) const
inline

Definition at line 11 of file GetComponents.h.

References comps.

11 { return *comps; }
TrajectoryStateOnSurface::Components const * comps
Definition: GetComponents.h:14

Member Data Documentation

◆ comps

TrajectoryStateOnSurface::Components const* GetComponents::comps

Definition at line 14 of file GetComponents.h.

Referenced by GetComponents(), and operator()().

◆ single

TrajectoryStateOnSurface::Components GetComponents::single

Definition at line 13 of file GetComponents.h.

Referenced by GetComponents().