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 MTDDetRing MuDetRing

Public Member Functions

const std::vector< const GeomDet * > & basicComponents () const override
 
 ForwardDetRingOneZ (const std::vector< const GeomDet * > &dets)
 
 ForwardDetRingOneZ (std::vector< const GeomDet * >::const_iterator first, std::vector< const GeomDet * >::const_iterator last)
 Construct from iterators on Det*. More...
 
 ~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
 
 GeometricSearchDet (bool doHaveGroups)
 
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 10 of file ForwardDetRingOneZ.h.

Constructor & Destructor Documentation

◆ ForwardDetRingOneZ() [1/2]

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.

18  : ForwardDetRing(false), theDets(first, last) {
19  initialize();
20 }

References initialize().

◆ ForwardDetRingOneZ() [2/2]

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

Definition at line 22 of file ForwardDetRingOneZ.cc.

22  : ForwardDetRing(false), theDets(dets) {
23  initialize();
24 }

References initialize().

◆ ~ForwardDetRingOneZ()

ForwardDetRingOneZ::~ForwardDetRingOneZ ( )
override

Definition at line 14 of file ForwardDetRingOneZ.cc.

14 {}

Member Function Documentation

◆ add()

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

Definition at line 33 of file ForwardDetRingOneZ.cc.

37  {
38  pair<bool, TrajectoryStateOnSurface> compat = theCompatibilityChecker.isCompatible(theDets[idet], tsos, prop, est);
39 
40  if (compat.first) {
41  result.push_back(DetWithState(theDets[idet], compat.second));
42  }
43 
44  return compat.first;
45 }

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

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

◆ basicComponents()

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

Implements GeometricSearchDet.

Definition at line 21 of file ForwardDetRingOneZ.h.

21 { return theDets; }

References theDets.

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

◆ initialize()

void ForwardDetRingOneZ::initialize ( void  )
private

Definition at line 26 of file ForwardDetRingOneZ.cc.

26  {
27  // assume the dets ARE in a ring
28  // sort them in phi
31 }

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

Referenced by ForwardDetRingOneZ().

Member Data Documentation

◆ theDets

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

Definition at line 31 of file ForwardDetRingOneZ.h.

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

ForwardDetRing::setDisk
void setDisk(BoundDisk *disk)
Set the rod's disk.
Definition: ForwardDetRing.h:31
GeometricSearchDet::theCompatibilityChecker
GeomDetCompatibilityChecker theCompatibilityChecker
Definition: GeometricSearchDet.h:102
dqmdumpme.first
first
Definition: dqmdumpme.py:55
geomsort::DetPhi
ExtractPhi< GeomDet, float > DetPhi
Definition: DetSorting.h:37
dqmdumpme.last
last
Definition: dqmdumpme.py:56
GeomDetCompatibilityChecker::isCompatible
static std::pair< bool, TrajectoryStateOnSurface > isCompatible(const GeomDet *theDet, const TrajectoryStateOnSurface &ts, const Propagator &prop, const MeasurementEstimator &est)
Definition: GeomDetCompatibilityChecker.cc:58
ForwardDetRingOneZ::theDets
std::vector< const GeomDet * > theDets
Definition: ForwardDetRingOneZ.h:31
GeometricSearchDet::DetWithState
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
Definition: GeometricSearchDet.h:19
ForwardRingDiskBuilderFromDet
Definition: ForwardRingDiskBuilderFromDet.h:19
mps_fire.result
result
Definition: mps_fire.py:303
precomputed_value_sort
void precomputed_value_sort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr, const Compare &comp)
Definition: precomputed_value_sort.h:17
ForwardDetRingOneZ::initialize
void initialize()
Definition: ForwardDetRingOneZ.cc:26
ForwardDetRing
Definition: ForwardDetRing.h:11