StRoot
1
|
EEmc Tower and Track Display class. More...
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 () |
Public Member Functions inherited from EEmcGeomSimple | |
EEmcGeomSimple () | |
default constructor | |
virtual | ~EEmcGeomSimple () |
the destructor | |
TVector3 | getTowerCenter (const UInt_t sec, const UInt_t sub, const UInt_t etabin) const |
TVector3 | getDirection (const Float_t detaBin, const Float_t dphiBin) const |
bool | getTower (const TVector3 &r, int &sec, int &sub, int &etabin, Float_t &dphi, Float_t &deta) const |
bool | getTower (const TVector3 &r, int &sec, int &sub, int &etabin) const |
const Float_t * | getEtaBinRangeArray () const |
Float_t | getZ1 () const |
gets lower Z edge of EEMC (preshower) | |
Float_t | getZ2 () const |
gets upper Z edge of EEMC (postshower) | |
Float_t | getZSMD () const |
gets z-depth of the SMD layer in EEMC | |
Float_t | getEtaMin () const |
gets lower eta limit | |
Float_t | getEtaMax () const |
gets upper eta bound | |
Float_t | getEtaMean (UInt_t eta) const |
Float_t | getEtaHalfWidth (UInt_t eta) const |
Float_t | getPhiMean (UInt_t sec) const |
Float_t | getPhiMean (UInt_t sec, UInt_t ssec) const |
Float_t | getPhiHalfWidth (UInt_t sec=0, UInt_t ssec=0) const |
Float_t | getZMean () const |
returns the center of EEMC in z direction | |
Float_t | getZHalfWidth () const |
returns the half-width of EEMC (in z-direction) | |
Int_t | getNumberOfEtas () const |
gets number of tiles (eta bins) | |
Int_t | getNumberOfSectors () const |
gets number of sectors | |
Int_t | getNumberOfSubSectors () const |
gets number of subsectors | |
Float_t | getPhi0 () const |
Bool_t | isClockwise () const |
is endcap labeling clockwise? | |
Bool_t | isCounterClockwise () const |
is endcap labeling clockwise? | |
Additional Inherited Members | |
Public Types inherited from EEmcGeomSimple | |
enum | Chiral_t { CounterClockwise =-1, Clockwise =1, Undefined =0 } |
chirality defined | |
Static Public Member Functions inherited from EEmcGeomSimple | |
static EEmcGeomSimple & | Instance () |
returns a reference to a static instance of EEmcGeomSimple | |
Protected Member Functions inherited from EEmcGeomSimple | |
void | useDefaultGeometry () |
Static Protected Member Functions inherited from EEmcGeomSimple | |
static double | AdjustAngle (double alpha) |
Protected Attributes inherited from EEmcGeomSimple | |
Float_t | mZ1 |
Float_t | mZ2 |
Float_t | mZSMD |
Float_t * | mEtaBin |
UInt_t | mNumEta |
UInt_t | mNumSec |
UInt_t | mNumSSec |
Double_t | mPhi0 |
Chiral_t | mClock |
EEmc Tower and Track Display class.
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).
for details consult StRoot/StEEmcPool/macros/TTM/show.C
[medium] private member volumeName is not best implemented
[minor] speed of light redefined (should be taken from StarClassLibrary)
Definition at line 16 of file EEmcTTDisplay.h.
EEmcTTDisplay::EEmcTTDisplay | ( | const char * | name = "eemc" | ) |
the constructor
name | the top EEMC volume (TGeoVolume) label |
Definition at line 74 of file EEmcTTDisplay.cxx.
Bool_t EEmcTTDisplay::AddMatch | ( | EEmcTTMatch & | tmatch | ) |
adds a tower with matched tracks to the list of displayed tower/tracks
tmatch | a refence to EEmcTTMatchp |
Definition at line 266 of file EEmcTTDisplay.cxx.
References AddTower(), AddTrack(), EEmcTTMatch::Tower(), and EEmcTTMatch::Tracks().
Bool_t EEmcTTDisplay::AddTower | ( | const char * | tile | ) |
adds a tower to the list of displayed towers
tile | name (in the form of 05TC11) |
Definition at line 194 of file EEmcTTDisplay.cxx.
Referenced by AddMatch(), and AddTower().
|
inline |
adds tower to the list
sec | sector index [0,mNumSec) |
sub | subsector index [0,mNumSSec) |
eta | eta index [0,mNumEta) |
Definition at line 42 of file EEmcTTDisplay.h.
References AddTower().
Bool_t EEmcTTDisplay::AddTower | ( | const EEmcTower & | tower | ) |
adds a tower to the list of displayed towers
tower | a reference to EEmcTower |
Definition at line 219 of file EEmcTTDisplay.cxx.
References AddTower(), EEmcTower::Eta(), EEmcTower::Sec(), and EEmcTower::SubSec().
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
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 |
Definition at line 226 of file EEmcTTDisplay.cxx.
Referenced by AddMatch(), and AddTrack().
Bool_t EEmcTTDisplay::AddTrack | ( | const StMuTrack & | track | ) |
adds a track to the list of displayed tracks
track | a refence to StMuTrack |
Definition at line 251 of file EEmcTTDisplay.cxx.
References AddTrack(), StMuTrack::firstPoint(), StMuTrack::helix(), StMuTrack::lastPoint(), and StHelix::origin().
void EEmcTTDisplay::Clear | ( | const Option_t * | option = "" | ) |
clears tower/track lists
option | - not uset at the moment |
Definition at line 176 of file EEmcTTDisplay.cxx.
void EEmcTTDisplay::Draw | ( | const Option_t * | option = "" | ) |
draws towers/tracks
option | - not uset at the moment |
Definition at line 156 of file EEmcTTDisplay.cxx.
|
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
Definition at line 114 of file EEmcTTDisplay.h.
void EEmcTTDisplay::Out | ( | ostream & | out, |
EEmcTTMatch & | tmatch | ||
) |
prints EEmcTTMatch information to an ostream
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::Out | ( | TString & | out, |
EEmcTTMatch & | tmatch | ||
) |
prints EEmcTTMatch information to a TString
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().
|
inline |
sets STAR magnetic field
B | magnetic field (sign sensitive) in Tesla |
Definition at line 101 of file EEmcTTDisplay.h.
|
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
f | flag true/false |
Definition at line 109 of file EEmcTTDisplay.h.