14 #include "TEveJetCone.h"
15 #include "TEveScalableStraightLineSet.h"
56 std::vector<fireworks::scaleMarker>
m_lines;
63 m_common =
new TEveElementList(
"common electron scene" );
77 for (
int i = 0; i < static_cast<int>(
item()->
size()); ++
i)
82 cone->SetFillColor(
item()->defaultDisplayProperties().color());
83 cone->SetLineColor(
item()->defaultDisplayProperties().color());
95 TEveElement::List_i coneIt = cones->BeginChildren();
96 std::advance(coneIt, iIndex);
105 TEveScalableStraightLineSet* marker =
new TEveScalableStraightLineSet(
"jet lineset");
112 static const float_t offr = 4;
120 r = z_ecal/fabs(
cos(theta));
124 r = r_ecal/
sin(theta);
127 marker->SetScaleCenter( 0., (phi>0 ? r*fabs(
sin(theta)) : -r*fabs(
sin(theta))), r*
cos(theta) );
128 marker->AddLine( 0., (phi>0 ? r*fabs(
sin(theta)) : -r*fabs(
sin(theta))), r*
cos(theta),
129 0., (phi>0 ? (r+size)*fabs(
sin(theta)) : -(r+size)*fabs(
sin(theta))), (r+size)*
cos(theta) );
134 marker->SetScaleCenter(ecalR*
cos(phi), ecalR*
sin(phi), 0);
135 marker->AddLine(ecalR*
cos(phi), ecalR*
sin(phi), 0, (ecalR+size)*
cos(phi), (ecalR+size)*
sin(phi), 0);
138 marker->SetLineWidth(4);
140 marker->SetLineColor(dp.
color());
168 typedef std::vector<fireworks::scaleMarker> Lines_t;
175 TEveProjected* proj = *(*i).m_ls->BeginProjecteds();
176 proj->UpdateProjection();
const FWJetProxyBuilder & operator=(const FWJetProxyBuilder &)
const fireworks::Context & context() const
float getScaleFactor3D() const
const FWDisplayProperties & defaultDisplayProperties() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
virtual double et() const
transverse energy
std::vector< fireworks::scaleMarker > m_lines
Base class for all types of Jets.
void voteMaxEtAndEnergy(float Et, float energy) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Sin< T >::type sin(const T &t)
FWViewEnergyScale * getEnergyScale() const
Geom::Theta< T > theta() const
static float caloZ2(bool offset=true)
const FWEventItem * item() const
static const int kAll3DBits
static bool isProjected(int)
virtual void cleanLocal()
virtual double energy() const
energy
Char_t transparency() const
const reco::Jet & modelData(int index)
Cos< T >::type cos(const T &t)
static float caloR1(bool offset=true)
Tan< T >::type tan(const T &t)
virtual ~FWJetProxyBuilder()
virtual bool havePerViewProduct(FWViewType::EType) const
virtual double theta() const
momentum polar angle
TEveElementList * m_common
virtual bool haveSingleProduct() const
virtual void buildViewType(const reco::Jet &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *)
virtual void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc)
REGISTER_PROXYBUILDER_METHODS()
static float caloZ1(bool offset=true)
virtual void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc)
TEveElementList * requestCommon()
virtual double phi() const
momentum azimuthal angle
tuple size
Write out results.
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)
TEveJetCone * makeEveJetCone(const reco::Jet &iData, const fireworks::Context &context)