|
typedef std::vector< Product * >::iterator | Product_it |
|
void | build () |
|
virtual void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) |
|
void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override |
|
virtual void | build (const void *, unsigned int iIndex, TEveElement &iItemHolder, const FWViewContext *)=0 |
|
void | build (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context) override |
|
virtual void | buildViewType (const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *) |
|
void | buildViewType (const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *) override |
|
virtual void | buildViewType (const reco::BeamSpot &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *) |
|
virtual void | buildViewType (const void *, unsigned int iIndex, TEveElement &iItemHolder, FWViewType::EType, const FWViewContext *)=0 |
|
void | buildViewType (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *context) override |
|
const reco::BeamSpot & | modelData (int index) |
|
void | build () |
|
virtual void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) |
|
void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override |
|
virtual void | buildViewType (const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *) |
|
void | buildViewType (const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *) override |
|
void | clean () override |
|
virtual void | cleanLocal () |
|
TEveCompound * | createCompound (bool set_color=true, bool propagate_color_to_all_children=false) const |
|
| FWProxyBuilderBase (const FWProxyBuilderBase &) |
|
void | increaseComponentTransparency (unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset) |
|
virtual void | modelChanges (const FWModelIds &, Product *) |
|
const FWProxyBuilderBase & | operator= (const FWProxyBuilderBase &) |
|
virtual void | scaleProduct (TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) |
|
FWSimpleProxyHelper | m_helper |
|
std::vector< Product * > | m_products |
|
Definition at line 15 of file FWBeamSpotProxyBuilder.cc.
void FWBeamSpotProxyBuilder::build |
( |
const reco::BeamSpot & |
iData, |
|
|
unsigned int |
iIndex, |
|
|
TEveElement & |
oItemHolder, |
|
|
const FWViewContext * |
|
|
) |
| |
|
overrideprivatevirtual |
iIndex is the index where iData is found in the container from which it came iItemHolder is the object to which you add your own objects which inherit from TEveElement
Reimplemented from FWSimpleProxyBuilderTemplate< reco::BeamSpot >.
Definition at line 54 of file FWBeamSpotProxyBuilder.cc.
58 TEveStraightLineSet*
ls =
new TEveStraightLineSet();
60 double pos[3] = {
bs.x0(),
bs.y0(),
bs.z0()};
61 double e[3] = {
bs.x0Error(),
bs.y0Error(),
bs.z0Error()};
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);
References a, b, cms::cuda::bs, FWEventItem::defaultDisplayProperties(), Calorimetry_cff::dp, MillePedeFileConverter_cfg::e, mps_fire::i, FWProxyBuilderBase::item(), eostools::ls(), N, Pi, and FWProxyBuilderBase::setupAddElement().