8 #include "TEveStraightLineSet.h" 40 if (TEveStraightLineSet*
ls = dynamic_cast<TEveStraightLineSet*>(*parent->BeginChildren())) {
42 for (TEveProjectable::ProjList_i
j =
ls->BeginProjecteds();
j !=
ls->EndProjecteds(); ++
j) {
43 if (TEveStraightLineSet* pls = dynamic_cast<TEveStraightLineSet*>(*
j)) {
44 pls->SetMarkerColor(c);
45 pls->ElementChanged();
49 ls->SetMarkerColor(c);
56 TEveElement& oItemHolder,
58 TEveStraightLineSet*
ls =
new TEveStraightLineSet();
60 double pos[3] = {bs.
x0(), bs.
y0(), bs.
z0()};
66 Float_t
a = e[0],
b = e[1];
67 for (Int_t
i = 0;
i <
N;
i++)
69 a * TMath::Cos(
i * S), b * TMath::Sin(
i * S), 0, a * TMath::Cos(
i * S + S), b * TMath::Sin(
i * S + S), 0);
73 for (Int_t
i = 0;
i <
N;
i++)
75 a * TMath::Cos(
i * S), 0, b * TMath::Sin(
i * S), a * TMath::Cos(
i * S + S), 0, b * TMath::Sin(
i * S + S));
79 for (Int_t
i = 0;
i <
N;
i++)
81 0, a * TMath::Cos(
i * S), b * TMath::Sin(
i * S), 0, a * TMath::Cos(
i * S + S), b * TMath::Sin(
i * S + S));
83 ls->AddLine(0, 0, 0, 0, 0, 0);
84 ls->AddMarker(0, 0, 0);
85 ls->SetMarkerStyle(21);
87 ls->SetMarkerColor(dp.
color());
89 ls->RefMainTrans().SetPos(pos);
double z0() const
z coordinate
const FWDisplayProperties & defaultDisplayProperties() const
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
const FWBeamSpotProxyBuilder & operator=(const FWBeamSpotProxyBuilder &)=delete
const FWEventItem * item() const
static const int kAll3DBits
FWBeamSpotProxyBuilder(void)
void localModelChanges(const FWModelId &iId, TEveElement *parent, FWViewType::EType viewType, const FWViewContext *vc) override
double z0Error() const
error on z
double x0Error() const
error on x
double y0Error() const
error on y
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
double y0() const
y coordinate
ModelInfo modelInfo(int iIndex) const
~FWBeamSpotProxyBuilder(void) override
double x0() const
x coordinate