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)
 
const TrajectoryStateOnSurface::Componentsoperator() () const
 

Public Attributes

const TrajectoryStateOnSurface::Componentscomps
 
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.

5  : comps(&single) {
6  if (tsos.singleState())
7  single.push_back(tsos);
8  else
9  comps = &tsos.components();
10  }

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

Member Function Documentation

◆ operator()()

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

Definition at line 11 of file GetComponents.h.

11 { return *comps; }

References comps.

Member Data Documentation

◆ comps

const TrajectoryStateOnSurface::Components* 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().

GetComponents::single
TrajectoryStateOnSurface::Components single
Definition: GetComponents.h:13
GetComponents::comps
const TrajectoryStateOnSurface::Components * comps
Definition: GetComponents.h:14