CMS 3D CMS Logo

MSLayersAtAngle.h
Go to the documentation of this file.
1 #ifndef MSLayersAtAngle_H
2 #define MSLayersAtAngle_H
3 
8 #include <vector>
9 #include <cmath>
11 
13 
14 class PixelRecoLineRZ;
15 
17 public:
19  MSLayersAtAngle(const std::vector<MSLayer>& layers);
20  void update(const MSLayer& layer);
21  const MSLayer* findLayer(const MSLayer& layer) const;
22 
23  float sumX0D(const PixelRecoPointRZ& pointI, const PixelRecoPointRZ& pointO) const;
24 
25  float sumX0D(int il, int ol, const PixelRecoPointRZ& pointI, const PixelRecoPointRZ& pointO) const;
26 
27  float sumX0D(const PixelRecoPointRZ& pointI, const PixelRecoPointRZ& pointM, const PixelRecoPointRZ& pointO) const;
28 
29  // as used in seeding
30  // z at beamline, point on two layers
31  float sumX0D(float zV, int il, int ol, const PixelRecoPointRZ& pointI, const PixelRecoPointRZ& pointO) const;
32 
33  int size() const { return theLayers.size(); }
34  void print() const;
35 
36 private:
37  std::vector<MSLayer> theLayers;
38  std::vector<int> indeces;
39 
40 private:
41  void init();
42 
43  typedef std::vector<MSLayer>::const_iterator LayerItr;
44  LayerItr findLayer(const PixelRecoPointRZ& point, LayerItr i1, LayerItr i2) const;
45  float sum2RmRn(LayerItr i1, LayerItr i2, float rTarget, const SimpleLineRZ& line) const;
46 };
47 
48 #endif
testProducerWithPsetDescEmpty_cfi.i2
i2
Definition: testProducerWithPsetDescEmpty_cfi.py:46
Visibility.h
init
int init
Definition: HydjetWrapper.h:64
MSLayersAtAngle::indeces
std::vector< int > indeces
Definition: MSLayersAtAngle.h:38
testProducerWithPsetDescEmpty_cfi.i1
i1
Definition: testProducerWithPsetDescEmpty_cfi.py:45
MSLayersAtAngle::MSLayersAtAngle
MSLayersAtAngle()
Definition: MSLayersAtAngle.h:18
MSLayer.h
MSLayersAtAngle
Definition: MSLayersAtAngle.h:16
dso_hidden
#define dso_hidden
Definition: Visibility.h:12
MSLayer
Definition: MSLayer.h:13
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
PixelRecoLineRZ
Definition: PixelRecoLineRZ.h:12
PixelRecoPointRZ
Definition: PixelRecoPointRZ.h:6
SimpleLineRZ
Definition: PixelRecoLineRZ.h:63
MSLayersAtAngle::theLayers
std::vector< MSLayer > theLayers
Definition: MSLayersAtAngle.h:37
MSLayersAtAngle::size
int size() const
Definition: MSLayersAtAngle.h:33
MSLayersAtAngle::LayerItr
std::vector< MSLayer >::const_iterator LayerItr
Definition: MSLayersAtAngle.h:43
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
mps_splice.line
line
Definition: mps_splice.py:76
hgcalTopologyTester_cfi.layers
layers
Definition: hgcalTopologyTester_cfi.py:8
update
#define update(a, b)
Definition: TrackClassifier.cc:10