59 const std::vector<TrajectoryMeasurement>&,
106 std::map<unsigned int, std::vector<PSimHit*> >
idHitsMap;
138 if (isim->processType() == 9)
154 template <
unsigned int D>
159 LogTrace(
"CkfDebugger") <<
"parameters=" << recHit->parameters();
160 LogTrace(
"CkfDebugger") <<
"parametersError=" << recHit->parametersError();
165 SMatDD
R = asSMatrix<D>(recHit->parametersError()) + me.
measuredError<
D>(*recHit);
169 LogTrace(
"CkfDebugger") <<
"R(-1)=" <<
R;
170 LogTrace(
"CkfDebugger") <<
"chi2=" << ROOT::Math::Similarity(r, R);
171 double pullX = (-r[0]) *
sqrt(
R(0, 0));
173 if (VecD::Dim() >= 2) {
176 double pullY = (-r_1) *
sqrt(
R(1, 1));
177 LogTrace(
"CkfDebugger") <<
"pullX=" << pullX;
178 LogTrace(
"CkfDebugger") <<
"pullY=" << pullY;
179 return std::pair<double, double>(pullX, pullY);
182 switch (recHit->dimension()) {
184 return computePulls<1>(recHit, startingState);
186 return computePulls<2>(recHit, startingState);
188 return computePulls<3>(recHit, startingState);
190 return computePulls<4>(recHit, startingState);
192 return computePulls<5>(recHit, startingState);
194 throw cms::Exception(
"CkfDebugger error: rechit of dimension not 1,2,3,4,5");
198 std::map<std::pair<int, int>,
int>
dump2;
199 std::map<std::pair<int, int>,
int>
dump3;
200 std::map<std::pair<int, int>,
int>
dump4;
201 std::map<std::pair<int, int>,
int>
dump5;
202 std::map<std::pair<int, int>,
int>
dump6;
unsigned short processType() const
std::map< std::string, TH1F * > hPullM_shst
GlobalPoint globalPosition() const
const TrackerTopology * theTopo
bool hasDelta(const PSimHit *correctHit)
std::pair< CTTRHp, double > analyseRecHitExistance(const PSimHit &sh, const TSOS &startingState)
bool correctMeas(const TM &tm, const PSimHit *correctHit) const
void printSimHits(const edm::Event &iEvent)
Geom::Theta< float > thetaAtEntry() const
fast and more accurate access to momentumAtEntry().theta()
std::map< std::string, TH1F * > hPullS_strh
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
TrackerHitAssociator::Config trackerHitAssociatorConfig_
std::map< std::string, TH1F * > hPullX_shrh
ROOT::Math::SMatrix< double, D1, D1, ROOT::Math::MatRepSym< double, D1 > > SymMatrix
TH2F * hPullGPXvsGPeta_shst
void dumpSimHit(const SimHit &hit) const
std::pair< double, double > computePulls(CTTRHp recHit, TSOS startingState)
const MagneticField * theMagField
unsigned int detUnitId() const
const TransientTrackingRecHitBuilder * theTTRHBuilder
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
std::map< std::pair< int, int >, int > dump6
const GeometricSearchTracker * theGeomSearchTracker
const MeasurementTrackerEvent * theMeasurementTracker
const PSimHit & psimHit() const
float timeOfFlight() const
std::map< std::pair< int, int >, int > dump3
std::pair< double, double > computePulls(CTTRHp recHit, TSOS startingState)
void deleteHitAssociator()
int partner_det_not_fuond
std::vector< const PSimHit * > nextCorrectHits(const Trajectory &, unsigned int &)
Geom::Theta< float > thetaAtEntry() const
std::map< std::pair< int, int >, int > dump2
const MeasurementEstimator * theChi2
unsigned int trackId() const
int analyseRecHitNotFound(const Trajectory &, CTTRHp)
const SurfaceType & surface() const
float timeOfFlight() const
double testSeed(CTTRHp, CTTRHp, TrajectoryStateOnSurface)
std::map< std::pair< int, int >, int > dump4
int matched_not_associated
std::map< std::string, TH1F * > hPullS_shrh
Local3DPoint localPosition() const
const GeomDetUnit * theDet
bool associated(CTTRHp rechit, const PSimHit &sh) const
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
int assocTrackId(CTTRHp rechit) const
TH2F * hPullGPXvsGPr_shst
TrackerHitAssociator * hitAssociator
TH2F * hPullGPXvsGPY_shst
DetId geographicalId() const
The label of this GeomDet.
CkfDebugger(edm::EventSetup const &es, edm::ConsumesCollector &&iC)
TransientTrackingRecHit::ConstRecHitPointer CTTRHp
std::map< std::string, TH1F * > hPullY_shrh
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
SimHit(const PSimHit *phit, const GeomDetUnit *gdu)
void fillSeedHist(CTTRHp h1, CTTRHp h2, TrajectoryStateOnSurface t)
LocalVector localDirection() const
Obsolete. Same as momentumAtEntry().unit(), for backward compatibility.
const GeomDetUnit * det() const
const Propagator * theForwardPropagator
bool correctTrajectory(const Trajectory &, unsigned int &) const
std::map< std::string, TH1F * > hPullX_shst
DecomposeProduct< arg, typename Div::arg > D
Geom::Phi< float > phiAtEntry() const
std::map< std::string, TH1F * > hPullGP_Y_shst
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
unsigned short processType() const
unsigned int layer(const DetId &id) const
const TrackerGeometry * theTrackerGeom
std::map< std::string, TH1F * > hPullM_shrh
const GeomDetUnit * det(const PSimHit *sh) const
ROOT::Math::SVector< double, D1 > Vector
float energyLoss() const
The energy deposit in the PSimHit, in ???.
NavigationSchool const * theNavSchool
bool analyseCompatibleMeasurements(const Trajectory &, const std::vector< TrajectoryMeasurement > &, const MeasurementTrackerEvent *, const Propagator *, const Chi2MeasurementEstimatorBase *, const TransientTrackingRecHitBuilder *)
bool goodSimHit(const PSimHit &sh) const
std::map< std::pair< int, int >, int > dump5
TH2F * hPullGPXvsGPX_shst
std::map< std::string, TH1F * > hPullGP_Z_shst
std::map< std::string, TH1F * > hPullX_strh
unsigned int trackId() const
Geom::Phi< float > phiAtEntry() const
fast and more accurate access to momentumAtEntry().phi()
LocalPoint localPosition() const
TH2F * hPullGPXvsGPZ_shst
std::map< std::string, TH1F * > hPullS_shst
const PSimHit * pSimHit(unsigned int tkId, DetId detId)
int layer(const GeomDet *det)
std::map< std::string, TH1F * > hPullY_shst
Global3DPoint position(const PSimHit *sh) const
LocalVector localDirection() const
std::map< std::string, TH1F * > hPullM_strh
std::map< unsigned int, std::vector< PSimHit * > > idHitsMap
TrajectoryStateOnSurface TSOS
std::map< std::string, TH1F * > hPullY_strh
unsigned int detUnitId() const
TH2F * hPullGPXvsGPphi_shst
std::map< std::string, TH1F * > hPullGP_X_shst