66 const std::vector<TrajectoryMeasurement>&,
118 std::map<unsigned int, std::vector<PSimHit*> >
idHitsMap;
150 if (isim->processType() == 9)
166 template <
unsigned int D>
172 LogTrace(
"CkfDebugger") <<
"parametersError=" <<
recHit->parametersError();
174 VecD
r = asSVector<D>(
recHit->parameters()) -
me.measuredParameters<
D>(*
recHit);
175 LogTrace(
"CkfDebugger") <<
"me.measuredParameters=" <<
me.measuredParameters<
D>(*recHit);
176 LogTrace(
"CkfDebugger") <<
"me.measuredError=" <<
me.measuredError<
D>(*recHit);
177 SMatDD
R = asSMatrix<D>(
recHit->parametersError()) +
me.measuredError<
D>(*
recHit);
181 LogTrace(
"CkfDebugger") <<
"R(-1)=" <<
R;
182 LogTrace(
"CkfDebugger") <<
"chi2=" << ROOT::Math::Similarity(
r,
R);
183 double pullX = (-
r[0]) *
sqrt(
R(0, 0));
185 if (VecD::Dim() >= 2) {
188 double pullY = (-r_1) *
sqrt(
R(1, 1));
189 LogTrace(
"CkfDebugger") <<
"pullX=" << pullX;
190 LogTrace(
"CkfDebugger") <<
"pullY=" << pullY;
191 return std::pair<double, double>(pullX, pullY);
194 switch (
recHit->dimension()) {
196 return computePulls<1>(
recHit, startingState);
198 return computePulls<2>(
recHit, startingState);
200 return computePulls<3>(
recHit, startingState);
202 return computePulls<4>(
recHit, startingState);
204 return computePulls<5>(
recHit, startingState);
206 throw cms::Exception(
"CkfDebugger error: rechit of dimension not 1,2,3,4,5");
210 std::map<std::pair<int, int>,
int>
dump2;
211 std::map<std::pair<int, int>,
int>
dump3;
212 std::map<std::pair<int, int>,
int>
dump4;
213 std::map<std::pair<int, int>,
int>
dump5;
214 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
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theFieldToken
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
edm::ESGetToken< NavigationSchool, NavigationSchoolRecord > theNavToken
TH2F * hPullGPXvsGPr_shst
TrackerHitAssociator * hitAssociator
TH2F * hPullGPXvsGPY_shst
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()
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > theTrackerToken
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
void setConditions(edm::EventSetup const &es)
std::map< std::string, TH1F * > hPullX_strh
CkfDebugger(edm::ConsumesCollector iC)
edm::ESGetToken< TrackerTopology, IdealGeometryRecord > theTopoHandToken
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