CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes
TSGFromPropagation Class Reference

#include <TSGFromPropagation.h>

Inheritance diagram for TSGFromPropagation:
TrackerSeedGenerator

Classes

struct  increasingEstimate
 
struct  isInvalid
 

Public Member Functions

void init (const MuonServiceProxy *) override
 initialize More...
 
void setEvent (const edm::Event &) override
 set an event More...
 
void trackerSeeds (const TrackCand &, const TrackingRegion &, const TrackerTopology *, std::vector< TrajectorySeed > &) override
 generate seed(s) for a track More...
 
 TSGFromPropagation (const edm::ParameterSet &par, edm::ConsumesCollector &iC, const MuonServiceProxy *)
 
 TSGFromPropagation (const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
 constructor More...
 
 ~TSGFromPropagation () override
 destructor More...
 
- Public Member Functions inherited from TrackerSeedGenerator
const edm::EventgetEvent () const
 
 TrackerSeedGenerator ()
 
virtual void trackerSeeds (const TrackCand &, const TrackingRegion &, const TrackerTopology *, BTSeedCollection &)
 
virtual ~TrackerSeedGenerator ()
 destructor More...
 

Private Types

enum  ResetMethod { ResetMethod::discrete, ResetMethod::fixed, ResetMethod::matrix }
 

Private Member Functions

void adjust (FreeTrajectoryState &) const
 adjust the error matrix of the FTS More...
 
void adjust (TrajectoryStateOnSurface &) const
 adjust the error matrix of the TSOS More...
 
TrajectorySeed createSeed (const TrajectoryStateOnSurface &, const DetId &) const
 create a hitless seed from a trajectory state More...
 
TrajectorySeed createSeed (const TrajectoryStateOnSurface &tsos, const edm::OwnVector< TrackingRecHit > &container, const DetId &id) const
 create a seed from a trajectory state More...
 
double dxyDis (const TrajectoryStateOnSurface &tsos) const
 
const Chi2MeasurementEstimatorestimator () const
 
std::vector< TrajectoryMeasurementfindMeasurements (const DetLayer *, const TrajectoryStateOnSurface &) const
 look for measurements on the first compatible layer More...
 
void getRescalingFactor (const TrackCand &staMuon)
 
TrajectoryStateOnSurface innerState (const TrackCand &) const
 
TrajectoryStateOnSurface outerTkState (const TrackCand &) const
 
bool passSelection (const TrajectoryStateOnSurface &) const
 check some quantity and beam-spot compatibility and decide to continue More...
 
edm::ESHandle< Propagatorpropagator () const
 
const TrajectoryStateUpdatorupdator () const
 
void validMeasurements (std::vector< TrajectoryMeasurement > &) const
 select valid measurements More...
 
double zDis (const TrajectoryStateOnSurface &tsos) const
 

Private Attributes

edm::Handle< reco::BeamSpotbeamSpot
 
const edm::EDGetTokenT< reco::BeamSpottheBeamSpotToken
 
unsigned long long theCacheId_MT
 
unsigned long long theCacheId_TG
 
const std::string theCategory
 
std::unique_ptr< MuonErrorMatrixtheErrorMatrixAdjuster
 
const edm::ParameterSet theErrorMatrixPset
 
std::unique_ptr< const Chi2MeasurementEstimatortheEstimator
 
const double theFixedErrorRescaling
 
double theFlexErrorRescaling
 
const double theMaxChi2
 
edm::ESHandle< MeasurementTrackertheMeasTracker
 
edm::Handle< MeasurementTrackerEventtheMeasTrackerEvent
 
const std::string theMeasTrackerName
 
const edm::EDGetTokenT< MeasurementTrackerEventtheMeasurementTrackerEventToken
 
std::unique_ptr< const DirectTrackerNavigationtheNavigation
 
const std::string thePropagatorName
 
const ResetMethod theResetMethod
 
const bool theSelectStateFlag
 
const MuonServiceProxytheService
 
const double theSigmaZ
 
edm::ESHandle< GeometricSearchTrackertheTracker
 
const bool theUpdateStateFlag
 
std::unique_ptr< const TrajectoryStateUpdatortheUpdator
 
const bool theUseVertexStateFlag
 

Additional Inherited Members

- Public Types inherited from TrackerSeedGenerator
typedef std::vector< TrajectorySeedBTSeedCollection
 
typedef std::pair< const Trajectory *, reco::TrackRefTrackCand
 
- Protected Attributes inherited from TrackerSeedGenerator
const edm::EventtheEvent
 
const MuonServiceProxytheProxyService
 

Detailed Description

Author
Chang Liu - Purdue University

Tracker Seed Generator by propagating and updating a standAlone muon to the first 2 (or 1) rechits it meets in tracker system

Author
Chang Liu - Purdue University

Definition at line 33 of file TSGFromPropagation.h.

Member Enumeration Documentation

◆ ResetMethod

enum TSGFromPropagation::ResetMethod
strongprivate
Enumerator
discrete 
fixed 
matrix 

Definition at line 137 of file TSGFromPropagation.h.

137 { discrete, fixed, matrix };

Constructor & Destructor Documentation

◆ TSGFromPropagation() [1/2]

TSGFromPropagation::TSGFromPropagation ( const edm::ParameterSet pset,
edm::ConsumesCollector iC 
)

constructor

Definition at line 29 of file TSGFromPropagation.cc.

30  : TSGFromPropagation(iConfig, iC, nullptr) {}

◆ TSGFromPropagation() [2/2]

TSGFromPropagation::TSGFromPropagation ( const edm::ParameterSet par,
edm::ConsumesCollector iC,
const MuonServiceProxy service 
)

Definition at line 32 of file TSGFromPropagation.cc.

35  : theCategory("Muon|RecoMuon|TSGFromPropagation"),
36  theMeasTrackerName(iConfig.getParameter<std::string>("MeasurementTrackerName")),
38  theMaxChi2(iConfig.getParameter<double>("MaxChi2")),
39  theFixedErrorRescaling(iConfig.getParameter<double>("ErrorRescaling")),
40  theUseVertexStateFlag(iConfig.getParameter<bool>("UseVertexState")),
41  theUpdateStateFlag(iConfig.getParameter<bool>("UpdateState")),
42  theResetMethod([](const edm::ParameterSet& iConfig) {
43  auto resetMethod = iConfig.getParameter<std::string>("ResetMethod");
44  if (resetMethod != "discrete" && resetMethod != "fixed" && resetMethod != "matrix") {
45  edm::LogError("TSGFromPropagation") << "Wrong error rescaling method: " << resetMethod << "\n"
46  << "Possible choices are: discrete, fixed, matrix.\n"
47  << "Use discrete method" << std::endl;
48  resetMethod = "discrete";
49  }
50  if ("fixed" == resetMethod) {
51  return ResetMethod::fixed;
52  }
53  if ("matrix" == resetMethod) {
54  return ResetMethod::matrix;
55  }
56  return ResetMethod::discrete;
57  }(iConfig)),
58  theSelectStateFlag(iConfig.getParameter<bool>("SelectState")),
59  thePropagatorName(iConfig.getParameter<std::string>("Propagator")),
60  theSigmaZ(iConfig.getParameter<double>("SigmaZ")),
61  theErrorMatrixPset(iConfig.getParameter<edm::ParameterSet>("errorMatrixPset")),
64  iC.consumes<MeasurementTrackerEvent>(iConfig.getParameter<edm::InputTag>("MeasurementTrackerEvent"))) {}

