CMS 3D CMS Logo

TSGForOI.h
Go to the documentation of this file.
1 #ifndef RecoMuon_TrackerSeedGenerator_TSGForOI_H
2 #define RecoMuon_TrackerSeedGenerator_TSGForOI_H
3 
32 
34 public:
35  explicit TSGForOI(const edm::ParameterSet& iConfig);
36  ~TSGForOI() override;
37  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
38  void produce(edm::StreamID sid, edm::Event& iEvent, const edm::EventSetup& iSetup) const override;
39 
40 private:
43 
45  const unsigned int numOfMaxSeedsParam_;
46 
48  const unsigned int numOfLayersToTry_;
49 
51  const unsigned int numOfHitsToTry_;
52 
56 
60 
63 
65  const double minEtaForTEC_;
66 
68  const double maxEtaForTOB_;
69 
72  const bool useHitLessSeeds_;
73 
76 
78  const std::unique_ptr<TrajectoryStateUpdator> updator_;
79 
81 
83  const double pT1_, pT2_, pT3_;
84  const double eta1_, eta2_;
85  const double SF1_, SF2_, SF3_, SF4_, SF5_;
86 
88  const double tsosDiff_;
89 
93 
95  void findSeedsOnLayer(const TrackerTopology* tTopo,
97  const TrajectoryStateOnSurface& tsosAtIP,
100  const reco::TrackRef l2,
102  edm::Handle<MeasurementTrackerEvent>& measurementTrackerH,
103  unsigned int& numSeedsMade,
104  unsigned int& numOfMaxSeeds,
105  unsigned int& layerCount,
106  bool& analysedL2,
107  std::unique_ptr<std::vector<TrajectorySeed> >& out) const;
108 
110  double calculateSFFromL2(const reco::TrackRef track) const;
111 
113  int makeSeedsFromHits(const TrackerTopology* tTopo,
114  const GeometricSearchDet& layer,
115  const TrajectoryStateOnSurface& tsosAtIP,
116  std::vector<TrajectorySeed>& out,
120  unsigned int& numSeedsMade,
121  const double errorSF,
122  const double l2Eta) const;
123 
124  //Find compatability between two TSOSs
125  double match_Chi2(const TrajectoryStateOnSurface& tsos1, const TrajectoryStateOnSurface& tsos2) const;
126 };
127 
128 #endif
Propagator.h
edm::StreamID
Definition: StreamID.h:30
Chi2MeasurementEstimator.h
TrajMeasLessEstim.h
TrajectoryStateOnSurface.h
TSGForOI::adjustErrorsDynamicallyForHits_
const bool adjustErrorsDynamicallyForHits_
Whether or not to use an automatically calculated scale-factor value.
Definition: TSGForOI.h:58
MeasurementTrackerEvent.h
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
TSGForOI::calculateSFFromL2
double calculateSFFromL2(const reco::TrackRef track) const
Function used to calculate the dynamic error SF by analysing the L2.
Definition: TSGForOI.cc:357
TSGForOI::tsosDiff_
const double tsosDiff_
Distance of TSOSs to trigger using hits or not.
Definition: TSGForOI.h:88
MessageLogger.h
TSGForOI::SF2_
const double SF2_
Definition: TSGForOI.h:85
TSGForOI::updator_
const std::unique_ptr< TrajectoryStateUpdator > updator_
KFUpdator defined in constructor.
Definition: TSGForOI.h:78
ESHandle.h
HLTSiStripMonitoring_cff.measurementTracker
measurementTracker
Definition: HLTSiStripMonitoring_cff.py:178
TSGForOI::produce
void produce(edm::StreamID sid, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
Definition: TSGForOI.cc:51
edm::EDGetTokenT< reco::TrackCollection >
TSGForOI
Create L3MuonTrajectorySeeds from L2 Muons updated at vertex in an outside in manner.
Definition: TSGForOI.h:33
TrackerTopology
Definition: TrackerTopology.h:16
TSGForOI::minEtaForTEC_
const double minEtaForTEC_
Minimum eta value to activate searching in the TEC.
Definition: TSGForOI.h:65
TSGForOI::maxEtaForTOB_
const double maxEtaForTOB_
Maximum eta value to activate searching in the TOB.
Definition: TSGForOI.h:68
TSGForOI::numOfLayersToTry_
const unsigned int numOfLayersToTry_
How many layers to try.
Definition: TSGForOI.h:48
edm::Handle< MeasurementTrackerEvent >
TSGForOI::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: TSGForOI.cc:483
edm::Ref< TrackCollection >
Propagator
Definition: Propagator.h:44
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
MakerMacros.h
TSGForOI::SF1_
const double SF1_
Definition: TSGForOI.h:85
Track.h
IdealMagneticFieldRecord.h
edm::ESHandle< Chi2MeasurementEstimatorBase >
TSGForOI::findSeedsOnLayer
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 &analysedL2, std::unique_ptr< std::vector< TrajectorySeed > > &out) const
Function to find seeds on a given layer.
Definition: TSGForOI.cc:284
TSGForOI::propagatorName_
const std::string propagatorName_
Counters and flags for the implementation.
Definition: TSGForOI.h:91
TSGForOI::SF3_
const double SF3_
Definition: TSGForOI.h:85
TSGForOI::match_Chi2
double match_Chi2(const TrajectoryStateOnSurface &tsos1, const TrajectoryStateOnSurface &tsos2) const
Definition: TSGForOI.cc:464
GlobalTrackingGeometryRecord.h
TSGForOI::eta2_
const double eta2_
Definition: TSGForOI.h:84
TSGForOI::~TSGForOI
~TSGForOI() override
Definition: TSGForOI.cc:49
edm::global::EDProducer
Definition: EDProducer.h:32
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
TSGForOI::fixedErrorRescalingForHits_
const double fixedErrorRescalingForHits_
How much to rescale errors from the L2 (fixed error vs pT, eta)
Definition: TSGForOI.h:54
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
TSGForOI::useHitLessSeeds_
const bool useHitLessSeeds_
Definition: TSGForOI.h:72
TSGForOI::pT2_
const double pT2_
Definition: TSGForOI.h:83
TSGForOI::measurementTrackerTag_
const edm::EDGetTokenT< MeasurementTrackerEvent > measurementTrackerTag_
Definition: TSGForOI.h:80
KFUpdator.h
MeasurementTrackerEvent
Definition: MeasurementTrackerEvent.h:16
edm::ParameterSet
Definition: ParameterSet.h:47
HLT_FULL_cff.propagatorOpposite
propagatorOpposite
Definition: HLT_FULL_cff.py:116
Event.h
TSGForOI::eta1_
const double eta1_
Definition: TSGForOI.h:84
TSGForOI::SF4_
const double SF4_
Definition: TSGForOI.h:85
TSGForOI::useStereoLayersInTEC_
const bool useStereoLayersInTEC_
Switch ON to use Stereo layers instead of using every layer in TEC.
Definition: TSGForOI.h:75
iEvent
int iEvent
Definition: GenABIO.cc:224
TSGForOI::src_
const edm::EDGetTokenT< reco::TrackCollection > src_
Labels for input collections.
Definition: TSGForOI.h:42
TSGForOI::numOfHitsToTry_
const unsigned int numOfHitsToTry_
How many hits to try per layer.
Definition: TSGForOI.h:51
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:58
TSGForOI::estimatorName_
const std::string estimatorName_
Estimator used to find dets and TrajectoryMeasurements.
Definition: TSGForOI.h:62
TSGForOI::adjustErrorsDynamicallyForHitless_
const bool adjustErrorsDynamicallyForHitless_
Definition: TSGForOI.h:59
TSGForOI::SF5_
const double SF5_
Definition: TSGForOI.h:85
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TSGForOI::pT1_
const double pT1_
pT, eta ranges and scale factor values
Definition: TSGForOI.h:83
TSGForOI::TSGForOI
TSGForOI(const edm::ParameterSet &iConfig)
Definition: TSGForOI.cc:16
cms::cuda::device::unique_ptr
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
Definition: device_unique_ptr.h:33
HLT_FULL_cff.propagatorAlong
propagatorAlong
Definition: HLT_FULL_cff.py:118
TSGForOI::theCategory
const std::string theCategory
Definition: TSGForOI.h:92
TrackingComponentsRecord.h
EventSetup.h
TrajectoryStateTransform.h
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
TSGForOI::fixedErrorRescalingForHitless_
const double fixedErrorRescalingForHitless_
Definition: TSGForOI.h:55
ParameterSet.h
GeometricSearchDet
Definition: GeometricSearchDet.h:17
StateOnTrackerBound.h
EDProducer.h
GlobalTrackingGeometry.h
TSGForOI::makeSeedsFromHits
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 double l2Eta) const
Function to find hits on layers and create seeds from updated TSOS.
Definition: TSGForOI.cc:388
edm::Event
Definition: Event.h:73
TSGForOI::pT3_
const double pT3_
Definition: TSGForOI.h:83
TSGForOI::numOfMaxSeedsParam_
const unsigned int numOfMaxSeedsParam_
Maximum number of seeds for each L2.
Definition: TSGForOI.h:45
MeasurementDet.h