Newer
Older
TB_Chris / TbAlignment / src / .svn / text-base / TbAlignmentMinuit2.h.svn-base
@iaro iaro on 9 May 2016 1016 bytes first attempt of automated anal
  1. #pragma once
  2.  
  3. // Local
  4. #include "TbAlignmentMinuitBase.h"
  5.  
  6. class TbAlignmentMinuit2 : public TbAlignmentMinuitBase {
  7.  
  8. public:
  9. /// Constructor
  10. TbAlignmentMinuit2(const std::string& type, const std::string& name,
  11. const IInterface* parent);
  12. /// Destructor
  13. virtual ~TbAlignmentMinuit2();
  14.  
  15. /// Collect tracks and clusters for alignment (called at each event).
  16. virtual StatusCode execute(std::vector<TbAlignmentTrack*>& tracks);
  17.  
  18. virtual void align(std::vector<TbAlignmentTrack*>& tracks);
  19. void chi2(double& f, double* par, double* g);
  20.  
  21. private:
  22. /// TES location prefix of clusters
  23. std::string m_clusterLocation;
  24. /// Plane index of the device to align
  25. unsigned int m_deviceToAlign;
  26. /// Flag whether the device to align is excluded from the pattern recognition
  27. bool m_isDUT;
  28. bool m_refitTracks;
  29. bool m_ignoreEdge;
  30. /// Time window for associating clusters to a track
  31. double m_twindow;
  32. /// Spatial window for associating clusters to a track
  33. double m_xwindow;
  34. };