StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St2011pubSpinMaker.h
1 // $Id: St2011pubSpinMaker.h,v 1.9 2014/08/06 11:43:41 jeromel Exp $
2 //
3 //*-- Author : Jan Balewski, MIT
4 
5 
6 #ifndef STAR_St2011pubSpinMaker
7 #define STAR_St2011pubSpinMaker
8 
21 #ifndef StMaker_H
22 #include "StMaker.h"
23 #endif
24 #include <TString.h>
25 
26 class St2011WMaker;
27 
28 class St2011pubSpinMaker : public StMaker {
29  private:
30 
31  int par_QET2PTcut;
32 
33  float par_leptonEta1, par_leptonEta2; // narrow the range
34  int par_useNoEEMC;
35 
36  float parE_leptonEta1, parE_leptonEta2; // narrow the range
37 
38  St2011WMaker *wMK; // W-algo maker with all data
39  TString core; // name attached to all histos
40  TString coreTitle; // eta bin name added title of key histos
41 
42  // histograms
43  TObjArray *HList;
44  enum {mxHA=35}; TH1 * hA[mxHA];
45  enum {mxHE=35}; TH1 * hE[mxHE];
46 
47  void initHistos();
48  void bXingSort();
49  void bXingSortEndcap();
50  public:
51  St2011pubSpinMaker(const char *name="2011pubSpin", const char* etaName="Eta7");
52  virtual ~St2011pubSpinMaker(){};
53  virtual Int_t Init();
54  virtual Int_t InitRun (int runumber);
55  virtual Int_t Make();
56  void setHList(TObjArray * x){HList=x;}
57  void setEta(float x, float y) { par_leptonEta1=x; par_leptonEta2=y;};
58  void setEtaE(float x, float y) { parE_leptonEta1=x; parE_leptonEta2=y;};
59  void setQPT(int x){ par_QET2PTcut=x;};
60  void setNoEEMC() {par_useNoEEMC=1;}
61 
62  void attachWalgoMaker(St2011WMaker *mk) { wMK=mk;}
63  virtual Int_t FinishRun(int runumber);
64 
65 
67  virtual const char *GetCVS() const {
68  static const char cvs[]="Tag $Name: $ $Id: St2011pubSpinMaker.h,v 1.9 2014/08/06 11:43:41 jeromel Exp $ built " __DATE__ " " __TIME__ ;
69  return cvs;
70  }
71 
72  ClassDef(St2011pubSpinMaker,0) //StAF chain virtual base class for Makers
73 };
74 
75 #endif
76 
77 
78 // $Log: St2011pubSpinMaker.h,v $
79 // Revision 1.9 2014/08/06 11:43:41 jeromel
80 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
81 //
82 // Revision 1.8 2013/09/13 19:33:13 stevens4
83 // Updates to code for combined 2011+2012 result presented to spin PWG 9.12.13
84 //
85 // Revision 1.7 2013/06/14 21:08:51 jlzhang
86 // add histo Q/pT vs. nHitsFit and Q/pT vs. nHitsPos
87 //
88 // Revision 1.6 2012/09/17 03:29:30 stevens4
89 // Updates to Endcap algo and Q*ET/PT charge separation
90 //
91 // Revision 1.5 2012/08/28 14:28:27 stevens4
92 // add histos for barrel and endcap algos
93 //
94 // Revision 1.4 2012/08/21 21:28:22 stevens4
95 // Add spin sorting for endcap Ws
96 //
97 // Revision 1.3 2012/08/07 21:06:38 stevens4
98 // update to tree analysis to produce independent histos in a TDirectory for each eta-bin
99 //
100 // Revision 1.2 2012/07/12 20:49:21 balewski
101 // added spin info(star: bx48, bx7, spin4) and maxHtDSM & BTOW to Wtree
102 // removed dependence of spinSortingMaker from muDst
103 // Now Wtree can be spin-sorted w/o DB
104 // rdMu.C & readWtree.C macros modified
105 // tested so far on real data run 11
106 // lot of misc. code shuffling
107 //
108 // Revision 1.1 2011/02/10 20:33:25 balewski
109 // start
110 //
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...
spin sorting of W&#39;s
muDst based extraction of W-signal from pp500 data from 2011
Definition: St2011WMaker.h:49