CMS 3D CMS Logo

TSGForOI.cc
Go to the documentation of this file.
1 
9 
10 #include <memory>
11 
12 using namespace edm;
13 using namespace std;
14 
16  src_(consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("src"))),
17  numOfMaxSeedsParam_(iConfig.getParameter<uint32_t>("maxSeeds")),
18  numOfLayersToTry_(iConfig.getParameter<int32_t>("layersToTry")),
19  numOfHitsToTry_(iConfig.getParameter<int32_t>("hitsToTry")),
20  fixedErrorRescalingForHits_(iConfig.getParameter<double>("fixedErrorRescaleFactorForHits")),
21  fixedErrorRescalingForHitless_(iConfig.getParameter<double>("fixedErrorRescaleFactorForHitless")),
22  adjustErrorsDynamicallyForHits_(iConfig.getParameter<bool>("adjustErrorsDynamicallyForHits")),
23  adjustErrorsDynamicallyForHitless_(iConfig.getParameter<bool>("adjustErrorsDynamicallyForHitless")),
24  estimatorName_(iConfig.getParameter<std::string>("estimator")),
25  minEtaForTEC_(iConfig.getParameter<double>("minEtaForTEC")),
26  maxEtaForTOB_(iConfig.getParameter<double>("maxEtaForTOB")),
27  useHitLessSeeds_(iConfig.getParameter<bool>("UseHitLessSeeds")),
28  useStereoLayersInTEC_(iConfig.getParameter<bool>("UseStereoLayersInTEC")),
29  updator_(new KFUpdator()),
30  measurementTrackerTag_(consumes<MeasurementTrackerEvent>(iConfig.getParameter<edm::InputTag>("MeasurementTrackerEvent"))),
31  pT1_(iConfig.getParameter<double>("pT1")),
32  pT2_(iConfig.getParameter<double>("pT2")),
33  pT3_(iConfig.getParameter<double>("pT3")),
34  eta1_(iConfig.getParameter<double>("eta1")),
35  eta2_(iConfig.getParameter<double>("eta2")),
36  SF1_(iConfig.getParameter<double>("SF1")),
37  SF2_(iConfig.getParameter<double>("SF2")),
38  SF3_(iConfig.getParameter<double>("SF3")),
39  SF4_(iConfig.getParameter<double>("SF4")),
40  SF5_(iConfig.getParameter<double>("SF5")),
41  tsosDiff_(iConfig.getParameter<double>("tsosDiff")),
42  propagatorName_(iConfig.getParameter<std::string>("propagatorName")),
43  theCategory(string("Muon|RecoMuon|TSGForOI"))
44 {
45  produces<std::vector<TrajectorySeed> >();
46 }
47 
48 
50 }
51 
52 
55  unsigned int numOfMaxSeeds = numOfMaxSeedsParam_;
56  unsigned int numSeedsMade=0;
57  bool analysedL2 = false;
58  bool foundHitlessSeed = false;
59  unsigned int layerCount = 0;
60 
61 
64 
66  edm::Handle<MeasurementTrackerEvent> measurementTrackerH;
69  edm::ESHandle<Propagator> propagatorAlongH;
70  edm::ESHandle<Propagator> propagatorOppositeH;
72 
73  iSetup.get<IdealMagneticFieldRecord>().get(magfieldH);
74  iSetup.get<TrackingComponentsRecord>().get(propagatorName_, propagatorOppositeH);
75  iSetup.get<TrackingComponentsRecord>().get(propagatorName_, propagatorAlongH);
76  iSetup.get<GlobalTrackingGeometryRecord>().get(geometryH);
77  iSetup.get<TrackingComponentsRecord>().get(estimatorName_,estimatorH);
78  iEvent.getByToken(measurementTrackerTag_, measurementTrackerH);
79 
82  iEvent.getByToken(src_, l2TrackCol);
83 
84  // The product:
85  std::unique_ptr<std::vector<TrajectorySeed> > result(new std::vector<TrajectorySeed>());
86 
87  // Get vector of Detector layers once:
88  std::vector<BarrelDetLayer const*> const& tob = measurementTrackerH->geometricSearchTracker()->tobLayers();
89  std::vector<ForwardDetLayer const*> const& tecPositive = measurementTrackerH->geometricSearchTracker()->posTecLayers();
90  std::vector<ForwardDetLayer const*> const& tecNegative = measurementTrackerH->geometricSearchTracker()->negTecLayers();
91  edm::ESHandle<TrackerTopology> tTopo_handle;
92  iSetup.get<TrackerTopologyRcd>().get(tTopo_handle);
93  const TrackerTopology* tTopo = tTopo_handle.product();
94 
95  // Get the suitable propagators:
96  std::unique_ptr<Propagator> propagatorAlong = SetPropagationDirection(*propagatorAlongH,alongMomentum);
97  std::unique_ptr<Propagator> propagatorOpposite = SetPropagationDirection(*propagatorOppositeH,oppositeToMomentum);
98 
99  edm::ESHandle<Propagator> SmartOpposite;
100  edm::ESHandle<Propagator> SHPOpposite;
101  iSetup.get<TrackingComponentsRecord>().get("hltESPSmartPropagatorAnyOpposite", SmartOpposite);
102  iSetup.get<TrackingComponentsRecord>().get("hltESPSteppingHelixPropagatorOpposite", SHPOpposite);
103 
104  // Loop over the L2's and make seeds for all of them:
105  LogTrace(theCategory) << "TSGForOI::produce: Number of L2's: " << l2TrackCol->size();
106  for (unsigned int l2TrackColIndex(0);l2TrackColIndex!=l2TrackCol->size();++l2TrackColIndex){
107  const reco::TrackRef l2(l2TrackCol, l2TrackColIndex);
108  std::unique_ptr<std::vector<TrajectorySeed> > out(new std::vector<TrajectorySeed>());
109  LogTrace("TSGForOI") << "TSGForOI::produce: L2 muon pT, eta, phi --> " << l2->pt() << " , " << l2->eta() << " , " << l2->phi() << endl;
110 
112  dummyPlane->move(fts.position() - dummyPlane->position());
113  TrajectoryStateOnSurface tsosAtIP = TrajectoryStateOnSurface(fts, *dummyPlane);
114  LogTrace("TSGForOI") << "TSGForOI::produce: Created TSOSatIP: " << tsosAtIP << std::endl;
115 
116  // get the TSOS on the innermost layer of the L2.
117  TrajectoryStateOnSurface tsosAtMuonSystem = trajectoryStateTransform::innerStateOnSurface(*l2, *geometryH, magfieldH.product());
118  LogTrace("TSGForOI") << "TSGForOI::produce: Created TSOSatMuonSystem: " << tsosAtMuonSystem <<endl;
119 
120  if (useHitLessSeeds_){
121  LogTrace("TSGForOI") << "TSGForOI::produce: Check the error of the L2 parameter and use hit seeds if big errors" << endl;
122  StateOnTrackerBound fromInside(propagatorAlong.get());
123  TrajectoryStateOnSurface outerTkStateInside = fromInside(fts);
124 
125  StateOnTrackerBound fromOutside(&*SmartOpposite);
126  TrajectoryStateOnSurface outerTkStateOutside = fromOutside(tsosAtMuonSystem);
127 
128  // for now only checking if the two positions (using updated and not-updated) agree withing certain extent,
129  // will probably have to design something fancier for the future.
130  auto dist=0.0;
131  if (outerTkStateInside.isValid() && outerTkStateOutside.isValid()){
132  float deta = outerTkStateInside.globalPosition().eta() - outerTkStateOutside.globalPosition().eta();
133  float dphi = outerTkStateInside.globalPosition().phi() - outerTkStateOutside.globalPosition().phi();
134  dist = sqrt(deta*deta+dphi*dphi);
135  }
136  if (dist>tsosDiff_){
137  ++numOfMaxSeeds; // add a hit-based seed
138  }
139  }
140 
141  numSeedsMade=0;
142  analysedL2 = false;
143  foundHitlessSeed = false;
144 
145  // BARREL
146  if (std::abs(l2->eta()) < maxEtaForTOB_) {
147  layerCount = 0;
148  for (auto it=tob.rbegin(); it!=tob.rend(); ++it) { //This goes from outermost to innermost layer
149  LogTrace("TSGForOI") << "TSGForOI::produce: looping in TOB layer " << layerCount << endl;
150  findSeedsOnLayer(tTopo, **it, tsosAtIP, *(propagatorAlong.get()), *(propagatorOpposite.get()), l2,
151  estimatorH, measurementTrackerH, numSeedsMade, numOfMaxSeeds, layerCount, foundHitlessSeed, analysedL2, out);
152  }
153  }
154 
155  // Reset Number of seeds if in overlap region:
156  if (std::abs(l2->eta())>minEtaForTEC_ && std::abs(l2->eta())<maxEtaForTOB_){
157  numSeedsMade=0;
158  }
159 
160  // ENDCAP+
161  if (l2->eta() > minEtaForTEC_) {
162  layerCount = 0;
163  for (auto it=tecPositive.rbegin(); it!=tecPositive.rend(); ++it) {
164  LogTrace("TSGForOI") << "TSGForOI::produce: looping in TEC+ layer " << layerCount << endl;
165  findSeedsOnLayer(tTopo, **it, tsosAtIP, *(propagatorAlong.get()), *(propagatorOpposite.get()), l2,
166  estimatorH, measurementTrackerH, numSeedsMade, numOfMaxSeeds, layerCount, foundHitlessSeed, analysedL2, out);
167  }
168  }
169 
170  // ENDCAP-
171  if (l2->eta() < -minEtaForTEC_) {
172  layerCount = 0;
173  for (auto it=tecNegative.rbegin(); it!=tecNegative.rend(); ++it) {
174  LogTrace("TSGForOI") << "TSGForOI::produce: looping in TEC- layer " << layerCount << endl;
175  findSeedsOnLayer(tTopo, **it, tsosAtIP, *(propagatorAlong.get()), *(propagatorOpposite.get()), l2,
176  estimatorH, measurementTrackerH, numSeedsMade, numOfMaxSeeds, layerCount, foundHitlessSeed, analysedL2, out);
177  }
178  }
179 
180  for (std::vector<TrajectorySeed>::iterator it=out->begin(); it!=out->end(); ++it){
181  result->push_back(*it);
182  }
183  } //L2Collection
184  edm::LogInfo(theCategory) << "TSGForOI::produce: number of seeds made: " << result->size();
185 
186  iEvent.put(std::move(result));
187 }
188 
190  const TrackerTopology* tTopo,
191  const GeometricSearchDet &layer,
192  const TrajectoryStateOnSurface &tsosAtIP,
195  const reco::TrackRef l2,
197  edm::Handle<MeasurementTrackerEvent>& measurementTrackerH,
198  unsigned int& numSeedsMade,
199  unsigned int& numOfMaxSeeds,
200  unsigned int& layerCount,
201  bool& foundHitlessSeed,
202  bool& analysedL2,
203  std::unique_ptr<std::vector<TrajectorySeed> >& out) const{
204 
205  if (numSeedsMade>numOfMaxSeeds) return;
206  LogTrace("TSGForOI") << "TSGForOI::findSeedsOnLayer: numSeedsMade = " << numSeedsMade << " , layerCount = " << layerCount << endl;
207 
208  double errorSFHits=1.0;
209  double errorSFHitless=1.0;
211  else errorSFHits = calculateSFFromL2(l2);
213 
214  // Hitless: TO Be discarded from here at some point.
215  if (useHitLessSeeds_ && !foundHitlessSeed) {
216  LogTrace("TSGForOI") << "TSGForOI::findSeedsOnLayer: Start hitless" << endl;
217  std::vector< GeometricSearchDet::DetWithState > dets;
218  layer.compatibleDetsV(tsosAtIP, propagatorAlong, *estimatorH, dets);
219  if (dets.size()>0) {
220  auto const& detOnLayer = dets.front().first;
221  auto const& tsosOnLayer = dets.front().second;
222  LogTrace("TSGForOI") << "TSGForOI::findSeedsOnLayer: tsosOnLayer " << tsosOnLayer << endl;
223  if (!tsosOnLayer.isValid()){
224  edm::LogInfo(theCategory) << "ERROR!: Hitless TSOS is not valid!";
225  }
226  else{
227  // calculate SF from L2 (only once -- if needed)
228  if (!analysedL2 && adjustErrorsDynamicallyForHitless_) {
229  errorSFHitless=calculateSFFromL2(l2);
230  analysedL2=true;
231  }
232 
233  dets.front().second.rescaleError(errorSFHitless);
234  PTrajectoryStateOnDet const& ptsod = trajectoryStateTransform::persistentState(tsosOnLayer,detOnLayer->geographicalId().rawId());
236  out->push_back(TrajectorySeed(ptsod,rHC,oppositeToMomentum));
237  LogTrace("TSGForOI") << "TSGForOI::findSeedsOnLayer: TSOD (Hitless) done " << endl;
238  foundHitlessSeed=true;
239  numSeedsMade++;
240  }
241  }
242  }
243 
244  // Hits:
245  if (layerCount>numOfLayersToTry_) return;
246  LogTrace("TSGForOI") << "TSGForOI::findSeedsOnLayer: Start Hits" <<endl;
247  if (makeSeedsFromHits(tTopo, layer, tsosAtIP, *out, propagatorAlong, *measurementTrackerH, estimatorH, numSeedsMade, errorSFHits)) ++layerCount;
248 }
249 
251 
252  double theSF=1.0;
253  // L2 direction vs pT blowup - as was previously done:
254  // Split into 4 pT ranges: <pT1_, pT1_<pT2_, pT2_<pT3_, <pT4_: 13,30,70
255  // Split into 2 eta ranges for the middle two pT ranges: 1.0,1.4
256  double abseta = std::abs(track->eta());
257  if (track->pt()<=pT1_) theSF=SF1_;
258  if (track->pt()>pT1_ && track->pt()<=pT2_){
259  if (abseta<=eta1_) theSF=SF3_;
260  if (abseta>eta1_ && abseta<=eta2_) theSF=SF2_;
261  if (abseta>eta2_) theSF=SF3_;
262  }
263  if (track->pt()>pT2_ && track->pt()<=pT3_){
264  if (abseta<=eta1_) theSF=SF5_;
265  if (abseta>eta1_ && abseta<=eta2_) theSF=SF4_;
266  if (abseta>eta2_) theSF=SF5_;
267  }
268  if (track->pt()>pT3_) theSF=SF5_;
269 
270  LogTrace(theCategory) << "TSGForOI::calculateSFFromL2: SF has been calculated as: " << theSF;
271  return theSF;
272 }
273 
274 
276  const TrackerTopology* tTopo,
277  const GeometricSearchDet &layer,
278  const TrajectoryStateOnSurface &tsosAtIP,
279  std::vector<TrajectorySeed> &out,
283  unsigned int& numSeedsMade,
284  const double errorSF) const{
285 
286  // Error Rescaling:
287  TrajectoryStateOnSurface onLayer(tsosAtIP);
288  onLayer.rescaleError(errorSF);
289 
290  std::vector< GeometricSearchDet::DetWithState > dets;
291  layer.compatibleDetsV(onLayer, propagatorAlong, *estimatorH, dets);
292 
293  // Find Measurements on each DetWithState:
294  LogTrace("TSGForOI") << "TSGForOI::findSeedsOnLayer: find measurements on each detWithState " << dets.size() << endl;
295  std::vector<TrajectoryMeasurement> meas;
296  for (std::vector<GeometricSearchDet::DetWithState>::iterator it=dets.begin(); it!=dets.end(); ++it) {
297  MeasurementDetWithData det = measurementTracker.idToDet(it->first->geographicalId());
298  if (det.isNull()) {
299  continue;
300  }
301  if (!it->second.isValid()) continue; //Skip if TSOS is not valid
302 
303  std::vector < TrajectoryMeasurement > mymeas = det.fastMeasurements(it->second, onLayer, propagatorAlong, *estimatorH); //Second TSOS is not used
304  for (std::vector<TrajectoryMeasurement>::const_iterator it2 = mymeas.begin(), ed2 = mymeas.end(); it2 != ed2; ++it2) {
305  if (it2->recHit()->isValid()) meas.push_back(*it2); //Only save those which are valid
306  }
307  }
308 
309 
310  // Update TSOS using TMs after sorting, then create Trajectory Seed and put into vector:
311  LogTrace("TSGForOI") << "TSGForOI::findSeedsOnLayer: Update TSOS using TMs after sorting, then create Trajectory Seed, number of TM = " << meas.size() << endl;
312  unsigned int found = 0;
313  std::sort(meas.begin(), meas.end(), TrajMeasLessEstim());
314  for (std::vector<TrajectoryMeasurement>::const_iterator it=meas.begin(); it!=meas.end(); ++it) {
315  TrajectoryStateOnSurface updatedTSOS = updator_->update(it->forwardPredictedState(), *it->recHit());
316  LogTrace("TSGForOI") << "TSGForOI::findSeedsOnLayer: TSOS for TM " << found << endl;
317  if (not updatedTSOS.isValid()) continue;
318 
319  // CHECK if is StereoLayer:
320  if (useStereoLayersInTEC_) {
321  DetId detid = ((*it).recHit()->hit())->geographicalId();
322  if (detid.subdetId() == StripSubdetector::TEC) {
323  if (!tTopo->tecIsStereo(detid.rawId())) break; // try another layer
324  }
325  }
326 
328  seedHits.push_back(*it->recHit()->hit());
329  PTrajectoryStateOnDet const& pstate = trajectoryStateTransform::persistentState(updatedTSOS, it->recHit()->geographicalId().rawId());
330  TrajectorySeed seed(pstate, std::move(seedHits), oppositeToMomentum);
331  LogTrace("TSGForOI") << "TSGForOI::findSeedsOnLayer: number of seedHits: " << seedHits.size() << endl;
332  out.push_back(seed);
333  found++;
334  numSeedsMade++;
335  if (found == numOfHitsToTry_) break;
336  }
337  return found;
338 }
339 
340 
343  desc.add<edm::InputTag>("src",edm::InputTag("hltL2Muons","UpdatedAtVtx"));
344  desc.add<int>("layersToTry",1);
345  desc.add<double>("fixedErrorRescaleFactorForHitless",2.0);
346  desc.add<int>("hitsToTry",1);
347  desc.add<bool>("adjustErrorsDynamicallyForHits",false);
348  desc.add<bool>("adjustErrorsDynamicallyForHitless",false);
349  desc.add<edm::InputTag>("MeasurementTrackerEvent",edm::InputTag("hltSiStripClusters"));
350  desc.add<bool>("UseHitLessSeeds",true);
351  desc.add<bool>("UseStereoLayersInTEC",false);
352  desc.add<std::string>("estimator","hltESPChi2MeasurementEstimator100");
353  desc.add<double>("maxEtaForTOB",1.2);
354  desc.add<double>("minEtaForTEC",0.8);
355  desc.addUntracked<bool>("debug",true);
356  desc.add<double>("fixedErrorRescaleFactorForHits",2.0);
357  desc.add<unsigned int>("maxSeeds",1);
358  desc.add<double>("pT1",13.0);
359  desc.add<double>("pT2",30.0);
360  desc.add<double>("pT3",70.0);
361  desc.add<double>("eta1",1.0);
362  desc.add<double>("eta2",1.4);
363  desc.add<double>("SF1",3.0);
364  desc.add<double>("SF2",4.0);
365  desc.add<double>("SF3",5.0);
366  desc.add<double>("SF4",7.0);
367  desc.add<double>("SF5",10.0);
368  desc.add<double>("tsosDiff",0.03);
369  desc.add<std::string>("propagatorName","PropagatorWithMaterial");
370  descriptions.add("TSGForOI",desc);
371 }
372 
const std::string estimatorName_
Estimator used to find dets and TrajectoryMeasurements.
Definition: TSGForOI.h:61
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:122
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
virtual void produce(edm::StreamID sid, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
Definition: TSGForOI.cc:53
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
const double tsosDiff_
Distance of TSOSs to trigger using hits or not.
Definition: TSGForOI.h:87
size_type size() const
Definition: OwnVector.h:264
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
PTrajectoryStateOnDet persistentState(const TrajectoryStateOnSurface &ts, unsigned int detid)
const std::string propagatorName_
Counters and flags for the implementation.
Definition: TSGForOI.h:90
GlobalPoint globalPosition() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: TSGForOI.cc:341
const double SF3_
Definition: TSGForOI.h:84
const double maxEtaForTOB_
Maximum eta value to activate searching in the TOB.
Definition: TSGForOI.h:67
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
virtual ~TSGForOI()
Definition: TSGForOI.cc:49
bool tecIsStereo(const DetId &id) const
std::unique_ptr< Propagator > SetPropagationDirection(Propagator const &iprop, PropagationDirection dir)
void push_back(D *&d)
Definition: OwnVector.h:290
const double minEtaForTEC_
Minimum eta value to activate searching in the TEC.
Definition: TSGForOI.h:64
int iEvent
Definition: GenABIO.cc:230
const double fixedErrorRescalingForHits_
How much to rescale errors from the L2 (fixed error vs pT, eta)
Definition: TSGForOI.h:53
const std::unique_ptr< TrajectoryStateUpdator > updator_
KFUpdator defined in constructor.
Definition: TSGForOI.h:77
T sqrt(T t)
Definition: SSEVec.h:18
std::vector< TrajectoryMeasurement > fastMeasurements(const TrajectoryStateOnSurface &stateOnThisDet, const TrajectoryStateOnSurface &tsos2, const Propagator &prop, const MeasurementEstimator &est) const
const double eta2_
Definition: TSGForOI.h:83
static PlanePointer build(Args &&...args)
Definition: Plane.h:33
const bool useHitLessSeeds_
Definition: TSGForOI.h:71
const unsigned int numOfLayersToTry_
How many layers to try.
Definition: TSGForOI.h:47
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const double SF1_
Definition: TSGForOI.h:84
double calculateSFFromL2(const reco::TrackRef track) const
Function used to calculate the dynamic error SF by analysing the L2.
Definition: TSGForOI.cc:250
const bool useStereoLayersInTEC_
Switch ON to use Stereo layers instead of using every layer in TEC.
Definition: TSGForOI.h:74
void findSeedsOnLayer(const TrackerTopology *tTopo, const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsosAtIP, const Propagator &propagatorAlong, const Propagator &propagatorOpposite, const reco::TrackRef l2, edm::ESHandle< Chi2MeasurementEstimatorBase > &estimator_, edm::Handle< MeasurementTrackerEvent > &measurementTrackerH, unsigned int &numSeedsMade, unsigned int &numOfMaxSeeds, unsigned int &layerCount, bool &foundHitlessSeed, bool &analysedL2, std::unique_ptr< std::vector< TrajectorySeed > > &out) const
Function to find seeds on a given layer.
Definition: TSGForOI.cc:189
const double SF5_
Definition: TSGForOI.h:84
ParameterDescriptionBase * add(U const &iLabel, T const &value)
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
#define LogTrace(id)
Create L3MuonTrajectorySeeds from L2 Muons updated at vertex in an outside in manner.
Definition: TSGForOI.h:33
const bool adjustErrorsDynamicallyForHitless_
Definition: TSGForOI.h:58
const double pT1_
pT, eta ranges and scale factor values
Definition: TSGForOI.h:82
const double SF4_
Definition: TSGForOI.h:84
Definition: DetId.h:18
GlobalPoint position() const
const double pT2_
Definition: TSGForOI.h:82
const double eta1_
Definition: TSGForOI.h:83
const double pT3_
Definition: TSGForOI.h:82
int makeSeedsFromHits(const TrackerTopology *tTopo, const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsosAtIP, std::vector< TrajectorySeed > &out, const Propagator &propagatorAlong, const MeasurementTrackerEvent &measurementTracker, edm::ESHandle< Chi2MeasurementEstimatorBase > &estimator_, unsigned int &numSeedsMade, const double errorSF) const
Function to find hits on layers and create seeds from updated TSOS.
Definition: TSGForOI.cc:275
const T & get() const
Definition: EventSetup.h:56
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< reco::TrackCollection > src_
Labels for input collections.
Definition: TSGForOI.h:41
T eta() const
Definition: PV3DBase.h:76
const bool adjustErrorsDynamicallyForHits_
Whether or not to use an automatically calculated scale-factor value.
Definition: TSGForOI.h:57
fixed size matrix
HLT enums.
TSGForOI(const edm::ParameterSet &iConfig)
Definition: TSGForOI.cc:15
const edm::EDGetTokenT< MeasurementTrackerEvent > measurementTrackerTag_
Definition: TSGForOI.h:79
const unsigned int numOfMaxSeedsParam_
Maximum number of seeds for each L2.
Definition: TSGForOI.h:44
const std::string theCategory
Definition: TSGForOI.h:91
const double SF2_
Definition: TSGForOI.h:84
FreeTrajectoryState initialFreeState(const reco::Track &tk, const MagneticField *field, bool withErr=true)
T const * product() const
Definition: ESHandle.h:86
virtual void compatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetWithState > &result) const
def move(src, dest)
Definition: eostools.py:510
const unsigned int numOfHitsToTry_
How many hits to try per layer.
Definition: TSGForOI.h:50
TrajectoryStateOnSurface innerStateOnSurface(const reco::Track &tk, const TrackingGeometry &geom, const MagneticField *field, bool withErr=true)
const double fixedErrorRescalingForHitless_
Definition: TSGForOI.h:54