StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
StEEmcDisplay Class Reference
Inheritance diagram for StEEmcDisplay:

Public Member Functions

 StEEmcDisplay (const Char_t *name="aname", const Char_t *atitle="atitle")
 
void add (StEEmcTower tower)
 Add a tower to the display.
 
void add (StEEmcStrip strip)
 Add an SMD strip to the display.
 
void add (StEEmcSmdCluster cluster, Int_t color=1, Int_t fill=1001)
 Add an smd cluster to the display with the specified color and fill (TAttFill) type.
 
void add (StEEmcPoint point, Int_t color=1, Int_t style=20)
 Add a point to the display with the specified color an style.
 
void clear ()
 clears all storage arrays, deletes all canvases and histograms
 
TH2F * DrawTowers (Option_t *opts="box,text")
 
TH2F * DrawPoints (Option_t *opts="box")
 
TH2F * DrawLayer (Int_t layer, Option_t *opts="box,text")
 
TH1F * DrawSmd (Int_t sector, Int_t plane, Option_t *opts="")
 
TH1F * DrawClusters (Int_t sector, Int_t plane, Option_t *opts="")
 
TH1F * DrawCluster (Int_t cluster, Option_t *opts="")
 
TCanvas * getEEmc ()
 
TCanvas * getSmdu ()
 
TCanvas * getSmdv ()
 
TCanvas * getPre1 ()
 
TCanvas * getPre2 ()
 
TCanvas * getPost ()
 
Float_t sumEnergy (Int_t layer)
 
Int_t hitMultiplicity (Int_t layer, Float_t threshold=0.0)
 Returns the number of hit elements in the spcified layer above threshold.
 

Public Attributes

Int_t mHighTowerPhibin
 
Int_t mHighTowerEtabin
 
Float_t mHighTowerEnergy
 

Protected Member Functions

void failTower (Int_t sec, Int_t sub, Int_t eta, TH2F *histo)
 
 ClassDef (StEEmcDisplay, 1)
 

Protected Attributes

TCanvas * eemc
 
TCanvas * smdu
 
TCanvas * smdv
 
TCanvas * pre1
 
TCanvas * pre2
 
TCanvas * post
 
EEmcGeomSimplegeom
 
Float_t mEnergy2Mip
 
Float_t mTowerEnergy [kEEmcNumSectors][kEEmcNumSubSectors][kEEmcNumEtas]
 
Int_t mTowerStat [kEEmcNumSectors][kEEmcNumSubSectors][kEEmcNumEtas]
 
Int_t mTowerFail [kEEmcNumSectors][kEEmcNumSubSectors][kEEmcNumEtas]
 
TH2F * hTowers
 
Float_t mStripEnergy [kEEmcNumSectors][kEEmcNumSmdPlanes][kEEmcNumStrips]
 
Int_t mStripStat [kEEmcNumSectors][kEEmcNumSmdPlanes][kEEmcNumStrips]
 
Int_t mStripFail [kEEmcNumSectors][kEEmcNumSmdPlanes][kEEmcNumStrips]
 
TH1F * hSmds [kEEmcNumSectors][kEEmcNumSmdPlanes]
 
Float_t mPrepostEnergy [kEEmcNumSectors][kEEmcNumSubSectors][kEEmcNumEtas][3]
 
Int_t mPrepostStat [kEEmcNumSectors][kEEmcNumSubSectors][kEEmcNumEtas][3]
 
Int_t mPrepostFail [kEEmcNumSectors][kEEmcNumSubSectors][kEEmcNumEtas][3]
 
TH2F * hPre1
 
TH2F * hPre2
 
TH2F * hPost
 
std::vector< Int_t > mClusterKey
 
std::vector< Float_t > mClusterEnergy
 
std::vector< Int_t > mClusterSector
 
std::vector< Int_t > mClusterPlane
 
std::vector< std::vector< Int_t > > mClusterStrips
 
std::vector< Float_t > mClusterMean
 
std::vector< Float_t > mClusterSigma
 
std::vector< TPaveText * > mClusterStats
 
std::vector< Bool_t > mClusterSplit
 
std::vector< TH1F * > mClusterHisto
 
std::vector< Int_t > mClusterColor
 
