12 #include "TEveWindow.h"
13 #include "TGComboBox.h"
15 #include "TGTextEntry.h"
45 m_regex(this,
"Filter",std::string()),
58 TGCompositeFrame *frame =
m_eveWindow->GetGUICompositeFrame();
60 m_vert =
new TGVerticalFrame(frame);
61 frame->AddFrame(
m_vert,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
69 m_tableWidget->Connect(
"columnClicked(Int_t,Int_t,Int_t)",
"FWTriggerTableView",
70 this,
"columnSelected(Int_t,Int_t,Int_t)");
73 frame->MapSubwindows();
81 TGCompositeFrame *frame =
m_eveWindow->GetGUICompositeFrame();
82 frame->RemoveFrame(
m_vert );
162 if( sortColumn != 0 && descendingSort != 0 )
165 bool descending = descendingSort->
version();
198 m_combo->AddEntry((*i).c_str(), cnt);
239 TGFrameElement* el = (TGFrameElement*) parent->GetList()->Last();
240 el->fLayout->SetLayoutHints(kLHintsNormal);
241 el->fFrame->Resize(180);
247 gui.
getTabContainer()->AddFrame(f,
new TGLayoutHints(kLHintsNormal, 2, 2,2,2 ));
252 f->AddFrame(
new TGLabel(f,
"Process"),
new TGLayoutHints(kLHintsLeft, 8,2,2,2));
256 m_combo->Connect(
"Selected(const char*)",
"FWTriggerTableView", tt,
"processChanged(const char*)");
278 size_t ss = textRenderer->
data().size();
279 if (widths[
c] < ss) widths[
c] = ss;
295 format.Form(
"%%%ds", (
int)widths[
c]);
298 printf(
"%s", data.Data());
300 printf(
"%s | ", data.Data());
311 format.Form(
"%%%ds", (
int)widths[
c]);
313 data.Form(format, textRenderer->
data().c_str());
315 printf(
"%s", data.Data());
317 printf(
"%s | ", data.Data());
Color_t m_backgroundColor
std::vector< Column > m_columns
virtual void setFrom(const FWConfiguration &)
virtual void fillTable(fwlite::Event *event)=0
FWStringParameter m_regex
ViewerParameterGUI & requestTab(const char *)
unsigned int version() const
virtual void addTo(FWConfiguration &) const
string format
Some error handling for the usage.
FWTriggerTableView(TEveWindowSlot *, FWViewType::EType)
sigc::signal< void, T > changed_
unsigned int version() const
virtual int numberOfColumns() const
Number of columns in the table.
TGCompositeFrame * m_vert
int main(int argc, char **argv)
bool isProcessValid() const
void setBackgroundColor(Color_t)
FWTableWidget * m_tableWidget
TEveWindowFrame * m_eveWindow
static const std::string kDescendingSort
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
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
const std::string & value(unsigned int iIndex=0) const
const std::string & data()
virtual ~FWTriggerTableView(void)
const edm::EventBase * getCurrentEvent() const
static const std::string kSortColumn
static FWGUIManager * getGUIManager()
void processChanged(const char *)
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const
FWStringParameter m_process
virtual int numberOfRows() const
Number of rows in the table.
ViewerParameterGUI & addParam(const FWParameterBase *)
TGCompositeFrame * getTabContainer()
void columnSelected(Int_t iCol, Int_t iButton, Int_t iKeyMod)
char data[epos_bytes_allocation]
std::vector< std::string > * m_processList
virtual void saveImageTo(const std::string &iName) const
virtual void setFrom(const FWConfiguration &iFrom)
FWTriggerTableViewTableManager * m_tableManager
const FWConfiguration * valueForKey(const std::string &iKey) const
virtual void populateController(ViewerParameterGUI &) const
static const std::string kColumns
virtual void addTo(FWConfiguration &) const
FWViewType::EType typeId() const