References discrete, fixed, edm::ParameterSet::getParameter(), matrix, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~TSGFromPropagation()

TSGFromPropagation::~TSGFromPropagation ( )
override

destructor

Definition at line 66 of file TSGFromPropagation.cc.

66 { LogTrace(theCategory) << " TSGFromPropagation dtor called "; }

References LogTrace, and theCategory.

Member Function Documentation

◆ adjust() [1/2]

void TSGFromPropagation::adjust ( FreeTrajectoryState state) const
private

adjust the error matrix of the FTS

Definition at line 328 of file TSGFromPropagation.cc.

328  {
329  //rescale the error
331  state.rescaleError(theFlexErrorRescaling);
332  return;
333  }
334 
335  //rescale the error
337  state.rescaleError(theFixedErrorRescaling);
338  return;
339  }
340 
341  CurvilinearTrajectoryError oMat = state.curvilinearError();
342  CurvilinearTrajectoryError sfMat = theErrorMatrixAdjuster->get(state.momentum()); //FIXME with position
343  MuonErrorMatrix::multiply(oMat, sfMat);
344 
345  state = FreeTrajectoryState(state.parameters(), oMat);
346 }

References discrete, fixed, MuonErrorMatrix::multiply(), theErrorMatrixAdjuster, theFixedErrorRescaling, theFlexErrorRescaling, and theResetMethod.

Referenced by innerState(), and outerTkState().

◆ adjust() [2/2]

void TSGFromPropagation::adjust ( TrajectoryStateOnSurface state) const
private

adjust the error matrix of the TSOS

Definition at line 348 of file TSGFromPropagation.cc.

348  {
349  //rescale the error
351  state.rescaleError(theFlexErrorRescaling);
352  return;
353  }
354 
356  state.rescaleError(theFixedErrorRescaling);
357  return;
358  }
359 
360  CurvilinearTrajectoryError oMat = state.curvilinearError();
361  CurvilinearTrajectoryError sfMat = theErrorMatrixAdjuster->get(state.globalMomentum()); //FIXME with position
362  MuonErrorMatrix::multiply(oMat, sfMat);
363 
364  state =
365  TrajectoryStateOnSurface(state.weight(), state.globalParameters(), oMat, state.surface(), state.surfaceSide());
366 }

References discrete, fixed, MuonErrorMatrix::multiply(), theErrorMatrixAdjuster, theFixedErrorRescaling, theFlexErrorRescaling, and theResetMethod.

◆ createSeed() [1/2]

TrajectorySeed TSGFromPropagation::createSeed ( const TrajectoryStateOnSurface tsos,
const DetId id 
) const
private

