1 #ifndef PIXELHITMATCHER_H 2 #define PIXELHITMATCHER_H 38 #include "CLHEP/Vector/ThreeVector.h" 40 #include <unordered_map> 56 struct hash<
std::pair<const GeomDet*,GlobalPoint> > {
57 std::size_t
operator()(
const std::pair<const GeomDet*,GlobalPoint>&
g)
const {
58 auto h1 = std::hash<unsigned long long>()((
unsigned long long)g.first);
59 unsigned long long k; memcpy(&k, &g.second,
sizeof(k));
60 auto h2 = std::hash<unsigned long long>()(k);
61 return h1 ^ (h2 << 1);
65 struct equal_to<
std::pair<const GeomDet*,GlobalPoint> > :
public std::binary_function<std::pair<const GeomDet*,GlobalPoint>,std::pair<const GeomDet*,GlobalPoint>,bool> {
66 bool operator()(
const std::pair<const GeomDet*,GlobalPoint>&
a,
67 const std::pair<const GeomDet*,GlobalPoint>&
b)
const {
68 return (a.first == b.first) & (a.second == b.second);
83 : rh_(rh), dphi_(dphi)
86 ConstRecHitPointer
recHit()
const {
return rh_ ; }
87 float dPhi()
const {
return dphi_ ; }
93 ConstRecHitPointer
rh_ ;
110 : rh_(rh), subDet_(subDet), dRz_(dRz), dPhi_(
dPhi)
113 ConstRecHitPointer
recHit()
const {
return rh_; }
115 float dRz()
const {
return dRz_ ; }
116 float dPhi()
const {
return dPhi_ ; }
134 : seed_(seed), hitsMask_(hitsMask),
135 subDet2_(subDet2), dRz2_(dRz2), dPhi2_(dPhi2),
136 subDet1_(subDet1), dRz1_(dRz1), dPhi1_(dPhi1)
140 unsigned char hitsMask()
const {
return hitsMask_ ; }
143 float dRz2()
const {
return dRz2_ ; }
144 float dPhi2()
const {
return dPhi2_ ; }
147 float dRz1()
const {
return dRz1_ ; }
148 float dPhi1()
const {
return dPhi1_ ; }
172 typedef ROOT::Math::PositionVector3D<ROOT::Math::CylindricalEta3D<double> >
REPPoint;
175 (
float phi1min,
float phi1max,
177 float phi2minB,
float phi2maxB,
float phi2minF,
float phi2maxF,
178 float z2minB,
float z2maxB,
float r2minF,
float r2maxF,
186 std::vector<SeedWithInfo>
188 (
const std::vector<const TrajectorySeedCollection *>& seedsV,
const GlobalPoint & xmeas,
192 std::vector<std::pair<RecHitWithDist,ConstRecHitPointer> >
194 float energy,
float charge,
199 std::vector<CLHEP::Hep3Vector> predicted1Hits() ;
200 std::vector<CLHEP::Hep3Vector> predicted2Hits();
202 void set1stLayer(
float dummyphi1min,
float dummyphi1max ) ;
203 void set1stLayerZRange(
float zmin1,
float zmax1 ) ;
205 void set2ndLayer(
float dummyphi2minB,
float dummyphi2maxB,
float dummyphi2minF,
float dummyphi2maxF ) ;
208 void setUseRecoVertex(
bool val ) ;
TransientTrackingRecHit::RecHitPointer RecHitPointer
TransientTrackingRecHit::RecHitPointer RecHitPointer
BarrelMeasurementEstimator meas2ndBLayer
RecHitWithInfo(ConstRecHitPointer rh, int subDet=0, float dRz=std::numeric_limits< float >::infinity(), float dPhi=std::numeric_limits< float >::infinity())
TransientTrackingRecHit::RecHitContainer RecHitContainer
ROOT::Math::PositionVector3D< ROOT::Math::CylindricalEta3D< double > > REPPoint
BarrelMeasurementEstimator meas1stBLayer
PropagatorWithMaterial * prop1stLayer
std::vector< CLHEP::Hep3Vector > pred1Meas
unsigned char hitsMask() const
std::vector< ConstRecHitPointer > RecHitContainer
TransientTrackingRecHit::RecHitContainer RecHitContainer
SeedWithInfo(TrajectorySeed seed, unsigned char hitsMask, int subDet2, float dRz2, float dPhi2, int subDet1, float dRz1, float dPhi1)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
std::vector< GlobalPoint > hit_gp_map_
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
rMaxI
intermediate region SC in EB and 2nd hits in PXF
ConstRecHitPointer recHit() const
LayerMeasurements theLayerMeasurements
TransientTrackingRecHit::RecHitContainer RecHitContainer
const MagneticField * theMagField
const MeasurementTrackerEvent * theTrackerEvent
std::shared_ptr< TrackingRecHit const > RecHitPointer
PixelMatchStartLayers startLayers
std::size_t operator()(const std::pair< const GeomDet *, GlobalPoint > &g) const
const GeometricSearchTracker * theGeometricSearchTracker
std::vector< CLHEP::Hep3Vector > pred2Meas
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
ForwardMeasurementEstimator meas2ndFLayer
bool operator()(const std::pair< const GeomDet *, GlobalPoint > &a, const std::pair< const GeomDet *, GlobalPoint > &b) const
PropagatorWithMaterial * prop2ndLayer
ForwardMeasurementEstimator meas1stFLayer
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
TransientTrackingRecHit::RecHitPointer RecHitPointer
const TrajectorySeed & seed() const
RecHitContainer hitsInTrack
ConstRecHitPointer recHit() const
std::unordered_map< std::pair< const GeomDet *, GlobalPoint >, TrajectoryStateOnSurface > mapTsos2_fast_
const TrackerGeometry * theTrackerGeometry
RecHitWithDist(ConstRecHitPointer rh, float &dphi)
const MeasurementTracker * theTracker