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 // $Id: FWTriggerTableView.h,v 1.9 2011/02/16 18:38:36 amraktad Exp $
8 //
9 
10 // system include files
11 #include "Rtypes.h"
12 
13 // user include files
16 
17 
18 #define BOOST_NO_INITIALIZER_LISTS
19 // without this #define, genreflex chokes on std::initializer_list
20 // at least when buildig from tarball in SLC5 with the default gcc4.1.2
21 #include <boost/unordered_map.hpp>
22 #undef BOOST_NO_INITIALIZER_LISTS
23 
24 // forward declarations
25 class TGFrame;
26 class TGCompositeFrame;
27 class FWTableWidget;
28 class TGComboBox;
29 class TEveWindowFrame;
30 class TEveWindowSlot;
34 
35 namespace fwlite {
36  class Event;
37 }
38 
40 {
42 public:
43  struct Column {
44  std::string title;
45  std::vector<std::string> values;
46  Column( const std::string& s ) : title( s )
47  {}
48  };
49 
50  FWTriggerTableView(TEveWindowSlot *, FWViewType::EType );
51  virtual ~FWTriggerTableView( void );
52 
53  // ---------- const member functions ---------------------
54  virtual void addTo( FWConfiguration& ) const;
55  virtual void saveImageTo( const std::string& iName ) const;
56  Color_t backgroundColor() const { return m_backgroundColor; }
57 
58  // ---------- static member functions --------------------
59 
60  // ---------- member functions ---------------------------
61  virtual void setFrom( const FWConfiguration& );
62  void setBackgroundColor( Color_t );
63  //void resetColors( const class FWColorManager& );
64  void dataChanged( void );
65  void columnSelected( Int_t iCol, Int_t iButton, Int_t iKeyMod );
66 
67  void setProcessList( std::vector<std::string>* x) { m_processList = x; }
68  void resetCombo() const;
69  // void processChanged(Int_t);
70  void processChanged(const char*);
71 protected:
74 
75  std::vector<Column> m_columns;
77 
78  virtual void fillTable(fwlite::Event* event) = 0;
79 
80 private:
81  FWTriggerTableView( const FWTriggerTableView& ); // stop default
82  const FWTriggerTableView& operator=( const FWTriggerTableView& ); // stop default
83 
84  bool isProcessValid()const;
85  virtual void populateController(ViewerParameterGUI&) const;
86 
87  mutable TGComboBox* m_combo;
88 
89  // destruction
90  TEveWindowFrame* m_eveWindow;
91  TGCompositeFrame* m_vert;
92 
93 
95 
97 
98  std::vector<std::string>* m_processList;
99 
100 };
101 
102 
103 #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
x
Definition: VDTMath.h:216