63 table_[
'F'] =
"FileInPath";
66 table_[
'g'] =
"ESInputTag";
67 table_[
'G'] =
"VESInputTag";
70 table_[
'm'] =
"VLuminosityBlockID";
71 table_[
'M'] =
"LuminosityBlockID";
72 table_[
'a'] =
"VLuminosityBlockRange";
73 table_[
'A'] =
"LuminosityBlockRange";
74 table_[
'r'] =
"VEventRange";
75 table_[
'R'] =
"EventRange";
77 for(CodeMap::const_iterator itCode =
table_.begin(), itCodeEnd =
table_.end();
96 hc->SetForeground(0xdddddd);
147 std::stringstream ss;
149 for (
size_t i = 0, e = entry.
vpset().size();
i != e; ++
i)
152 ss << key <<
"[" <<
i <<
"]";
154 vdata.
label = ss.str();
171 typedef edm::ParameterSet::table::const_iterator TIterator;
172 for (TIterator
i = ps.
tbl().begin(), e = ps.
tbl().end();
i != e; ++
i)
175 typedef edm::ParameterSet::psettable::const_iterator PSIterator;
179 typedef edm::ParameterSet::vpsettable::const_iterator VPSIterator;
187 std::stringstream ss;
189 data.
value = ss.str();
193 template <
typename T>
196 std::stringstream ss;
198 for (
size_t ii = 0, ie = v.size(); ii != ie; ++ii)
209 data.
value = ss.str();
215 std::stringstream ss;
305 std::vector<edm::ParameterSet> psets = entry.
getVPSet();
306 for (
size_t psi = 0, pse = psets.size();
psi != pse; ++
psi)
323 std::vector<std::string>
tags;
325 for (
size_t iti = 0, ite = tags.size(); iti != ite; ++iti)
338 std::vector<std::string>
tags;
340 for (
size_t iti = 0, ite = tags.size(); iti != ite; ++iti)
353 std::vector<edm::EventID> ids;
355 for (
size_t iri = 0, ire = ids.size(); iri != ire; ++iri )
369 std::vector<edm::LuminosityBlockID> ids;
371 for (
size_t iri = 0, ire = ids.size(); iri != ire; ++iri )
385 std::vector<edm::LuminosityBlockRange>
ranges;
387 for (
size_t iri = 0, ire = ranges.size(); iri != ire; ++iri )
401 std::vector<edm::EventRange>
ranges;
403 for (
size_t iri = 0, ire = ranges.size(); iri != ire; ++iri )
441 pathEntry.
value =
"Path";
456 std::vector<std::string> pathModules;
459 for (
size_t mi = 0, me = pathModules.size(); mi != me; ++mi)
465 const edm::ParameterSet::table::const_iterator ti = pst.find(
"@module_edm_type");
468 moduleEntry.
value =
"Unknown module name";
470 moduleEntry.
value = ti->second.getString();
472 moduleEntry.
label = pathModules[mi];
476 moduleEntry.
path =
i;
477 moduleEntry.
pset = *ps;
482 moduleInfo.
passed =
false;
483 moduleInfo.
dirty =
false;
513 for (
size_t mi = 0, me =
m_modules.size(); mi != me; ++mi)
517 for (
size_t pui = 0, pue = pathUpdates.size(); pui != pue; ++pui)
593 m_editor->SetForegroundColor(gVirtualX->GetPixel(kRed));
605 return "Modules & their parameters";
610 std::vector<std::string> returnValue;
612 returnValue.push_back(
"Label");
613 returnValue.push_back(
"Value");
656 if (iColumn == 1 && iRow > 0 )
678 if (ww.size() > 1 && ww[1] > 0)
725 const static Pixel_t gray = 0x777777;
726 const static Pixel_t
red = gVirtualX->GetPixel(kRed-5);
727 const static Pixel_t
green = gVirtualX->GetPixel(kGreen-5);
748 gc->SetForeground(path.
passed ? green: red);
750 else if (data.
level == 1)
756 gc->SetForeground(module.
passed ? green : red);
773 gc->SetForeground(gray);
778 if (iCol == 1 && value.size() >=
maxSize)
781 fwLog(
fwlog::kWarning) <<
"label: " << label <<
" has too long value " << value << std::endl << std::endl;
783 value = value.substr(0, maxSize);
784 value +=
"[truncated]";
785 gc->SetForeground(gVirtualX->GetPixel(kMagenta));
797 bool isParent =
false;
804 size_t nextIdx = unsortedRow + 1;
805 isParent = (nextIdx <
m_entries.size() &&
m_entries[nextIdx].parent == (size_t)unsortedRow);
814 indent = data.
level * 10 ;
863 std::vector<int>
stack;
864 int previousLevel = 0;
869 if (data.
parent == (
size_t)-1)
885 if (data.
level > previousLevel)
886 stack.push_back(data.
parent);
888 for (
size_t pi = 0, pe = previousLevel - data.
level;
pi != pe; ++
pi)
894 for (
size_t pi = 0, pe = stack.size();
pi != pe; ++
pi)
902 previousLevel = data.
level;
931 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 ...
void handlePSet(const edm::ParameterSet &ps)
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
ParameterSet getPSet() const
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
std::vector< int > & rowToIndex()
void setIsOpen(bool value)
virtual ~FWPSetTableManager()
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
void handleVPSetEntry(const edm::VParameterSetEntry &entry, const std::string &key)
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
std::map< std::string, int, std::less< std::string > > psi
virtual const std::string title() const
const std::string * pathName() const
unsigned long long getUInt64() const
std::map< std::string, size_t > m_pathIndex
ParameterSet const & pset() const
std::vector< PSetData > & data()
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)
std::vector< ParameterSet > getVPSet() const
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
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)
tuple filter
USE THIS FOR SKIMMED TRACKS process.p = cms.Path(process.hltLevel1GTSeed*process.skimming*process.offlineBeamSpot*process.TrackRefitter2) OTHERWISE USE THIS.
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
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 handlePSetEntry(const edm::ParameterSetEntry &entry, const std::string &key)
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
virtual void showEditor(bool value)
EventID getEventID() const