CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TotemRPLocalTrackFitterAlgorithm.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of TOTEM offline software.
4 * Authors:
5 * Hubert Niewiadomski
6 * Jan Kašpar (jan.kaspar@gmail.com)
7 *
8 ****************************************************************************/
9 
10 #ifndef RecoPPS_Local_TotemRPLocalTrackFitterAlgorithm
11 #define RecoPPS_Local_TotemRPLocalTrackFitterAlgorithm
12 
14 
18 
21 
22 #include "TVector3.h"
23 #include "TVector2.h"
24 
25 #include <unordered_map>
26 
27 //----------------------------------------------------------------------------------------------------
28 
33 public:
35 
38  double z_0,
39  const CTPPSGeometry &tot_geom,
40  TotemRPLocalTrack &fitted_track);
41 
43  void reset();
44 
45 private:
48  double rec_u_0_;
49  TVector2 readout_direction_;
50  bool available_;
51  };
52 
54  std::unordered_map<unsigned int, RPDetCoordinateAlgebraObjs> det_data_map_;
55 
57 
60  RPDetCoordinateAlgebraObjs *getDetAlgebraData(unsigned int det_id, const CTPPSGeometry &tot_rp_geom);
61 
63  RPDetCoordinateAlgebraObjs prepareReconstAlgebraData(unsigned int det_id, const CTPPSGeometry &tot_rp_geom);
64 
66  void multiplyByDiagonalInPlace(TMatrixD &mt, const TVectorD &diag);
67 
68  static TVector3 convert3vector(const CTPPSGeometry::Vector &v) { return TVector3(v.x(), v.y(), v.z()); }
69 };
70 
71 #endif
void multiplyByDiagonalInPlace(TMatrixD &mt, const TVectorD &diag)
A matrix multiplication shorthand.
void reset()
Resets the reconstruction-data cache.
std::unordered_map< unsigned int, RPDetCoordinateAlgebraObjs > det_data_map_
A cache of reconstruction data. Must be reset every time the geometry chagnges.
TVector2 readout_direction_
non paralell projection and rot_cor included
A track fit through a single RP.
bool available_
if det should be included in the reconstruction
DetGeomDesc::Translation Vector
Definition: CTPPSGeometry.h:36
double rec_u_0_
in mm, position of det. centre projected on readout direction
TotemRPLocalTrackFitterAlgorithm(const edm::ParameterSet &conf)
The manager class for TOTEM RP geometry.
Definition: CTPPSGeometry.h:30
RPDetCoordinateAlgebraObjs prepareReconstAlgebraData(unsigned int det_id, const CTPPSGeometry &tot_rp_geom)
Build the reconstruction data.
bool fitTrack(const edm::DetSetVector< TotemRPRecHit > &hits, double z_0, const CTPPSGeometry &tot_geom, TotemRPLocalTrack &fitted_track)
performs the track fit, returns true if successful
Algorithm for fitting tracks through a single RP.
static TVector3 convert3vector(const CTPPSGeometry::Vector &v)
Geometrical and topological information on RP silicon detector. Uses coordinate a frame with origin i...
Definition: RPTopology.h:19
RPDetCoordinateAlgebraObjs * getDetAlgebraData(unsigned int det_id, const CTPPSGeometry &tot_rp_geom)