create a hitless seed from a trajectory state

Definition at line 246 of file TSGFromPropagation.cc.

246  {
248  return createSeed(tsos, container, id);
249 }

Referenced by trackerSeeds().

◆ createSeed() [2/2]

TrajectorySeed TSGFromPropagation::createSeed ( const TrajectoryStateOnSurface tsos,
const edm::OwnVector< TrackingRecHit > &  container,
const DetId id 
) const
private

create a seed from a trajectory state

Definition at line 251 of file TSGFromPropagation.cc.

253  {
254  PTrajectoryStateOnDet const& seedTSOS = trajectoryStateTransform::persistentState(tsos, id.rawId());
255  return TrajectorySeed(seedTSOS, container, oppositeToMomentum);
256 }

References oppositeToMomentum, and trajectoryStateTransform::persistentState().

◆ dxyDis()

double TSGFromPropagation::dxyDis ( const TrajectoryStateOnSurface tsos) const
private

◆ estimator()

const Chi2MeasurementEstimator* TSGFromPropagation::estimator ( void  ) const
inlineprivate

Definition at line 62 of file TSGFromPropagation.h.

62 { return theEstimator.get(); }

References theEstimator.

Referenced by findMeasurements(), and trackerSeeds().

◆ findMeasurements()

std::vector< TrajectoryMeasurement > TSGFromPropagation::findMeasurements ( const DetLayer nl,
const TrajectoryStateOnSurface staState 
) const
private

look for measurements on the first compatible layer

Definition at line 264 of file TSGFromPropagation.cc.

265  {
266  std::vector<TrajectoryMeasurement> result;
267 
268  std::vector<DetLayer::DetWithState> compatDets = nl->compatibleDets(staState, *propagator(), *estimator());
269  if (compatDets.empty())
270  return result;
271 
272  for (std::vector<DetLayer::DetWithState>::const_iterator idws = compatDets.begin(); idws != compatDets.end();
273  ++idws) {
274  if (idws->second.isValid() && (idws->first)) {
275  std::vector<TrajectoryMeasurement> tmptm =
276  theMeasTrackerEvent->idToDet(idws->first->geographicalId())
277  .fastMeasurements(idws->second, idws->second, *propagator(), *estimator());
278  validMeasurements(tmptm);
279  // if ( tmptm.size() > 2 ) {
280  // std::stable_sort(tmptm.begin(),tmptm.end(),increasingEstimate());
281  // result.insert(result.end(),tmptm.begin(), tmptm.begin()+2);
282  // } else {
283  result.insert(result.end(), tmptm.begin(), tmptm.end());
284  // }
285  }
286  }
287 
288  return result;
289 }

References GeometricSearchDet::compatibleDets(), estimator(), MeasurementTrackerEvent::idToDet(), propagator(), mps_fire::result, theMeasTrackerEvent, and validMeasurements().

Referenced by trackerSeeds().

◆ getRescalingFactor()

void TSGFromPropagation::getRescalingFactor ( const TrackCand staMuon)
private

Definition at line 317 of file TSGFromPropagation.cc.

317  {
318  float pt = (staMuon.second)->pt();
319  if (pt < 13.0)
321  else if (pt < 30.0)
323  else
325  return;
326 }

References DiDispStaMuonMonitor_cfi::pt, and theFlexErrorRescaling.

Referenced by trackerSeeds().

◆ init()

void TSGFromPropagation::init ( const MuonServiceProxy service)
overridevirtual

initialize

Reimplemented from TrackerSeedGenerator.

Definition at line 155 of file TSGFromPropagation.cc.

155  {
156  theFlexErrorRescaling = 1.0;
157 
158  theEstimator = std::make_unique<Chi2MeasurementEstimator>(theMaxChi2);
159 
160  theCacheId_MT = 0;
161 
162  theCacheId_TG = 0;
163 
165 
166  theUpdator = std::make_unique<KFUpdator>();
167 
169  theErrorMatrixAdjuster = std::make_unique<MuonErrorMatrix>(theErrorMatrixPset);
170  }
171 
173  theNavigation = std::make_unique<DirectTrackerNavigation>(theTracker);
174 }

References edm::ParameterSet::empty(), MuonServiceProxy::eventSetup(), edm::EventSetup::get(), get, matrix, theCacheId_MT, theCacheId_TG, theErrorMatrixAdjuster, theErrorMatrixPset, theEstimator, theFlexErrorRescaling, theMaxChi2, theNavigation, theResetMethod, theService, theTracker, and theUpdator.

◆ innerState()

TrajectoryStateOnSurface TSGFromPropagation::innerState ( const TrackCand staMuon) const
private

Definition at line 207 of file TSGFromPropagation.cc.

