MpdBoxSet.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // -------------------------------------------------------------------------
  2. // ----- MpdBoxSet header file -----
  3. // ----- Created 26/03/09 by T. Stockmanns -----
  4. // -------------------------------------------------------------------------
  5. /** MpdBoxSet
  6. * @author T. Stockmanns
  7. * @since 26.3.2009
  8. * Base class to display 3D Points in Eve as a BoxSet
  9. * One has to overwrite the method GetVector which takes a TObject and writes out a TVector3 which is then taken as an input
  10. * to place the points.
  11. * If one wants to change the color of the points one has to overwrite the method GetValue. This method takes a TObject and
  12. * an integer and translates this into an integer as input for the EveBoxSet method DigitValue
  13. **
  14. **/
  15. #ifndef MPDBOXSET_H
  16. #define MPDBOXSET_H
  17. #include "MpdBoxSetDraw.h"
  18. #include "TEveBoxSet.h"
  19. class MpdBoxSet : public TEveBoxSet
  20. {
  21. public:
  22. /** Standard constructor **/
  23. MpdBoxSet(MpdBoxSetDraw* drawer, const char* name = "MpdBoxSet", const char* t = "");
  24. /** Destructor **/
  25. virtual ~MpdBoxSet() {}
  26. void SetTimeWindowPlus(Double_t time) { fDraw->SetTimeWindowPlus(time); }
  27. void SetTimeWindowMinus(Double_t time) { fDraw->SetTimeWindowMinus(time); }
  28. Double_t GetTimeWindowPlus() { return fDraw->GetTimeWindowPlus(); }
  29. Double_t GetTimeWindowMinus() { return fDraw->GetTimeWindowMinus(); }
  30. private:
  31. MpdBoxSetDraw* fDraw;
  32. MpdBoxSet(const MpdBoxSet&);
  33. MpdBoxSet operator=(const MpdBoxSet&);
  34. ClassDef(MpdBoxSet,1);
  35. };
  36. #endif