59 const std::vector<TrajectoryMeasurement>&,
110 std::map<unsigned int, std::vector<PSimHit*> >
idHitsMap;
141 if (isim->processType() == 9) delta =
true;
160 template<
unsigned int D>
165 LogTrace(
"CkfDebugger") <<
"parameters=" << recHit->parameters() ;
166 LogTrace(
"CkfDebugger") <<
"parametersError=" << recHit->parametersError() ;
171 SMatDD
R = asSMatrix<D>(recHit->parametersError()) + me.
measuredError<
D>(*recHit);
175 LogTrace(
"CkfDebugger") <<
"R(-1)=" <<
R ;
176 LogTrace(
"CkfDebugger") <<
"chi2=" << ROOT::Math::Similarity(r,R) ;
177 double pullX=(-r[0])*
sqrt(
R(0,0));
179 if ( VecD::Dim() >= 2 )
183 double pullY=(-r_1)*
sqrt(
R(1,1));
184 LogTrace(
"CkfDebugger") <<
"pullX=" << pullX ;
185 LogTrace(
"CkfDebugger") <<
"pullY=" << pullY ;
186 return std::pair<double,double>(pullX,pullY);
189 switch (recHit->dimension()) {
190 case 1:
return computePulls<1>(recHit,startingState);
191 case 2:
return computePulls<2>(recHit,startingState);
192 case 3:
return computePulls<3>(recHit,startingState);
193 case 4:
return computePulls<4>(recHit,startingState);
194 case 5:
return computePulls<5>(recHit,startingState);
196 throw cms::Exception(
"CkfDebugger error: rechit of dimension not 1,2,3,4,5");
200 std::map<std::pair<int,int>,
int>
dump2;
201 std::map<std::pair<int,int>,
int>
dump3;
202 std::map<std::pair<int,int>,
int>
dump4;
203 std::map<std::pair<int,int>,
int>
dump5;
204 std::map<std::pair<int,int>,
int>
dump6;
258 class less_mag :
public std::binary_function<PSimHit*, PSimHit*, bool> {
unsigned short processType() const
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
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
CkfDebugger(edm::EventSetup const &es)
int analyseRecHitNotFound(const Trajectory &, CTTRHp)
const SurfaceType & surface() const
std::map< std::string, TH1F * > hPullGP_Y_shst
int layer(const GeomDetUnit *det)
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.
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
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
virtual const GeomDetUnit * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
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
DecomposeProduct< arg, typename Div::arg > D
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