StRoot
1
|
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 | |
StMuDst * | muDst = 0 |
StMuEvent * | muEvent = 0 |
StMuDstMaker * | muDstMaker = 0 |
StChain * | chain = 0 |
StuDraw3DMuEvent * | gEd = 0 |
StBemcTables * | mBemcTables = 0 |
bool | gRotationIsOn = false |
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:
cuts | - render the towers above 1 GeV only
|
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.
cuts | - add High Pt tracks only (tracks with pt > 2 GeV and nSigmaElectron >-0.5 ) MCBS
|
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.
file | - the ROOT file with StEvent |
detectorNames | - the list of the detector names or "0" to draw none |
EdMu
just invoke: 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)
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
|
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.
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)
|
Definition at line 208 of file EdMu.C.
References addEmcHits(), addTracks(), and StDraw3D::Clear().
Referenced by mae().