59 const std::vector<TrajectoryMeasurement>&,
106 std::map<unsigned int, std::vector<PSimHit*> >
idHitsMap;
138 if (isim->processType() == 9)
154 template <
unsigned int D>
160 LogTrace(
"CkfDebugger") <<
"parametersError=" <<
recHit->parametersError();
162 VecD
r = asSVector<D>(
recHit->parameters()) -
me.measuredParameters<
D>(*
recHit);
163 LogTrace(
"CkfDebugger") <<
"me.measuredParameters=" <<
me.measuredParameters<
D>(*recHit);
164 LogTrace(
"CkfDebugger") <<
"me.measuredError=" <<
me.measuredError<
D>(*recHit);
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;
std::map< std::string, TH1F * > hPullM_shst
const TrackerTopology * theTopo
bool hasDelta(const PSimHit *correctHit)
std::pair< CTTRHp, double > analyseRecHitExistance(const PSimHit &sh, const TSOS &startingState)
void printSimHits(const edm::Event &iEvent)
LocalVector localDirection() const
Obsolete. Same as momentumAtEntry().unit(), for backward compatibility.
unsigned int trackId() const
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
unsigned int detUnitId() const
TH2F * hPullGPXvsGPeta_shst
void dumpSimHit(const SimHit &hit) const
std::pair< double, double > computePulls(CTTRHp recHit, TSOS startingState)
LocalPoint localPosition() const
const MagneticField * theMagField
float timeOfFlight() const
const TransientTrackingRecHitBuilder * theTTRHBuilder
std::map< std::pair< int, int >, int > dump6
const GeometricSearchTracker * theGeomSearchTracker
const MeasurementTrackerEvent * theMeasurementTracker
std::map< std::pair< int, int >, int > dump3
Global3DPoint position(const PSimHit *sh) const
std::pair< double, double > computePulls(CTTRHp recHit, TSOS startingState)
int assocTrackId(CTTRHp rechit) const
void deleteHitAssociator()
int partner_det_not_fuond
std::vector< const PSimHit * > nextCorrectHits(const Trajectory &, unsigned int &)
bool correctMeas(const TM &tm, const PSimHit *correctHit) const
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
std::map< std::pair< int, int >, int > dump2
const MeasurementEstimator * theChi2
bool correctTrajectory(const Trajectory &, unsigned int &) const
unsigned int layer(const DetId &id) const
const GeomDetUnit * det() const
unsigned short processType() const
const GeomDetUnit * det(const PSimHit *sh) const
int analyseRecHitNotFound(const Trajectory &, CTTRHp)
double testSeed(CTTRHp, CTTRHp, TrajectoryStateOnSurface)
std::map< std::pair< int, int >, int > dump4
int matched_not_associated
std::map< std::string, TH1F * > hPullS_shrh
const GeomDetUnit * theDet
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
unsigned short processType() const
TH2F * hPullGPXvsGPr_shst
TrackerHitAssociator * hitAssociator
TH2F * hPullGPXvsGPY_shst
CkfDebugger(edm::EventSetup const &es, edm::ConsumesCollector &&iC)
TransientTrackingRecHit::ConstRecHitPointer CTTRHp
unsigned int trackId() const
std::map< std::string, TH1F * > hPullY_shrh
bool associated(CTTRHp rechit, const PSimHit &sh) const
SimHit(const PSimHit *phit, const GeomDetUnit *gdu)
DetId geographicalId() const
The label of this GeomDet.
void fillSeedHist(CTTRHp h1, CTTRHp h2, TrajectoryStateOnSurface t)
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
const Propagator * theForwardPropagator
std::map< std::string, TH1F * > hPullX_shst
DecomposeProduct< arg, typename Div::arg > D
GlobalPoint globalPosition() const
unsigned int detUnitId() const
Local3DPoint localPosition() const
std::map< std::string, TH1F * > hPullGP_Y_shst
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
const TrackerGeometry * theTrackerGeom
float energyLoss() const
The energy deposit in the PSimHit, in ???.
std::map< std::string, TH1F * > hPullM_shrh
bool goodSimHit(const PSimHit &sh) const
ROOT::Math::SVector< double, D1 > Vector
Geom::Theta< float > thetaAtEntry() const
fast and more accurate access to momentumAtEntry().theta()
NavigationSchool const * theNavSchool
bool analyseCompatibleMeasurements(const Trajectory &, const std::vector< TrajectoryMeasurement > &, const MeasurementTrackerEvent *, const Propagator *, const Chi2MeasurementEstimatorBase *, const TransientTrackingRecHitBuilder *)
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
float timeOfFlight() const
Geom::Theta< float > thetaAtEntry() const
Geom::Phi< float > phiAtEntry() 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
const PSimHit & psimHit() const
std::map< std::string, TH1F * > hPullM_strh
std::map< unsigned int, std::vector< PSimHit * > > idHitsMap
LocalVector localDirection() const
TrajectoryStateOnSurface TSOS
Geom::Phi< float > phiAtEntry() const
fast and more accurate access to momentumAtEntry().phi()
std::map< std::string, TH1F * > hPullY_strh
TH2F * hPullGPXvsGPphi_shst
std::map< std::string, TH1F * > hPullGP_X_shst