9 #include "TEveStraightLineSet.h"
10 #include "TEveTrack.h"
38 TEveStraightLineSet *marker =
new TEveStraightLineSet(
"marker");
49 const double delta = 0.1;
50 marker->AddLine(track->GetEndMomentum().Eta()-
delta, track->GetEndMomentum().Phi()-
delta, 0.1,
51 track->GetEndMomentum().Eta()+
delta, track->GetEndMomentum().Phi()+
delta, 0.1);
52 marker->AddLine(track->GetEndMomentum().Eta()-
delta, track->GetEndMomentum().Phi()+
delta, 0.1,
53 track->GetEndMomentum().Eta()+
delta, track->GetEndMomentum().Phi()-
delta, 0.1);
54 marker->AddLine(track->GetEndMomentum().Eta(), track->GetEndMomentum().Phi()-
delta, 0.1,
55 track->GetEndMomentum().Eta(), track->GetEndMomentum().Phi()+
delta, 0.1);
56 marker->AddLine(track->GetEndMomentum().Eta()-
delta, track->GetEndMomentum().Phi(), 0.1,
57 track->GetEndMomentum().Eta()+
delta, track->GetEndMomentum().Phi(), 0.1);
const fireworks::Context & context() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
virtual ~FWElectronLegoProxyBuilder()
TEveTrack * prepareTrack(const reco::Track &track, TEveTrackPropagator *propagator, const std::vector< TEveVector > &extraRefPoints=std::vector< TEveVector >())
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
TEveTrackPropagator * getTrackPropagator() const
const FWElectronLegoProxyBuilder & operator=(const FWElectronLegoProxyBuilder &)
FWElectronLegoProxyBuilder()
GsfTrackRef gsfTrack() const
reference to a GsfTrack
static const int kAllLegoBits
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
REGISTER_PROXYBUILDER_METHODS()