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 
35 
36 
37 // The template header files
38 //#include "RecoLocalTracker/SiPixelRecHits/interface/SiPixelTemplateReco.h"
41 
42 
43 #include <utility>
44 #include <vector>
45 
46 #if 0
47 
51 #endif
52 
53 class MagneticField;
55 {
56 public:
58  {
60  // The truncation value pix_maximum is an angle-dependent cutoff on the
61  // individual pixel signals. It should be applied to all pixels in the
62  // cluster [signal_i = fminf(signal_i, pixmax)] before the column and row
63  // sums are made. Morris
64  float pixmx;
65 
66  // These are errors predicted by PIXELAV
67  float sigmay; // CPE Generic y-error for multi-pixel cluster
68  float sigmax; // CPE Generic x-error for multi-pixel cluster
69  float sy1 ; // CPE Generic y-error for single single-pixel
70  float sy2 ; // CPE Generic y-error for single double-pixel cluster
71  float sx1 ; // CPE Generic x-error for single single-pixel cluster
72  float sx2 ; // CPE Generic x-error for single double-pixel cluster
73 
74  // These are irradiation bias corrections
75  float deltay; // CPE Generic y-bias for multi-pixel cluster
76  float deltax; // CPE Generic x-bias for multi-pixel cluster
77  float dy1 ; // CPE Generic y-bias for single single-pixel cluster
78  float dy2 ; // CPE Generic y-bias for single double-pixel cluster
79  float dx1 ; // CPE Generic x-bias for single single-pixel cluster
80  float dx2 ; // CPE Generic x-bias for single double-pixel cluster
81  };
82 
83  PixelCPEGeneric(edm::ParameterSet const& conf, const MagneticField *,
84  const TrackerGeometry&, const TrackerTopology&, const SiPixelLorentzAngle *,
86 
88 
89 
90 
91 private:
93 
94  LocalPoint localPosition (DetParam const & theDetParam, ClusterParam & theClusterParam) const;
95  LocalError localError (DetParam const & theDetParam, ClusterParam & theClusterParam) const;
96 
97  //--------------------------------------------------------------------
98  // Methods.
99  //------------------------------------------------------------------
100  float
102  float Q_f,
103  float Q_l,
104  float upper_edge_first_pix,
105  float lower_edge_last_pix,
106  float lorentz_shift,
107  float theThickness, //detector thickness
108  float cot_angle,
109  float pitch,
110  bool first_is_big,
111  bool last_is_big,
112  float eff_charge_cut_low,
113  float eff_charge_cut_high,
114  float size_cut
115  ) const;
116 
117  void
118  collect_edge_charges(ClusterParam & theClusterParam,
119  float & Q_f_X,
120  float & Q_l_X,
121  float & Q_f_Y,
122  float & Q_l_Y
123  ) const;
124 
125 
126  //--- Errors squared in x and y. &&& Need to be revisited.
127  float err2X(bool&, int&) const;
128  float err2Y(bool&, int&) const;
129 
130  //--- Cuts made externally settable
137 
140 
143  //bool LoadTemplatesFromDB_;
147 
150 
155 
156  //--- DB Error Parametrization object, new light templates
157  std::vector< SiPixelGenErrorStore > thePixelGenError_;
158  //SiPixelCPEGenericDBErrorParametrization * genErrorsFromDB_;
159 
160 };
161 
162 #endif
163 
164 
165 
166 
size
Write out results.
std::vector< float > xerr_barrel_l1_
float the_eff_charge_cut_highY
std::vector< float > xerr_barrel_ln_
std::vector< SiPixelGenErrorStore > thePixelGenError_
bool IrradiationBiasCorrection_
std::vector< float > yerr_endcap_
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
void collect_edge_charges(ClusterParam &theClusterParam, float &Q_f_X, float &Q_l_X, float &Q_f_Y, float &Q_l_Y) const
float generic_position_formula(int size, float Q_f, float Q_l, float upper_edge_first_pix, float lower_edge_last_pix, float lorentz_shift, float theThickness, float cot_angle, float pitch, bool first_is_big, bool last_is_big, float eff_charge_cut_low, float eff_charge_cut_high, float size_cut) const
std::vector< float > xerr_endcap_
float the_eff_charge_cut_lowY
std::vector< float > yerr_barrel_l1_
std::vector< float > yerr_barrel_ln_
Pixel cluster – collection of neighboring pixels above threshold.
LocalError localError(DetParam const &theDetParam, ClusterParam &theClusterParam) const
float err2X(bool &, int &) const
LocalPoint localPosition(DetParam const &theDetParam, ClusterParam &theClusterParam) const
ClusterParamGeneric(const SiPixelCluster &cl)
float err2Y(bool &, int &) const
float the_eff_charge_cut_highX
ClusterParam * createClusterParam(const SiPixelCluster &cl) const