CMS 3D CMS Logo

TSGForOIFromL2.h
Go to the documentation of this file.
1 #ifndef RecoMuon_TrackerSeedGenerator_TSGForOIFromL2_H
2 #define RecoMuon_TrackerSeedGenerator_TSGForOIFromL2_H
3 
33 
35 public:
36  explicit TSGForOIFromL2(const edm::ParameterSet& iConfig);
37  ~TSGForOIFromL2() override;
38  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
39  void produce(edm::StreamID sid, edm::Event& iEvent, const edm::EventSetup& iSetup) const override;
40 
41 private:
44 
46  const unsigned int maxSeeds_;
47 
49  const unsigned int maxHitlessSeeds_;
50 
52  const unsigned int maxHitSeeds_;
53 
55  const unsigned int numOfLayersToTry_;
56 
58  const unsigned int numOfHitsToTry_;
59 
61  const unsigned int numL2ValidHitsCutAllEta_;
62  const unsigned int numL2ValidHitsCutAllEndcap_;
63 
67 
71 
74 
76  const double minEtaForTEC_;
77 
79  const double maxEtaForTOB_;
80 
83  const bool useHitLessSeeds_;
84 
86  const std::unique_ptr<TrajectoryStateUpdator> updator_;
87 
89 
91  const double pT1_, pT2_, pT3_;
92  const double eta1_, eta2_, eta3_, eta4_, eta5_, eta6_, eta7_;
93  const double SF1_, SF2_, SF3_, SF4_, SF5_, SF6_;
94 
96  const double tsosDiff1_;
97  const double tsosDiff2_;
98 
102 
105  const TrajectoryStateOnSurface& tsos,
108  double errorSF,
109  unsigned int& hitlessSeedsMade,
110  unsigned int& numSeedsMade,
111  std::vector<TrajectorySeed>& out) const;
112 
115  const TrajectoryStateOnSurface& tsos,
119  double errorSF,
120  unsigned int& hitSeedsMade,
121  unsigned int& numSeedsMade,
122  unsigned int& layerCount,
123  std::vector<TrajectorySeed>& out) const;
124 
126  double calculateSFFromL2(const reco::TrackRef track) const;
127 
129  double match_Chi2(const TrajectoryStateOnSurface& tsos1, const TrajectoryStateOnSurface& tsos2) const;
130 };
131 
132 #endif
Propagator.h
edm::StreamID
Definition: StreamID.h:30
Chi2MeasurementEstimator.h
TrajMeasLessEstim.h
TrajectoryStateOnSurface.h
MeasurementTrackerEvent.h
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11713
MessageLogger.h
TSGForOIFromL2::pT2_
const double pT2_
Definition: TSGForOIFromL2.h:91
TSGForOIFromL2::SF2_
const double SF2_
Definition: TSGForOIFromL2.h:93
ESHandle.h
HLTSiStripMonitoring_cff.measurementTracker
measurementTracker
Definition: HLTSiStripMonitoring_cff.py:178
TSGForOIFromL2::useHitLessSeeds_
const bool useHitLessSeeds_
Definition: TSGForOIFromL2.h:83
edm::EDGetTokenT< reco::TrackCollection >
TSGForOIFromL2::SF4_
const double SF4_
Definition: TSGForOIFromL2.h:93
TSGForOIFromL2::SF5_
const double SF5_
Definition: TSGForOIFromL2.h:93
TSGForOIFromL2::makeSeedsWithoutHits
void makeSeedsWithoutHits(const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsos, const Propagator &propagatorAlong, edm::ESHandle< Chi2MeasurementEstimatorBase > &estimator, double errorSF, unsigned int &hitlessSeedsMade, unsigned int &numSeedsMade, std::vector< TrajectorySeed > &out) const
Create seeds without hits on a given layer (TOB or TEC)
Definition: TSGForOIFromL2.cc:329
TSGForOIFromL2::src_
const edm::EDGetTokenT< reco::TrackCollection > src_
Labels for input collections.
Definition: TSGForOIFromL2.h:43
TSGForOIFromL2::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: TSGForOIFromL2.cc:509
TSGForOIFromL2::match_Chi2
double match_Chi2(const TrajectoryStateOnSurface &tsos1, const TrajectoryStateOnSurface &tsos2) const
Find compatability between two TSOSs.
Definition: TSGForOIFromL2.cc:487
TSGForOIFromL2::TSGForOIFromL2
TSGForOIFromL2(const edm::ParameterSet &iConfig)
Definition: TSGForOIFromL2.cc:14
edm::Handle< MeasurementTrackerEvent >
TSGForOIFromL2::numL2ValidHitsCutAllEndcap_
const unsigned int numL2ValidHitsCutAllEndcap_
Definition: TSGForOIFromL2.h:62
TSGForOIFromL2::tsosDiff1_
const double tsosDiff1_
Distance of L2 TSOSs before and after updated with vertex.
Definition: TSGForOIFromL2.h:96
TSGForOIFromL2::maxSeeds_
const unsigned int maxSeeds_
Maximum number of seeds for each L2.
Definition: TSGForOIFromL2.h:46
TSGForOIFromL2::minEtaForTEC_
const double minEtaForTEC_
Minimum eta value to activate searching in the TEC.
Definition: TSGForOIFromL2.h:76
edm::Ref< TrackCollection >
TSGForOIFromL2::produce
void produce(edm::StreamID sid, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
Definition: TSGForOIFromL2.cc:62
TSGForOIFromL2::~TSGForOIFromL2
~TSGForOIFromL2() override
Definition: TSGForOIFromL2.cc:57
Propagator
Definition: Propagator.h:44
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
MakerMacros.h
TrackerTopology.h
TSGForOIFromL2::adjustErrorsDynamicallyForHits_
const bool adjustErrorsDynamicallyForHits_
Whether or not to use an automatically calculated scale-factor value.
Definition: TSGForOIFromL2.h:69
Track.h
PVValHelper::estimator
estimator
Definition: PVValidationHelpers.h:45
TSGForOIFromL2::pT3_
const double pT3_
Definition: TSGForOIFromL2.h:91
TSGForOIFromL2
Create L3MuonTrajectorySeeds from L2 Muons updated at vertex in an outside-in manner.
Definition: TSGForOIFromL2.h:34
TSGForOIFromL2::measurementTrackerTag_
const edm::EDGetTokenT< MeasurementTrackerEvent > measurementTrackerTag_
Definition: TSGForOIFromL2.h:88
TSGForOIFromL2::maxHitlessSeeds_
const unsigned int maxHitlessSeeds_
Maximum number of hitless seeds for each L2.
Definition: TSGForOIFromL2.h:49
TSGForOIFromL2::eta2_
const double eta2_
Definition: TSGForOIFromL2.h:92
TSGForOIFromL2::maxHitSeeds_
const unsigned int maxHitSeeds_
Maximum number of hitbased seeds for each L2.
Definition: TSGForOIFromL2.h:52
IdealMagneticFieldRecord.h
edm::ESHandle< Chi2MeasurementEstimatorBase >
TSGForOIFromL2::maxEtaForTOB_
const double maxEtaForTOB_
Maximum eta value to activate searching in the TOB.
Definition: TSGForOIFromL2.h:79
GlobalTrackingGeometryRecord.h
edm::global::EDProducer
Definition: EDProducer.h:32
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
TSGForOIFromL2::tsosDiff2_
const double tsosDiff2_
Definition: TSGForOIFromL2.h:97
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TSGForOIFromL2::SF6_
const double SF6_
Definition: TSGForOIFromL2.h:93
TSGForOIFromL2::eta3_
const double eta3_
Definition: TSGForOIFromL2.h:92
KFUpdator.h
TSGForOIFromL2::eta1_
const double eta1_
Definition: TSGForOIFromL2.h:92
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
TSGForOIFromL2::theCategory_
const std::string theCategory_
Definition: TSGForOIFromL2.h:101
TSGForOIFromL2::SF3_
const double SF3_
Definition: TSGForOIFromL2.h:93
iEvent
int iEvent
Definition: GenABIO.cc:224
TSGForOIFromL2::adjustErrorsDynamicallyForHitless_
const bool adjustErrorsDynamicallyForHitless_
Definition: TSGForOIFromL2.h:70
TSGForOIFromL2::fixedErrorRescalingForHits_
const double fixedErrorRescalingForHits_
Rescale L2 parameter uncertainties (fixed error vs pT, eta)
Definition: TSGForOIFromL2.h:65
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:58
TSGForOIFromL2::pT1_
const double pT1_
pT, eta ranges and scale factor values
Definition: TSGForOIFromL2.h:91
TSGForOIFromL2::SF1_
const double SF1_
Definition: TSGForOIFromL2.h:93
TSGForOIFromL2::eta7_
const double eta7_
Definition: TSGForOIFromL2.h:92
TSGForOIFromL2::numL2ValidHitsCutAllEta_
const unsigned int numL2ValidHitsCutAllEta_
L2 valid hit cuts to decide seed creation by both states.
Definition: TSGForOIFromL2.h:61
TSGForOIFromL2::propagatorName_
const std::string propagatorName_
Counters and flags for the implementation.
Definition: TSGForOIFromL2.h:100
HLT_FULL_cff.propagatorAlong
propagatorAlong
Definition: HLT_FULL_cff.py:118
TSGForOIFromL2::numOfLayersToTry_
const unsigned int numOfLayersToTry_
How many layers to try.
Definition: TSGForOIFromL2.h:55
TrackingComponentsRecord.h
EventSetup.h
TSGForOIFromL2::eta4_
const double eta4_
Definition: TSGForOIFromL2.h:92
TSGForOIFromL2::updator_
const std::unique_ptr< TrajectoryStateUpdator > updator_
KFUpdator defined in constructor.
Definition: TSGForOIFromL2.h:86
TrajectoryStateTransform.h
TSGForOIFromL2::makeSeedsFromHits
void makeSeedsFromHits(const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsos, const Propagator &propagatorAlong, edm::ESHandle< Chi2MeasurementEstimatorBase > &estimator, edm::Handle< MeasurementTrackerEvent > &measurementTracker, double errorSF, unsigned int &hitSeedsMade, unsigned int &numSeedsMade, unsigned int &layerCount, std::vector< TrajectorySeed > &out) const
Find hits on a given layer (TOB or TEC) and create seeds from updated TSOS with hit.
Definition: TSGForOIFromL2.cc:363
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
ParameterSet.h
GeometricSearchDet
Definition: GeometricSearchDet.h:17
StateOnTrackerBound.h
EDProducer.h
TSGForOIFromL2::eta5_
const double eta5_
Definition: TSGForOIFromL2.h:92
GlobalTrackingGeometry.h
edm::Event
Definition: Event.h:73
TSGForOIFromL2::eta6_
const double eta6_
Definition: TSGForOIFromL2.h:92
TSGForOIFromL2::numOfHitsToTry_
const unsigned int numOfHitsToTry_
How many hits to try per layer.
Definition: TSGForOIFromL2.h:58
TSGForOIFromL2::fixedErrorRescalingForHitless_
const double fixedErrorRescalingForHitless_
Definition: TSGForOIFromL2.h:66
MeasurementDet.h
TSGForOIFromL2::estimatorName_
const std::string estimatorName_
Estimator used to find dets and TrajectoryMeasurements.
Definition: TSGForOIFromL2.h:73
TSGForOIFromL2::calculateSFFromL2
double calculateSFFromL2(const reco::TrackRef track) const
Calculate the dynamic error SF by analysing the L2.
Definition: TSGForOIFromL2.cc:440