StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Functions | Variables
EdMu.C File Reference

Go to the source code of this file.

Functions

void addEmcHits (bool cuts=false)
 Add emc hits to the list of the rendered objects. More...
 
void addTracks (bool cuts=false)
 Add tracks to the list of the rendered objects from current MuDst event. More...
 
void mrd (bool doTowerCuts=false, bool doTrackCuts=false, bool clear=true)
 This mrd (RedrawEvent) function redraws all hits and/or tracks from the current event. More...
 
void mae (bool rotation=false, bool doTowerCuts=false, bool doTrackCuts=false, int skipEvent=205)
 This mae (AdvanceEvent) function is to search for the next non-empty event and draw it by looping over STAR muDST file (reading the next events from the file) More...
 
void EdMu (const char *file="/star/institutions/bnl/fine/testfiles/st_upsilon_8112020_raw_1130030.MuDst.root", const char *detectorNames="TPC,StarBeam")
 Main entry point to initialize the primitive "Event Display" and the STAR bfc chain. More...
 

Variables

StMuDstmuDst = 0
 
StMuEventmuEvent = 0
 
StMuDstMakermuDstMaker = 0
 
StChainchain = 0
 
StuDraw3DMuEventgEd = 0
 
StBemcTablesmBemcTables = 0
 
bool gRotationIsOn = false
 

Function Documentation

void addEmcHits ( bool  cuts = false)

Add emc hits to the list of the rendered objects.

Look up all BEMC  tower adc values and render it  if (adc > ped + 3 * rms)

This function loops over all the softIds, gets the ADC values, pedestals and gain calibrations and calculates the energy. The towers with dc > ped + 3 * rms will be drawn:

  • green for E<0.3 GeV,
  • blue for 0.3 < E < 1 GeV,
  • yellow for 1 < E < 4 GeV (which is approximately the HT threshold for the upsilon trigger at Level-0)
  • red for towers above 4 GeV. MCBS.
    Parameters
    cuts- render the towers above 1 GeV only
    cuts=truecuts=false
    Courtesy of Manuel Calderon de la Barca Sanchez

Definition at line 94 of file EdMu.C.

References StuDraw3DMuEvent::EmcHit(), StuDraw3DMuEvent::Endcaps(), StBemcTables::getCalib(), StBemcTables::getPedestal(), StBemcTables::getStatus(), StMuDst::muEmcCollection(), and StBemcTables::status().

Referenced by mrd().

void addTracks ( bool  cuts = false)

Add tracks to the list of the rendered objects from current MuDst event.

Option cuts is to add the High Pt tracks only, to focus on high pt electron candidates.

Parameters
cuts- add High Pt tracks only (tracks with pt > 2 GeV and nSigmaElectron >-0.5 ) MCBS
cuts=truecuts=false
Courtesy of Manuel Calderon de la Barca Sanchez

Definition at line 161 of file EdMu.C.

References StMuTrack::charge(), StMuDst::event(), StMuDstMaker::muDst(), StMuTrack::nSigmaElectron(), StMuDst::primaryTracks(), StMuTrack::pt(), StDraw3DStyle::Pt2Color(), StDraw3D::Style(), and StuDraw3DMuEvent::Track().

Referenced by StEmcMixerMaker::Make(), and mrd().

void EdMu ( const char *  file = "/star/institutions/bnl/fine/testfiles/st_upsilon_8112020_raw_1130030.MuDst.root",
const char *  detectorNames = "TPC,StarBeam" 
)

Main entry point to initialize the primitive "Event Display" and the STAR bfc chain.

Parameters
file- the ROOT file with StEvent
detectorNames- the list of the detector names or "0" to draw none
Note
To start "Event Display" EdMu just invoke:
ln -s $STAR/StRoot/macros/.rootrc
root4star EdMu.C
upsEvent.gif
The tracks in the TPC and also the signal seen in the BEMC ( Courtesy of Manuel Calderon de la Barca Sanchez )
<htmlonly> For 3D viewer GUI interface see SoQtExaminerViewer Class Reference also.

Definition at line 291 of file EdMu.C.

References mae(), StDraw3D::SetBkColor(), StDraw3D::SetDrawOption(), and StBemcTables::StBemcTables().

void mae ( bool  rotation = false,
bool  doTowerCuts = false,
bool  doTrackCuts = false,
int  skipEvent = 205 
)

This mae (AdvanceEvent) function is to search for the next non-empty event and draw it by looping over STAR muDST file (reading the next events from the file)

Parameters
rotation- add the animated rotation defined by "rotation.iv" file ( See also: Inventor Nodes/File Format Quick Reference )
doTowerCuts- apply the tower cut (see: addEmcHits(bool cuts )
doTrackCuts- apply the track cut (see: addTracks(bool cuts )
skipEvent- the number of the events to be skipped on the input file
doTowerCuts=true
doTrackCuts=true
doTowerCuts=false
doTrackCuts=true
doTowerCuts=true
doTrackCuts=false
doTowerCuts=false
doTrackCuts=false
Courtesy of Manuel Calderon de la Barca Sanchez

Definition at line 246 of file EdMu.C.

References StDraw3D::Clear(), StMuDst::event(), StBemcTables::loadTables(), StChain::Make(), mrd(), StMuDstMaker::muDst(), and StDraw3D::SetDrawOption().

Referenced by EdMu().

void mrd ( bool  doTowerCuts = false,
bool  doTrackCuts = false,
bool  clear = true 
)

This mrd (RedrawEvent) function redraws all hits and/or tracks from the current event.

Parameters
doTowerCuts- apply the tower cut (see: mae(bool rotation, bool doTowerCuts, bool doTrackCuts, int skipEvent ) )
doTrackCuts- apply the track cut (see: mae(bool rotation, bool doTowerCuts, bool doTrackCuts, int skipEvent ) )
clear- flag to mark whether the screen has to be cleaned first (before any new component is added)
doTowerCuts=true
doTrackCuts=true
doTowerCuts=false
doTrackCuts=true
doTowerCuts=true
doTrackCuts=false
doTowerCuts=false
doTrackCuts=false
Courtesy of Manuel Calderon de la Barca Sanchez
EdMu.C.Endcap.tracks.png
The event 42752 from Run 8112020 2007Production2 (upsilon) produced by EdMu.C macros

Definition at line 208 of file EdMu.C.

References addEmcHits(), addTracks(), and StDraw3D::Clear().

Referenced by mae().