StEEmcPi0Analysis Class Reference

A maker for creating pi0 histograms. More...

Inheritance diagram for StEEmcPi0Analysis:

StMaker

List of all members.

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

StEEmcMixMakermEEmixer
 Pointer to the pi0 mixer.
StEEmcPointMakermEEpoints
 pointer to the point maker
StMuDstMakermMuDst
 pointer to mudst
StEEmcA2EMakermEEanalysis
 pointer to analysis maker
StSpinDbMakermSpinDb
 pointer to the spin database
std::vector< Int_t > mTriggerList
Int_t mMinBias
SpinHistosmHistograms [100]
 Spin-sorted pi0 histograms.
SpinHistosmBackgrounds [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
StRFEmcTrigMakermTrigSim
 Trigger simulation for MC.
Int_t mTrigSimThreshold
Int_t mRunNumber
Bool_t mSpinSort
EEmcGeomSimplemEEgeom
 EEMC tower geometry.
StEEmcMixEventmRealEvent
StEEmcMixEventmMixedEvent
TTree * mRealTree
TTree * mMixedTree


Detailed Description

A maker for creating pi0 histograms.

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.


Member Function Documentation

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]

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


Member Data Documentation

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

-- 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.

Referenced by Init(), and Make().

TH1F* StEEmcPi0Analysis::hBxStarPi0 [protected]

-- gated on pi0

Definition at line 107 of file StEEmcPi0Analysis.h.

Referenced by Init(), and Make().

TH2F* StEEmcPi0Analysis::hEtaBx [protected]

-- eta vs bunch crossing

Definition at line 112 of file StEEmcPi0Analysis.h.

Referenced by Init(), and Make().

-- intended fill pattern

Definition at line 101 of file StEEmcPi0Analysis.h.

Referenced by Init(), and InitRun().

TH2F* StEEmcPi0Analysis::hMassBx [protected]

-- mass vs bunch crossing

Definition at line 109 of file StEEmcPi0Analysis.h.

Referenced by Init(), and Make().

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.

Referenced by Init(), and Make().

TH2F* StEEmcPi0Analysis::hZvertBx [protected]

-- z vertex (gated) vs bunch crossing

Definition at line 110 of file StEEmcPi0Analysis.h.

Referenced by Init(), and Make().

Int_t StEEmcPi0Analysis::mMinBias [protected]

-- id of the min bias trigger

Definition at line 93 of file StEEmcPi0Analysis.h.

Referenced by accept(), and minbias().

std::vector<Int_t> StEEmcPi0Analysis::mTriggerList [protected]

-- list of triggers to process

Definition at line 92 of file StEEmcPi0Analysis.h.

Referenced by accept(), and trigger().


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

Generated on Fri Feb 10 04:28:03 2012 for StRoot by  doxygen 1.5.9