36 |
|
|
37 |
|
|
38 |
|
|
39 |
+ |
|
40 |
+ |
TrackAtSurface::TrackAtSurface(const TrajectoryStateOnSurface &state, const edm::Event &ev, const edm::EventSetup &es) |
41 |
+ |
: theState(state), theEv(ev), theEs(es) |
42 |
+ |
{ } |
43 |
+ |
|
44 |
|
TrackAtSurface::TrackAtSurface(const reco::Muon* mu,const edm::Event &ev, const edm::EventSetup &es) |
45 |
|
: theEv(ev), theEs(es) |
46 |
|
{ |
60 |
|
double diff = deltaR(mu->track()->eta(), mu->track()->phi(), it->geometricalInnermostState().globalMomentum().eta(), it->geometricalInnermostState().globalMomentum().phi()); |
61 |
|
if (diff < minDR) { minDR = diff; theTrajectory = *it; } |
62 |
|
} |
63 |
< |
theState = TrajectoryStateTransform().outerStateOnSurface(*(mu->track()), *globalGeometry, &*magField); |
63 |
> |
theState = trajectoryStateTransform::outerStateOnSurface(*(mu->track()), *globalGeometry, &*magField); |
64 |
|
|
65 |
|
} |
66 |
|
|