CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SimpleTECWedge.cc
Go to the documentation of this file.
1 #include "SimpleTECWedge.h"
2 
4 
8 
9 
10 using namespace std;
11 
13 
14 SimpleTECWedge::SimpleTECWedge(const GeomDet* theInputDet):
15  theDet(theInputDet)
16 {
17  theDets.push_back(theDet);
18 
19  theDiskSector = ForwardDiskSectorBuilderFromDet()( theDets );
20 
21  LogDebug("TkDetLayers") << "DEBUG INFO for CompositeTECWedge" << "\n"
22  << "TECWedge z, perp,innerRadius,outerR: "
23  << this->position().z() << " , "
24  << this->position().perp() << " , "
25  << theDiskSector->innerRadius() << " , "
26  << theDiskSector->outerRadius() ;
27 
28 }
29 
30 SimpleTECWedge::~SimpleTECWedge(){
31 
32 }
33 
34 
35 const vector<const GeometricSearchDet*>&
37  throw DetLayerException("SimpleTECWedge doesn't have GeometricSearchDet components");
38 }
39 
40 
41 pair<bool, TrajectoryStateOnSurface>
42 SimpleTECWedge::compatible( const TrajectoryStateOnSurface& tsos,
43  const Propagator& prop,
44  const MeasurementEstimator& est) const
45 {
46  return GeomDetCompatibilityChecker::isCompatible( theDet,tsos, prop, est);
47 }
48 
49 
50 
51 void
52 SimpleTECWedge::groupedCompatibleDetsV( const TrajectoryStateOnSurface& tsos,
53  const Propagator& prop,
54  const MeasurementEstimator& est,
55  std::vector<DetGroup> & result) const{
56  pair<bool, TrajectoryStateOnSurface> compat = this->compatible(tsos,prop,est);
57 
58  if (compat.first) {
59  result.push_back( DetGroup(0,1) );
60  DetGroupElement ge( theDet, compat.second);
61  result.front().push_back(ge);
62  }
63 
64 }
65 
66 
67 
#define LogDebug(id)
Common base class.
static std::pair< bool, TrajectoryStateOnSurface > isCompatible(const GeomDet *theDet, const TrajectoryStateOnSurface &ts, const Propagator &prop, const MeasurementEstimator &est)
static int position[TOTALCHAMBERS][3]
Definition: ReadPGInfo.cc:509
tuple result
Definition: query.py:137
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState