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
81 TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
82 TEvePointSet* pointSet =
new TEvePointSet();
83 pointSet->SetNextPoint(v.
x(), v.
y(), v.
z());
87 if (
item()->getConfig()->value<bool>(
"Draw Ellipse")) {
90 eveEllipsoid->
RefPos().Set(v.
x(), v.
y(), v.
z());
94 for (
int i = 0;
i < 3;
i++)
95 for (
int j = 0;
j < 3;
j++) {
101 double ellipseScale = 1.;
105 eveEllipsoid->
SetScale(ellipseScale);
108 TMatrixDEigen eig(
m);
109 TVectorD vv(eig.GetEigenValuesRe());
110 eveEllipsoid->
RefExtent3D().Set(
sqrt(vv(0)) * ellipseScale,
sqrt(vv(1)) * ellipseScale,
sqrt(vv(2)) * ellipseScale);
112 eveEllipsoid->SetLineWidth(2);
114 eveEllipsoid->SetMainTransparency(
TMath::Min(100, 80 +
item()->defaultDisplayProperties().transparency() / 5));
119 eveEllipsoid->SetMainColor(color +
context().colorManager()->offsetOfLimitedColors());
123 if (
item()->getConfig()->value<bool>(
"Draw Tracks")) {
132 t.fV = TEveVector(track.
vx(), track.
vy(), track.
vz());
133 t.fP = TEveVector(track.
px(), track.
py(), track.
pz());
135 TEveTrack* trk =
new TEveTrack(&t,
context().getTrackPropagator());
136 trk->SetMainColor(
item()->defaultDisplayProperties().color());
141 if (
item()->getConfig()->value<bool>(
"Draw Pseudo Track")) {
144 t.fV = TEveVector(v.
x(), v.
y(), v.
z());
145 t.fP = TEveVector(-v.
p4().px(), -v.
p4().py(), -v.
p4().pz());
147 TEveTrack* trk =
new TEveTrack(&t,
context().getTrackPropagator());
148 trk->SetLineStyle(7);
158 if (cIdx >= 0 &&
int(iIndex) ==
int(cIdx)) {
160 << Form(
"idx [%d], (%f %f %f) \n", cIdx, v.
x(), v.
y(), v.
z());
const fireworks::Context & context() const
FWProxyBuilderConfiguration * getConfig() const
double y() const
y coordinate
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
math::Error< dimension >::type Error
covariance error matrix (3x3)
double px() const
x coordinate of momentum vector
const FWEventItem * item() const
trackRef_iterator tracks_end() const
last iterator over tracks
double z() const
z coordinate
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
trackRef_iterator tracks_begin() const
first iterator over tracks
static Context * getInstance()
double pz() const
z coordinate of momentum vector
void setEventCenter(float, float, float)
double vz() const
z coordinate of the reference point on track
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
CmsShowCommon * commonPrefs() const
double vy() const
y coordinate of the reference point on track
T value(const std::string &name)
int charge() const
track electric charge
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
double py() const
y coordinate of momentum vector
double vx() const
x coordinate of the reference point on track