207  {
208  TrajectoryStateOnSurface innerTS;
209 
210  if (staMuon.first && staMuon.first->isValid()) {
211  if (staMuon.first->direction() == alongMomentum) {
212  innerTS = staMuon.first->firstMeasurement().updatedState();
213  } else if (staMuon.first->direction() == oppositeToMomentum) {
214  innerTS = staMuon.first->lastMeasurement().updatedState();
215  }
216  } else {
218  *(staMuon.second), *theService->trackingGeometry(), &*theService->magneticField());
219  }
220  //rescale the error
221  adjust(innerTS);
222 
223  return innerTS;
224 
225  // return trajectoryStateTransform::innerStateOnSurface(*(staMuon.second),*theService->trackingGeometry(), &*theService->magneticField());
226 }

References adjust(), alongMomentum, trajectoryStateTransform::innerStateOnSurface(), MuonServiceProxy::magneticField(), oppositeToMomentum, theService, and MuonServiceProxy::trackingGeometry().

Referenced by outerTkState().

◆ outerTkState()

TrajectoryStateOnSurface TSGFromPropagation::outerTkState ( const TrackCand staMuon) const
private

Definition at line 228 of file TSGFromPropagation.cc.

228  {
230 
231  if (theUseVertexStateFlag && staMuon.second->pt() > 1.0) {
232  FreeTrajectoryState iniState =
234  //rescale the error at IP
235  adjust(iniState);
236 
237  StateOnTrackerBound fromInside(&*(theService->propagator("PropagatorWithMaterial")));
238  result = fromInside(iniState);
239  } else {
240  StateOnTrackerBound fromOutside(&*propagator());
241  result = fromOutside(innerState(staMuon));
242  }
243  return result;
244 }

References adjust(), trajectoryStateTransform::initialFreeState(), innerState(), MuonServiceProxy::magneticField(), propagator(), MuonServiceProxy::propagator(), mps_fire::result, theService, and theUseVertexStateFlag.

Referenced by trackerSeeds().

◆ passSelection()

bool TSGFromPropagation::passSelection ( const TrajectoryStateOnSurface tsos) const
private

check some quantity and beam-spot compatibility and decide to continue

Definition at line 291 of file TSGFromPropagation.cc.

291  {
292  if (!theSelectStateFlag)
293  return true;
294  else {
295  if (beamSpot.isValid()) {
296  return ((fabs(zDis(tsos) - beamSpot->z0()) < theSigmaZ));
297 
298  } else {
299  return ((fabs(zDis(tsos)) < theSigmaZ));
300  // double theDxyCut = 100;
301  // return ( (zDis(tsos) < theSigmaZ) && (dxyDis(tsos) < theDxyCut) );
302  }
303  }
304 }

References beamSpot, edm::HandleBase::isValid(), theSelectStateFlag, theSigmaZ, reco::BeamSpot::z0(), and zDis().

Referenced by trackerSeeds().

◆ propagator()

edm::ESHandle<Propagator> TSGFromPropagation::propagator ( ) const
inlineprivate

◆ setEvent()

void TSGFromPropagation::setEvent ( const edm::Event iEvent)
overridevirtual

set an event

Reimplemented from TrackerSeedGenerator.

Definition at line 176 of file TSGFromPropagation.cc.

176  {
177  iEvent.getByToken(theBeamSpotToken, beamSpot);
178 
179  unsigned long long newCacheId_MT = theService->eventSetup().get<CkfComponentsRecord>().cacheIdentifier();
180 
181  if (theUpdateStateFlag && newCacheId_MT != theCacheId_MT) {
182  LogTrace(theCategory) << "Measurment Tracker Geometry changed!";
183  theCacheId_MT = newCacheId_MT;
185  }
186 
187  if (theUpdateStateFlag) {
189  }
190 
191  bool trackerGeomChanged = false;
192 
193  unsigned long long newCacheId_TG = theService->eventSetup().get<TrackerRecoGeometryRecord>().cacheIdentifier();
194 
195  if (newCacheId_TG != theCacheId_TG) {
196  LogTrace(theCategory) << "Tracker Reco Geometry changed!";
197  theCacheId_TG = newCacheId_TG;
199  trackerGeomChanged = true;
200  }
201 
202  if (trackerGeomChanged && (theTracker.product() != nullptr)) {
203  theNavigation = std::make_unique<DirectTrackerNavigation>(theTracker);
204  }
205 }

References beamSpot, MuonServiceProxy::eventSetup(), edm::EventSetup::get(), get, iEvent, LogTrace, edm::ESHandle< T >::product(), theBeamSpotToken, theCacheId_MT, theCacheId_TG, theCategory, theMeasTracker, theMeasTrackerEvent, theMeasTrackerName, theMeasurementTrackerEventToken, theNavigation, theService, theTracker, and theUpdateStateFlag.

◆ trackerSeeds()

void TSGFromPropagation::trackerSeeds ( const TrackCand staMuon,
const TrackingRegion region,
const TrackerTopology tTopo,
std::vector< TrajectorySeed > &  result 
)
override

generate seed(s) for a track

Definition at line 68 of file TSGFromPropagation.cc.

