TrackingTools
GsfTools
interface
GetComponents.h
Go to the documentation of this file.
1
#ifndef GsfToolsGetComponents_H
2
#define GsfToolsGetComponents_H
3
#include "
TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.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
}
11
TrajectoryStateOnSurface::Components
const
&
operator()
()
const
{
return
*
comps
; }
12
13
TrajectoryStateOnSurface::Components
single
;
14
TrajectoryStateOnSurface::Components
const
*
comps
;
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
Generated for CMSSW Reference Manual by
1.8.16