
Public Member Functions | |
| StEEmcPi0Analysis (const Char_t *name) | |
| constructor | |
| ~StEEmcPi0Analysis () | |
| destructor | |
| Int_t | Init () |
| initializes the maker | |
| Int_t | Make () |
| processes a single event | |
| Int_t | InitRun (Int_t) |
| init run | |
| void | Clear (Option_t *opts="") |
| clears the maker | |
| void | mixer (const Char_t *name) |
| void | points (const Char_t *name) |
| specifies the name of the point maker | |
| void | mudst (const Char_t *name) |
| specifies the name of the mudst maker | |
| void | analysis (const Char_t *name) |
| specifies the name of the analysis maker | |
| void | spin (const Char_t *name) |
| specifies the name of the spin db maker | |
| void | trigger (Int_t trig) |
| Add trigger ID to process. | |
| void | minbias (Int_t trig) |
| Sets the appropriate minbias trig id. | |
| SpinCuts * | cuts () |
| void | filename (const Char_t *fname) |
| void | triggerSim (const Char_t *name, Int_t t) |
Protected Types | |
| enum | SpinStates { kAny = 0, kUpUp, kUpDn, kDnUp, kDnDn } |
| enum | EventCutTypes { kEvent = 0, kMinBias, kTrig, kSoftTrig, kSoftTrig36, kVertex, kCandidate } |
| enum | PairCutTypes { kPair = 1, kTwoBody, kAdcTow, kEtTow, kKinematics } |
Protected Member Functions | |
| Bool_t | twoBodyCut (StEEmcPair &p) |
| Bool_t | accept (StMuDst *mu) |
| method to cut events | |
| Bool_t | accept (StEEmcPair pair, Bool_t fill=true) |
| Int_t | getSpinState (StMuDst *mu, Int_t &bxs) |
| method to retrieve 4bit spin state | |
| ClassDef (StEEmcPi0Analysis, 1) | |
| Makes class availabel to root. | |
Protected Attributes | |
| StEEmcMixMaker * | mEEmixer |
| Pointer to the pi0 mixer. | |
| StEEmcPointMaker * | mEEpoints |
| pointer to the point maker | |
| StMuDstMaker * | mMuDst |
| pointer to mudst | |
| StEEmcA2EMaker * | mEEanalysis |
| pointer to analysis maker | |
| StSpinDbMaker * | mSpinDb |
| pointer to the spin database | |
| std::vector< Int_t > | mTriggerList |
| Int_t | mMinBias |
| SpinHistos * | mHistograms [100] |
| Spin-sorted pi0 histograms. | |
| SpinHistos * | mBackgrounds [100] |
| SpinCuts * | mCuts |
| TH1F * | hFillPatternI |
| TH1F * | hSpin4 |
| TH1F * | hBx7 |
| TH1F * | hBx48 |
| TH2F * | hBx7diffBx48 |
| TH1F * | hBxStar |
| TH1F * | hBxStarPi0 |
| TH2F * | hMassBx |
| TH2F * | hZvertBx |
| TH2F * | hZggBx |
| TH2F * | hEtaBx |
| TH1F * | hSpin4mb |
| TH1F * | hEventCounter |
| histogram to keep track of where events get cut | |
| TH1F * | hPairCounter |
| histogram to keep track of where candidates get cut | |
| TString | mFilename |
| TFile * | mFile |
| StRFEmcTrigMaker * | mTrigSim |
| Trigger simulation for MC. | |
| Int_t | mTrigSimThreshold |
| Int_t | mRunNumber |
| Bool_t | mSpinSort |
| EEmcGeomSimple * | mEEgeom |
| EEMC tower geometry. | |
| StEEmcMixEvent * | mRealEvent |
| StEEmcMixEvent * | mMixedEvent |
| TTree * | mRealTree |
| TTree * | mMixedTree |
The StEEmcPi0Analysis takes as input the list of pi0 candiates provided by StEEmcMixMaker, filters out pairs depending on user-specified cuts, then spin sorts the events into a number of histograms. These histograms are stored in TDirectory's underneath the .hist dataset. The user may specify cuts in the SpinCuts object (accessible through a call to cuts().)
Definition at line 33 of file StEEmcPi0Analysis.h.
| Bool_t StEEmcPi0Analysis::accept | ( | StEEmcPair | pair, | |
| Bool_t | fill = true | |||
| ) | [protected] |
Pair must be isolated, i.e. only two points sharing tower energy
One gamma must be associated with a tower above trigger threshold
Pair must be w/in eta range
Larger energy gamma must be w/in specified fiducial cut
Definition at line 456 of file StEEmcPi0Analysis.cxx.
References StEEmcElement::adc(), StEEmcElement::energy(), StEEmcTower::etabin(), hPairCounter, mEEgeom, StEEmcPair::momentum(), StEEmcPair::point(), StEEmcTower::sector(), StEEmcTower::subsector(), StEEmcPoint::tower(), and twoBodyCut().
| Int_t StEEmcPi0Analysis::getSpinState | ( | StMuDst * | mu, | |
| Int_t & | bxs | |||
| ) | [protected] |
method to retrieve 4bit spin state
HARDCODED KLUDGE
Definition at line 526 of file StEEmcPi0Analysis.cxx.
References StSpinDbMaker::BXyellowUsingBX48(), Clear(), hBx48, hBx7, hBx7diffBx48, hSpin4, hSpin4mb, mHistograms, mSpinDb, and StSpinDbMaker::spin4usingBX48().
Referenced by Make().
| Int_t StEEmcPi0Analysis::Make | ( | ) | [virtual] |
processes a single event
Determine spin state.
meh
Check trigger
map spin decimal bits to histograms
event energy sums
Loop over all candidate pairs
If spin sorting has been disabled
Repeat for backgrounds
Reimplemented from StMaker.
Definition at line 113 of file StEEmcPi0Analysis.cxx.
References accept(), StEEmcElement::adc(), StEEmcCluster::add(), StEEmcMixMaker::candidate(), StEEmcElement::energy(), StEEmcPoint::energy(), StMuDst::event(), StEEmcElement::fail(), getSpinState(), hBxStar, hBxStarPi0, hEtaBx, hMassBx, hPairCounter, hZggBx, hZvertBx, StEEmcTower::index(), StEEmcCluster::isNeighbor(), kStOK, StEEmcMixEvent::mADC, StEEmcPair::mass(), mEEanalysis, mEEmixer, mHistograms, StEEmcMixMaker::mixedCandidate(), mMuDst, StEEmcPair::momentum(), mSpinDb, StMuDstMaker::muDst(), StEEmcMixMaker::numberOfCandidates(), StEEmcA2EMaker::numberOfHitStrips(), StEEmcMixMaker::numberOfMixedCandidates(), StEEmcCluster::numberOfTowers(), StEEmcPair::point(), StEEmcPair::print(), StEEmcPoint::sector(), StEEmcElement::stat(), StEEmcPoint::tower(), StEEmcA2EMaker::tower(), StEEmcA2EMaker::towers(), StEEmcPair::vertex(), and StEEmcPair::zgg().
| void StEEmcPi0Analysis::mixer | ( | const Char_t * | name | ) |
specifies the name of the mixer and the mass range for gated histograms.
Definition at line 276 of file StEEmcPi0Analysis.cxx.
References mEEmixer.
| void StEEmcPi0Analysis::spin | ( | const Char_t * | name | ) |
specifies the name of the spin db maker
no assert, null pointer expected if running on MC
Definition at line 302 of file StEEmcPi0Analysis.cxx.
References mSpinDb.
| Bool_t StEEmcPi0Analysis::twoBodyCut | ( | StEEmcPair & | p | ) | [protected] |
Verify that the pi0 candidate is the only pair of reconstructed points matching the contiguous group of towers.
Obtain the 6-18 towers which contribute energy to this pair
NOTE: we could consider adding the next-nearest neighbors as well
Loop over all points in the endcap and count the number which match one of the specified towers
Definition at line 308 of file StEEmcPi0Analysis.cxx.
References StEEmcPair::energy(), StEEmcElement::energy(), StEEmcTower::index(), mEEpoints, StEEmcTower::neighbor(), StEEmcTower::numberOfNeighbors(), StEEmcPointMaker::numberOfPoints(), StEEmcPointMaker::point(), StEEmcPair::point(), and StEEmcPoint::tower().
Referenced by accept().
TH1F* StEEmcPi0Analysis::hBx48 [protected] |
-- 48-bit bunch crossing
Definition at line 104 of file StEEmcPi0Analysis.h.
Referenced by getSpinState(), and Init().
TH1F* StEEmcPi0Analysis::hBx7 [protected] |
-- 7-bit bunch crossing
Definition at line 103 of file StEEmcPi0Analysis.h.
Referenced by getSpinState(), and Init().
TH2F* StEEmcPi0Analysis::hBx7diffBx48 [protected] |
-- 7-bit bunch crossing - 48bit
Definition at line 105 of file StEEmcPi0Analysis.h.
Referenced by getSpinState(), and Init().
TH1F* StEEmcPi0Analysis::hBxStar [protected] |
-- star beam crossing
Definition at line 106 of file StEEmcPi0Analysis.h.
TH1F* StEEmcPi0Analysis::hBxStarPi0 [protected] |
-- gated on pi0
Definition at line 107 of file StEEmcPi0Analysis.h.
TH2F* StEEmcPi0Analysis::hEtaBx [protected] |
-- eta vs bunch crossing
Definition at line 112 of file StEEmcPi0Analysis.h.
TH1F* StEEmcPi0Analysis::hFillPatternI [protected] |
-- intended fill pattern
Definition at line 101 of file StEEmcPi0Analysis.h.
TH2F* StEEmcPi0Analysis::hMassBx [protected] |
-- mass vs bunch crossing
Definition at line 109 of file StEEmcPi0Analysis.h.
TH1F* StEEmcPi0Analysis::hSpin4 [protected] |
-- number of times code sees spin state
Definition at line 102 of file StEEmcPi0Analysis.h.
Referenced by getSpinState(), and Init().
TH1F* StEEmcPi0Analysis::hSpin4mb [protected] |
-- spin state w/ mb
Definition at line 114 of file StEEmcPi0Analysis.h.
Referenced by getSpinState(), and Init().
TH2F* StEEmcPi0Analysis::hZggBx [protected] |
-- zgg vs bunch crossing
Definition at line 111 of file StEEmcPi0Analysis.h.
TH2F* StEEmcPi0Analysis::hZvertBx [protected] |
-- z vertex (gated) vs bunch crossing
Definition at line 110 of file StEEmcPi0Analysis.h.
Int_t StEEmcPi0Analysis::mMinBias [protected] |
-- id of the min bias trigger
Definition at line 93 of file StEEmcPi0Analysis.h.
std::vector<Int_t> StEEmcPi0Analysis::mTriggerList [protected] |
-- list of triggers to process
Definition at line 92 of file StEEmcPi0Analysis.h.
1.5.9