CMS 3D CMS Logo

PixelCPEClusterRepair.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_SiPixelRecHits_PixelCPEClusterRepair_H
2 #define RecoLocalTracker_SiPixelRecHits_PixelCPEClusterRepair_H
3 
5 
6 // Already in the base class
7 //#include "Geometry/CommonDetUnit/interface/GeomDetType.h"
8 //#include "Geometry/TrackerGeometryBuilder/interface/PixelGeomDetUnit.h"
9 //#include "Geometry/TrackerGeometryBuilder/interface/RectangularPixelTopology.h"
10 //#include "Geometry/CommonDetAlgo/interface/MeasurementPoint.h"
11 //#include "Geometry/CommonDetAlgo/interface/MeasurementError.h"
12 //#include "Geometry/Surface/interface/GloballyPositioned.h"
13 //#include "FWCore/ParameterSet/interface/ParameterSet.h"
14 
15 // The template header files
16 //
22 
23 #include <utility>
24 #include <vector>
25 
26 
27 #if 0
28 
32 #endif
33 
34 class MagneticField;
36 {
37 public:
39  {
41  // The result of PixelTemplateReco2D
42  float templXrec_ ;
43  float templYrec_ ;
44  float templSigmaX_ ;
45  float templSigmaY_ ;
46  // Add new information produced by SiPixelTemplateReco::PixelTempReco2D &&&
47  // These can only be accessed if we change silicon pixel data formats and add them to the rechit
48  int ierr;
49 
50  // 2D fit stuff.
51  float templProbXY_ ;
53  int ierr2;
54  };
55 
56  // PixelCPEClusterRepair( const DetUnit& det );
59 
60  ~PixelCPEClusterRepair() override;
61 
62 private:
63  ClusterParam * createClusterParam(const SiPixelCluster & cl) const override;
64 
65  // Calculate local position. (Calls TemplateReco)
66  LocalPoint localPosition (DetParam const & theDetParam, ClusterParam & theClusterParam) const override;
67  // Calculate local error. Note: it MUST be called AFTER localPosition() !!!
68  LocalError localError (DetParam const & theDetParam, ClusterParam & theClusterParam) const override;
69 
70  // Helper functions:
71 
72  // Call vanilla template reco, then clean-up
73  void callTempReco2D( DetParam const & theDetParam,
74  ClusterParamTemplate & theClusterParam,
75  SiPixelTemplateReco::ClusMatrix & clusterPayload,
76  int ID, LocalPoint & lp ) const;
77 
78  // Call 2D template reco, then clean-up
79  void callTempReco3D( DetParam const & theDetParam,
80  ClusterParamTemplate & theClusterParam,
81  SiPixelTemplateReco2D::ClusMatrix & clusterPayload,
82  int ID, LocalPoint & lp ) const;
83 
84 
85  // Template storage
86  std::vector< SiPixelTemplateStore > thePixelTemp_;
87  std::vector< SiPixelTemplateStore2D > thePixelTemp2D_;
88 
89  int speed_ ;
90 
92 
93  // Template file management (when not getting the templates from the DB)
97 
98  // Configure 3D reco.
99  float minProbY_ ;
101 
102  //bool DoCosmics_;
103  //bool LoadTemplatesFromDB_;
104 
105 };
106 
107 #endif
108 
109 
110 
111 
LocalError localError(DetParam const &theDetParam, ClusterParam &theClusterParam) const override
std::vector< SiPixelTemplateStore > thePixelTemp_
uint32_t ID
Definition: Definitions.h:26
ClusterParam * createClusterParam(const SiPixelCluster &cl) const override
PixelCPEClusterRepair(edm::ParameterSet const &conf, const MagneticField *, const TrackerGeometry &, const TrackerTopology &, const SiPixelLorentzAngle *, const SiPixelTemplateDBObject *, const SiPixel2DTemplateDBObject *)
void callTempReco3D(DetParam const &theDetParam, ClusterParamTemplate &theClusterParam, SiPixelTemplateReco2D::ClusMatrix &clusterPayload, int ID, LocalPoint &lp) const
void callTempReco2D(DetParam const &theDetParam, ClusterParamTemplate &theClusterParam, SiPixelTemplateReco::ClusMatrix &clusterPayload, int ID, LocalPoint &lp) const
std::vector< SiPixelTemplateStore2D > thePixelTemp2D_
Pixel cluster – collection of neighboring pixels above threshold.
LocalPoint localPosition(DetParam const &theDetParam, ClusterParam &theClusterParam) const override