CMS 3D CMS Logo

SimpleTECWedge.cc
Go to the documentation of this file.
1 #include "SimpleTECWedge.h"
5 
6 using namespace std;
7 
9 
10 SimpleTECWedge::SimpleTECWedge(const GeomDet* theInputDet) : theDet(theInputDet) {
11  theDets.push_back(theDet);
12 
14 
15  LogDebug("TkDetLayers") << "DEBUG INFO for CompositeTECWedge"
16  << "\n"
17  << "TECWedge z, perp,innerRadius,outerR: " << this->position().z() << " , "
18  << this->position().perp() << " , " << theDiskSector->innerRadius() << " , "
19  << theDiskSector->outerRadius();
20 }
21 
23 
24 const vector<const GeometricSearchDet*>& SimpleTECWedge::components() const {
25  throw DetLayerException("SimpleTECWedge doesn't have GeometricSearchDet components");
26 }
27 
28 pair<bool, TrajectoryStateOnSurface> SimpleTECWedge::compatible(const TrajectoryStateOnSurface& tsos,
29  const Propagator& prop,
30  const MeasurementEstimator& est) const {
31  return GeomDetCompatibilityChecker::isCompatible(theDet, tsos, prop, est);
32 }
33 
35  const Propagator& prop,
36  const MeasurementEstimator& est,
37  std::vector<DetGroup>& result) const {
38  pair<bool, TrajectoryStateOnSurface> compat = this->compatible(tsos, prop, est);
39 
40  if (compat.first) {
41  result.push_back(DetGroup(0, 1));
42  DetGroupElement ge(theDet, compat.second);
43  result.front().push_back(ge);
44  }
45 }
MeasurementEstimator
Definition: MeasurementEstimator.h:19
MessageLogger.h
GeomDet
Definition: GeomDet.h:27
GeometricSearchDet::position
virtual const Surface::PositionType & position() const
Returns position of the surface.
Definition: GeometricSearchDet.h:31
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
Propagator
Definition: Propagator.h:44
ForwardDiskSectorBuilderFromDet
Definition: ForwardDiskSectorBuilderFromDet.h:17
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
DetLayerException.h
SimpleTECWedge::theDets
std::vector< const GeomDet * > theDets
Definition: SimpleTECWedge.h:33
DetWithState
GeometricSearchDet::DetWithState DetWithState
Definition: SimpleTECWedge.cc:8
SimpleTECWedge::components
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
Definition: SimpleTECWedge.cc:24
SimpleTECWedge::compatible
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const override __attribute__((hot))
Definition: SimpleTECWedge.cc:28
GeomDetCompatibilityChecker::isCompatible
static std::pair< bool, TrajectoryStateOnSurface > isCompatible(const GeomDet *theDet, const TrajectoryStateOnSurface &ts, const Propagator &prop, const MeasurementEstimator &est)
Definition: GeomDetCompatibilityChecker.cc:58
SimpleTECWedge::groupedCompatibleDetsV
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
Definition: SimpleTECWedge.cc:34
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
SimpleTECWedge.h
DetGroupElement
Definition: DetGroup.h:10
TECWedge::theDiskSector
ReferenceCountingPointer< BoundDiskSector > theDiskSector
Definition: TECWedge.h:24
GeometricSearchDet::DetWithState
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
Definition: GeometricSearchDet.h:19
DetLayerException
Common base class.
Definition: DetLayerException.h:15
ForwardDiskSectorBuilderFromDet.h
std
Definition: JetResolutionObject.h:76
SimpleTECWedge::SimpleTECWedge
SimpleTECWedge(const GeomDet *theDet) __attribute__((cold))
Definition: SimpleTECWedge.cc:10
SimpleTECWedge::theDet
const GeomDet * theDet
Definition: SimpleTECWedge.h:32
DetGroup
Definition: DetGroup.h:41
mps_fire.result
result
Definition: mps_fire.py:311
SimpleTECWedge::~SimpleTECWedge
~SimpleTECWedge() override __attribute__((cold))
Definition: SimpleTECWedge.cc:22
PV3DBase::perp
T perp() const
Definition: PV3DBase.h:69