22 TEveScalableStraightLineSet *
34 TEveScalableStraightLineSet *
36 float e,
float et,
float r )
38 TEveScalableStraightLineSet *
ls =
new TEveScalableStraightLineSet(
"rhophiCluster" );
43 vec = TEveVector( cluster.
x(), cluster.
y(), cluster.
z() );
47 ls->SetLineWidth( 4 );
49 ls->SetScaleCenter( r *
cos( phi ), r *
sin( phi ), 0 );
50 ls->AddLine( r *
cos( phi ), r *
sin( phi ), 0, ( r + size ) *
cos( phi ), ( r + size ) *
sin( phi ), 0 );
57 TEveScalableStraightLineSet *
59 float caloTransAngle,
float r,
float z )
70 TEveScalableStraightLineSet *
72 float caloTransAngle,
float e,
float et,
float r,
float z )
76 float ecalZ = z + offr /
tan( caloTransAngle );
80 TEveScalableStraightLineSet *
ls =
new TEveScalableStraightLineSet(
"rhoZCluster" );
82 vec = TEveVector( cluster.
x(), cluster.
y(), cluster.
z() );
87 ls->SetLineWidth( 4 );
89 if ( theta < caloTransAngle ||
TMath::Pi() - theta < caloTransAngle )
90 rad = ecalZ / fabs(
cos( theta ) );
92 rad = r /
sin( theta );
94 ls->SetScaleCenter( 0., ( phi > 0 ? rad * fabs(
sin( theta ) ) : -rad * fabs(
sin( theta ) ) ), rad *
cos( theta ) );
95 ls->AddLine( 0., ( phi > 0 ? rad * fabs(
sin( theta ) ) : -rad * fabs(
sin( theta ) ) ), rad *
cos( theta ),
96 0., ( phi > 0 ? ( rad + size ) * fabs(
sin ( theta ) ) : -( rad + size ) * fabs(
sin( theta) ) ),
97 ( rad + size ) *
cos( theta ) );
float getScaleFactor3D() const
float calculateEt(const reco::PFCluster &, float e)
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
double energy() const
cluster energy
double y() const
y coordinate of cluster centroid
tuple size
Write out results.