|
|
Go to the documentation of this file.
14 #include "TEveManager.h"
15 #include "TEveBrowser.h"
16 #include "TEveTrack.h"
17 #include "TEvePointSet.h"
18 #include "TEveCompound.h"
55 : m_trackerPropagator(nullptr), m_trajToTrackMap(nullptr) {
74 TEveElementList* product,
85 event->getByLabel(
tag, trajTrackAssociationHandle);
97 unsigned track_index = 0;
99 ++it, ++track_index) {
103 if (
item()->modelInfo(track_index).displayProperties().isVisible())
107 for (reco::TrackCollection::const_iterator
i =
tracks->begin();
i !=
tracks->end(); ++
i) {
111 ts.fSign =
track.charge();
115 eveTrack->MakeTrack();
122 gEve->GetBrowser()->MapWindow();
126 TEveCompound*
comp) {
132 ts.fSign =
track.charge();
138 std::vector<TrajectoryMeasurement> measurements = traj.
measurements();
139 std::vector<TrajectoryMeasurement>::iterator measurements_it = measurements.begin();
140 std::vector<TrajectoryMeasurement>::reverse_iterator measurements_rit = measurements.rbegin();
141 for (
size_t t = 0;
t != measurements.size(); ++
t, ++measurements_it, ++measurements_rit) {
148 eveTrack->AddPathMark(TEvePathMark(
149 TEvePathMark::kReference,
154 eveTrack->MakeTrack();
159 TEveElement* iCompound,
163 bool returnValue =
false;
164 if (
info.displayProperties().isVisible() && iCompound->NumChildren() == 0 &&
m_trajToTrackMap) {
166 std::advance(it, iId.
index());
ModelInfo modelInfo(int iIndex) const
FWProxyBuilderConfiguration * getConfig() const
FWTrackProxyBuilderFullFramework()
PropagationDirection const & direction() const
static const int kAllRPZBits
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void get(const T *&oData) const
TEveTrackPropagator * m_trackerPropagator
GlobalPoint globalPosition() const
const FWTrackProxyBuilderFullFramework & operator=(const FWTrackProxyBuilderFullFramework &)=delete
#define REGISTER_PROXYBUILDER_METHODS()
const FWEventItem * item() const
void setItem(const FWEventItem *iItem) override
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
static const int kAll3DBits
const_iterator end() const
last iterator over the map (read only)
void buildTrack(TrajTrackAssociationCollection::const_iterator it, TEveCompound *comp)
constexpr unsigned getField(const uint32_t u, const unsigned mask, const unsigned offset)
FWGenericParameter< T > * assertParam(const std::string &name, T def)
const edm::EventBase * getEvent() const
friend struct const_iterator
const TrajTrackAssociationCollection * m_trajToTrackMap
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
bool visibilityModelChanges(const FWModelId &, TEveElement *, FWViewType::EType, const FWViewContext *) override
~FWTrackProxyBuilderFullFramework() override
DataContainer const & measurements() const
const FWEventItem * item() const
GlobalVector globalMomentum() const
T value(const std::string &name)
const_iterator begin() const
first iterator over the map (read only)
const fireworks::Context & context() const
virtual void setItem(const FWEventItem *iItem)
std::vector< Track > TrackCollection
collection of Tracks