std::vector< Int_t > mClusterFill
 
std::vector< Int_t > mPointKey
 
std::vector< Float_t > mPointEnergy
 
std::vector< Float_t > mPointX
 
std::vector< Float_t > mPointY
 
std::vector< TMarker * > mPointMarker
 
std::vector< Int_t > mPointColor
 
std::vector< Int_t > mPointStyle
 
std::vector< Int_t > mPointUkey
 
std::vector< Int_t > mPointVkey
 
Int_t nClustersU
 
Int_t nClustersV
 
Int_t nPoints
 
Int_t nPi0
 
Int_t nEta
 

Detailed Description

Definition at line 20 of file StEEmcDisplay.h.

Member Function Documentation

TH1F * StEEmcDisplay::DrawCluster ( Int_t  cluster,
Option_t *  opts = "" 
)

– not a user function –

Definition at line 547 of file StEEmcDisplay.cxx.

Referenced by DrawClusters().

TH1F * StEEmcDisplay::DrawClusters ( Int_t  sector,
Int_t  plane,
Option_t *  opts = "" 
)

draws smd clusters on top of smd plane

Definition at line 468 of file StEEmcDisplay.cxx.

References DrawCluster(), and DrawSmd().

TH2F * StEEmcDisplay::DrawLayer ( Int_t  layer,
Option_t *  opts = "box,text" 
)

draws one of the preshower or postshower layers

Definition at line 266 of file StEEmcDisplay.cxx.

References DrawTowers().

TH2F * StEEmcDisplay::DrawPoints ( Option_t *  opts = "box")

draws tower energy distribution and overlays reconstructed points

Definition at line 372 of file StEEmcDisplay.cxx.

References DrawTowers(), and EEmcGeomSimple::getTower().

TH1F * StEEmcDisplay::DrawSmd ( Int_t  sector,
Int_t  plane,
Option_t *  opts = "" 
)

draws an smd plane

Definition at line 418 of file StEEmcDisplay.cxx.

Referenced by DrawClusters().

TH2F * StEEmcDisplay::DrawTowers ( Option_t *  opts = "box,text")

function to display tower energy distribution

Definition at line 190 of file StEEmcDisplay.cxx.

Referenced by DrawLayer(), and DrawPoints().

TCanvas* StEEmcDisplay::getEEmc ( )
inline

returns pointer to the canvas showing tower energy distribution

Definition at line 48 of file StEEmcDisplay.h.

TCanvas* StEEmcDisplay::getPost ( )
inline

returns pointer to the canvas showing post energy distribution

Definition at line 53 of file StEEmcDisplay.h.

TCanvas* StEEmcDisplay::getPre1 ( )
inline

returns pointer to the canvas showing pre1 energy distribution

Definition at line 51 of file StEEmcDisplay.h.

TCanvas* StEEmcDisplay::getPre2 ( )
inline

returns pointer to the canvas showing pre2 energy distribution

Definition at line 52 of file StEEmcDisplay.h.

TCanvas* StEEmcDisplay::getSmdu ( )
inline

returns pointer to the canvas showing smdu energy distribution

Definition at line 49 of file StEEmcDisplay.h.

TCanvas* StEEmcDisplay::getSmdv ( )
inline

returns pointer to the canvas showing smdv energy distribution

Definition at line 50 of file StEEmcDisplay.h.

Float_t StEEmcDisplay::sumEnergy ( Int_t  layer)

Returns the energy summed over the specified layer. Useful for making plots of total energy distributions, e.g.

mTree->Draw("sumEnergy(3)","<cuts>")

to draw the total energy deposited in the postshower

Definition at line 632 of file StEEmcDisplay.cxx.

Member Data Documentation

Float_t StEEmcDisplay::mHighTowerEnergy

energy of the highest energy tower

Definition at line 69 of file StEEmcDisplay.h.

Referenced by add(), and clear().

Int_t StEEmcDisplay::mHighTowerEtabin

etabin of the highest energy tower

Definition at line 68 of file StEEmcDisplay.h.

Referenced by add(), and clear().

Int_t StEEmcDisplay::mHighTowerPhibin

phibin of the highest energy tower

Definition at line 67 of file StEEmcDisplay.h.

Referenced by add(), and clear().


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