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) {
FWTrackProxyBuilderFullFramework()
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void setItem(const FWEventItem *iItem) override
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
friend struct const_iterator
FWProxyBuilderConfiguration * getConfig() const
void buildTrack(TrajTrackAssociationCollection::const_iterator it, TEveCompound *comp)
void get(const T *&oData) const
std::vector< Track > TrackCollection
collection of Tracks
bool visibilityModelChanges(const FWModelId &, TEveElement *, FWViewType::EType, const FWViewContext *) override
static const int kAll3DBits
const fireworks::Context & context() const
const FWTrackProxyBuilderFullFramework & operator=(const FWTrackProxyBuilderFullFramework &)=delete
DataContainer const & measurements() const
const_iterator end() const
last iterator over the map (read only)
const TrajTrackAssociationCollection * m_trajToTrackMap
~FWTrackProxyBuilderFullFramework() override
GlobalPoint globalPosition() const
PropagationDirection const & direction() const
virtual void setItem(const FWEventItem *iItem)
constexpr unsigned getField(const uint32_t u, const unsigned mask, const unsigned offset)
const edm::EventBase * getEvent() const
const FWEventItem * item() const
FWGenericParameter< T > * assertParam(const std::string &name, T def)
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
GlobalVector globalMomentum() const
const_iterator begin() const
first iterator over the map (read only)
TEveTrackPropagator * m_trackerPropagator
T value(const std::string &name)
ModelInfo modelInfo(int iIndex) const
const FWEventItem * item() const