StEEmcMixQAMaker Class Reference

A maker for creating pi0 histograms. More...

Inheritance diagram for StEEmcMixQAMaker:

StMaker StMaker

List of all members.

Public Member Functions

 StEEmcMixQAMaker (const Char_t *name)
 constructor
 ~StEEmcMixQAMaker ()
 destructor
Int_t Init ()
 initializes the maker
Int_t Make ()
 processes a single event
void Clear (Option_t *opts="")
 clears the maker
void mixer (const Char_t *name, Float_t min=0., Float_t max=999.)
void points (const Char_t *name)
 specifies the name of the point maker
void background ()
 use combinatoric background points instead of real points
void addBin (Float_t b)
 add a pT bin from the last boundary added to this value
 StEEmcMixQAMaker (const Char_t *name)
Int_t Init ()
Int_t Make ()
void Clear (Option_t *opts="")
 User defined functions.
void mixer (const Char_t *name, Float_t min=0., Float_t max=999.)
void points (const Char_t *name)
void background ()
 use combinatoric background points

Public Attributes

Int_t maxPerSector
Int_t maxPerEvent
Int_t maxPerCluster
Float_t minTowerFrac
Float_t zVertexMin
Float_t zVertexMax
Float_t minZgg
Float_t maxZgg

Protected Member Functions

Int_t ptbin (StEEmcPair p)
 returns the ptbin the pair is in
Bool_t twoBodyCut (StEEmcPair p)
 ClassDef (StEEmcMixQAMaker, 1)
 Makes class availabel to root.
Int_t ptbin (StEEmcPair p)
Bool_t twoBodyCut (StEEmcPair p)
 ClassDef (StEEmcMixQAMaker, 1)

Protected Attributes

Float_t mMin
Float_t mMax
Bool_t mBackground
TH1F * hNcandidates
TH1F * hNcandidatesR
std::vector< TH2F * > hYXpair
 Y vs X of pi0 pairs.
std::vector< TH2F * > hYXhigh
 Y vs X of higher energy gamma.
std::vector< TH2F * > hYXlow
 Y vs X of lower energy gamma.
std::vector< TH2F * > hE1E2
 Energy of first gamma vs energy of second.
std::vector< Float_t > mBins
 E1 vs E2.
std::vector< std::vector< TH1F * > > hMassR
 Bin boundaries in pT.
std::vector< std::vector< TH1F * > > hZggR
 Energy sharing [mMin,mMax].
std::vector< std::vector< TH1F * > > hPhiggR
 Opening angle [mMin,mMax].
std::vector< std::vector< TH1F * > > hEnergyR
 Pair energy [mMin,mMax].
std::vector< std::vector< TH1F * > > hZvertexR
 Event vertex [mMin,mMax].
TH1F * hMassRall
 Mass spectrum for all events.
TH1F * hZvertexRall
 vertex for all events
StEEmcMixMakermEEmixer
 Pointer to the pi0 mixer.
StEEmcPointMakermEEpoints
 pointer to the point maker


Detailed Description

A maker for creating pi0 histograms.

The StEEmcMixQAMaker takes as input the list of pi0 candiates provided by StEEmcMixMaker, filters out pairs depending on user-specified cuts, then fills a number of histograms with kinematic quantities of the pairs.

The user may specify any number of pT bins by calling addBin(). A standard set of histograms will be created for each pT bin in each sector. In addition, histograms integrated over all sectors will be created and filled (tagged with "sec13"), as will histograms integrated over all pT ("unbinned").

The output of this maker is a list of histograms, available through a call to StMaker::GetHistList(). See the example macro for details on writing the output to disk.

Cuts

  1. mMin: minimum mass for mass-gated quantities (set in call to mixer()).
  2. mMax: maximum mass for mass-gated quantities (set in call to mixer()).
  3. zVertexMin: specifies the eastern-most allowed z vertex
  4. zVertexMax: specifies the western-most allowed z vertex
  5. maxPerEvent: specifies the maximum number of pairs we allow per event (default=200).
  6. maxPerSector: specifies the maximum number of pairs we allow per sector per event (default=200).
  7. maxPerCluster: specifies the maximum number of POINTS which are matched to the 6,9,...,18 towers which contribute energy to the candidate pi0 pair
  8. minTowerFrac: specifies a minumum energy fraction for the points divided by the energy of the towers containing the points plus all nearest-neighbor towers.
  9. addBin(): adds a pT bin, extending from the last bin boundary to the value specified. histograms will be automatically created and filled for the new bin.

