CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTSegmentUpdator.h
Go to the documentation of this file.
1 #ifndef DTSegment_DTSegmentUpdator_h
2 #define DTSegment_DTSegmentUpdator_h
3 
18 /* C++ Headers */
19 #include <vector>
20 
23 
25 
27 
28 /* ====================================================================== */
29 
30 /* Collaborating Class Declarations */
31 class DTSegmentCand;
32 class DTRecSegment2D;
33 class DTRecSegment4D;
34 class DTLinearFit;
35 class DTRecHitBaseAlgo;
36 
37 namespace edm{class EventSetup; class ParameterSet;}
38 
39 /* Class DTSegmentUpdator Interface */
41 
42  public:
43 
46 
49 
50  /* Operations */
51 
54  bool fit(DTSegmentCand* seg) const;
55 
59  void fit(DTRecSegment2D* seg) const;
60 
65  void fit(DTRecSegment4D* seg) const;
66 
68  void update(DTRecSegment4D* seg, const bool calcT0 = false) const;
69 
71  void update(DTRecSegment2D* seg) const;
72 
73  void calculateT0corr(DTRecSegment2D* seg) const;
74  void calculateT0corr(DTRecSegment4D* seg) const;
75 
77  void setES(const edm::EventSetup& setup);
78 
79  protected:
80 
81  private:
82  DTLinearFit* theFitter; // the linear fitter
83  DTRecHitBaseAlgo* theAlgo; // the algo for hit reconstruction
85 
86  void updateHits(DTRecSegment2D* seg,
87  GlobalPoint &gpos,
88  GlobalVector &gdir,
89  const int step=2) const;
90 
92  void fit(const std::vector<float>& x,
93  const std::vector<float>& y,
94  const std::vector<float>& sigy,
95  LocalPoint& pos,
97  AlgebraicSymMatrix& covMat,
98  double& chi2) const;
99 
100  void Fit4Var(const std::vector<float>& xfit,
101  const std::vector<float>& yfit,
102  const std::vector<int>& lfit,
103  const std::vector<double>& tfit,
104  const int nptfit,
105  float& cminf, double& vminf,
106  double& chi2fit) const;
107 
110  bool debug;
111 
112 };
113 
114 #endif // DTSegment_DTSegmentUpdator_h
void Fit4Var(const std::vector< float > &xfit, const std::vector< float > &yfit, const std::vector< int > &lfit, const std::vector< double > &tfit, const int nptfit, float &cminf, double &vminf, double &chi2fit) const
void update(DTRecSegment4D *seg, const bool calcT0=false) const
recompute hits position and refit the segment4D
void updateHits(DTRecSegment2D *seg, GlobalPoint &gpos, GlobalVector &gdir, const int step=2) const
list step
Definition: launcher.py:15
void calculateT0corr(DTRecSegment2D *seg) const
~DTSegmentUpdator()
Destructor.
edm::ESHandle< DTGeometry > theGeom
DTLinearFit * theFitter
void setES(const edm::EventSetup &setup)
set the setup
bool fit(DTSegmentCand *seg) const
CLHEP::HepSymMatrix AlgebraicSymMatrix
dbl *** dir
Definition: mlp_gen.cc:35
Definition: DDAxes.h:10
DTRecHitBaseAlgo * theAlgo
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
DTSegmentUpdator(const edm::ParameterSet &config)
Constructor.