15 #include <boost/bind.hpp> 18 #include "TEveManager.h" 55 table(
"reco::GenParticle").
56 column(
"pT", 1,
"pt").
64 column(
"pT", 1,
"pt").
69 column(
"tr pt", 1,
"track().pt()").
72 column(
"matches",
TableEntry::INT,
"numberOfMatches('SegmentArbitration')").
73 column(
"d0", 3,
"track().d0()").
74 column(
"d0 / d0Err", 3,
"track().d0() / track().d0Error()");
76 table(
"reco::GsfElectron").
78 column(
"pT", 1,
"pt").
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").
88 column(
"pT", 1,
"pt").
91 column(
"H/E", 3,
"hadronicOverEm");
93 table(
"reco::CaloJet").
94 column(
"pT", 1,
"pt").
97 column(
"ECAL", 1,
"p4().E() * emEnergyFraction()").
98 column(
"HCAL", 1,
"p4().E() * energyFractionHadronic()").
99 column(
"emf", 3,
"emEnergyFraction()");
102 column(
"pT", 1,
"pt").
105 column(
"electronEnergyFraction", 3,
"electronEnergyFraction()").
106 column(
"muonEnergyFraction", 3,
"muonEnergyFraction()").
107 column(
"photonEnergyFraction", 3,
"photonEnergyFraction()");
115 table(
"reco::Track").
117 column(
"pT", 1,
"pt").
121 column(
"d0Err", 5,
"d0Error").
123 column(
"dzErr", 5,
"dzError").
127 column(
"pixel hits",
TableEntry::INT,
"hitPattern().numberOfValidPixelHits()").
128 column(
"strip hits",
TableEntry::INT,
"hitPattern().numberOfValidStripHits()").
132 table(
"DTRecSegment4D").
133 column(
"wheel", 0,
"chamberId.wheel").
134 column(
"station", 0,
"chamberId.station").
135 column(
"sector", 0,
"chamberId.sector").
136 column(
"t0phi", 2,
"phiSegment.t0").
137 column(
"t0theta", 2,
"zSegment.t0").
138 column(
"hasPhi", -2,
"hasPhi").
139 column(
"hasZed", -2,
"hasZed").
140 column(
"chi2", 2,
"chi2").
141 column(
"dof", 0,
"degreesOfFreedom");
143 table(
"DTRecHit1DPair").
144 column(
"wheel", 0,
"wireId.wheel").
145 column(
"station", 0,
"wireId.station").
146 column(
"sector", 0,
"wireId.sector").
147 column(
"SL", 0,
"wireId.superlayer").
148 column(
"layer", 0,
"wireId.layer").
149 column(
"wire", 0,
"wireId.wire").
150 column(
"digiTime", 2,
"digiTime");
153 column(
"endcap", 0,
"cscDetId.endcap").
154 column(
"station", 0,
"cscDetId.station").
155 column(
"ring", 0,
"cscDetId.ring").
156 column(
"chamber", 0,
"cscDetId.chamber");
158 table(
"reco::Vertex").
172 column(
"et", 1,
"Et").
182 table(
"reco::PFCandidate").
183 column(
"et", 1,
"Et").
186 column(
"ecalEnergy", 3,
"ecalEnergy()").
187 column(
"hcalEnergy", 3,
"hcalEnergy()").
188 column(
"track pt", 3,
"trackRef().pt()");
190 table(
"reco::Electron").
191 column(
"pT", 1,
"pt").
194 column(
"E/p", 3,
"eSuperClusterOverP").
195 column(
"H/E", 3,
"hadronicOverEm").
196 column(
"fbrem", 3,
"(trackMomentumAtVtx().R() - trackMomentumOut().R()) / trackMomentumAtVtx().R()" ).
197 column(
"dei",3,
"deltaEtaSuperClusterTrackAtVtx" ).
198 column(
"dpi", 3,
"deltaPhiSuperClusterTrackAtVtx()").
199 column(
"charge", 0,
"charge").
200 column(
"isPF", 0,
"isPF()").
201 column(
"sieie", 3,
"sigmaIetaIeta").
202 column(
"isNotConv", 1,
"passConversionVeto");
204 table(
"pat::PackedCandidate").
205 column(
"pT", 1,
"pt").
211 column(
"dzAssociatedPV", 3,
"dzAssociatedPV()");
257 m_specs[m_name].push_back(columnEntry);
264 FWTableViewManager::TableSpecs::iterator
273 for (
auto const&
base : bases)
296 FWTableViewManager::TableSpecs::iterator
318 for (
auto const& member : functionMembers)
337 for (
auto const& member : dataMembers)
361 FWTableViewManager::TableSpecs::iterator
370 TEveManager::TRedrawDisabler disableRedraw(gEve);
371 auto view = std::make_shared<FWTableView>(iParent,
this);
386 if(it->get() == iView)
449 gEve->DisableRedraw();
455 gEve->EnableRedraw();
506 for (TableSpecs::const_iterator
509 iType != iType_end; ++iType)
515 for (
size_t ei = 0, ee = entries.size(); ei != ee; ++ei)
533 if (typeNames ==
nullptr)
546 iType != iTypeEnd; ++iType)
550 assert(columns !=
nullptr);
559 int prec = atoi(it->c_str());
560 handle.
column(name.c_str(), prec, expr.c_str());
const StringValues * stringValues() const
void addToImpl(FWConfiguration &) const
TableHandle table(const char *collection)
void addTo(FWConfiguration &) const override
TableSpecs m_tableFormats
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
static TypeWithDict byName(std::string const &name)
void registerViewBuilder(const std::string &iName, ViewBuildFunctor &iBuilder)
TableSpecs::iterator tableFormats(const edm::TypeWithDict &key)
TableSpecs::iterator tableFormatsImpl(const edm::TypeWithDict &key)
TypeWithDict typeOf() const
void modelChangesComing() override
base
Make Sure CMSSW is Setup ##.
TypeWithDict finalReturnType() const
void setFrom(const FWConfiguration &) override
std::vector< TableEntry > TableEntries
void removeAllItems(void)
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
FWConfiguration & addValue(const std::string &)
void modelChangesDone() override
void colorsChanged() override
void destroyItem(const FWEventItem *item)
size_t functionParameterSize(bool required=false) const
static const std::string & idToName(int)
~FWTableViewManager() override
FWTypeToRepresentations supportedTypesAndRepresentations() const override
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)
void newItem(const FWEventItem *) override