Definition at line 14 of file StEEmcMixQAMaker.h.


Constructor & Destructor Documentation

StEEmcMixQAMaker::StEEmcMixQAMaker ( const Char_t *  name  ) 

constructor

Default cuts

pT binning for mass spectra

Definition at line 49 of file StEEmcMixQAMaker.cxx.

References maxPerCluster, maxPerEvent, maxPerSector, maxZgg, mBackground, mBins, minTowerFrac, minZgg, zVertexMax, and zVertexMin.


Member Function Documentation

Int_t StEEmcMixQAMaker::Init (  )  [virtual]

initializes the maker

Book histograms for Y vs X of pi0, gammas and E1 vs E2

Book histograms for pi0 kinematics binned in pT for each sector

init our dynamic array of histograms

one bin integrated over full pt range

Reimplemented from StMaker.

Definition at line 72 of file StEEmcMixQAMaker.cxx.

References hE1E2, hEnergyR, hMassR, hMassRall, hNcandidates, hNcandidatesR, hPhiggR, hYXhigh, hYXlow, hYXpair, hZggR, hZvertexR, hZvertexRall, mBins, and ptbin().

Int_t StEEmcMixQAMaker::Make (  )  [virtual]

The Make() method is the one responsible for calling the maker's InitRun(). Note that that InitRun() is called for real data and if both of the following are true

  • a header exists
  • the run number changes

This is the ONLY place calling the InitRun() routine.

check privilege to skip event

Reimplemented from StMaker.

Int_t StEEmcMixQAMaker::Make (  )  [virtual]

processes a single event

Sort pairs by sector

Use standard list of real points

Maximum pairs per event

Use mixed combinatoric points

Maximum pairs per event

Loop over all sectors and fill QA histograms

Maximum pairs per sector

Maximum points per cluster

Find pt bin

Kinematics cuts

zgg cuts

verify vertex cut

Fill mass

Gated quantities

pt binned

pt integrated

Reimplemented from StMaker.

Definition at line 172 of file StEEmcMixQAMaker.cxx.

References StEEmcPoint::energy(), StEEmcPair::energy(), hE1E2, hEnergyR, hMassR, hMassRall, hNcandidates, hNcandidatesR, hPhiggR, hYXhigh, hYXlow, hYXpair, hZggR, hZvertexR, hZvertexRall, kStOK, StEEmcPair::mass(), maxPerEvent, maxPerSector, maxZgg, mBackground, mBins, mEEmixer, minZgg, mMax, mMin, StEEmcMixMaker::numberOfCandidates(), StEEmcMixMaker::numberOfMixedCandidates(), StEEmcPair::phigg(), StEEmcPair::point(), StEEmcPoint::position(), ptbin(), StEEmcPoint::sector(), twoBodyCut(), StEEmcPair::vertex(), StEEmcPair::zgg(), zVertexMax, and zVertexMin.

void StEEmcMixQAMaker::mixer ( const Char_t *  name,
Float_t  min = 0.,
Float_t  max = 999. 
)

specifies the name of the mixer and the mass range for gated histograms.

Parameters:
name,: the name of the StEEmcMixMaker (or derivative class)
min,: minimum mass cut applied to all histograms save for the mass spectrum
max,: maximum mass cut ...

Definition at line 344 of file StEEmcMixQAMaker.cxx.

References mEEmixer, mMax, and mMin.

Bool_t StEEmcMixQAMaker::twoBodyCut ( StEEmcPair  p  )  [protected]

Verify that the pi0 candidate is the only pair of reconstructed points matching the contiguous group of towers.

Bool_t StEEmcMixQAMaker::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 361 of file StEEmcMixQAMaker.cxx.

References StEEmcPair::energy(), StEEmcElement::energy(), StEEmcTower::index(), mEEpoints, minTowerFrac, StEEmcTower::neighbor(), StEEmcTower::numberOfNeighbors(), StEEmcPointMaker::numberOfPoints(), StEEmcPointMaker::point(), StEEmcPair::point(), and StEEmcPoint::tower().

Referenced by Make().


Member Data Documentation

std::vector< TH2F * > StEEmcMixQAMaker::hE1E2 [protected]

Energy of first gamma vs energy of second.

Y vs X of lower E gamma.

Y vs X of lower E gamma

Definition at line 75 of file StEEmcMixQAMaker.h.

Referenced by Init(), and Make().

