CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
ForwardDetRingOneZ Class Reference

#include <ForwardDetRingOneZ.h>

Inheritance diagram for ForwardDetRingOneZ:
ForwardDetRing GeometricSearchDet MuDetRing

Public Member Functions

const std::vector< const GeomDet * > & basicComponents () const override
 
 ForwardDetRingOneZ (std::vector< const GeomDet * >::const_iterator first, std::vector< const GeomDet * >::const_iterator last)
 Construct from iterators on Det*. More...
 
 ForwardDetRingOneZ (const std::vector< const GeomDet * > &dets)
 
 ~ForwardDetRingOneZ () override
 
- Public Member Functions inherited from ForwardDetRing
void compatibleDetsV (const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetWithState > &result) const override
 
const BoundDiskspecificSurface () const
 Return the ring surface as a BoundDisk. More...
 
const BoundSurfacesurface () const final
 The surface of the GeometricSearchDet. More...
 
 ~ForwardDetRing () override
 
- Public Member Functions inherited from GeometricSearchDet
virtual std::pair< bool, TrajectoryStateOnSurfacecompatible (const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const =0
 
virtual std::vector< DetWithStatecompatibleDets (const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
 
virtual const std::vector< const GeometricSearchDet * > & components () const =0
 Returns basic components, if any. More...
 
 GeometricSearchDet (bool doHaveGroups)
 
virtual std::vector< DetGroupgroupedCompatibleDets (const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
 
virtual void groupedCompatibleDetsV (const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const
 
bool hasGroups () const
 
virtual const Surface::PositionTypeposition () const
 Returns position of the surface. More...
 
virtual ~GeometricSearchDet ()
 

Protected Member Functions

bool add (int idet, std::vector< DetWithState > &result, const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est) const
 
- Protected Member Functions inherited from ForwardDetRing
void setDisk (BoundDisk *disk)
 Set the rod's disk. More...
 

Private Member Functions

void initialize ()
 

Private Attributes

std::vector< const GeomDet * > theDets
 

Additional Inherited Members

- Public Types inherited from GeometricSearchDet
typedef std::pair< const GeomDet *, TrajectoryStateOnSurfaceDetWithState
 
typedef BoundSurface::PositionType PositionType
 
typedef BoundSurface::RotationType RotationType
 
typedef TrajectoryStateOnSurface TrajectoryState
 
- Protected Attributes inherited from GeometricSearchDet
bool haveGroups
 
GeomDetCompatibilityChecker theCompatibilityChecker
 

Detailed Description

A ring of detectors, all having the same BoundDisk.

Definition at line 11 of file ForwardDetRingOneZ.h.

Constructor & Destructor Documentation

ForwardDetRingOneZ::ForwardDetRingOneZ ( std::vector< const GeomDet * >::const_iterator  first,
std::vector< const GeomDet * >::const_iterator  last 
)

Construct from iterators on Det*.

Definition at line 16 of file ForwardDetRingOneZ.cc.

References initialize().

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

Definition at line 23 of file ForwardDetRingOneZ.cc.

References initialize().

24  : ForwardDetRing(false), theDets(dets)
25 {
26  initialize();
27 }
std::vector< const GeomDet * > theDets
ForwardDetRingOneZ::~ForwardDetRingOneZ ( )
override

Definition at line 14 of file ForwardDetRingOneZ.cc.

14 {}

Member Function Documentation

bool ForwardDetRingOneZ::add ( int  idet,
std::vector< DetWithState > &  result,
const TrajectoryStateOnSurface tsos,
const Propagator prop,
const MeasurementEstimator est 
) const
protected

Definition at line 39 of file ForwardDetRingOneZ.cc.

References GeomDetCompatibilityChecker::isCompatible(), GeometricSearchDet::theCompatibilityChecker, and theDets.

Referenced by basicComponents(), MuDetRing::compatibleDets(), and counter.Counter::register().

42  {
43  pair<bool,TrajectoryStateOnSurface> compat =
44  theCompatibilityChecker.isCompatible(theDets[idet],tsos, prop, est);
45 
46  if (compat.first) {
47  result.push_back(DetWithState(theDets[idet], compat.second));
48  }
49 
50  return compat.first;
51 }
GeomDetCompatibilityChecker theCompatibilityChecker
static std::pair< bool, TrajectoryStateOnSurface > isCompatible(const GeomDet *theDet, const TrajectoryStateOnSurface &ts, const Propagator &prop, const MeasurementEstimator &est)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
std::vector< const GeomDet * > theDets
const std::vector<const GeomDet*>& ForwardDetRingOneZ::basicComponents ( ) const
inlineoverridevirtual

Implements GeometricSearchDet.

Definition at line 23 of file ForwardDetRingOneZ.h.

References add(), mps_fire::result, and theDets.

Referenced by MuDetRing::compatibleDets(), and MuDetRing::init().

23 {return theDets;}
std::vector< const GeomDet * > theDets
void ForwardDetRingOneZ::initialize ( void  )
private

Definition at line 30 of file ForwardDetRingOneZ.cc.

References precomputed_value_sort(), ForwardDetRing::setDisk(), and theDets.

Referenced by ForwardDetRingOneZ().

31 {
32  // assume the dets ARE in a ring
33  // sort them in phi
36 }
ExtractPhi< GeomDet, float > DetPhi
Definition: DetSorting.h:39
void precomputed_value_sort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr)
std::vector< const GeomDet * > theDets
void setDisk(BoundDisk *disk)
Set the rod&#39;s disk.

Member Data Documentation

std::vector<const GeomDet*> ForwardDetRingOneZ::theDets
private

Definition at line 33 of file ForwardDetRingOneZ.h.

Referenced by add(), basicComponents(), and initialize().