CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TSGForOI.h
Go to the documentation of this file.
1 #ifndef RecoMuon_TrackerSeedGenerator_TSGForOI_H
2 #define RecoMuon_TrackerSeedGenerator_TSGForOI_H
3 
33 
35 public:
36  explicit TSGForOI(const edm::ParameterSet & iConfig);
37  virtual ~TSGForOI();
38  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
39  virtual void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
40 private:
43 
45  unsigned int numOfMaxSeeds_;
46 
48  const unsigned int numOfLayersToTry_;
49 
51  const unsigned int numOfHitsToTry_;
52 
56 
60 
63 
65 
67  const double minEtaForTEC_;
68 
70  const double maxEtaForTOB_;
71 
73  const bool useHitlessSeeds_;
74 
76  const bool useHybridSeeds_;
77 
80 
82  std::unique_ptr<TrajectoryStateUpdator> updator_;
83 
85  const double pT1_,pT2_,pT3_;
86  const double eta1_,eta2_;
87  const double SF1_,SF2_,SF3_,SF4_,SF5_;
88 
90  const double tsosDiffDeltaR_;
91 
96  unsigned int numSeedsMade_;
97  unsigned int layerCount_;
98 
100 
106 
108  void findSeedsOnLayer(const GeometricSearchDet &layer,
109  const TrajectoryStateOnSurface &tsosAtIP,
110  const TrajectoryStateOnSurface &tsosAtMuonSystem,
113  const reco::TrackRef l2,
114  std::auto_ptr<std::vector<TrajectorySeed> >& seeds);
115 
117  double calculateSFFromL2(const GeometricSearchDet& layer,
118  const TrajectoryStateOnSurface &tsosAtMuonSystem,
119  const TrajectoryStateOnSurface &tsosOnLayer,
121  const reco::TrackRef track);
122 
124  int makeSeedsFromHits(const GeometricSearchDet &layer,
125  const TrajectoryStateOnSurface &state,
126  std::vector<TrajectorySeed> &out,
128  const MeasurementTrackerEvent &mte,
129  double errorSF);
130 
132 };
133 
134 #endif
const std::string estimatorName_
Estimator used to find dets and TrajectoryMeasurements.
Definition: TSGForOI.h:62
const double tsosDiffDeltaR_
Difference in deltaR of TSOSs to trigger using hits in hybrid.
Definition: TSGForOI.h:90
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: TSGForOI.cc:50
const bool useHitlessSeeds_
Switch to use hitless seeds or not.
Definition: TSGForOI.h:73
void findSeedsOnLayer(const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsosAtIP, const TrajectoryStateOnSurface &tsosAtMuonSystem, const Propagator &propagatorAlong, const Propagator &propagatorOpposite, const reco::TrackRef l2, std::auto_ptr< std::vector< TrajectorySeed > > &seeds)
Function to find seeds on a given layer.
Definition: TSGForOI.cc:149
std::unique_ptr< TrajectoryStateUpdator > updator_
KFUpdator defined in constructor.
Definition: TSGForOI.h:82
tuple propagatorAlong
Definition: HLT_FULL_cff.py:35
edm::ESHandle< Propagator > propagatorAlong_
Definition: TSGForOI.h:102
const bool adjustErrorsDyanmicallyForHits_
Whether or not to use an automatically calculated SF value.
Definition: TSGForOI.h:58
bool useHitsInHybrid_
Definition: TSGForOI.h:95
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: TSGForOI.cc:283
const double SF3_
Definition: TSGForOI.h:87
edm::ESHandle< MagneticField > magfield_
Definition: TSGForOI.h:101
const double maxEtaForTOB_
Maximum eta value to activate searching in the TOB.
Definition: TSGForOI.h:70
virtual ~TSGForOI()
Definition: TSGForOI.cc:46
unsigned int numSeedsMade_
Definition: TSGForOI.h:96
const double minEtaForTEC_
Minimum eta value to activate searching in the TEC.
Definition: TSGForOI.h:67
int iEvent
Definition: GenABIO.cc:230
unsigned int layerCount_
Definition: TSGForOI.h:97
bool foundCompatibleDet_
Counters and flags for the implementation.
Definition: TSGForOI.h:93
const double fixedErrorRescalingForHits_
How much to rescale errors from STA for fixed option.
Definition: TSGForOI.h:54
const double eta2_
Definition: TSGForOI.h:86
const unsigned int numOfLayersToTry_
How many layers to try.
Definition: TSGForOI.h:48
const double SF1_
Definition: TSGForOI.h:87
const double SF5_
Definition: TSGForOI.h:87
Create L3MuonTrajectorySeeds from L2 Muons updated at vertex in an outside in manner.
Definition: TSGForOI.h:34
unsigned int numOfMaxSeeds_
Maximum number of seeds for each L2.
Definition: TSGForOI.h:45
const double pT1_
pT, eta ranges and scale factor values
Definition: TSGForOI.h:85
const double SF4_
Definition: TSGForOI.h:87
const double pT2_
Definition: TSGForOI.h:85
const double eta1_
Definition: TSGForOI.h:86
const double pT3_
Definition: TSGForOI.h:85
std::string theCategory
Definition: TSGForOI.h:99
const bool useHybridSeeds_
Switch to use hitless + hits for seeds depending on the L2 properties.
Definition: TSGForOI.h:76
const edm::EDGetTokenT< reco::TrackCollection > src_
Labels for input collections.
Definition: TSGForOI.h:42
edm::ESHandle< Chi2MeasurementEstimatorBase > estimator_
Definition: TSGForOI.h:131
bool analysedL2_
Definition: TSGForOI.h:94
Plane::PlanePointer dummyPlane_
Surface used to make a TSOS at the PCA to the beamline.
Definition: TSGForOI.h:79
edm::ESHandle< Propagator > propagatorOpposite_
Definition: TSGForOI.h:103
tuple propagatorOpposite
Definition: HLT_FULL_cff.py:51
TSGForOI(const edm::ParameterSet &iConfig)
Definition: TSGForOI.cc:10
double calculateSFFromL2(const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsosAtMuonSystem, const TrajectoryStateOnSurface &tsosOnLayer, const Propagator &propagatorOpposite, const reco::TrackRef track)
Function used to calculate the dynamic error SF by analysing the L2.
Definition: TSGForOI.cc:208
const edm::EDGetTokenT< MeasurementTrackerEvent > measurementTrackerTag_
Definition: TSGForOI.h:64
edm::ESHandle< GlobalTrackingGeometry > geometry_
Definition: TSGForOI.h:104
const double SF2_
Definition: TSGForOI.h:87
edm::Handle< MeasurementTrackerEvent > measurementTracker_
Definition: TSGForOI.h:105
const bool adjustErrorsDyanmicallyForHitless_
Definition: TSGForOI.h:59
const unsigned int numOfHitsToTry_
How many hits to try on same layer.
Definition: TSGForOI.h:51
const double fixedErrorRescalingForHitless_
Definition: TSGForOI.h:55
int makeSeedsFromHits(const GeometricSearchDet &layer, const TrajectoryStateOnSurface &state, std::vector< TrajectorySeed > &out, const Propagator &propagatorAlong, const MeasurementTrackerEvent &mte, double errorSF)
Function to find hits on layers and create seeds from updated TSOS.
Definition: TSGForOI.cc:236