Newer
Older
TB_Chris / TbEvent / Event / .svn / text-base / TbKalmanTrack.h.svn-base
@iaro iaro on 9 May 2016 876 bytes first attempt of automated anal
  1. #ifndef TBKALMANTRACK_H
  2. #define TBKALMANTRACK_H
  3.  
  4. #include "Event/TbTrack.h"
  5.  
  6. namespace LHCb {
  7. class TbKalmanNode;
  8.  
  9. class TbKalmanTrack : public TbTrack {
  10. public:
  11. /// Constructor
  12. TbKalmanTrack(const LHCb::TbTrack& track, const double hiterror2,
  13. const double noise2);
  14. // Destructor
  15. ~TbKalmanTrack();
  16.  
  17. // get the nodes
  18. const std::vector<TbKalmanNode*>& nodes() const { return m_nodes; }
  19.  
  20. // called by daughter node if something changes
  21. void resetCache() {}
  22.  
  23. // fit
  24. void fit();
  25.  
  26. // dump some debug info
  27. void print() const;
  28.  
  29. // add a node
  30. void addNode(TbKalmanNode*);
  31.  
  32. // add a 'reference' node (without a measurement, just to have the state)
  33. void addReferenceNode(double z);
  34.  
  35. // deactivate a measurement on the track
  36. void deactivateCluster(const TbCluster& clus);
  37.  
  38. private:
  39. std::vector<TbKalmanNode*> m_nodes;
  40. };
  41. }
  42.  
  43. #endif