71  {
73  getRescalingFactor(staMuon);
74 
75  TrajectoryStateOnSurface staState = outerTkState(staMuon);
76 
77  if (!staState.isValid()) {
78  LogTrace(theCategory) << "Error: initial state from L2 muon is invalid.";
79  return;
80  }
81 
82  LogTrace(theCategory) << "begin of trackerSeed:\n staState pos: " << staState.globalPosition()
83  << " mom: " << staState.globalMomentum() << "pos eta: " << staState.globalPosition().eta()
84  << "mom eta: " << staState.globalMomentum().eta();
85 
86  std::vector<const DetLayer*> nls = theNavigation->compatibleLayers(*(staState.freeState()), oppositeToMomentum);
87 
88  LogTrace(theCategory) << " compatible layers: " << nls.size();
89 
90  if (nls.empty())
91  return;
92 
93  int ndesLayer = 0;
94 
95  bool usePredictedState = false;
96 
97  if (theUpdateStateFlag) { //use updated states
98  std::vector<TrajectoryMeasurement> alltm;
99 
100  for (std::vector<const DetLayer*>::const_iterator inl = nls.begin(); inl != nls.end(); inl++, ndesLayer++) {
101  if ((*inl == nullptr))
102  break;
103  // if ( (inl != nls.end()-1 ) && ( (*inl)->subDetector() == GeomDetEnumerators::TEC ) && ( (*(inl+1))->subDetector() == GeomDetEnumerators::TOB ) ) continue;
104  alltm = findMeasurements(*inl, staState);
105  if ((!alltm.empty())) {
106  LogTrace(theCategory) << "final compatible layer: " << ndesLayer;
107  break;
108  }
109  }
110 
111  if (alltm.empty()) {
112  LogTrace(theCategory) << " NO Measurements Found: eta: " << staState.globalPosition().eta() << "pt "
113  << staState.globalMomentum().perp();
114  usePredictedState = true;
115  } else {
116  LogTrace(theCategory) << " Measurements for seeds: " << alltm.size();
117  std::stable_sort(alltm.begin(), alltm.end(), increasingEstimate());
118  if (alltm.size() > 5)
119  alltm.erase(alltm.begin() + 5, alltm.end());
120 
121  int i = 0;
122  for (std::vector<TrajectoryMeasurement>::const_iterator itm = alltm.begin(); itm != alltm.end(); itm++, i++) {
123  TrajectoryStateOnSurface updatedTSOS = updator()->update(itm->predictedState(), *(itm->recHit()));
124  if (updatedTSOS.isValid() && passSelection(updatedTSOS)) {
126  container.push_back(itm->recHit()->hit()->clone());
127  TrajectorySeed ts = createSeed(updatedTSOS, container, itm->recHit()->geographicalId());
128  result.push_back(ts);
129  }
130  }
131  LogTrace(theCategory) << "result: " << result.size();
132  return;
133  }
134  }
135 
136  if (!theUpdateStateFlag || usePredictedState) { //use predicted states
137  LogTrace(theCategory) << "use predicted state: ";
138  for (std::vector<const DetLayer*>::const_iterator inl = nls.begin(); inl != nls.end(); inl++) {
139  if (!result.empty() || *inl == nullptr) {
140  break;
141  }
142  std::vector<DetLayer::DetWithState> compatDets = (*inl)->compatibleDets(staState, *propagator(), *estimator());
143  LogTrace(theCategory) << " compatDets " << compatDets.size();
144  if (compatDets.empty())
145  continue;
146  TrajectorySeed ts = createSeed(compatDets.front().second, compatDets.front().first->geographicalId());
147  result.push_back(ts);
148  }
149  LogTrace(theCategory) << "result: " << result.size();
150  return;
151  }
152  return;
153 }

