Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:35

0001 #ifndef GsfToolsGetComponents_H
0002 #define GsfToolsGetComponents_H
0003 #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
0004 struct GetComponents {
0005   explicit GetComponents(TrajectoryStateOnSurface const &tsos) : comps(&single) {
0006     if (tsos.singleState())
0007       single.push_back(tsos);
0008     else
0009       comps = &tsos.components();
0010   }
0011   TrajectoryStateOnSurface::Components const &operator()() const { return *comps; }
0012 
0013   TrajectoryStateOnSurface::Components single;
0014   TrajectoryStateOnSurface::Components const *comps;
0015 };
0016 #endif