59 const std::vector<TrajectoryMeasurement>&,
111 std::map<unsigned int, std::vector<PSimHit*> >
idHitsMap;
142 if (isim->processType() == 9) delta =
true;
157 template<
unsigned int D>
162 LogTrace(
"CkfDebugger") <<
"parameters=" << recHit->parameters() ;
163 LogTrace(
"CkfDebugger") <<
"parametersError=" << recHit->parametersError() ;
168 SMatDD
R = asSMatrix<D>(recHit->parametersError()) + me.
measuredError<
D>(*recHit);
172 LogTrace(
"CkfDebugger") <<
"R(-1)=" <<
R ;
173 LogTrace(
"CkfDebugger") <<
"chi2=" << ROOT::Math::Similarity(r,R) ;
174 double pullX=(-r[0])*
sqrt(
R(0,0));
176 if ( VecD::Dim() >= 2 )
180 double pullY=(-r_1)*
sqrt(
R(1,1));
181 LogTrace(
"CkfDebugger") <<
"pullX=" << pullX ;
182 LogTrace(
"CkfDebugger") <<
"pullY=" << pullY ;
183 return std::pair<double,double>(pullX,pullY);
186 switch (recHit->dimension()) {
187 case 1:
return computePulls<1>(recHit,startingState);
188 case 2:
return computePulls<2>(recHit,startingState);
189 case 3:
return computePulls<3>(recHit,startingState);
190 case 4:
return computePulls<4>(recHit,startingState);
191 case 5:
return computePulls<5>(recHit,startingState);
193 throw cms::Exception(
"CkfDebugger error: rechit of dimension not 1,2,3,4,5");
197 std::map<std::pair<int,int>,
int>
dump2;
198 std::map<std::pair<int,int>,
int>
dump3;
199 std::map<std::pair<int,int>,
int>
dump4;
200 std::map<std::pair<int,int>,
int>
dump5;
201 std::map<std::pair<int,int>,
int>
dump6;
255 class less_mag :
public std::binary_function<PSimHit*, PSimHit*, bool> {
unsigned short processType() const
const TrackerGeomDet * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
GlobalPoint globalPosition() const
std::map< std::string, TH1F * > hPullS_shrh
const TrackerTopology * theTopo
bool hasDelta(const PSimHit *correctHit)
std::pair< CTTRHp, double > analyseRecHitExistance(const PSimHit &sh, const TSOS &startingState)
std::map< std::string, TH1F * > hPullY_shst
bool correctMeas(const TM &tm, const PSimHit *correctHit) const
void printSimHits(const edm::Event &iEvent)
std::map< std::pair< int, int >, int > dump6
Geom::Theta< float > thetaAtEntry() const
fast and more accurate access to momentumAtEntry().theta()
ROOT::Math::SMatrix< double, D1, D1, ROOT::Math::MatRepSym< double, D1 > > SymMatrix
const MeasurementTracker * theMeasurementTracker
TrackerHitAssociator::Config trackerHitAssociatorConfig_
std::pair< double, double > computePulls(CTTRHp recHit, TSOS startingState)
TH2F * hPullGPXvsGPeta_shst
void dumpSimHit(const SimHit &hit) const
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::string, TH1F * > hPullGP_Z_shst
const GeometricSearchTracker * theGeomSearchTracker
const PSimHit & psimHit() const
float timeOfFlight() const
std::map< std::string, TH1F * > hPullY_strh
std::map< std::string, TH1F * > hPullM_shrh
void deleteHitAssociator()
std::map< std::string, TH1F * > hPullX_shst
int partner_det_not_fuond
std::vector< const PSimHit * > nextCorrectHits(const Trajectory &, unsigned int &)
Geom::Theta< float > thetaAtEntry() const
std::map< std::string, TH1F * > hPullM_shst
const MeasurementEstimator * theChi2
unsigned int trackId() const
int analyseRecHitNotFound(const Trajectory &, CTTRHp)
const SurfaceType & surface() const
std::map< std::string, TH1F * > hPullGP_Y_shst
float timeOfFlight() const
double testSeed(CTTRHp, CTTRHp, TrajectoryStateOnSurface)
int matched_not_associated
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)
std::pair< double, double > computePulls(CTTRHp recHit, TSOS startingState)
TransientTrackingRecHit::ConstRecHitPointer CTTRHp
std::map< std::string, TH1F * > hPullX_shrh
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
SimHit(const PSimHit *phit, const GeomDetUnit *gdu)
std::map< std::string, TH1F * > hPullGP_X_shst
bool operator()(const PSimHit *a, const PSimHit *b)
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
ROOT::Math::SVector< double, D1 > Vector
std::map< std::string, TH1F * > hPullM_strh
std::map< std::string, TH1F * > hPullS_shst
DecomposeProduct< arg, typename Div::arg > D
Geom::Phi< float > phiAtEntry() const
std::map< std::pair< int, int >, int > dump2
std::map< std::string, TH1F * > hPullS_strh
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
unsigned short processType() const
unsigned int layer(const DetId &id) const
const TrackerGeometry * theTrackerGeom
const GeomDetUnit * det(const PSimHit *sh) const
float energyLoss() const
The energy deposit in the PSimHit, in ???.
NavigationSchool const * theNavSchool
bool goodSimHit(const PSimHit &sh) const
std::map< std::string, TH1F * > hPullY_shrh
TH2F * hPullGPXvsGPX_shst
unsigned int trackId() const
Geom::Phi< float > phiAtEntry() const
fast and more accurate access to momentumAtEntry().phi()
std::map< std::string, TH1F * > hPullX_strh
LocalPoint localPosition() const
TH2F * hPullGPXvsGPZ_shst
const PSimHit * pSimHit(unsigned int tkId, DetId detId)
int layer(const GeomDet *det)
std::map< std::pair< int, int >, int > dump5
Global3DPoint position(const PSimHit *sh) const
LocalVector localDirection() const
std::map< unsigned int, std::vector< PSimHit * > > idHitsMap
TrajectoryStateOnSurface TSOS
bool analyseCompatibleMeasurements(const Trajectory &, const std::vector< TrajectoryMeasurement > &, const MeasurementTracker *, const Propagator *, const Chi2MeasurementEstimatorBase *, const TransientTrackingRecHitBuilder *)
unsigned int detUnitId() const
std::map< std::pair< int, int >, int > dump4
TH2F * hPullGPXvsGPphi_shst
std::map< std::pair< int, int >, int > dump3