CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TECLayer.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_TECLayer_h
2 #define TkDetLayers_TECLayer_h
3 
4 
6 #include "TECPetal.h"
8 #include "SubLayerCrossings.h"
10 
15 #pragma GCC visibility push(hidden)
17  public:
18  TECLayer(std::vector<const TECPetal*>& innerPetals,
19  std::vector<const TECPetal*>& outerPetals);
20  ~TECLayer();
21 
22  // GeometricSearchDet interface
23 
24  virtual const std::vector<const GeomDet*>& basicComponents() const {return theBasicComps;}
25 
26  virtual const std::vector<const GeometricSearchDet*>& components() const {return theComps;}
27 
29  const Propagator& prop,
30  const MeasurementEstimator& est,
31  std::vector<DetGroup> & result) const;
32 
33  // DetLayer interface
35 
36 
37 
38  private:
39  // private methods for the implementation of groupedCompatibleDets()
41  PropagationDirection propDir) const;
42 
43  bool addClosest( const TrajectoryStateOnSurface& tsos,
44  const Propagator& prop,
45  const MeasurementEstimator& est,
46  const SubLayerCrossing& crossing,
47  std::vector<DetGroup>& result) const;
48 
49  void searchNeighbors( const TrajectoryStateOnSurface& tsos,
50  const Propagator& prop,
51  const MeasurementEstimator& est,
52  const SubLayerCrossing& crossing,
53  float window,
54  std::vector<DetGroup>& result,
55  bool checkClosest) const;
56 
57 
58  bool overlap( const GlobalPoint& gpos, const GeometricSearchDet& petal, float window) const;
59 
60  const std::vector<const GeometricSearchDet*>& subLayer( int ind) const {
61  return (ind==0 ? theFrontComps : theBackComps);
62  }
63 
64 
65  protected:
66  virtual BoundDisk* computeDisk( std::vector<const GeometricSearchDet*>& petals) const;
67 
68  std::vector<const GeometricSearchDet*> theComps;
69  std::vector<const GeometricSearchDet*> theFrontComps;
70  std::vector<const GeometricSearchDet*> theBackComps;
71  std::vector<const GeomDet*> theBasicComps;
72 
73 
76 
78 
81 
82 
83 };
84 
85 
86 #pragma GCC visibility pop
87 #endif
def window
Definition: svgfig.py:642
virtual const std::vector< const GeometricSearchDet * > & components() const
Returns basic components, if any.
Definition: TECLayer.h:26
std::vector< const GeomDet * > theBasicComps
Definition: TECLayer.h:71
void searchNeighbors(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, float window, std::vector< DetGroup > &result, bool checkClosest) const
Definition: TECLayer.cc:207
~TECLayer()
Definition: TECLayer.cc:83
ReferenceCountingPointer< BoundDisk > theFrontDisk
Definition: TECLayer.h:74
PropagationDirection
virtual const std::vector< const GeomDet * > & basicComponents() const
Definition: TECLayer.h:24
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const
Definition: TECLayer.cc:92
bool addClosest(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, std::vector< DetGroup > &result) const
Definition: TECLayer.cc:189
std::vector< const GeometricSearchDet * > theComps
Definition: TECLayer.h:68
ReferenceCountingPointer< BoundDisk > theBackDisk
Definition: TECLayer.h:75
std::vector< const GeometricSearchDet * > theFrontComps
Definition: TECLayer.h:69
std::vector< const GeometricSearchDet * > theBackComps
Definition: TECLayer.h:70
tuple result
Definition: query.py:137
BinFinderPhi theBackBinFinder
Definition: TECLayer.h:80
PeriodicBinFinderInPhi< double > BinFinderPhi
Definition: TECLayer.h:77
virtual SubDetector subDetector() const
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
Definition: TECLayer.h:34
const std::vector< const GeometricSearchDet * > & subLayer(int ind) const
Definition: TECLayer.h:60
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &startingState, PropagationDirection propDir) const
Definition: TECLayer.cc:132
BinFinderPhi theFrontBinFinder
Definition: TECLayer.h:79
virtual BoundDisk * computeDisk(std::vector< const GeometricSearchDet * > &petals) const
Definition: TECLayer.cc:265
bool overlap(const GlobalPoint &gpos, const GeometricSearchDet &petal, float window) const
Definition: TECLayer.cc:250
TECLayer(std::vector< const TECPetal * > &innerPetals, std::vector< const TECPetal * > &outerPetals)
Definition: TECLayer.cc:21