CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

DetRodOneR Class Reference

#include <DetRodOneR.h>

Inheritance diagram for DetRodOneR:
DetRod GeometricSearchDet GCC11_FINAL< T, TOPO > MuDetRod

List of all members.

Public Types

typedef std::vector
< GeometricSearchDet * > 
DetContainer

Public Member Functions

virtual const std::vector
< const GeomDet * > & 
basicComponents () const
 DetRodOneR (std::vector< const GeomDet * >::const_iterator first, std::vector< const GeomDet * >::const_iterator last)
 Construct from iterators on GeomDet*.
 DetRodOneR ()
 Dummy constructor.
 DetRodOneR (const std::vector< const GeomDet * > &dets)
 Construct from a std::vector of GeomDet*.
virtual ~DetRodOneR ()

Protected Member Functions

bool add (int idet, std::vector< DetWithState > &result, const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
 Query detector idet for compatible and add the output to result.
void initialize ()

Protected Attributes

std::vector< const GeomDet * > theDets

Detailed Description

A rod of detectors, all having the same Plane.

Definition at line 14 of file DetRodOneR.h.


Member Typedef Documentation

Definition at line 16 of file DetRodOneR.h.


Constructor & Destructor Documentation

DetRodOneR::DetRodOneR ( ) [inline]

Dummy constructor.

Definition at line 19 of file DetRodOneR.h.

{};
DetRodOneR::DetRodOneR ( std::vector< const GeomDet * >::const_iterator  first,
std::vector< const GeomDet * >::const_iterator  last 
)

Construct from iterators on GeomDet*.

DetRodOneR::DetRodOneR ( const std::vector< const GeomDet * > &  dets)

Construct from a std::vector of GeomDet*.

DetRodOneR::~DetRodOneR ( ) [virtual]

Definition at line 13 of file DetRodOneR.cc.

{}

Member Function Documentation

bool DetRodOneR::add ( int  idet,
std::vector< DetWithState > &  result,
const TrajectoryStateOnSurface startingState,
const Propagator prop,
const MeasurementEstimator est 
) const [protected]

Query detector idet for compatible and add the output to result.

Referenced by MuDetRod::compatibleDets().

virtual const std::vector<const GeomDet*>& DetRodOneR::basicComponents ( ) const [inline, virtual]
void DetRodOneR::initialize ( ) [protected]

Definition at line 29 of file DetRodOneR.cc.

References precomputed_value_sort(), DetRod::setPlane(), and theDets.

{
  // assume the dets ARE in a rod;
  // sort them in Z

  precomputed_value_sort( theDets.begin(), theDets.end(), geomsort::DetZ());
  
  setPlane( RodPlaneBuilderFromDet()( theDets));
  
}

Member Data Documentation

std::vector<const GeomDet*> DetRodOneR::theDets [protected]

Reimplemented in GCC11_FINAL< T, TOPO >.

Definition at line 42 of file DetRodOneR.h.

Referenced by basicComponents(), and initialize().