CMS 3D CMS Logo

PixelHitMatcher.h
Go to the documentation of this file.
1 #ifndef PIXELHITMATCHER_H
2 #define PIXELHITMATCHER_H
3 
4 // -*- C++ -*-
5 //
6 // Package: EgammaElectronAlgos
7 // Class: PixelHitMatcher
8 //
17 //
18 // Original Author: Ursula Berthon, Claude Charlot
19 // Created: Mon Mar 27 13:22:06 CEST 2006
20 //
21 //
22 
25 
30 class TrackerGeometry;
31 class MagneticField;
32 
33 struct SeedWithInfo {
35  const unsigned char hitsMask;
36  const int subDet2;
37  const float dRz2;
38  const float dPhi2;
39  const int subDet1;
40  const float dRz1;
41  const float dPhi1;
42 };
43 
45 public:
46  PixelHitMatcher(float phi1min,
47  float phi1max,
48  float phi2minB,
49  float phi2maxB,
50  float phi2minF,
51  float phi2maxF,
52  float z2minB,
53  float z2maxB,
54  float r2minF,
55  float r2maxF,
56  float rMinI,
57  float rMaxI,
58  bool useRecoVertex);
59 
60  void setES(const MagneticField*, const TrackerGeometry* trackerGeometry);
61 
62  std::vector<SeedWithInfo> operator()(const std::vector<const TrajectorySeedCollection*>& seedsV,
63  const GlobalPoint& xmeas,
64  const GlobalPoint& vprim,
65  float energy,
66  int charge) const;
67 
68  void set1stLayer(float dummyphi1min, float dummyphi1max);
69  void set1stLayerZRange(float zmin1, float zmax1);
70  void set2ndLayer(float dummyphi2minB, float dummyphi2maxB, float dummyphi2minF, float dummyphi2maxF);
71 
72 private:
74  bool operator()(const GlobalPoint& vprim, const TrajectoryStateOnSurface& ts, const GlobalPoint& gp) const;
75 
76  float thePhiMin;
77  float thePhiMax;
78  float theZMin;
79  float theZMax;
80  };
81 
83  bool operator()(const GlobalPoint& vprim, const TrajectoryStateOnSurface& ts, const GlobalPoint& gp) const;
84 
85  float thePhiMin;
86  float thePhiMax;
87  float theRMin;
88  float theRMax;
89  const float theRMinI;
90  const float theRMaxI;
91  };
92 
97  std::unique_ptr<PropagatorWithMaterial> prop1stLayer;
98  std::unique_ptr<PropagatorWithMaterial> prop2ndLayer;
101  const bool useRecoVertex_;
102 };
103 
104 #endif
PixelHitMatcher::useRecoVertex_
const bool useRecoVertex_
Definition: PixelHitMatcher.h:101
SeedWithInfo::subDet2
const int subDet2
Definition: PixelHitMatcher.h:36
SeedWithInfo::dPhi1
const float dPhi1
Definition: PixelHitMatcher.h:41
PixelHitMatcher::set1stLayerZRange
void set1stLayerZRange(float zmin1, float zmax1)
Definition: PixelHitMatcher.cc:90
PixelHitMatcher::theMagField
const MagneticField * theMagField
Definition: PixelHitMatcher.h:99
SeedWithInfo::seed
const TrajectorySeed seed
Definition: PixelHitMatcher.h:34
PixelHitMatcher::ForwardMeasurementEstimator::thePhiMax
float thePhiMax
Definition: PixelHitMatcher.h:86
PixelHitMatcher::meas1stFLayer
ForwardMeasurementEstimator meas1stFLayer
Definition: PixelHitMatcher.h:95
PixelHitMatcher::BarrelMeasurementEstimator::theZMin
float theZMin
Definition: PixelHitMatcher.h:78
PixelHitMatcher::PixelHitMatcher
PixelHitMatcher(float phi1min, float phi1max, float phi2minB, float phi2maxB, float phi2minF, float phi2maxF, float z2minB, float z2maxB, float r2minF, float r2maxF, float rMinI, float rMaxI, bool useRecoVertex)
Definition: PixelHitMatcher.cc:61
HLT_2018_cff.useRecoVertex
useRecoVertex
Definition: HLT_2018_cff.py:13862
SeedWithInfo::dRz2
const float dRz2
Definition: PixelHitMatcher.h:37
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
PixelHitMatcher::ForwardMeasurementEstimator::theRMin
float theRMin
Definition: PixelHitMatcher.h:87
PixelHitMatcher::operator()
std::vector< SeedWithInfo > operator()(const std::vector< const TrajectorySeedCollection * > &seedsV, const GlobalPoint &xmeas, const GlobalPoint &vprim, float energy, int charge) const
Definition: PixelHitMatcher.cc:112
PixelHitMatcher::ForwardMeasurementEstimator::theRMinI
const float theRMinI
Definition: PixelHitMatcher.h:89
SeedWithInfo::subDet1
const int subDet1
Definition: PixelHitMatcher.h:39
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
PixelHitMatcher
Definition: PixelHitMatcher.h:44
Point3DBase< float, GlobalTag >
PixelHitMatcher::prop1stLayer
std::unique_ptr< PropagatorWithMaterial > prop1stLayer
Definition: PixelHitMatcher.h:97
PixelHitMatcher::BarrelMeasurementEstimator::theZMax
float theZMax
Definition: PixelHitMatcher.h:79
PixelHitMatcher::set2ndLayer
void set2ndLayer(float dummyphi2minB, float dummyphi2maxB, float dummyphi2minF, float dummyphi2maxF)
Definition: PixelHitMatcher.cc:97
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
PixelHitMatcher::BarrelMeasurementEstimator
Definition: PixelHitMatcher.h:73
PixelHitMatcher::BarrelMeasurementEstimator::thePhiMax
float thePhiMax
Definition: PixelHitMatcher.h:77
SeedWithInfo::dRz1
const float dRz1
Definition: PixelHitMatcher.h:40
PropagatorWithMaterial.h
SeedWithInfo::dPhi2
const float dPhi2
Definition: PixelHitMatcher.h:38
PixelHitMatcher::ForwardMeasurementEstimator
Definition: PixelHitMatcher.h:82
PixelHitMatcher::ForwardMeasurementEstimator::thePhiMin
float thePhiMin
Definition: PixelHitMatcher.h:85
PixelHitMatcher::meas2ndFLayer
ForwardMeasurementEstimator meas2ndFLayer
Definition: PixelHitMatcher.h:96
TrajectorySeedCollection.h
PixelHitMatcher::ForwardMeasurementEstimator::theRMax
float theRMax
Definition: PixelHitMatcher.h:88
PixelHitMatcher::setES
void setES(const MagneticField *, const TrackerGeometry *trackerGeometry)
Definition: PixelHitMatcher.cc:104
PixelHitMatcher::BarrelMeasurementEstimator::operator()
bool operator()(const GlobalPoint &vprim, const TrajectoryStateOnSurface &ts, const GlobalPoint &gp) const
Definition: PixelHitMatcher.cc:38
PixelHitMatcher::ForwardMeasurementEstimator::operator()
bool operator()(const GlobalPoint &vprim, const TrajectoryStateOnSurface &ts, const GlobalPoint &gp) const
Definition: PixelHitMatcher.cc:15
TrajectorySeed
Definition: TrajectorySeed.h:17
PixelHitMatcher::prop2ndLayer
std::unique_ptr< PropagatorWithMaterial > prop2ndLayer
Definition: PixelHitMatcher.h:98
PixelHitMatcher::theTrackerGeometry
const TrackerGeometry * theTrackerGeometry
Definition: PixelHitMatcher.h:100
PixelHitMatcher::BarrelMeasurementEstimator::thePhiMin
float thePhiMin
Definition: PixelHitMatcher.h:76
SeedWithInfo
Definition: PixelHitMatcher.h:33
PixelHitMatcher::set1stLayer
void set1stLayer(float dummyphi1min, float dummyphi1max)
Definition: PixelHitMatcher.cc:83
MagneticField
Definition: MagneticField.h:19
PixelHitMatcher::meas2ndBLayer
BarrelMeasurementEstimator meas2ndBLayer
Definition: PixelHitMatcher.h:94
PixelHitMatcher::meas1stBLayer
BarrelMeasurementEstimator meas1stBLayer
Definition: PixelHitMatcher.h:93
SeedWithInfo::hitsMask
const unsigned char hitsMask
Definition: PixelHitMatcher.h:35
PixelHitMatcher::ForwardMeasurementEstimator::theRMaxI
const float theRMaxI
Definition: PixelHitMatcher.h:90
TrackerGeometry
Definition: TrackerGeometry.h:14