CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWGUIEventFilter.h
Go to the documentation of this file.
1 #include <list>
2 
3 #include "TGFrame.h"
4 
6 #ifndef __CINT__
7 //#include "Fireworks/Core/interface/FWHLTValidator.h"
9 #endif
10 
11 class TGLabel;
12 class TGRadioButton;
13 class TGTextButton;
14 class CSGAction;
16 class FWGUIEventSelector;
17 //class FWJobMetadataManager;
18 class CmsShowNavigator;
19 class FWConfiguration;
20 
21 namespace fireworks
22 {
23 class Context;
24 }
25 
26 class FWGUIEventFilter: public TGMainFrame
27 {
28 public:
30  virtual ~FWGUIEventFilter();
31  virtual void CloseWindow();
32 
33  void show(std::list<FWEventSelector*>* sels, int filterMode, int state);
34  void reset();
35 
36  std::list<FWGUIEventSelector*>& guiSelectors() { return m_guiSelectors; }
37 
38  void newEventEntry();
39  void newTriggerEntry();
42  bool isOpen() { return m_isOpen; }
43  void apply();
44  void disableFilters();
45  void setupDisableFilteringButton(bool);
46  void checkApplyButton();
47  void changeFilterMode();
48  int getFilterMode();
49  void updateFilterStateLabel(int);
50  /*
51  void addTo(FWConfiguration&) const;
52  void setFrom(const FWConfiguration&);
53  */
54  Bool_t HandleKey(Event_t *event);
56 
57 private:
58  static const int s_entryHeight = 21;
59 
61  bool m_isOpen;
63 
64  std::list<FWGUIEventSelector*> m_guiSelectors;
65 
66  TGCompositeFrame* m_eventSelectionFrameParent;
67  TGCompositeFrame* m_eventSelectionFrame;
68 
69  TGCompositeFrame* m_triggerSelectionFrameParent;
70  TGCompositeFrame* m_triggerSelectionFrame;
71 
72  TGRadioButton* m_rad1;
73  TGRadioButton* m_rad2;
74  TGLabel* m_stateLabel;
75  TGTextButton* m_applyBtn;
76  TGTextButton* m_disableFilteringBtn;
78 
80 };
81 
TGTextButton * m_applyBtn
TGRadioButton * m_rad1
void show(std::list< FWEventSelector * > *sels, int filterMode, int state)
FWGUIEventFilter(CmsShowNavigator *)
TGCompositeFrame * m_eventSelectionFrameParent
TGCompositeFrame * m_triggerSelectionFrameParent
void updateFilterStateLabel(int)
CmsShowNavigator * m_navigator
TGCompositeFrame * m_triggerSelectionFrame
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
static const int s_entryHeight
virtual ~FWGUIEventFilter()
TGLabel * m_stateLabel
TGRadioButton * m_rad2
char state
Definition: procUtils.cc:75
std::list< FWGUIEventSelector * > & guiSelectors()
FWCustomIconsButton * m_addBtn
TGCompositeFrame * m_eventSelectionFrame
void setupDisableFilteringButton(bool)
Bool_t HandleKey(Event_t *event)
void addSelector(FWEventSelector *sel)
TGTextButton * m_disableFilteringBtn
std::list< FWGUIEventSelector * > m_guiSelectors
ClassDef(FWGUIEventFilter, 0)
void deleteEntry(FWGUIEventSelector *)
virtual void CloseWindow()