64 table_[
'F'] =
"FileInPath";
67 table_[
'g'] =
"ESInputTag";
68 table_[
'G'] =
"VESInputTag";
71 table_[
'm'] =
"VLuminosityBlockID";
72 table_[
'M'] =
"LuminosityBlockID";
73 table_[
'a'] =
"VLuminosityBlockRange";
74 table_[
'A'] =
"LuminosityBlockRange";
75 table_[
'r'] =
"VEventRange";
76 table_[
'R'] =
"EventRange";
78 for(CodeMap::const_iterator itCode =
table_.begin(), itCodeEnd =
table_.end();
97 hc->SetForeground(0xdddddd);
148 std::stringstream ss;
150 for (
size_t i = 0,
e = entry.
vpset().size();
i !=
e; ++
i)
153 ss << key <<
"[" <<
i <<
"]";
155 vdata.
label = ss.str();
175 typedef edm::ParameterSet::table::const_iterator TIterator;
176 for (TIterator
i = ps.
tbl().begin(),
e = ps.
tbl().end();
i !=
e; ++
i)
179 typedef edm::ParameterSet::psettable::const_iterator PSIterator;
183 typedef edm::ParameterSet::vpsettable::const_iterator VPSIterator;
191 std::stringstream ss;
193 data.
value = ss.str();
197 template <
typename T>
200 std::stringstream ss;
202 for (
size_t ii = 0, ie = v.size();
ii != ie; ++
ii)
213 data.
value = ss.str();
219 std::stringstream ss;
228 if (data.
label[0] ==
'@')
310 throw std::runtime_error(
"FWPSetTableManager::handleEntryGet, entry type 'p' not expected.");
319 throw std::runtime_error(
"FWPSetTableManager::handleEntry, entry type 'P not expected.");
331 std::vector<std::string>
tags;
333 for (
size_t iti = 0, ite = tags.size(); iti != ite; ++iti)
346 std::vector<std::string>
tags;
348 for (
size_t iti = 0, ite = tags.size(); iti != ite; ++iti)
361 std::vector<edm::EventID> ids;
363 for (
size_t iri = 0, ire = ids.size(); iri != ire; ++iri )
377 std::vector<edm::LuminosityBlockID> ids;
379 for (
size_t iri = 0, ire = ids.size(); iri != ire; ++iri )
393 std::vector<edm::LuminosityBlockRange>
ranges;
395 for (
size_t iri = 0, ire = ranges.size(); iri != ire; ++iri )
409 std::vector<edm::EventRange>
ranges;
411 for (
size_t iri = 0, ire = ranges.size(); iri != ire; ++iri )
449 pathEntry.
value =
"Path";
464 std::vector<std::string> pathModules;
467 for (
size_t mi = 0, me = pathModules.size(); mi != me; ++mi)
474 const edm::ParameterSet::table::const_iterator ti = pst.find(
"@module_edm_type");
476 moduleEntry.
value =
"Unknown module name";
478 moduleEntry.
value = ti->second.getString();
480 moduleEntry.
label = pathModules[mi];
484 moduleEntry.
path =
i;
490 moduleInfo.
passed =
false;
491 moduleInfo.
dirty =
false;
526 for (
size_t mi = 0, me =
m_modules.size(); mi != me; ++mi)
530 for (
size_t pui = 0, pue = pathUpdates.size(); pui != pue; ++pui)
614 m_editor->SetForegroundColor(gVirtualX->GetPixel(kRed));
626 return "Modules & their parameters";
631 std::vector<std::string> returnValue;
633 returnValue.push_back(
"Label");
634 returnValue.push_back(
"Value");
677 if (iColumn == 1 && iRow > 0 )
699 if (ww.size() > 1 && ww[1] > 0)
740 const static size_t maxSize = 512;
746 const static Pixel_t gray = 0x777777;
747 const static Pixel_t
red = gVirtualX->GetPixel(kRed-5);
748 const static Pixel_t
green = gVirtualX->GetPixel(kGreen-5);
769 gc->SetForeground(path.
passed ? green: red);
771 else if (data.
level == 1)
777 gc->SetForeground(module.
passed ? green : red);
794 gc->SetForeground(gray);
799 if (iCol == 1 && value.size() >=
maxSize)
802 fwLog(
fwlog::kWarning) <<
"label: " << label <<
" has too long value " << value << std::endl << std::endl;
804 value = value.substr(0, maxSize);
805 value +=
"[truncated]";
806 gc->SetForeground(gVirtualX->GetPixel(kMagenta));
818 bool isParent =
false;
825 size_t nextIdx = unsortedRow + 1;
826 isParent = (nextIdx <
m_entries.size() &&
m_entries[nextIdx].parent == (size_t)unsortedRow);
835 indent = data.
level * 10 ;
884 std::vector<int>
stack;
885 int previousLevel = 0;
890 if (data.
parent == (
size_t)-1)
906 if (data.
level > previousLevel)
907 stack.push_back(data.
parent);
909 for (
size_t pi = 0, pe = previousLevel - data.
level;
pi != pe; ++
pi)
915 for (
size_t pi = 0, pe = stack.size();
pi != pe; ++
pi)
923 previousLevel = data.
level;
952 if (data.
parent == ((
size_t) -1))
int selectedColumn() const
void modulesInPath(const std::string &iPathLabel, std::vector< std::string > &oLabelsToFill) const
add to oLabelsToFill in execution order the labels of all modules in path iPathLabel ...
std::vector< unsigned > getVUInt32() const
std::vector< double > getVDouble() const
void recalculateVisibility()
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const
std::vector< std::string > m_availablePaths
virtual std::vector< unsigned int > maxWidthForColumns() const
for each column in the table this returns the present maximum width for that column ...
std::vector< unsigned long long > getVUInt64() const
std::vector< LuminosityBlockID > getVLuminosityBlockID() const
static TypeTrans const sTypeTranslations
std::vector< PathInfo > m_paths
std::vector< std::string > CodeMap
virtual bool rowIsSelected(int row) const
virtual void implSort(int, bool)
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'...
FWTextTreeCellRenderer m_renderer
unsigned getUInt32() const
std::vector< size_t > m_parentStack
std::vector< InputTag > getVInputTag() const
edm::ParameterSet * orig_pset
std::vector< int > & rowToIndex()
void setIsOpen(bool value)
virtual ~FWPSetTableManager()
void handlePSetEntry(edm::ParameterSetEntry &entry, const std::string &key)
void setExpanded(int row)
void createVectorString(FWPSetTableManager::PSetData &data, const T &v, bool quotes)
void dataChanged()
Classes which inherit from FWTableManagerBase must call this when their underlying data changes...
std::string relativePath() const
std::vector< ModuleInfo > m_modules
LuminosityBlockRange getLuminosityBlockRange() const
virtual std::vector< unsigned int > maxWidthForColumns() const
for each column in the table this returns the present maximum width for that column ...
std::vector< EventID > getVEventID() const
virtual const std::string title() const
unsigned long long getUInt64() const
std::map< std::string, size_t > m_pathIndex
ParameterSet const & pset() const
std::vector< PSetData > & data()
void handleVPSetEntry(edm::VParameterSetEntry &entry, const std::string &key)
static const TGGC & getDefaultGC()
tuple maxSize
'/store/data/Commissioning08/BeamHalo/RECO/StuffAlmostToP5_v1/000/061/642/10A0FE34-A67D-DD11-AD05-000...
std::vector< int > m_row_to_index
std::vector< PSetData > m_entries
std::pair< std::string, MonitorElement * > entry
void setHighlightContext(const TGGC *context)
virtual void setCellEditor(TGTextEntry *editor)
virtual std::vector< std::string > getTitles() const
returns the title names for each column
InputTag getInputTag() const
std::map< std::string, char > type2Code_
bool apply(FWPSetTableManager::PSetData &data, FWPSetTableManager::PSetData &parent)
void handleEntry(const edm::Entry &entry, const std::string &key)
static const TGGC & getDefaultHighlightGC()
std::vector< ParameterSet > const & vpset() const
std::vector< long long > getVInt64() const
void handlePSet(edm::ParameterSet *psp)
std::vector< ESInputTag > getVESInputTag() const
void setGraphicsContext(const TGGC *iContext)
FWPSetCellEditor * m_editor
void setIsParent(bool value)
std::vector< EventRange > getVEventRange() const
virtual void setIndentation(int indentation=0)
void updateSchedule(const edm::ScheduleInfo *info)
void createScalarString(PSetData &data, T v)
void setData(const std::string &, bool isSelected)
FileInPath getFileInPath() const
psettable const & psetTable() const
virtual void updateFilter(const char *filter)
const edm::ParameterSet * parametersForModule(const std::string &iLabel) const
std::vector< int > getVInt32() const
void setCellValueEditor(FWPSetCellEditor *editor)
std::map< std::string, Entry > table
LuminosityBlockID getLuminosityBlockID() const
char data[epos_bytes_allocation]
vpsettable const & vpsetTable() const
EventRange getEventRange() const
void update(std::vector< PathUpdate > &pathUpdates)
void visualPropertiesChanged()
Classes which inherit from FWTableManagerBase must call this when how the data is shown (e...
virtual int unsortedRowNumber(int unsorted) const
when passed the index to the sorted order of the rows it returns the original row number from the und...
std::vector< LuminosityBlockRange > getVLuminosityBlockRange() const
void setSelection(int row, int column, int mask)
ESInputTag getESInputTag() const
virtual unsigned int cellHeight() const
require all cells to be the same height
table const & tbl() const
virtual int numberOfColumns() const
Number of columns in the table.
virtual int numberOfRows() const
Number of rows in the table.
std::vector< std::string > getVString() const
void availablePaths(std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill the labels for all paths in the process
std::string getString() const
edm::ParameterSet * current_pset
virtual void showEditor(bool value)
EventID getEventID() const