StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEStructEmptyAnalysis.h
1 /**********************************************************************
2  *
3  * $Id: StEStructEmptyAnalysis.h,v 1.8 2007/05/27 22:43:35 msd Exp $
4  *
5  * Author: Jeff Porter
6  *
7  **********************************************************************
8  *
9  * Description: Empty analysis code for testing
10  * Can replace StEStruct2ptCorrelations for an analysis that
11  * reads events, applies all event and track (NOT pair) cuts,
12  * and outputs a few histograms.
13  *
14  **********************************************************************/
15 #ifndef _STESTRUCT_EMPTY_HH
16 #define _STESTRUCT_EMPTY_HH
17 
18 
19 #include "TROOT.h"
20 #include "StEStructAnalysis.h"
21 #include "StEStructPool/EventMaker/StEStructCentrality.h"
22 
23 class TH1F;
24 
26 
27  char* moutFileName;
28 
29  // Make some plots for determining centrality bins
30  TH1F* hNEvent; // dNevent/dNch using Centrality
31  TH1F* hnt; // dNevent/dNch using Ntrack
32  TH1F* hvar; //variable bins; I'd like to use a TGraph instead of TH1F, but hadd doesn't support graphs...
33  TH1F* href; // refMult
34  TH1F* hnumPrim; // from StEventSummary::numberOfGoodPrimaryTracks()
35  TH1D* hctb; // ctb multiplicity
36 
37  TH1F* hnev14; // centrality^1/4
38  TH1F* hnt14; // ntrack^1/4
39  TH1F* href14; // refMult^1/4
40  TH1F* hnumPrim14; // numPrim^1/4
41  TH1D* hctb14; // ctb^1/4
42 
43  // Track Level plots
44  TH1F* hmeanpt; // event <pt>
45  TH1F* hmeanpt14; // <pt>^1/4
46 
47  public:
48 
51 
52  virtual void setOutputFileName(const char* outFileName);
53  void setCutFile(const char* cutFileName, StEStructCentrality *cent); // no-op, see below
54  virtual bool doEvent(StEStructEvent* event);
55  virtual void finish();
56 
57  ClassDef(StEStructEmptyAnalysis,1)
58 };
59 
60 inline void StEStructEmptyAnalysis::setOutputFileName(const char* fName){
61  if(!fName) return;
62  moutFileName=new char[strlen(fName)+1];
63  strcpy(moutFileName,fName);
64 }
65 
66 inline void StEStructEmptyAnalysis::setCutFile(const char* cutFileName, StEStructCentrality *cent)
67  // doesn't do anything, just here to have consistant interface with the 2pt correlation analysis
68 { }
69 
70 #endif
71 /**********************************************************************
72  *
73  * $Log: StEStructEmptyAnalysis.h,v $
74  * Revision 1.8 2007/05/27 22:43:35 msd
75  * Added new centrality plots to Empty analysis
76  *
77  * Revision 1.7 2007/01/26 17:09:28 msd
78  * Minor bug fix in AnalysisMaker, cleaned up EmptyAnalysis
79  *
80  * Revision 1.6 2006/04/04 22:05:05 porter
81  * a handful of changes:
82  * - changed the StEStructAnalysisMaker to contain 1 reader not a list of readers
83  * - added StEStructQAHists object to contain histograms that did exist in macros or elsewhere
84  * - made centrality event cut taken from StEStructCentrality singleton
85  * - put in ability to get any max,min val from the cut class - one must call setRange in class
86  *
87  * Revision 1.5 2005/10/10 16:22:31 msd
88  * stability fixes, yet another tweak of output hists
89  *
90  * Revision 1.4 2005/10/04 16:06:19 msd
91  * Finalized centrality plots
92  *
93  * Revision 1.3 2005/09/29 17:40:31 msd
94  * Changed empty analysis to create plots for determining centrality bins
95  *
96  * Revision 1.2 2004/06/25 03:10:29 porter
97  * added a new common statistics output and added electron cut with momentum slices
98  *
99  * Revision 1.1 2003/10/15 18:20:32 porter
100  * initial check in of Estruct Analysis maker codes.
101  *
102  *
103  *********************************************************************/
104