8 #include "TEveStraightLineSet.h"
35 TEveStraightLineSet *
ls =
dynamic_cast<TEveStraightLineSet*
> ( *parent->BeginChildren() );
37 for (TEveProjectable::ProjList_i
j = ls->BeginProjecteds();
j != ls->EndProjecteds(); ++
j)
39 TEveStraightLineSet *pls =
dynamic_cast<TEveStraightLineSet*
> (*j);
40 pls->SetMarkerColor(c);
41 pls->ElementChanged();
44 ls->SetMarkerColor(c);
52 TEveStraightLineSet*
ls =
new TEveStraightLineSet();
54 double pos[3] = { bs.
x0(), bs.
y0(), bs.
z0() };
60 Float_t
a = e[0],
b = e[1];
61 for (Int_t
i = 0;
i<
N;
i++)
62 ls->AddLine(a*TMath::Cos(
i*S) , b*TMath::Sin(
i*S) , 0,
63 a*TMath::Cos(
i*S+S), b*TMath::Sin(
i*S+S), 0);
66 for (Int_t
i = 0;
i<
N;
i++)
67 ls->AddLine(a*TMath::Cos(
i*S) , 0, b*TMath::Sin(
i*S),
68 a*TMath::Cos(
i*S+S), 0, b*TMath::Sin(
i*S+S));
71 for (Int_t
i = 0;
i<
N;
i++)
72 ls->AddLine(0, a*TMath::Cos(
i*S) , b*TMath::Sin(
i*S),
73 0, a*TMath::Cos(
i*S+S), b*TMath::Sin(
i*S+S));
75 ls->AddLine(0,0,0,0,0,0);
77 ls->SetMarkerStyle(21);
80 ls->SetMarkerColor( dp.
color() );
82 ls->RefMainTrans().SetPos(pos);
double z0() const
z coordinate
const FWDisplayProperties & defaultDisplayProperties() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
virtual ~FWBeamSpotProxyBuilder(void)
const FWEventItem * item() const
static const int kAll3DBits
FWBeamSpotProxyBuilder(void)
REGISTER_PROXYBUILDER_METHODS()
virtual void localModelChanges(const FWModelId &iId, TEveElement *parent, FWViewType::EType viewType, const FWViewContext *vc)
double z0Error() const
error on z
const FWBeamSpotProxyBuilder & operator=(const FWBeamSpotProxyBuilder &)
double x0Error() const
error on x
double y0Error() const
error on y
double y0() const
y coordinate
ModelInfo modelInfo(int iIndex) const
double x0() const
x coordinate