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