EEmcTTDisplay Class Reference

EEmc Tower and Track Display class. More...

Inheritance diagram for EEmcTTDisplay:

EEmcGeomSimple

List of all members.

Public Member Functions

 EEmcTTDisplay (const char *name="eemc")
 ~EEmcTTDisplay ()
 the destructor
TGeoVolume * operator() ()
 returns top EEMC TGeoVolume
TGeoVolume * GetVolume ()
 returns top TGeoVolume
Bool_t AddTower (const char *tile)
Bool_t AddTower (int sec, int sub, int eta)
Bool_t AddTower (const EEmcTower &tower)
Bool_t AddTrack (Double_t x, Double_t y, Double_t z, Double_t px, Double_t py, Double_t pz, Double_t qB, Double_t zMin=0.0, Double_t zMax=0.0)
Bool_t AddTrack (const StMuTrack &track)
Bool_t AddMatch (EEmcTTMatch &tmatch)
void Draw (const Option_t *option="")
void Clear (const Option_t *option="")
void Out (ostream &out, EEmcTTMatch &tmatch)
void Out (TString &out, EEmcTTMatch &tmatch)
void SetMagneticField (double B)
double GetMagneticField ()
 returns STAR magnetic fiels in Tesla
void SetShowExtrapolatedTracks (bool f)
bool GetShowExtrapolatedTracks ()


Detailed Description

EEmc Tower and Track Display class.

Author:
Piotr A. Zolnierczuk, Indiana University Cyclotron Facility
Date:
2004/01/19
This is a simple root TGeoXXXX based class. It displays EEMC tower geometry (the class inherits from EEmcGeomSimple) and allows for "turning on/off" individual towers as well as it displays muDST tracks (StMuTrack).

Author:
Piotr A. Zolnierczuk
Date
2009/01/26 14:37:43
Revision
1.13

Short example how to use EEmcTTDisplay

for details consult StRoot/StEEmcPool/macros/TTM/show.C

snapshot.jpg

Sample snapshot

Remarks

Todo:
[medium] private member volumeName is not best implemented

[minor] speed of light redefined (should be taken from StarClassLibrary)

Bug:
the class requires an explitic set of magnetic field via SetMagneticField

Definition at line 16 of file EEmcTTDisplay.h.


Constructor & Destructor Documentation

EEmcTTDisplay::EEmcTTDisplay ( const char *  name = "eemc"  ) 

the constructor

Parameters:
name the top EEMC volume (TGeoVolume) label

Definition at line 74 of file EEmcTTDisplay.cxx.


Member Function Documentation

Bool_t EEmcTTDisplay::AddMatch ( EEmcTTMatch tmatch  ) 

adds a tower with matched tracks to the list of displayed tower/tracks

Parameters:
tmatch a refence to EEmcTTMatchp
Returns:
kTRUE on success and kFALSE on failure

Definition at line 266 of file EEmcTTDisplay.cxx.

References AddTower(), AddTrack(), EEmcTTMatch::Tower(), and EEmcTTMatch::Tracks().

Bool_t EEmcTTDisplay::AddTower ( const EEmcTower tower  ) 

adds a tower to the list of displayed towers

Parameters:
tower a reference to EEmcTower
Returns:
kTRUE on success and kFALSE on failure

Definition at line 219 of file EEmcTTDisplay.cxx.

References AddTower(), EEmcTower::Eta(), EEmcTower::Sec(), and EEmcTower::SubSec().

Bool_t EEmcTTDisplay::AddTower ( int  sec,
int  sub,
int  eta 
) [inline]

adds tower to the list

Parameters:
sec sector index [0,mNumSec)
sub subsector index [0,mNumSSec)
eta eta index [0,mNumEta)
Returns:
kTRUE on success and kFALSE on failure

Definition at line 42 of file EEmcTTDisplay.h.

References AddTower().

Bool_t EEmcTTDisplay::AddTower ( const char *  tile  ) 

adds a tower to the list of displayed towers

Parameters:
tile name (in the form of 05TC11)
Returns:
kTRUE on success and kFALSE on failure

Definition at line 194 of file EEmcTTDisplay.cxx.

Referenced by AddMatch(), and AddTower().

Bool_t EEmcTTDisplay::AddTrack ( const StMuTrack track  ) 

adds a track to the list of displayed tracks

Parameters:
track a refence to StMuTrack
Returns:
kTRUE on success and kFALSE on failure

Definition at line 251 of file EEmcTTDisplay.cxx.

References AddTrack(), StMuTrack::firstPoint(), StMuTrack::helix(), and StMuTrack::lastPoint().

Bool_t EEmcTTDisplay::AddTrack ( Double_t  x,
Double_t  y,
Double_t  z,
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  qB,
Double_t  zMin = 0.0,
Double_t  zMax = 0.0 
)

adds a track to the list of displayed tracks

Parameters:
x x-component of the track origin
y y-component of the track origin
z z-component of the track origin
px x-component of the track momentum
py y-component of the track momentum
pz z-component of the track momentum
qB sign sensitive product of the particle charge and magnetic field
zMin to BE DOCUMENTED
zMax to BE DOCUMENTED
Returns:
kTRUE on success and kFALSE on failure

Definition at line 226 of file EEmcTTDisplay.cxx.

Referenced by AddMatch(), and AddTrack().

void EEmcTTDisplay::Clear ( const Option_t *  option = ""  ) 

clears tower/track lists

Parameters:
option - not uset at the moment

Definition at line 176 of file EEmcTTDisplay.cxx.

void EEmcTTDisplay::Draw ( const Option_t *  option = ""  ) 

draws towers/tracks

Parameters:
option - not uset at the moment

Definition at line 156 of file EEmcTTDisplay.cxx.

bool EEmcTTDisplay::GetShowExtrapolatedTracks (  )  [inline]

gets a flag that controls how TPC trackcs are displayed, if f is true - tracks are plotted from vertex to endcap if f is false - tracks are plotted from first to last point in the track

Returns:
true or false

Definition at line 114 of file EEmcTTDisplay.h.

void EEmcTTDisplay::Out ( TString &  out,
EEmcTTMatch tmatch 
)

prints EEmcTTMatch information to a TString

Parameters:
out a reference to TString
tmatch a reference to struct EEmcTTMatch

Definition at line 289 of file EEmcTTDisplay.cxx.

References EEmcTower::ADC(), StMuTrack::pt(), EEmcTTMatch::Tower(), and EEmcTTMatch::Tracks().

void EEmcTTDisplay::Out ( ostream &  out,
EEmcTTMatch tmatch 
)

prints EEmcTTMatch information to an ostream

Parameters:
out a reference to std::ostream
tmatch a reference to struct EEmcTTMatch

Definition at line 278 of file EEmcTTDisplay.cxx.

References EEmcTTMatch::Tower(), and EEmcTTMatch::Tracks().

void EEmcTTDisplay::SetMagneticField ( double  B  )  [inline]

sets STAR magnetic field

Parameters:
B magnetic field (sign sensitive) in Tesla

Definition at line 101 of file EEmcTTDisplay.h.

void EEmcTTDisplay::SetShowExtrapolatedTracks ( bool  f  )  [inline]

sets a flag that controls how TPC trackcs are displayed, if f is true - tracks are plotted from vertex to endcap if f is false - tracks are plotted from first to last point in the track

Parameters:
f flag true/false

Definition at line 109 of file EEmcTTDisplay.h.


The documentation for this class was generated from the following files:

Generated on Fri Feb 10 04:27:57 2012 for StRoot by  doxygen 1.5.9