References createSeed(), discrete, estimator(), PV3DBase< T, PVType, FrameType >::eta(), findMeasurements(), TrajectoryStateOnSurface::freeState(), getRescalingFactor(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalPosition(), mps_fire::i, TrajectoryStateOnSurface::isValid(), LogTrace, oppositeToMomentum, outerTkState(), passSelection(), PV3DBase< T, PVType, FrameType >::perp(), propagator(), edm::OwnVector< T, P >::push_back(), mps_fire::result, theCategory, theNavigation, theResetMethod, theUpdateStateFlag, TrajectoryStateUpdator::update(), and updator().

◆ updator()

const TrajectoryStateUpdator* TSGFromPropagation::updator ( ) const
inlineprivate

Definition at line 60 of file TSGFromPropagation.h.

60 { return theUpdator.get(); }

References theUpdator.

Referenced by trackerSeeds().

◆ validMeasurements()

void TSGFromPropagation::validMeasurements ( std::vector< TrajectoryMeasurement > &  tms) const
private

select valid measurements

Definition at line 258 of file TSGFromPropagation.cc.

258  {
259  std::vector<TrajectoryMeasurement>::iterator tmsend = std::remove_if(tms.begin(), tms.end(), isInvalid());
260  tms.erase(tmsend, tms.end());
261  return;
262 }

Referenced by findMeasurements().

◆ zDis()

double TSGFromPropagation::zDis ( const TrajectoryStateOnSurface tsos) const
private

Member Data Documentation

◆ beamSpot

edm::Handle<reco::BeamSpot> TSGFromPropagation::beamSpot
private

Definition at line 150 of file TSGFromPropagation.h.

Referenced by passSelection(), and setEvent().

◆ theBeamSpotToken

const edm::EDGetTokenT<reco::BeamSpot> TSGFromPropagation::theBeamSpotToken
private

Definition at line 151 of file TSGFromPropagation.h.

Referenced by setEvent().

◆ theCacheId_MT

unsigned long long TSGFromPropagation::theCacheId_MT
private

Definition at line 108 of file TSGFromPropagation.h.

Referenced by init(), and setEvent().

◆ theCacheId_TG

unsigned long long TSGFromPropagation::theCacheId_TG
private

Definition at line 109 of file TSGFromPropagation.h.

Referenced by init(), and setEvent().

◆ theCategory

const std::string TSGFromPropagation::theCategory
private

Definition at line 111 of file TSGFromPropagation.h.

Referenced by setEvent(), trackerSeeds(), and ~TSGFromPropagation().

◆ theErrorMatrixAdjuster

std::unique_ptr<MuonErrorMatrix> TSGFromPropagation::theErrorMatrixAdjuster
private

Definition at line 144 of file TSGFromPropagation.h.

Referenced by adjust(), and init().

◆ theErrorMatrixPset

const edm::ParameterSet TSGFromPropagation::theErrorMatrixPset
private

Definition at line 148 of file TSGFromPropagation.h.

Referenced by init().

◆ theEstimator

std::unique_ptr<const Chi2MeasurementEstimator> TSGFromPropagation::theEstimator
private

Definition at line 125 of file TSGFromPropagation.h.

Referenced by estimator(), and init().

◆ theFixedErrorRescaling

const double TSGFromPropagation::theFixedErrorRescaling
private

Definition at line 131 of file TSGFromPropagation.h.

Referenced by adjust().

◆ theFlexErrorRescaling

double TSGFromPropagation::theFlexErrorRescaling
private

Definition at line 129 of file TSGFromPropagation.h.

Referenced by adjust(), getRescalingFactor(), and init().

◆ theMaxChi2

const double TSGFromPropagation::theMaxChi2
private

Definition at line 127 of file TSGFromPropagation.h.

Referenced by init().

◆ theMeasTracker

edm::ESHandle<MeasurementTracker> TSGFromPropagation::theMeasTracker
private

Definition at line 116 of file TSGFromPropagation.h.

Referenced by setEvent().

◆ theMeasTrackerEvent

edm::Handle<MeasurementTrackerEvent> TSGFromPropagation::theMeasTrackerEvent
private

Definition at line 117 of file TSGFromPropagation.h.

Referenced by findMeasurements(), and setEvent().

◆ theMeasTrackerName

const std::string TSGFromPropagation::theMeasTrackerName
private

Definition at line 115 of file TSGFromPropagation.h.

Referenced by setEvent().

◆ theMeasurementTrackerEventToken

const edm::EDGetTokenT<MeasurementTrackerEvent> TSGFromPropagation::theMeasurementTrackerEventToken
private

Definition at line 152 of file TSGFromPropagation.h.

Referenced by setEvent().

◆ theNavigation

std::unique_ptr<const DirectTrackerNavigation> TSGFromPropagation::theNavigation
private

Definition at line 119 of file TSGFromPropagation.h.

Referenced by init(), setEvent(), and trackerSeeds().

◆ thePropagatorName

const std::string TSGFromPropagation::thePropagatorName
private

Definition at line 142 of file TSGFromPropagation.h.

Referenced by propagator().

◆ theResetMethod

const ResetMethod TSGFromPropagation::theResetMethod
private

Definition at line 138 of file TSGFromPropagation.h.

Referenced by adjust(), init(), and trackerSeeds().

◆ theSelectStateFlag

const bool TSGFromPropagation::theSelectStateFlag
private

Definition at line 140 of file TSGFromPropagation.h.

Referenced by passSelection().

◆ theService

const MuonServiceProxy* TSGFromPropagation::theService
private

Definition at line 121 of file TSGFromPropagation.h.

Referenced by init(), innerState(), outerTkState(), propagator(), and setEvent().

◆ theSigmaZ

const double TSGFromPropagation::theSigmaZ
private

Definition at line 146 of file TSGFromPropagation.h.

Referenced by passSelection().

◆ theTracker

edm::ESHandle<GeometricSearchTracker> TSGFromPropagation::theTracker
private

Definition at line 113 of file TSGFromPropagation.h.

Referenced by init(), and setEvent().

◆ theUpdateStateFlag

const bool TSGFromPropagation::theUpdateStateFlag
private

Definition at line 135 of file TSGFromPropagation.h.

Referenced by setEvent(), and trackerSeeds().

◆ theUpdator

std::unique_ptr<const TrajectoryStateUpdator> TSGFromPropagation::theUpdator
private

Definition at line 123 of file TSGFromPropagation.h.

Referenced by init(), and updator().

◆ theUseVertexStateFlag

const bool TSGFromPropagation::theUseVertexStateFlag
private

Definition at line 133 of file TSGFromPropagation.h.

Referenced by outerTkState().

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
TSGFromPropagation::innerState
TrajectoryStateOnSurface innerState(const TrackCand &) const
Definition: TSGFromPropagation.cc:207
service
Definition: service.py:1
alignBH_cfg.fixed
fixed
Definition: alignBH_cfg.py:54
mps_fire.i
i
Definition: mps_fire.py:428
TSGFromPropagation::theUpdator
std::unique_ptr< const TrajectoryStateUpdator > theUpdator
Definition: TSGFromPropagation.h:123
MuonErrorMatrix::multiply
static void multiply(CurvilinearTrajectoryError &initial_error, const CurvilinearTrajectoryError &scale_error)
multiply term by term the two matrix
Definition: MuonErrorMatrix.cc:445
TSGFromPropagation::theErrorMatrixPset
const edm::ParameterSet theErrorMatrixPset
Definition: TSGFromPropagation.h:148
TSGFromPropagation::ResetMethod::fixed
trajectoryStateTransform::initialFreeState
FreeTrajectoryState initialFreeState(const reco::Track &tk, const MagneticField *field, bool withErr=true)
Definition: TrajectoryStateTransform.cc:58
TSGFromPropagation::findMeasurements
std::vector< TrajectoryMeasurement > findMeasurements(const DetLayer *, const TrajectoryStateOnSurface &) const
look for measurements on the first compatible layer
Definition: TSGFromPropagation.cc:264
makeMuonMisalignmentScenario.matrix
list matrix
Definition: makeMuonMisalignmentScenario.py:141
TSGFromPropagation::validMeasurements
void validMeasurements(std::vector< TrajectoryMeasurement > &) const
select valid measurements
Definition: TSGFromPropagation.cc:258
TSGFromPropagation::estimator
const Chi2MeasurementEstimator * estimator() const
Definition: TSGFromPropagation.h:62
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
TSGFromPropagation::passSelection
bool passSelection(const TrajectoryStateOnSurface &) const
check some quantity and beam-spot compatibility and decide to continue
Definition: TSGFromPropagation.cc:291
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
reco::BeamSpot::z0
double z0() const
z coordinate
Definition: BeamSpot.h:65
trajectoryStateTransform::persistentState
PTrajectoryStateOnDet persistentState(const TrajectoryStateOnSurface &ts, unsigned int detid)
Definition: TrajectoryStateTransform.cc:14
TrajectoryStateOnSurface::globalPosition
GlobalPoint globalPosition() const
Definition: TrajectoryStateOnSurface.h:65
oppositeToMomentum
Definition: PropagationDirection.h:4
TSGFromPropagation::theEstimator
std::unique_ptr< const Chi2MeasurementEstimator > theEstimator
Definition: TSGFromPropagation.h:125
TSGFromPropagation::theNavigation
std::unique_ptr< const DirectTrackerNavigation > theNavigation
Definition: TSGFromPropagation.h:119
TSGFromPropagation::theService
const MuonServiceProxy * theService
Definition: TSGFromPropagation.h:121
TSGFromPropagation::theMeasTrackerName
const std::string theMeasTrackerName
Definition: TSGFromPropagation.h:115
GeometricSearchDet::compatibleDets
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
Definition: GeometricSearchDet.cc:35
TrackerRecoGeometryRecord
Definition: TrackerRecoGeometryRecord.h:14
TSGFromPropagation::ResetMethod::discrete
TSGFromPropagation::getRescalingFactor
void getRescalingFactor(const TrackCand &staMuon)
Definition: TSGFromPropagation.cc:317
TSGFromPropagation::theMeasurementTrackerEventToken
const edm::EDGetTokenT< MeasurementTrackerEvent > theMeasurementTrackerEventToken
Definition: TSGFromPropagation.h:152
TSGFromPropagation::propagator
edm::ESHandle< Propagator > propagator() const
Definition: TSGFromPropagation.h:64
TSGFromPropagation::theCategory
const std::string theCategory
Definition: TSGFromPropagation.h:111
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
TrajectoryStateOnSurface::freeState
FreeTrajectoryState const * freeState(bool withErrors=true) const
Definition: TrajectoryStateOnSurface.h:58
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
CurvilinearTrajectoryError
Definition: CurvilinearTrajectoryError.h:27
CkfComponentsRecord
Definition: CkfComponentsRecord.h:22
TSGFromPropagation::theSigmaZ
const double theSigmaZ
Definition: TSGFromPropagation.h:146
TSGFromPropagation::ResetMethod::matrix
TSGFromPropagation::theMaxChi2
const double theMaxChi2
Definition: TSGFromPropagation.h:127
TSGFromPropagation::TSGFromPropagation
TSGFromPropagation(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
constructor
Definition: TSGFromPropagation.cc:29
reco::BeamSpot
Definition: BeamSpot.h:21
MeasurementTrackerEvent::idToDet
MeasurementDetWithData idToDet(const DetId &id) const
Previous MeasurementDetSystem interface.
Definition: MeasurementTrackerEvent.h:76
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
TSGFromPropagation::theResetMethod
const ResetMethod theResetMethod
Definition: TSGFromPropagation.h:138
TSGFromPropagation::theTracker
edm::ESHandle< GeometricSearchTracker > theTracker
Definition: TSGFromPropagation.h:113
MuonServiceProxy::eventSetup
const edm::EventSetup & eventSetup() const
Definition: MuonServiceProxy.h:76
TrajectoryStateUpdator::update
virtual TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TrackingRecHit &) const =0
MeasurementTrackerEvent
Definition: MeasurementTrackerEvent.h:16
edm::ParameterSet
Definition: ParameterSet.h:47
TSGFromPropagation::outerTkState
TrajectoryStateOnSurface outerTkState(const TrackCand &) const
Definition: TSGFromPropagation.cc:228
PV3DBase::eta
T eta() const
Definition: PV3DBase.h:73
TSGFromPropagation::theBeamSpotToken
const edm::EDGetTokenT< reco::BeamSpot > theBeamSpotToken
Definition: TSGFromPropagation.h:151
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
TSGFromPropagation::theMeasTracker
edm::ESHandle< MeasurementTracker > theMeasTracker
Definition: TSGFromPropagation.h:116
MuonServiceProxy::propagator
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
Definition: MuonServiceProxy.cc:177
iEvent
int iEvent
Definition: GenABIO.cc:224
StateOnTrackerBound
Definition: StateOnTrackerBound.h:13
TSGFromPropagation::theFixedErrorRescaling
const double theFixedErrorRescaling
Definition: TSGFromPropagation.h:131
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
get
#define get
TSGFromPropagation::theSelectStateFlag
const bool theSelectStateFlag
Definition: TSGFromPropagation.h:140
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TSGFromPropagation::zDis
double zDis(const TrajectoryStateOnSurface &tsos) const
Definition: TSGFromPropagation.cc:312
TrajectoryStateOnSurface::globalMomentum
GlobalVector globalMomentum() const
Definition: TrajectoryStateOnSurface.h:66
TSGFromPropagation::beamSpot
edm::Handle< reco::BeamSpot > beamSpot
Definition: TSGFromPropagation.h:150
TSGFromPropagation::thePropagatorName
const std::string thePropagatorName
Definition: TSGFromPropagation.h:142
RunInfoPI::state
state
Definition: RunInfoPayloadInspectoHelper.h:16
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
TSGFromPropagation::theUseVertexStateFlag
const bool theUseVertexStateFlag
Definition: TSGFromPropagation.h:133
TSGFromPropagation::adjust
void adjust(FreeTrajectoryState &) const
adjust the error matrix of the FTS
Definition: TSGFromPropagation.cc:328
MuonServiceProxy::trackingGeometry
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
Definition: MuonServiceProxy.h:59
TSGFromPropagation::theMeasTrackerEvent
edm::Handle< MeasurementTrackerEvent > theMeasTrackerEvent
Definition: TSGFromPropagation.h:117
TrajectorySeed
Definition: TrajectorySeed.h:18
MuonServiceProxy::magneticField
edm::ESHandle< MagneticField > magneticField() const
get the magnetic field
Definition: MuonServiceProxy.h:56
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TSGFromPropagation::theUpdateStateFlag
const bool theUpdateStateFlag
Definition: TSGFromPropagation.h:135
edm::OwnVector::push_back
void push_back(D *&d)
Definition: OwnVector.h:326
TSGFromPropagation::createSeed
TrajectorySeed createSeed(const TrajectoryStateOnSurface &, const DetId &) const
create a hitless seed from a trajectory state
Definition: TSGFromPropagation.cc:246
mps_fire.result
result
Definition: mps_fire.py:311
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:234
PTrajectoryStateOnDet
Definition: PTrajectoryStateOnDet.h:10
trajectoryStateTransform::innerStateOnSurface
TrajectoryStateOnSurface innerStateOnSurface(const reco::Track &tk, const TrackingGeometry &geom, const MagneticField *field, bool withErr=true)
Definition: TrajectoryStateTransform.cc:110
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
TSGFromPropagation::theFlexErrorRescaling
double theFlexErrorRescaling
Definition: TSGFromPropagation.h:129
PV3DBase::perp
T perp() const
Definition: PV3DBase.h:69
edm::InputTag
Definition: InputTag.h:15
alongMomentum
Definition: PropagationDirection.h:4
TSGFromPropagation::updator
const TrajectoryStateUpdator * updator() const
Definition: TSGFromPropagation.h:60
edm::ParameterSet::empty
bool empty() const
Definition: ParameterSet.h:201
TrajectoryStateOnSurface::isValid
bool isValid() const
Definition: TrajectoryStateOnSurface.h:54
TSGFromPropagation::theCacheId_TG
unsigned long long theCacheId_TG
Definition: TSGFromPropagation.h:109
edm::OwnVector< TrackingRecHit >
TSGFromPropagation::theErrorMatrixAdjuster
std::unique_ptr< MuonErrorMatrix > theErrorMatrixAdjuster
Definition: TSGFromPropagation.h:144
TSGFromPropagation::theCacheId_MT
unsigned long long theCacheId_MT
Definition: TSGFromPropagation.h:108