StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CentralityMaker.h
1 //----------------------------------------------------------------------------------------------------
2 // $Id: CentralityMaker.h,v 1.4 2021/05/17 09:07:05 tnonaka Exp $
3 // $Log: CentralityMaker.h,v $
4 // Revision 1.4 2021/05/17 09:07:05 tnonaka
5 // Refmult centrality definition for isobaric data
6 //
7 // Revision 1.3 2020/01/16 23:52:58 tnonaka
8 // gRefmult for Run14 and Run16 added
9 //
10 // Revision 1.2 2019/07/11 03:28:45 tnonaka
11 // Toftray commented out
12 //
13 // Revision 1.5 2015/05/22 06:51:58 hmasui
14 // Add grefmult for Run14 Au+Au 200 GeV
15 //
16 // Revision 1.4 2013/05/10 18:33:33 hmasui
17 // Add TOF tray mult, preliminary update for Run12 U+U
18 //
19 // Revision 1.3 2012/05/19 00:49:14 hmasui
20 // Update refmult3
21 //
22 // Revision 1.2 2012/05/08 03:19:39 hmasui
23 // Move parameters to Centrality_def_refmult.txt
24 //
25 // Revision 1.1 2012/04/23 21:32:16 hmasui
26 // Interface for future extention of centrality correction maker to other centrality measures, like refmult2
27 //
28 //----------------------------------------------------------------------------------------------------
29 // * Interface of StRefMultCorr for possible extention of StRefMultCorr class to the other
30 // centrality measure, such as refmult2.
31 // * This interface is also useful when StRefMultCorr needs to be called from two or more different
32 // makers in order to have exactly the same corrected refmult and centrality bins among different makers.
33 //
34 // There is only one change you have to make
35 // Replace
36 // StRefMultCorr* refmultCorr = new StRefMultCorr();
37 // to
38 // StRefMultCorr* refmultCorr = CentralityMaker::instance()->getRefMultCorr();
39 //
40 // authors: Hiroshi Masui
41 //----------------------------------------------------------------------------------------------------
42 
43 #ifndef __CentralityMaker_h__
44 #define __CentralityMaker_h__
45 
46 class StRefMultCorr;
47 #include "Rtypes.h"
48 
49 //_________________
51  public:
52  static CentralityMaker* instance(); // Use this function to access StRefMultCorr
53  virtual ~CentralityMaker();
54 
55  // Interface
56  StRefMultCorr* getRefMultCorr() ; // For refmult
57  StRefMultCorr* getRefMult2Corr() ; // For refmult2
58  StRefMultCorr* getRefMult3Corr() ; // For refmult3
59  StRefMultCorr* getRefMultCorr_Isobar() ; // For refmult
60  StRefMultCorr* getRefMultCorrFxt(); // For fixed-target data
61  // StRefMultCorr* getRefMult6Corr() ; // For refmult6
62  // StRefMultCorr* getTofTrayMultCorr() ; // For TOF tray multiplicity
63  StRefMultCorr* getgRefMultCorr() ; // For grefmult //Run14 AuAu200GeV
64  StRefMultCorr* getgRefMultCorr_Run14_AuAu200_VpdMB5_P16id() ;
65  StRefMultCorr* getgRefMultCorr_Run14_AuAu200_VpdMB30_P16id() ;
66  StRefMultCorr* getgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_LowMid_P16id() ;
67  StRefMultCorr* getgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_High_P15ic() ; // AuAu_200_production_high_2014
68  StRefMultCorr* getgRefMultCorr_Run16_AuAu200_VpdMB5_P16ij() ;
69  StRefMultCorr* getgRefMultCorr_Run16_AuAu200_VpdMBnoVtx_P16ij() ;
70 
71  // Print help messages
72  void help() const ;
73 
74  private:
75  CentralityMaker() ; // Constructor is private
76  static CentralityMaker* fInstance ; // Static pointer of CentralityMaker
77 
78  // Centrality correction classes
79  StRefMultCorr* fRefMultCorr ; // refmult-based centrality
80  StRefMultCorr* fRefMult2Corr ; // refmult2-based centrality
81  StRefMultCorr* fRefMult3Corr ; // refmult3-based centrality
82  StRefMultCorr* fRefMultCorr_Isobar ; // refmult based centrality
83  StRefMultCorr* fRefMultCorrFxt; // fxtMult-based centrality
84  // StRefMultCorr* fRefMult6Corr ; // refmult6-based centrality
85  // StRefMultCorr* fTofTrayMultCorr ; // tofTrayMult-based centrality
86  StRefMultCorr* fgRefMultCorr ; // grefmult-based centrality
87  StRefMultCorr* fgRefMultCorr_Run14_AuAu200_VpdMB5_P16id ;
88  StRefMultCorr* fgRefMultCorr_Run14_AuAu200_VpdMB30_P16id ;
89  StRefMultCorr* fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_P16id ;
90  StRefMultCorr* fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_LowMid_P16id ;
91  StRefMultCorr* fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_High_P15ic ; // AuAu_200_production_high_2014
92  StRefMultCorr* fgRefMultCorr_Run16_AuAu200_VpdMB5_P16ij ;
93  StRefMultCorr* fgRefMultCorr_Run16_AuAu200_VpdMBnoVtx_P16ij ;
94 
95  ClassDef(CentralityMaker, 0)
96 };
97 #endif
98 
StRefMultCorr * getRefMultCorr()
Default destructor.