CMS 3D CMS Logo

PixelCPEGeneric.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_SiPixelRecHits_PixelCPEGeneric_H
2 #define RecoLocalTracker_SiPixelRecHits_PixelCPEGeneric_H
3 
4 // \class PixelCPEGeneric -- a generalized CPE reco for the idealized detector
5 //
6 // The basic idea of this class is to use generic formulae in order
7 // to achieve clean and minimal code. It should work for
8 // - both normal and big pixels
9 // - both barrel and forward
10 // - both "FromDetPosition" and "FromTrackAngles" (i.e. by the track fit)
11 //
12 // This is possible since, in its nature, the original "ORCA" algorithm by
13 // Danek and Susana is the same in both X and Y directions, provided that
14 // one correctly computes angles alpha_ and beta_ up front. Thus, all
15 // geometrical and special corrections are dropped, since the presumption
16 // is that alpha_ and beta_ are determined as best as possible. That means
17 // that they either come from the track, or, if they come from the
18 // position of the DetUnit, they include all geometrical information
19 // possible for this DetUnit:
20 // - for both the barrel and the forward, we use the cluster position
21 // instead of the center of the module/plaquette
22 // - for the forward, the tilt of the blades is included too
23 //
24 // In addtion, anything which is special for the computation of the lorentz
25 // angle is done in setTheDet() method. So the algorithm per se does not
26 // need to worry about it. This includes extra E*B term (a.k.a. "alpha2Order")
27 // and extra tilt in the forward.
28 //
29 // Thus, the formula for the computation of the hit position is very
30 // simple, and is described in Morris's note (IN ???) on the generalizaton
31 // of the pixel algorithm.
32 
34 
35 // The template header files
36 //#include "RecoLocalTracker/SiPixelRecHits/interface/SiPixelTemplateReco.h"
39 
40 #include <utility>
41 #include <vector>
42 
43 #if 0
44 
48 #endif
49 
50 class MagneticField;
52 public:
54  const MagneticField *,
55  const TrackerGeometry &,
56  const TrackerTopology &,
57  const SiPixelLorentzAngle *,
59  const SiPixelLorentzAngle *);
60 
61  ~PixelCPEGeneric() override = default;
62 
64 
65 protected:
66  LocalPoint localPosition(DetParam const &theDetParam, ClusterParam &theClusterParam) const override;
67  LocalError localError(DetParam const &theDetParam, ClusterParam &theClusterParam) const override;
68 
69  //--------------------------------------------------------------------
70  // Methods.
71  //------------------------------------------------------------------
72 
73  //--- Errors squared in x and y. &&& Need to be revisited.
74  float err2X(bool &, int &) const;
75  float err2Y(bool &, int &) const;
76 
77  //--- Cuts made externally settable
84 
87 
88  bool DoCosmics_;
90  bool isPhase2_;
92 
93  //--- DB Error Parametrization object, new light templates
94  std::vector<SiPixelGenErrorStore> thePixelGenError_;
95 };
96 
97 #endif
float the_eff_charge_cut_highY
LocalPoint localPosition(DetParam const &theDetParam, ClusterParam &theClusterParam) const override
~PixelCPEGeneric() override=default
std::vector< SiPixelGenErrorStore > thePixelGenError_
bool IrradiationBiasCorrection_
bool NoTemplateErrorsWhenNoTrkAngles_
PixelCPEGeneric(edm::ParameterSet const &conf, const MagneticField *, const TrackerGeometry &, const TrackerTopology &, const SiPixelLorentzAngle *, const SiPixelGenErrorDBObject *, const SiPixelLorentzAngle *)
The constructor.
float the_eff_charge_cut_lowX
bool inflate_all_errors_no_trk_angle
float the_eff_charge_cut_lowY
float err2X(bool &, int &) const
float err2Y(bool &, int &) const
static void fillPSetDescription(edm::ParameterSetDescription &desc)
LocalError localError(DetParam const &theDetParam, ClusterParam &theClusterParam) const override
float the_eff_charge_cut_highX