4 TEveScalableStraightLineSet *
8 TEveVector centre = TEveVector( cluster.
x(), cluster.
y(), cluster.
z() );
17 TEveScalableStraightLineSet *
19 float e,
float et,
float r )
21 TEveScalableStraightLineSet *
ls =
new TEveScalableStraightLineSet(
"rhophiCluster" );
26 vec = TEveVector( cluster.
x(), cluster.
y(), cluster.
z() );
30 ls->SetLineWidth( 4 );
32 ls->SetScaleCenter( r *
cos( phi ), r *
sin( phi ), 0 );
33 ls->AddLine( r *
cos( phi ), r *
sin( phi ), 0, ( r + size ) *
cos( phi ), ( r + size ) *
sin( phi ), 0 );
40 TEveScalableStraightLineSet *
42 float caloTransAngle,
float r,
float z )
45 TEveVector centre = TEveVector( cluster.
x(), cluster.
y(), cluster.
z() );
54 TEveScalableStraightLineSet *
56 float caloTransAngle,
float e,
float et,
float r,
float z )
60 float ecalZ = z + offr /
tan( caloTransAngle );
64 TEveScalableStraightLineSet *
ls =
new TEveScalableStraightLineSet(
"rhoZCluster" );
66 vec = TEveVector( cluster.
x(), cluster.
y(), cluster.
z() );
71 ls->SetLineWidth( 4 );
73 if ( theta < caloTransAngle ||
TMath::Pi() - theta < caloTransAngle )
74 rad = ecalZ / fabs(
cos( theta ) );
76 rad = r /
sin( theta );
78 ls->SetScaleCenter( 0., ( phi > 0 ? rad * fabs(
sin( theta ) ) : -rad * fabs(
sin( theta ) ) ), rad *
cos( theta ) );
79 ls->AddLine( 0., ( phi > 0 ? rad * fabs(
sin( theta ) ) : -rad * fabs(
sin( theta ) ) ), rad *
cos( theta ),
80 0., ( phi > 0 ? ( rad + size ) * fabs(
sin ( theta ) ) : -( rad + size ) * fabs(
sin( theta) ) ),
81 ( 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
et
define resolution functions of each parameter
double y() const
y coordinate of cluster centroid