fix coding violation
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveHOMERSourceList.h
index fcdb1332b21b6402c77a8e5e43c742675234590d..487346a83c91c0d39d69671cd6a9e1778058254d 100644 (file)
@@ -1,3 +1,5 @@
+//-*- Mode: C++ -*-
+
 // $Id$
 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
 
@@ -7,29 +9,52 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
-#ifndef ALIEVE_AliEVEHOMERSourceList_H
-#define ALIEVE_AliEVEHOMERSourceList_H
+#ifndef AliEveAliEVEHOMERSourceList_H
+#define AliEveAliEVEHOMERSourceList_H
 
 #include <TEveElement.h>
 
 #include <TObject.h>
 
+#include <map>
+
+class AliEveHOMERManager;
+class AliEveHOMERSourceMap;
+
 class AliEveHOMERSourceList : public TEveElementList
 {
-private:
-  AliEveHOMERSourceList(const AliEveHOMERSourceList&);            // Not implemented
-  AliEveHOMERSourceList& operator=(const AliEveHOMERSourceList&); // Not implemented
+public:
+  AliEveHOMERSourceList(const Text_t* n="HOMER Source List", const Text_t* t="");
+  virtual ~AliEveHOMERSourceList();
+
+  // void InitMap(TList* srcHandles, ESourceGrouping_e
+
+  AliEveHOMERManager* GetManager() const { return fManager; }
+  void SetManager(AliEveHOMERManager* m) { fManager = m; }
+
+  Bool_t GetSelectedSources();
+
+  void CreateByDet();  // *MENU*
+  void CreateByType(); // *MENU*
+
+  void RebuildSourceReps();
+
+  //void SelectAll();   // *MENU*
+  //void DeselectAll(); // *MENU*
 
 protected:
+  //SourceMap_t       fByType;
+  //ESourceGrouping_e fView;
+  //Bool_t            fDefaultState;
 
-public:
-  AliEveHOMERSourceList(const Text_t* n="HOMER Source List", const Text_t* t="");
-  virtual ~AliEveHOMERSourceList() {}
+  AliEveHOMERManager   *fManager;
+  AliEveHOMERSourceMap *fSrcMap;
 
-  void SelectAll();   // *MENU*
-  void DeselectAll(); // *MENU*
+private:
+  AliEveHOMERSourceList(const AliEveHOMERSourceList&);            // Not implemented
+  AliEveHOMERSourceList& operator=(const AliEveHOMERSourceList&); // Not implemented
 
-  ClassDef(AliEveHOMERSourceList, 1);
-}; // endclass AliEveHOMERSourceList
+  ClassDef(AliEveHOMERSourceList, 0); // Interface to a list of HOMER sourcces.
+};
 
 #endif