14 #include "TEveManager.h" 15 #include "TEveBrowser.h" 16 #include "TEveTrack.h" 17 #include "TEvePointSet.h" 18 #include "TEveCompound.h" 88 if( tracks ==
nullptr )
return;
94 event->getByLabel(tag, trajTrackAssociationHandle);
107 unsigned track_index = 0;
113 if (
item()->modelInfo(track_index).displayProperties().isVisible())
118 for (reco::TrackCollection::const_iterator
i = tracks->begin();
i != tracks->end(); ++
i)
123 ts.fSign = track.
charge();
124 ts.fP.Set(track.
px(), track.
py(), track.
pz());
125 ts.fV.Set(track.
vx(), track.
vy(), track.
vz());
127 eveTrack->MakeTrack();
136 gEve->GetBrowser()->MapWindow();
146 ts.fSign = track.
charge();
147 ts.fP.Set(track.
px(), track.
py(), track.
pz());
148 ts.fV.Set(track.
vx(), track.
vy(), track.
vz());
152 std::vector<TrajectoryMeasurement> measurements = traj.
measurements();
153 std::vector<TrajectoryMeasurement>::iterator measurements_it = measurements.begin();
154 std::vector<TrajectoryMeasurement>::reverse_iterator measurements_rit = measurements.rbegin();
155 for (
size_t t=0;
t != measurements.size(); ++
t, ++measurements_it, ++measurements_rit)
159 if( !trajState.
isValid() )
continue;
161 eveTrack->AddPathMark( TEvePathMark( TEvePathMark::kReference,
166 eveTrack->MakeTrack();
174 bool returnValue =
false;
178 std::advance(it, iId.
index());
const fireworks::Context & context() const
FWProxyBuilderConfiguration * getConfig() const
FWTrackProxyBuilderFullFramework()
#define REGISTER_PROXYBUILDER_METHODS()
const FWDisplayProperties & displayProperties() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void setItem(const FWEventItem *iItem) override
static const int kAllRPZBits
unsigned getField(const uint32_t u, const unsigned mask, const unsigned offset)
friend struct const_iterator
const_iterator end() const
last iterator over the map (read only)
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
void buildTrack(TrajTrackAssociationCollection::const_iterator it, TEveCompound *comp)
std::vector< Track > TrackCollection
collection of Tracks
GlobalPoint globalPosition() const
char const * what() const override
double px() const
x coordinate of momentum vector
bool visibilityModelChanges(const FWModelId &, TEveElement *, FWViewType::EType, const FWViewContext *) override
const FWEventItem * item() const
static const int kAll3DBits
const FWTrackProxyBuilderFullFramework & operator=(const FWTrackProxyBuilderFullFramework &)=delete
PropagationDirection const & direction() const
const TrajTrackAssociationCollection * m_trajToTrackMap
~FWTrackProxyBuilderFullFramework() override
DataContainer const & measurements() const
virtual void setItem(const FWEventItem *iItem)
double pz() const
z coordinate of momentum vector
FWGenericParameter< T > * assertParam(const std::string &name, T def)
double vz() const
z coordinate of the reference point on track
const edm::EventBase * getEvent() const
double vy() const
y coordinate of the reference point on track
GlobalVector globalMomentum() const
TEveTrackPropagator * m_trackerPropagator
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
T value(const std::string &name)
int charge() const
track electric charge
const_iterator begin() const
first iterator over the map (read only)
ModelInfo modelInfo(int iIndex) const
const FWEventItem * item() const
double py() const
y coordinate of momentum vector
double vx() const
x coordinate of the reference point on track