StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
EEmcTTDisplay Class Reference

EEmc Tower and Track Display class. More...

Inheritance diagram for EEmcTTDisplay:
EEmcGeomSimple

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 EEmcGeomSimpleInstance ()
 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
 

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
namethe 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
tmatcha 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 char *  tile)

adds a tower to the list of displayed towers

Parameters
tilename (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::AddTower ( int  sec,
int  sub,
int  eta 
)
inline

adds tower to the list

Parameters
secsector index [0,mNumSec)
subsubsector index [0,mNumSSec)
etaeta 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 EEmcTower tower)

adds a tower to the list of displayed towers

Parameters
towera 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::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
xx-component of the track origin
yy-component of the track origin
zz-component of the track origin
pxx-component of the track momentum
pyy-component of the track momentum
pzz-component of the track momentum
qBsign sensitive product of the particle charge and magnetic field
zMinto BE DOCUMENTED
zMaxto BE DOCUMENTED
Returns
kTRUE on success and kFALSE on failure

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

Parameters
tracka 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(), StMuTrack::lastPoint(), and StHelix::origin().

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 ( ostream &  out,
EEmcTTMatch tmatch 
)

prints EEmcTTMatch information to an ostream

Parameters
outa reference to std::ostream
tmatcha 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

Parameters
outa reference to TString
tmatcha reference to struct EEmcTTMatch

Definition at line 289 of file EEmcTTDisplay.cxx.

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

void EEmcTTDisplay::SetMagneticField ( double  B)
inline

sets STAR magnetic field

Parameters
Bmagnetic 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
fflag true/false

Definition at line 109 of file EEmcTTDisplay.h.


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