8 TEveVector centre = TEveVector(cluster.
x(), cluster.
y(), cluster.
z());
19 TEveScalableStraightLineSet *
ls =
new TEveScalableStraightLineSet(
"rhophiCluster");
24 vec = TEveVector(cluster.
x(), cluster.
y(), cluster.
z());
30 ls->SetScaleCenter(r *
cos(phi), r *
sin(phi), 0);
31 ls->AddLine(r *
cos(phi), r *
sin(phi), 0, (r + size) *
cos(phi), (r + size) *
sin(phi), 0);
41 TEveVector centre = TEveVector(cluster.
x(), cluster.
y(), cluster.
z());
54 float ecalZ = z + offr /
tan(caloTransAngle);
58 TEveScalableStraightLineSet *
ls =
new TEveScalableStraightLineSet(
"rhoZCluster");
60 vec = TEveVector(cluster.
x(), cluster.
y(), cluster.
z());
67 if (theta < caloTransAngle ||
TMath::Pi() - theta < caloTransAngle)
68 rad = ecalZ / fabs(
cos(theta));
72 ls->SetScaleCenter(0., (phi > 0 ? rad * fabs(
sin(theta)) : -rad * fabs(
sin(theta))), rad *
cos(theta));
74 (phi > 0 ? rad * fabs(
sin(theta)) : -rad * fabs(
sin(theta))),
77 (phi > 0 ? (rad + size) * fabs(
sin(theta)) : -(rad + size) * fabs(
sin(theta))),
78 (rad + size) *
cos(theta));
float getScaleFactor3D() const
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Sin< T >::type sin(const T &t)
FWViewEnergyScale * getEnergyScale() const
Geom::Theta< T > theta() const
TEveScalableStraightLineSet * buildRhoPhiClusterLineSet(const reco::PFCluster &, const FWViewContext *, float r)
double z() const
z coordinate of cluster centroid
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
TEveScalableStraightLineSet * buildRhoZClusterLineSet(const reco::PFCluster &, const FWViewContext *, float caloTransAngle, float r, float z)
double x() const
x coordinate of cluster centroid
float calculateEt(const TEveVector ¢re, float e)
double energy() const
cluster energy
double y() const
y coordinate of cluster centroid
tuple size
Write out results.