15 #include "TEveManager.h"
16 #include "TEveBrowser.h"
17 #include "TEveTrack.h"
18 #include "TEvePointSet.h"
19 #include "TEveCompound.h"
59 m_trackerPropagator(0),
89 if( tracks == 0 )
return;
95 event->getByLabel(tag, trajTrackAssociationHandle);
109 unsigned track_index = 0;
115 if (
item()->modelInfo(track_index).displayProperties().isVisible())
119 gEve->GetBrowser()->MapWindow();
129 ts.fSign = track.
charge();
130 ts.fP.Set(track.
px(), track.
py(), track.
pz());
131 ts.fV.Set(track.
vx(), track.
vy(), track.
vz());
135 std::vector<TrajectoryMeasurement> measurements = traj.
measurements();
136 std::vector<TrajectoryMeasurement>::iterator measurements_it = measurements.begin();
137 std::vector<TrajectoryMeasurement>::reverse_iterator measurements_rit = measurements.rbegin();
138 for (
size_t t=0;
t != measurements.size(); ++
t, ++measurements_it, ++measurements_rit)
142 if( !trajState.
isValid() )
continue;
144 eveTrack->AddPathMark( TEvePathMark( TEvePathMark::kReference,
149 eveTrack->MakeTrack();
157 bool returnValue =
false;
161 std::advance(it, iId.
index());
virtual char const * what() const
virtual void setItem(const FWEventItem *iItem)
const fireworks::Context & context() const
const TrajTrackAssociationCollection * m_trajToTrackMap
FWProxyBuilderConfiguration * getConfig() const
const FWDisplayProperties & displayProperties() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
const_iterator end() const
last iterator over the map (read only)
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
TEveTrackPropagator * m_trackerPropagator
void get(const T *&oData) const
std::vector< Track > TrackCollection
collection of Tracks
GlobalPoint globalPosition() const
double px() const
x coordinate of momentum vector
const FWEventItem * item() const
static const int kAll3DBits
PropagationDirection const & direction() const
DataContainer const & measurements() const
const FWTrackProxyBuilderFF & operator=(const FWTrackProxyBuilderFF &)
virtual void setItem(const FWEventItem *iItem)
void buildTrack(TrajTrackAssociationCollection::const_iterator it, TEveCompound *comp)
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
virtual ~FWTrackProxyBuilderFF()
REGISTER_PROXYBUILDER_METHODS()
virtual bool visibilityModelChanges(const FWModelId &, TEveElement *, FWViewType::EType, const FWViewContext *)
double vy() const
y coordinate of the reference point on track
GlobalVector globalMomentum() const
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