15 #include <boost/bind.hpp>
18 #include "TEveManager.h"
55 table(
"reco::GenParticle").
69 column(
"tr pt", 1,
"track().pt()").
73 column(
"d0", 3,
"track().d0()").
74 column(
"d0 / d0Err", 3,
"track().d0() / track().d0Error()");
76 table(
"reco::GsfElectron").
81 column(
"E/p", 3,
"eSuperClusterOverP").
82 column(
"H/E", 3,
"hadronicOverEm").
83 column(
"fbrem", 3,
"(trackMomentumAtVtx().R() - trackMomentumOut().R()) / trackMomentumAtVtx().R()").
84 column(
"dei", 3,
"deltaEtaSuperClusterTrackAtVtx()").
85 column(
"dpi", 3,
"deltaPhiSuperClusterTrackAtVtx()");
87 table(
"reco::Photon").
91 column(
"H/E", 3,
"hadronicOverEm");
93 table(
"reco::CaloJet").
97 column(
"ECAL", 1,
"p4().E() * emEnergyFraction()").
98 column(
"HCAL", 1,
"p4().E() * energyFractionHadronic()").
99 column(
"emf", 3,
"emEnergyFraction()");
112 table(
"reco::Track").
118 column(
"d0Err", 5,
"d0Error").
120 column(
"dzErr", 5,
"dzError").
129 table(
"DTRecSegment4D").
130 column(
"wheel", 0,
"chamberId.wheel").
131 column(
"station", 0,
"chamberId.station").
132 column(
"sector", 0,
"chamberId.sector").
133 column(
"t0phi", 2,
"phiSegment.t0").
134 column(
"t0theta", 2,
"zSegment.t0").
135 column(
"hasPhi", -2,
"hasPhi").
136 column(
"hasZed", -2,
"hasZed").
137 column(
"chi2", 2,
"chi2").
138 column(
"dof", 0,
"degreesOfFreedom");
140 table(
"DTRecHit1DPair").
141 column(
"wheel", 0,
"wireId.wheel").
142 column(
"station", 0,
"wireId.station").
143 column(
"sector", 0,
"wireId.sector").
144 column(
"SL", 0,
"wireId.superlayer").
145 column(
"layer", 0,
"wireId.layer").
146 column(
"wire", 0,
"wireId.wire").
147 column(
"digiTime", 2,
"digiTime");
150 column(
"endcap", 0,
"cscDetId.endcap").
151 column(
"station", 0,
"cscDetId.station").
152 column(
"ring", 0,
"cscDetId.ring").
153 column(
"chamber", 0,
"cscDetId.chamber");
155 table(
"reco::Vertex").
230 FWTableViewManager::TableSpecs::iterator
239 for (
auto const&
base : bases)
262 FWTableViewManager::TableSpecs::iterator
284 for (
auto const& member : functionMembers)
303 for (
auto const& member : dataMembers)
327 FWTableViewManager::TableSpecs::iterator
336 TEveManager::TRedrawDisabler disableRedraw(gEve);
337 boost::shared_ptr<FWTableView> view(
new FWTableView(iParent,
this));
352 if(it->get() == iView)
415 gEve->DisableRedraw();
421 gEve->EnableRedraw();
472 for (TableSpecs::const_iterator
475 iType != iType_end; ++iType)
481 for (
size_t ei = 0, ee = entries.size(); ei != ee; ++ei)
512 iType != iTypeEnd; ++iType)
516 assert(columns != 0);
525 int prec = atoi(it->c_str());
526 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)
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)