Demonstrates usage of TEveJetCone class.
const char* esd_geom_file_name =
"http://root.cern.ch/files/alice_ESDgeometry.root";
void geomGentleTPC();
void jetcone()
{
for (
Int_t track=0; track < nTracks ; track++ ) {
Float_t trackR =
Sqrt(trackX*trackX + trackY*trackY + trackZ*trackZ);
TEveVector trackDir(trackX/trackR, trackY/trackR ,trackZ/trackR);
tracksXYZ->
AddLine(0., 0., 0., trackEnd.
fX, trackEnd.
fY, trackEnd.
fZ );
}
for (
Int_t track=0; track < nTracks ; track++ ) {
TEveVector trackDir( GetTEveVector(trackEta, trackPhi) );
if ( trackEta > coneRadius || trackEta < -coneRadius )
trackEnd.
fX, trackEnd.
fY, trackEnd.
fZ);
else
tracksSeedEtaPhi->
AddLine(0., 0., 0.,
trackEnd.
fX, trackEnd.
fY, trackEnd.
fZ);
}
for (
Int_t iter = 0; iter < nCones; ++iter ) {
TEveVector coneAxis ( GetTEveVector( coneEta, conePhi) );
coneAxis *= length * 1.1;
axis->
AddLine( 0., 0., 0., coneAxis.fX, coneAxis.fY, coneAxis.fZ );
if ( (jetCone->
AddCone( coneEta, conePhi, coneRadius ) ) != -1)
}
geomGentleTPC();
return;
}
{
return vec;
}
void geomGentleTPC()
{
TFile* geom =
TFile::Open(esd_geom_file_name,
"CACHEREAD");
if (!geom)
return;
geom->Close();
delete geom;
}
- Author
- Jochen Thaeder
Definition in file jetcone.C.