8 #include "TEveStraightLineSet.h" 41 if (TEveStraightLineSet*
ls = dynamic_cast<TEveStraightLineSet*>(*
parent->BeginChildren())) {
43 for (TEveProjectable::ProjList_i
j =
ls->BeginProjecteds();
j !=
ls->EndProjecteds(); ++
j) {
44 if (TEveStraightLineSet* pls = dynamic_cast<TEveStraightLineSet*>(*
j)) {
45 pls->SetMarkerColor(
c);
46 pls->ElementChanged();
50 ls->SetMarkerColor(
c);
57 TEveElement& oItemHolder,
59 TEveStraightLineSet*
ls =
new TEveStraightLineSet();
61 double pos[3] = {
bs.x0(),
bs.y0(),
bs.z0()};
62 double e[3] = {
bs.x0Error(),
bs.y0Error(),
bs.z0Error()};
67 Float_t
a =
e[0],
b =
e[1];
68 for (Int_t
i = 0;
i <
N;
i++)
70 a * TMath::Cos(
i *
S),
b * TMath::Sin(
i *
S), 0,
a * TMath::Cos(
i *
S +
S),
b * TMath::Sin(
i *
S +
S), 0);
74 for (Int_t
i = 0;
i <
N;
i++)
76 a * TMath::Cos(
i *
S), 0,
b * TMath::Sin(
i *
S),
a * TMath::Cos(
i *
S +
S), 0,
b * TMath::Sin(
i *
S +
S));
80 for (Int_t
i = 0;
i <
N;
i++)
82 0,
a * TMath::Cos(
i *
S),
b * TMath::Sin(
i *
S), 0,
a * TMath::Cos(
i *
S +
S),
b * TMath::Sin(
i *
S +
S));
84 ls->AddLine(0, 0, 0, 0, 0, 0);
85 ls->AddMarker(0, 0, 0);
86 ls->SetMarkerStyle(21);
88 ls->SetMarkerColor(
dp.color());
90 ls->RefMainTrans().SetPos(
pos);
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
const FWBeamSpotProxyBuilder & operator=(const FWBeamSpotProxyBuilder &)=delete
static const int kAll3DBits
FWBeamSpotProxyBuilder(void)
void localModelChanges(const FWModelId &iId, TEveElement *parent, FWViewType::EType viewType, const FWViewContext *vc) override
const FWDisplayProperties & defaultDisplayProperties() const
ModelInfo modelInfo(int iIndex) const
~FWBeamSpotProxyBuilder(void) override
const FWEventItem * item() const