CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ForwardDetRingOneZ.cc
Go to the documentation of this file.
4 //#include "TrackingTools/GeomPropagators/interface/Propagator.h"
5 
8 
9 #include <algorithm>
10 #include <cmath>
11 
12 using namespace std;
13 
15 
16 ForwardDetRingOneZ::ForwardDetRingOneZ(vector<const GeomDet*>::const_iterator first,
17  vector<const GeomDet*>::const_iterator last)
18  : theDets(first,last)
19 {
20  initialize();
21 }
22 
23 ForwardDetRingOneZ::ForwardDetRingOneZ( const vector<const GeomDet*>& dets)
24  : theDets(dets)
25 {
26  initialize();
27 }
28 
29 
31 {
32  // assume the dets ARE in a ring
33  // sort them in phi
36 }
37 
38 
39 bool ForwardDetRingOneZ::add(int idet, vector<DetWithState>& result,
40  const TrajectoryStateOnSurface& tsos,
41  const Propagator& prop,
42  const MeasurementEstimator& est) const {
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 }
52 
ExtractPhi< GeomDet, float > DetPhi
Definition: DetSorting.h:43
static std::pair< bool, TrajectoryStateOnSurface > isCompatible(const GeomDet *theDet, const TrajectoryStateOnSurface &ts, const Propagator &prop, const MeasurementEstimator &est)
GeomDetCompatibilityChecker theCompatibilityChecker
ForwardDetRingOneZ()
Dummy constructor.
tuple result
Definition: query.py:137
bool first
Definition: L1TdeRCT.cc:79
void precomputed_value_sort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
bool add(int idet, std::vector< DetWithState > &result, const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est) const
std::vector< const GeomDet * > theDets
void setDisk(BoundDisk *disk)
Set the rod&#39;s disk.