StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEStructHAdd.h
1 /**********************************************************************
2  *
3  * $Id: StEStructHAdd.h,v 1.6 2010/06/23 22:33:45 prindle Exp $
4  *
5  * Author: Jeff Porter
6  *
7  **********************************************************************
8  *
9  * Description: Simple helper class for adding hists from cut selectoins
10  *
11  ***********************************************************************/
12 #ifndef __STESTRUCTHADD_H
13 #define __STESTRUCTHADD_H
14 
15 
16 #include "TROOT.h"
17 class TFile;
18 class TH2;
19 
20 class StEStructHAdd : public TObject {
21 
22  protected:
23 
24  public:
25 
26  StEStructHAdd(){};
27  ~StEStructHAdd(){};
28 
29  void addCuts(const char* outfile, TFile * inFile,
30  int* nlist, int num, int parentDist[][2], int* nParentDist, int symmXX=0);
31  void addCuts(const char* outfile, const char* infile,
32  int* nlist, int num, int parentDist[][2], int* nParentDist, int symmXX=0);
33  void symmetrizeXX(TH2 *hist);
34  void old_addDensities(const char* outfile, TFile* inFile);
35  void addDensities(const char* outfile, TFile* inFile);
36  void combineUS(TFile * modFile);
37 
38 
39  ClassDef(StEStructHAdd,1)
40 
41 };
42 
43 
44 #endif
45 /***********************************************************************
46  *
47  * $Log: StEStructHAdd.h,v $
48  * Revision 1.6 2010/06/23 22:33:45 prindle
49  * In HAdd we distinguish between the parent distributions of the
50  * two particles.
51  * In Support I fixed a number of problems in the Pt correlation section.
52  *
53  * Revision 1.5 2010/03/02 21:48:30 prindle
54  * Fix addDensities (for checking pair cuts)
55  * Lots of small changes
56  *
57  * Revision 1.4 2008/05/01 23:46:40 prindle
58  * Changed to use TH1D and TH2D (instead of TH1 and TH2) in some places so
59  * we can use GetObject method to enforce type checking. Found I had missed
60  * duplicating a \phi_\Delta row in one case. Also added a method to include
61  * sum of pairdensity histograms in output file.
62  *
63  * Revision 1.3 2007/11/26 20:07:17 prindle
64  * Modified to average \Delta\rho/sqrt(\rho) over z-bins (if more than one z-bin
65  * present for given centrality. Note: I weight by number of tracks, not number of
66  * pairs. This is important when we are also combining different centralities (which
67  * I do by combining centrality tag with z-bin tag in macro/addCentralities.)
68  *
69  * Scale mixed histograms by number of events. Integral of \Delta\rho need not be 0.
70  *
71  * delete items that are created and valgrind complained were lost. (Not a big deal
72  * since macro is run once)
73  *
74  * [Still need to commit StEStructHAdd.cxx which cvs complained that check-update failed.]
75  *
76  * Revision 1.2 2006/04/06 01:09:47 prindle
77  * Calculating pt for each cut bin caused changes in HAdd.
78  * The splitting of +- into +- and -+ caused changes in Support.
79  *
80  * Revision 1.1 2004/07/01 00:37:17 porter
81  * new code previously my StEStructHelper. Takes hists from correltation
82  * pass and builds final ressults. Also the StEStructHAdd.h is a simple
83  * replacemnt for my sumyt.C macro which could be expanded later as needed.
84  *
85  *
86  *
87  *********************************************************************/
88