16 #include <boost/bind.hpp>
19 #include "TEveManager.h"
56 table(
"reco::GenParticle").
57 column(
"pT", 1,
"pt").
65 column(
"pT", 1,
"pt").
70 column(
"tr pt", 1,
"track().pt()").
73 column(
"matches",
TableEntry::INT,
"numberOfMatches('SegmentArbitration')").
74 column(
"d0", 3,
"track().d0()").
75 column(
"d0 / d0Err", 3,
"track().d0() / track().d0Error()");
77 table(
"reco::GsfElectron").
79 column(
"pT", 1,
"pt").
82 column(
"E/p", 3,
"eSuperClusterOverP").
83 column(
"H/E", 3,
"hadronicOverEm").
84 column(
"fbrem", 3,
"(trackMomentumAtVtx().R() - trackMomentumOut().R()) / trackMomentumAtVtx().R()").
85 column(
"dei", 3,
"deltaEtaSuperClusterTrackAtVtx()").
86 column(
"dpi", 3,
"deltaPhiSuperClusterTrackAtVtx()");
88 table(
"reco::Photon").
89 column(
"pT", 1,
"pt").
92 column(
"H/E", 3,
"hadronicOverEm");
94 table(
"reco::CaloJet").
95 column(
"pT", 1,
"pt").
98 column(
"ECAL", 1,
"p4().E() * emEnergyFraction()").
99 column(
"HCAL", 1,
"p4().E() * energyFractionHadronic()").
100 column(
"emf", 3,
"emEnergyFraction()");
103 column(
"pT", 1,
"pt").
113 table(
"reco::Track").
115 column(
"pT", 1,
"pt").
119 column(
"d0Err", 5,
"d0Error").
121 column(
"dzErr", 5,
"dzError").
125 column(
"pixel hits",
TableEntry::INT,
"hitPattern().numberOfValidPixelHits()").
126 column(
"strip hits",
TableEntry::INT,
"hitPattern().numberOfValidStripHits()").
130 table(
"reco::Vertex").
144 column(
"et", 1,
"Et").
205 FWTableViewManager::TableSpecs::iterator
214 for (
auto const&
base : bases)
237 FWTableViewManager::TableSpecs::iterator
259 for (
auto const& member : functionMembers)
278 for (
auto const& member : dataMembers)
302 FWTableViewManager::TableSpecs::iterator
311 TEveManager::TRedrawDisabler disableRedraw(gEve);
312 boost::shared_ptr<FWTableView> view(
new FWTableView(iParent,
this));
327 if(it->get() == iView)
390 gEve->DisableRedraw();
396 gEve->EnableRedraw();
447 for (TableSpecs::const_iterator
450 iType != iType_end; ++iType)
456 for (
size_t ei = 0, ee = entries.size(); ei != ee; ++ei)
487 iType != iTypeEnd; ++iType)
491 assert(columns != 0);
500 int prec = atoi(it->c_str());
501 handle.
column(name.c_str(), prec, expr.c_str());
const StringValues * stringValues() const
void addToImpl(FWConfiguration &) const
TableHandle table(const char *collection)
static TypeWithDict byName(std::string const &className)
virtual FWTypeToRepresentations supportedTypesAndRepresentations() const
TableSpecs m_tableFormats
void setFrom(const FWConfiguration &)
virtual void newItem(const FWEventItem *)
TableHandle & column(const char *formula, int precision, const char *name)
const std::string & typeName() const
FWItemChangeSignal goingToBeDestroyed_
FWColorManager & colorManager() const
boost::function2< FWViewBase *, TEveWindowSlot *, const std::string & > ViewBuildFunctor
void registerViewBuilder(const std::string &iName, ViewBuildFunctor &iBuilder)
TableSpecs::iterator tableFormats(const edm::TypeWithDict &key)
virtual ~FWTableViewManager()
TypeWithDict returnType() const
TableSpecs::iterator tableFormatsImpl(const edm::TypeWithDict &key)
std::pair< std::string, MonitorElement * > entry
TypeWithDict typeOf() const
std::vector< TableEntry > TableEntries
void removeAllItems(void)
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
void addTo(FWConfiguration &) const
FWConfiguration & addValue(const std::string &)
virtual void modelChangesDone()
virtual void colorsChanged()
void destroyItem(const FWEventItem *item)
size_t functionParameterSize(bool required=false) const
virtual void modelChangesComing()
static const std::string & idToName(int)
const FWConfiguration * valueForKey(const std::string &iKey) const
StringValues::const_iterator StringValuesIt
static const std::string kConfigTypeNames
void beingDestroyed(const FWViewBase *)
FWViewBase * buildView(TEveWindowSlot *iParent, const std::string &type)