25 #include "TEvePointSet.h"
26 #include "TMatrixDEigen.h"
27 #include "TMatrixDSym.h"
28 #include "TDecompSVD.h"
30 #include "TEveTrans.h"
31 #include "TEveTrack.h"
32 #include "TEveTrackPropagator.h"
33 #include "TEveStraightLineSet.h"
34 #include "TEveBoxSet.h"
35 #include "TGeoSphere.h"
36 #include "TEveGeoNode.h"
37 #include "TEveVSDStructs.h"
78 TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
79 TEvePointSet* pointSet =
new TEvePointSet();
80 pointSet->SetNextPoint( v.
x(), v.
y(), v.
z() );
85 if (
item()->getConfig()->value<bool>(
"Draw Ellipse"))
90 eveEllipsoid->
RefPos().Set(v.
x(),v.
y(),v.
z());
102 double ellipseScale = 1.;
106 eveEllipsoid->
SetScale(ellipseScale);
109 TMatrixDEigen eig(m);
110 TVectorD vv ( eig.GetEigenValuesRe());
113 eveEllipsoid->SetLineWidth(2);
115 eveEllipsoid->SetMainTransparency(
TMath::Min(100, 80 +
item()->defaultDisplayProperties().transparency() / 5));
122 eveEllipsoid->SetMainColor(color +
context().colorManager()->offsetOfLimitedColors());
126 if (
item()->getConfig()->value<bool>(
"Draw Tracks"))
132 if (w < 0.5)
continue;
137 t.fV = TEveVector(track.
vx(), track.
vy(), track.
vz());
138 t.fP = TEveVector(track.
px(), track.
py(), track.
pz());
140 TEveTrack* trk =
new TEveTrack(&t,
context().getTrackPropagator());
141 trk->SetMainColor(
item()->defaultDisplayProperties().
color());
146 if (
item()->getConfig()->value<bool>(
"Draw Pseudo Track"))
150 t.fV = TEveVector(v.
x(),v.
y(),v.
z());
151 t.fP = TEveVector(-v.
p4().px(), -v.
p4().py(), -v.
p4().pz());
153 TEveTrack* trk =
new TEveTrack(&t,
context().getTrackPropagator());
154 trk->SetLineStyle(7);
166 TEveElement* el = iCompound->FindChild(
"Ellipsoid");
168 el->SetMainColor(
item()->getConfig()->value<long>(
"Ellipse Color Index") +
context().colorManager()->offsetOfLimitedColors());
const FWVertexProxyBuilder & operator=(const FWVertexProxyBuilder &)
const fireworks::Context & context() const
FWProxyBuilderConfiguration * getConfig() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
trackRef_iterator tracks_end() const
last iterator over tracks
double y() const
y coordinate
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
virtual ~FWVertexProxyBuilder()
math::Error< dimension >::type Error
covariance error matrix (3x3)
double px() const
x coordinate of momentum vector
const FWEventItem * item() const
float trackWeight(const TrackBaseRef &r) const
returns the weight with which a Track has contributed to the vertex-fit.
virtual void setItem(const FWEventItem *iItem)
virtual void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc)
double z() const
y coordinate
REGISTER_PROXYBUILDER_METHODS()
double pz() const
z coordinate of momentum vector
FWGenericParameter< T > * assertParam(const std::string &name, T def)
double vz() const
z coordinate of the reference point on track
virtual void setItem(const FWEventItem *iItem)
double x() const
x coordinate
TEveVector & RefExtent3D()
math::XYZTLorentzVectorD p4(float mass=0.13957018, float minWeight=0.5) const
Returns the four momentum of the sum of the tracks, assuming the given mass for the decay products...
Error error() const
return SMatrix
double vy() const
y coordinate of the reference point on track
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
T value(const std::string &name)
int charge() const
track electric charge
trackRef_iterator tracks_begin() const
first iterator over tracks
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)
double py() const
y coordinate of momentum vector
double vx() const
x coordinate of the reference point on track