MpdPointSetDraw.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // -------------------------------------------------------------------------
  2. // ----- MpdPointSetDraw header file -----
  3. // ----- Created 10/12/07 by M. Al-Turany -----
  4. // -------------------------------------------------------------------------
  5. /** MpdPointSetDraw
  6. * @author M. Al-Turany
  7. * @since 03.01.08
  8. * Task to display MC points
  9. **
  10. **/
  11. #ifndef MPDPOINTSETDRAW_H
  12. #define MPDPOINTSETDRAW_H
  13. #include "MpdEventManager.h"
  14. #include "FairTask.h"
  15. #include "TClonesArray.h"
  16. #include "TVector3.h"
  17. #include "TEvePointSet.h"
  18. class MpdPointSetDraw : public FairTask
  19. {
  20. public:
  21. /** Default constructor **/
  22. MpdPointSetDraw();
  23. /** Standard constructor
  24. *@param name Name of task
  25. *@param iVerbose Verbosity level
  26. **/
  27. MpdPointSetDraw(const char* name, Color_t color, Style_t mstyle, Int_t iVerbose = 0);
  28. /** Destructor **/
  29. virtual ~MpdPointSetDraw();
  30. /** Set verbosity level. For this task and all of the subtasks. **/
  31. void SetVerbose(Int_t iVerbose) { fVerbose = iVerbose; }
  32. /** Executed task **/
  33. virtual void Exec(Option_t* option);
  34. void Reset();
  35. protected:
  36. virtual TVector3 GetVector(TObject* obj) = 0;
  37. virtual TObject* GetValue(TObject* obj, Int_t i);
  38. virtual void AddEveElementList() = 0;
  39. virtual void RemoveEveElementList() = 0;
  40. virtual void SetParContainers();
  41. virtual InitStatus Init();
  42. /** Action after each event**/
  43. virtual void Finish();
  44. // Verbosity level
  45. Int_t fVerbose;
  46. MpdEventManager* fEventManager; //!
  47. TClonesArray* fPointList; //!
  48. TEvePointSet* fq; //!
  49. Color_t fColor; //!
  50. Style_t fStyle; //!
  51. private:
  52. MpdPointSetDraw(const MpdPointSetDraw&);
  53. MpdPointSetDraw& operator=(const MpdPointSetDraw&);
  54. ClassDef(MpdPointSetDraw,1);
  55. };
  56. #endif