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  virtual ~TSGForOI();
37  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
38  virtual void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
39 private:
42 
44  unsigned int numOfMaxSeeds_;
45 
47  const unsigned int numOfLayersToTry_;
48 
50  const unsigned int numOfHitsToTry_;
51 
55 
59 
62 
64  const double minEtaForTEC_;
65 
67  const double maxEtaForTOB_;
68 
71  const bool useHitLessSeeds_;
72 
75 
78 
80  std::unique_ptr<TrajectoryStateUpdator> updator_;
81 
83 
85  const double pT1_,pT2_,pT3_;
86  const double eta1_,eta2_;
87  const double SF1_,SF2_,SF3_,SF4_,SF5_;
88 
90  const double tsosDiff_;
91 
95  unsigned int numSeedsMade_;
96  unsigned int layerCount_;
97 
105 
107  void findSeedsOnLayer(const GeometricSearchDet &layer,
108  const TrajectoryStateOnSurface &tsosAtIP,
111  const reco::TrackRef l2,
112  std::unique_ptr<std::vector<TrajectorySeed> >& seeds);
113 
115  double calculateSFFromL2(const reco::TrackRef track);
116 
118  int makeSeedsFromHits(const GeometricSearchDet &layer,
119  const TrajectoryStateOnSurface &state,
120  std::vector<TrajectorySeed> &out,
122  const MeasurementTrackerEvent &mte,
123  double errorSF);
124 
125 
126 };
127 
128 #endif
double calculateSFFromL2(const reco::TrackRef track)
Function used to calculate the dynamic error SF by analysing the L2.
Definition: TSGForOI.cc:216
const std::string estimatorName_
Estimator used to find dets and TrajectoryMeasurements.
Definition: TSGForOI.h:61
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: TSGForOI.cc:54
std::unique_ptr< TrajectoryStateUpdator > updator_
KFUpdator defined in constructor.
Definition: TSGForOI.h:80
edm::ESHandle< Propagator > propagatorAlong_
Definition: TSGForOI.h:100
const double tsosDiff_
Distance of TSOSs to trigger using hits or not.
Definition: TSGForOI.h:90
void findSeedsOnLayer(const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsosAtIP, const Propagator &propagatorAlong, const Propagator &propagatorOpposite, const reco::TrackRef l2, std::unique_ptr< std::vector< TrajectorySeed > > &seeds)
Function to find seeds on a given layer.
Definition: TSGForOI.cc:163
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: TSGForOI.cc:303
const double SF3_
Definition: TSGForOI.h:87
edm::ESHandle< MagneticField > magfield_
Definition: TSGForOI.h:99
const double maxEtaForTOB_
Maximum eta value to activate searching in the TOB.
Definition: TSGForOI.h:67
virtual ~TSGForOI()
Definition: TSGForOI.cc:50
unsigned int numSeedsMade_
Definition: TSGForOI.h:95
const double minEtaForTEC_
Minimum eta value to activate searching in the TEC.
Definition: TSGForOI.h:64
int iEvent
Definition: GenABIO.cc:230
unsigned int layerCount_
Definition: TSGForOI.h:96
const double fixedErrorRescalingForHits_
How much to rescale errors from the L2 (fixed error vs pT, eta)
Definition: TSGForOI.h:53
bool foundHitlessSeed_
Definition: TSGForOI.h:94
const double eta2_
Definition: TSGForOI.h:86
const bool useHitLessSeeds_
Definition: TSGForOI.h:71
const unsigned int numOfLayersToTry_
How many layers to try.
Definition: TSGForOI.h:47
const double SF1_
Definition: TSGForOI.h:87
const bool useStereoLayersInTEC_
Switch ON to use Stereo layers instead of using every layer in TEC.
Definition: TSGForOI.h:74
const double SF5_
Definition: TSGForOI.h:87
Create L3MuonTrajectorySeeds from L2 Muons updated at vertex in an outside in manner.
Definition: TSGForOI.h:33
const bool adjustErrorsDynamicallyForHitless_
Definition: TSGForOI.h:58
unsigned int numOfMaxSeeds_
Maximum number of seeds for each L2.
Definition: TSGForOI.h:44
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:98
const edm::EDGetTokenT< reco::TrackCollection > src_
Labels for input collections.
Definition: TSGForOI.h:41
edm::ESHandle< Chi2MeasurementEstimatorBase > estimator_
Definition: TSGForOI.h:104
bool analysedL2_
Counters and flags for the implementation.
Definition: TSGForOI.h:93
const bool adjustErrorsDynamicallyForHits_
Whether or not to use an automatically calculated scale-factor value.
Definition: TSGForOI.h:57
Plane::PlanePointer dummyPlane_
Surface used to make a TSOS at the PCA to the beamline.
Definition: TSGForOI.h:77
edm::ESHandle< Propagator > propagatorOpposite_
Definition: TSGForOI.h:101
TSGForOI(const edm::ParameterSet &iConfig)
Definition: TSGForOI.cc:15
const edm::EDGetTokenT< MeasurementTrackerEvent > measurementTrackerTag_
Definition: TSGForOI.h:82
edm::ESHandle< GlobalTrackingGeometry > geometry_
Definition: TSGForOI.h:102
const double SF2_
Definition: TSGForOI.h:87
edm::Handle< MeasurementTrackerEvent > measurementTracker_
Definition: TSGForOI.h:103
const unsigned int numOfHitsToTry_
How many hits to try per layer.
Definition: TSGForOI.h:50
const double fixedErrorRescalingForHitless_
Definition: TSGForOI.h:54
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:241