Go to the documentation of this file.
14 #include "TEveGeoNode.h"
15 #include "TEveGeoShape.h"
16 #include "TEveScalableStraightLineSet.h"
59 TEveElement& oItemHolder,
63 std::vector<fireworks::scaleMarker>
m_lines;
67 typedef std::vector<fireworks::scaleMarker> Lines_t;
72 if (vc == (*i).m_vc) {
78 TEveProjectable* pable = static_cast<TEveProjectable*>((*i).m_ls);
79 for (TEveProjectable::ProjList_i
j = pable->BeginProjecteds();
j != pable->EndProjecteds(); ++
j) {
80 (*j)->UpdateProjection();
88 TEveElement& oItemHolder,
91 using namespace TMath;
98 TEveScalableStraightLineSet* marker =
new TEveScalableStraightLineSet(
"MET marker");
99 marker->SetLineWidth(2);
114 double r2 =
r1 - 0.1;
137 marker->SetScaleCenter(r0 *
cos(
phi), r0 *
sin(
phi), 0);
141 double r2 =
r1 - 0.1;
149 double min_phi =
phi -
M_PI / 36 / 2;
150 double max_phi =
phi +
M_PI / 36 / 2;
151 TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
152 TEveGeoShape* element =
154 element->SetPickable(kTRUE);
bool haveSingleProduct() const override
std::vector< fireworks::scaleMarker > m_lines
static const int kAllRPZBits
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
#define REGISTER_PROXYBUILDER_METHODS()
void buildViewType(const reco::MET &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override
TEveGeoShape * getShape(const char *name, TGeoBBox *shape, Color_t color)
Sin< T >::type sin(const T &t)
const FWMETProxyBuilder & operator=(const FWMETProxyBuilder &)=delete
Cos< T >::type cos(const T &t)
void voteMaxEtAndEnergy(float Et, float energy) const
static float caloTransEta()
Geom::Theta< T > theta() const
void addRhoZEnergyProjection(FWProxyBuilderBase *, TEveElement *, double r_ecal, double z_ecal, double theta_min, double theta_max, double phi)
~FWMETProxyBuilder() override
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override
float getScaleFactor3D() const
void cleanLocal() override
static float caloZ1(bool offset=true)
const fireworks::Context & context() const
FWViewEnergyScale * getEnergyScale() const
static float caloR1(bool offset=true)
bool havePerViewProduct(FWViewType::EType) const override