std::vector< std::vector< TH1F * > > StEEmcMixQAMaker::hMassR [protected]

Bin boundaries in pT.

Invariant mass spectrum

Definition at line 87 of file StEEmcMixQAMaker.h.

Referenced by Init(), and Make().

TH1F * StEEmcMixQAMaker::hMassRall [protected]

Mass spectrum for all events.

integrated

Definition at line 98 of file StEEmcMixQAMaker.h.

Referenced by Init(), and Make().

TH1F * StEEmcMixQAMaker::hNcandidates [protected]

-- number of reconstructed pi0 candidates per event

Definition at line 65 of file StEEmcMixQAMaker.h.

Referenced by Init(), and Make().

-- number of reconstructed pi0 candidtaes per sector [0.1,0.18]

Definition at line 66 of file StEEmcMixQAMaker.h.

Referenced by Init(), and Make().

std::vector< TH2F * > StEEmcMixQAMaker::hYXhigh [protected]

Y vs X of higher energy gamma.

Y vs X of pi0 pair.

Y vs X of pi0 pair

Definition at line 71 of file StEEmcMixQAMaker.h.

Referenced by Init(), and Make().

std::vector< TH2F * > StEEmcMixQAMaker::hYXlow [protected]

Y vs X of lower energy gamma.

Y vs X of higher E gamma.

Y vs X of higher E gamma

Definition at line 73 of file StEEmcMixQAMaker.h.

Referenced by Init(), and Make().

std::vector< TH2F * > StEEmcMixQAMaker::hYXpair [protected]

Y vs X of pi0 pairs.

Point QA in 12 sectors.

Definition at line 69 of file StEEmcMixQAMaker.h.

Referenced by Init(), and Make().

std::vector< std::vector< TH1F * > > StEEmcMixQAMaker::hZggR [protected]

Energy sharing [mMin,mMax].

Inv mass of real pairs.

Inv mass of real pairs

Definition at line 89 of file StEEmcMixQAMaker.h.

Referenced by Init(), and Make().

-- maximum number of points matched to the 6-18 tower cluster (default 2)

Definition at line 44 of file StEEmcMixQAMaker.h.

Referenced by StEEmcMixQAMaker().

-- maximum number of pairs per event (default 200)

Definition at line 43 of file StEEmcMixQAMaker.h.

Referenced by Make(), and StEEmcMixQAMaker().

-- maximum number of pairs matched to sector (default 200)

Definition at line 42 of file StEEmcMixQAMaker.h.

Referenced by Make(), and StEEmcMixQAMaker().

-- maximum zgg

Definition at line 52 of file StEEmcMixQAMaker.h.

Referenced by Make(), and StEEmcMixQAMaker().

Bool_t StEEmcMixQAMaker::mBackground [protected]

-- specifies whether or not we are histograming a mixed event background

Definition at line 63 of file StEEmcMixQAMaker.h.

Referenced by background(), Make(), and StEEmcMixQAMaker().

std::vector< Float_t > StEEmcMixQAMaker::mBins [protected]

E1 vs E2.

PT bin boundaries

Mass spectra as a function of sector and pT

Definition at line 78 of file StEEmcMixQAMaker.h.

Referenced by addBin(), Init(), Make(), ptbin(), and StEEmcMixQAMaker().

-- minimum energy fraction (E1 + E2)/Etowers (default 0.0)

Definition at line 46 of file StEEmcMixQAMaker.h.

Referenced by StEEmcMixQAMaker(), and twoBodyCut().

-- minimum zgg

Definition at line 51 of file StEEmcMixQAMaker.h.

Referenced by Make(), and StEEmcMixQAMaker().

Float_t StEEmcMixQAMaker::mMax [protected]

-- max mass for gated quantities

Definition at line 61 of file StEEmcMixQAMaker.h.

Referenced by Make(), and mixer().

Float_t StEEmcMixQAMaker::mMin [protected]

-- min mass for gated quantities

Definition at line 60 of file StEEmcMixQAMaker.h.

Referenced by Make(), and mixer().

-- maximum z vertex

Definition at line 49 of file StEEmcMixQAMaker.h.

Referenced by Make(), and StEEmcMixQAMaker().

-- minimum z vertex

Definition at line 48 of file StEEmcMixQAMaker.h.

Referenced by Make(), and StEEmcMixQAMaker().


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

Generated on Thu Feb 9 04:27:23 2012 for StRoot by  doxygen 1.5.9