CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWTriggerTableView.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_FWTriggerTableView_h
3 #define Fireworks_Core_FWTriggerTableView_h
4 //
5 // Package: Core
6 // Class : FWTriggerTableView
7 //
8 
9 // system include files
10 #include "Rtypes.h"
11 
12 // user include files
15 
16 
17 #define BOOST_NO_INITIALIZER_LISTS
18 // without this #define, genreflex chokes on std::initializer_list
19 // at least when buildig from tarball in SLC5 with the default gcc4.1.2
20 #include <boost/unordered_map.hpp>
21 #undef BOOST_NO_INITIALIZER_LISTS
22 
23 // forward declarations
24 class TGFrame;
25 class TGCompositeFrame;
26 class FWTableWidget;
27 class TGComboBox;
28 class TEveWindowFrame;
29 class TEveWindowSlot;
33 
34 namespace fwlite {
35  class Event;
36 }
37 
39 {
41 public:
42  struct Column {
44  std::vector<std::string> values;
45  Column( const std::string& s ) : title( s )
46  {}
47  };
48 
49  FWTriggerTableView(TEveWindowSlot *, FWViewType::EType );
50  virtual ~FWTriggerTableView( void );
51 
52  // ---------- const member functions ---------------------
53  virtual void addTo( FWConfiguration& ) const;
54  virtual void saveImageTo( const std::string& iName ) const;
55  Color_t backgroundColor() const { return m_backgroundColor; }
56 
57  // ---------- static member functions --------------------
58 
59  // ---------- member functions ---------------------------
60  virtual void setFrom( const FWConfiguration& );
61  void setBackgroundColor( Color_t );
62  //void resetColors( const class FWColorManager& );
63  void dataChanged( void );
64  void columnSelected( Int_t iCol, Int_t iButton, Int_t iKeyMod );
65 
66  void setProcessList( std::vector<std::string>* x) { m_processList = x; }
67  void resetCombo() const;
68  // void processChanged(Int_t);
69  void processChanged(const char*);
70 protected:
73 
74  std::vector<Column> m_columns;
76 
77  virtual void fillTable(fwlite::Event* event) = 0;
78 
79 private:
80  FWTriggerTableView( const FWTriggerTableView& ); // stop default
81  const FWTriggerTableView& operator=( const FWTriggerTableView& ); // stop default
82 
83  bool isProcessValid()const;
84  virtual void populateController(ViewerParameterGUI&) const;
85 
86  mutable TGComboBox* m_combo;
87 
88  // destruction
89  TEveWindowFrame* m_eveWindow;
90  TGCompositeFrame* m_vert;
91 
92 
94 
96 
97  std::vector<std::string>* m_processList;
98 
99 };
100 
101 
102 #endif
std::vector< std::string > values
std::vector< Column > m_columns
virtual void setFrom(const FWConfiguration &)
virtual void fillTable(fwlite::Event *event)=0
FWStringParameter m_regex
virtual void addTo(FWConfiguration &) const
FWTriggerTableView(TEveWindowSlot *, FWViewType::EType)
TGCompositeFrame * m_vert
bool isProcessValid() const
void setBackgroundColor(Color_t)
FWTableWidget * m_tableWidget
TEveWindowFrame * m_eveWindow
void setProcessList(std::vector< std::string > *x)
const FWTriggerTableView & operator=(const FWTriggerTableView &)
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
virtual ~FWTriggerTableView(void)
Color_t backgroundColor() const
Column(const std::string &s)
void processChanged(const char *)
FWStringParameter m_process
void columnSelected(Int_t iCol, Int_t iButton, Int_t iKeyMod)
std::vector< std::string > * m_processList
virtual void saveImageTo(const std::string &iName) const
FWTriggerTableViewTableManager * m_tableManager
virtual void populateController(ViewerParameterGUI &) const
Definition: DDAxes.h:10