17 #include "TEveJetCone.h" 18 #include "TEveGeoNode.h" 19 #include "TEveGeoShape.h" 20 #include "TEveScalableStraightLineSet.h" 21 #include "TEveTrack.h" 70 TEveScalableStraightLineSet* marker =
new TEveScalableStraightLineSet(
"energy");
89 double min_phi = phiRange.first -
M_PI / 36 / 2;
90 double max_phi = phiRange.second +
M_PI / 36 / 2;
91 TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
92 TGeoBBox* sc_box =
new TGeoTubeSeg(ecalR - 1, ecalR + 1, 1, min_phi * 180 /
M_PI, max_phi * 180 /
M_PI);
94 shape->SetPickable(kTRUE);
97 marker->SetScaleCenter(ecalR *
cos(
phi), ecalR *
sin(
phi), 0);
100 marker->SetLineWidth(4);
111 cone->SetApex(TEveVector(
bs->x0(),
bs->y0(),
bs->z0()));
114 cone->SetFillColor(
dp.color());
115 cone->SetLineColor(
dp.color());
124 TEveTrack*
track(
nullptr);
125 if (
i->isAvailable()) {
147 TEveElement* iCompound,
158 for (
auto&
c : product->RefChildren()) {
160 for (
auto& compChld :
c->RefChildren()) {
161 TEveScalableStraightLineSet* lineSet =
dynamic_cast<TEveScalableStraightLineSet*
>(compChld);
168 for (TEveProjectable::ProjList_i
j = lineSet->BeginProjecteds();
j != lineSet->EndProjecteds(); ++
j) {
169 (*j)->UpdateProjection();
void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override
const void * modelData(int iIndex) const
std::pair< double, double > getPhiRange(const std::vector< double > &phis, double phi)
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
static float caloTransAngle()
TEveTrack * prepareTrack(const reco::Track &track, TEveTrackPropagator *propagator, const std::vector< TEveVector > &extraRefPoints=std::vector< TEveVector >())
FWProxyBuilderConfiguration * getConfig() const
void addLeadTrack(const reco::BaseTau &tau, class TEveElement *product)
Base class for all types of Jets.
~FWTauProxyBuilderBase() override
FWBeamSpot * getBeamSpot() const
Sin< T >::type sin(const T &t)
void setItem(const FWEventItem *iItem) override
static float caloZ2(bool offset=true)
const fireworks::Context & context() const
void addConstituentTracks(const reco::BaseTau &tau, class TEveElement *product)
void buildBaseTau(const reco::BaseTau &iTau, const reco::Jet *iJet, TEveElement *comp, FWViewType::EType type, const FWViewContext *vc)
FWViewEnergyScale * getEnergyScale() const
static bool isProjected(int)
double theta() const final
momentum polar angle
static float caloR2(bool offset=true)
void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) override
static const std::string kTauApexBeamSpot("Place Apex In BeamSpot")
const FWDisplayProperties & defaultDisplayProperties() const
virtual void setItem(const FWEventItem *iItem)
void voteMaxEtAndEnergy(float Et, float energy) const
Cos< T >::type cos(const T &t)
static float caloR1(bool offset=true)
FWGenericParameter< T > * assertParam(const std::string &name, T def)
float getScaleFactor3D() const
void addRhoZEnergyProjection(FWProxyBuilderBase *, TEveElement *, double r_ecal, double z_ecal, double theta_min, double theta_max, double phi)
double et() const final
transverse energy
static float caloZ1(bool offset=true)
std::vector< double > m_phis
TEveGeoShape * getShape(const char *name, TGeoBBox *shape, Color_t color)
double phi() const final
momentum azimuthal angle
const FWEventItem * item() const
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)
TEveJetCone * makeEveJetCone(const reco::Jet &iData, const fireworks::Context &context)
void cleanLocal() override
double energy() const final
energy