8 #include "TEveStraightLineSet.h"
34 TEveElement& oItemHolder,
40 TEveElement& oItemHolder,
42 TEveStraightLineSet* marker =
new TEveStraightLineSet(
"marker");
45 TEveTrack*
track(
nullptr);
53 const double delta = 0.1;
54 marker->AddLine(track->GetEndMomentum().Eta() -
delta,
55 track->GetEndMomentum().Phi() -
delta,
57 track->GetEndMomentum().Eta() +
delta,
58 track->GetEndMomentum().Phi() +
delta,
60 marker->AddLine(track->GetEndMomentum().Eta() -
delta,
61 track->GetEndMomentum().Phi() +
delta,
63 track->GetEndMomentum().Eta() +
delta,
64 track->GetEndMomentum().Phi() -
delta,
66 marker->AddLine(track->GetEndMomentum().Eta(),
67 track->GetEndMomentum().Phi() -
delta,
69 track->GetEndMomentum().Eta(),
70 track->GetEndMomentum().Phi() +
delta,
72 marker->AddLine(track->GetEndMomentum().Eta() -
delta,
73 track->GetEndMomentum().Phi(),
75 track->GetEndMomentum().Eta() +
delta,
76 track->GetEndMomentum().Phi(),
const fireworks::Context & context() const
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
TEveTrack * prepareTrack(const reco::Track &track, TEveTrackPropagator *propagator, const std::vector< TEveVector > &extraRefPoints=std::vector< TEveVector >())
~FWElectronLegoProxyBuilder() override
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
TEveTrackPropagator * getTrackPropagator() const
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
FWElectronLegoProxyBuilder()
static const int kAllLegoBits
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
const FWElectronLegoProxyBuilder & operator=(const FWElectronLegoProxyBuilder &)=delete