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 z2maxB,
53  float r2maxF,
54  float rMaxI,
55  bool useRecoVertex);
56 
57  void setES(MagneticField const&, TrackerGeometry const& trackerGeometry);
58 
59  std::vector<SeedWithInfo> operator()(const std::vector<const TrajectorySeedCollection*>& seedsV,
60  const GlobalPoint& xmeas,
61  const GlobalPoint& vprim,
62  float energy,
63  int charge) const;
64 
65  void set1stLayer(float dummyphi1min, float dummyphi1max);
66  void set1stLayerZRange(float zmin1, float zmax1);
67  void set2ndLayer(float dummyphi2minB, float dummyphi2maxB, float dummyphi2minF, float dummyphi2maxF);
68 
69 private:
71  bool operator()(const GlobalPoint& vprim, const TrajectoryStateOnSurface&, const GlobalPoint&, int charge) const;
72 
73  float thePhiMin;
74  float thePhiMax;
75  float theZMin;
76  float theZMax;
77  };
78 
80  bool operator()(const GlobalPoint& vprim, const TrajectoryStateOnSurface&, const GlobalPoint&, int charge) const;
81 
82  float thePhiMin;
83  float thePhiMax;
84  float theRMin;
85  float theRMax;
86  const float theRMinI;
87  const float theRMaxI;
88  };
89 
94  std::unique_ptr<PropagatorWithMaterial> prop1stLayer = nullptr;
95  std::unique_ptr<PropagatorWithMaterial> prop2ndLayer = nullptr;
98  const bool useRecoVertex_;
99 };
100 
101 #endif
PixelHitMatcher::useRecoVertex_
const bool useRecoVertex_
Definition: PixelHitMatcher.h:98
HLT_FULL_cff.useRecoVertex
useRecoVertex
Definition: HLT_FULL_cff.py:15252
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:87
PixelHitMatcher::theMagField
const MagneticField * theMagField
Definition: PixelHitMatcher.h:96
SeedWithInfo::seed
const TrajectorySeed seed
Definition: PixelHitMatcher.h:34
PixelHitMatcher::ForwardMeasurementEstimator::thePhiMax
float thePhiMax
Definition: PixelHitMatcher.h:83
PixelHitMatcher::meas1stFLayer
ForwardMeasurementEstimator meas1stFLayer
Definition: PixelHitMatcher.h:92
PixelHitMatcher::BarrelMeasurementEstimator::theZMin
float theZMin
Definition: PixelHitMatcher.h:75
PixelHitMatcher::PixelHitMatcher
PixelHitMatcher(float phi1min, float phi1max, float phi2minB, float phi2maxB, float phi2minF, float phi2maxF, float z2maxB, float r2maxF, float rMaxI, bool useRecoVertex)
Definition: PixelHitMatcher.cc:63
SeedWithInfo::dRz2
const float dRz2
Definition: PixelHitMatcher.h:37
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
PixelHitMatcher::ForwardMeasurementEstimator::theRMin
float theRMin
Definition: PixelHitMatcher.h:84
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:109
PixelHitMatcher::ForwardMeasurementEstimator::theRMinI
const float theRMinI
Definition: PixelHitMatcher.h:86
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:94
PixelHitMatcher::BarrelMeasurementEstimator::theZMax
float theZMax
Definition: PixelHitMatcher.h:76
PixelHitMatcher::set2ndLayer
void set2ndLayer(float dummyphi2minB, float dummyphi2maxB, float dummyphi2minF, float dummyphi2maxF)
Definition: PixelHitMatcher.cc:94
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
PixelHitMatcher::setES
void setES(MagneticField const &, TrackerGeometry const &trackerGeometry)
Definition: PixelHitMatcher.cc:101
PixelHitMatcher::BarrelMeasurementEstimator
Definition: PixelHitMatcher.h:70
PixelHitMatcher::BarrelMeasurementEstimator::thePhiMax
float thePhiMax
Definition: PixelHitMatcher.h:74
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:79
PixelHitMatcher::ForwardMeasurementEstimator::thePhiMin
float thePhiMin
Definition: PixelHitMatcher.h:82
PixelHitMatcher::meas2ndFLayer
ForwardMeasurementEstimator meas2ndFLayer
Definition: PixelHitMatcher.h:93
TrajectorySeedCollection.h
PixelHitMatcher::ForwardMeasurementEstimator::theRMax
float theRMax
Definition: PixelHitMatcher.h:85
PixelHitMatcher::BarrelMeasurementEstimator::operator()
bool operator()(const GlobalPoint &vprim, const TrajectoryStateOnSurface &, const GlobalPoint &, int charge) const
Definition: PixelHitMatcher.cc:39
TrajectorySeed
Definition: TrajectorySeed.h:18
PixelHitMatcher::prop2ndLayer
std::unique_ptr< PropagatorWithMaterial > prop2ndLayer
Definition: PixelHitMatcher.h:95
PixelHitMatcher::theTrackerGeometry
const TrackerGeometry * theTrackerGeometry
Definition: PixelHitMatcher.h:97
PixelHitMatcher::BarrelMeasurementEstimator::thePhiMin
float thePhiMin
Definition: PixelHitMatcher.h:73
SeedWithInfo
Definition: PixelHitMatcher.h:33
PixelHitMatcher::set1stLayer
void set1stLayer(float dummyphi1min, float dummyphi1max)
Definition: PixelHitMatcher.cc:80
PixelHitMatcher::ForwardMeasurementEstimator::operator()
bool operator()(const GlobalPoint &vprim, const TrajectoryStateOnSurface &, const GlobalPoint &, int charge) const
Definition: PixelHitMatcher.cc:15
MagneticField
Definition: MagneticField.h:19
PixelHitMatcher::meas2ndBLayer
BarrelMeasurementEstimator meas2ndBLayer
Definition: PixelHitMatcher.h:91
PixelHitMatcher::meas1stBLayer
BarrelMeasurementEstimator meas1stBLayer
Definition: PixelHitMatcher.h:90
SeedWithInfo::hitsMask
const unsigned char hitsMask
Definition: PixelHitMatcher.h:35
PixelHitMatcher::ForwardMeasurementEstimator::theRMaxI
const float theRMaxI
Definition: PixelHitMatcher.h:87
TrackerGeometry
Definition: TrackerGeometry.h:14