32 #include "StRefMultCorr.h"
33 #include "CentralityMaker.h"
53 fgRefMultCorr_Run14_AuAu200_VpdMB5_P16id =
new StRefMultCorr(
"grefmult",
"Run14_AuAu200_VpdMB5",
"P16id") ;
54 fgRefMultCorr_Run14_AuAu200_VpdMB30_P16id =
new StRefMultCorr(
"grefmult",
"Run14_AuAu200_VpdMB30",
"P16id") ;
55 fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_LowMid_P16id =
new StRefMultCorr(
"grefmult",
"Run14_AuAu200_VpdMBnoVtx_LowMid",
"P16id") ;
56 fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_High_P15ic =
new StRefMultCorr(
"grefmult",
"Run14_AuAu200_VpdMBnoVtx_High",
"P15ic") ;
57 fgRefMultCorr_Run16_AuAu200_VpdMB5_P16ij =
new StRefMultCorr(
"grefmult",
"Run16_AuAu200_VpdMB5",
"P16ij") ;
58 fgRefMultCorr_Run16_AuAu200_VpdMBnoVtx_P16ij =
new StRefMultCorr(
"grefmult",
"Run16_AuAu200_VpdMBnoVtx",
"P16ij") ;
62 CentralityMaker::~CentralityMaker(){
83 return fRefMult2Corr ;
88 return fRefMult3Corr ;
93 return fRefMultCorr_Isobar ;
98 return fRefMultCorrFxt;
117 return fgRefMultCorr ;
121 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run14_AuAu200_VpdMB5_P16id() {
122 return fgRefMultCorr_Run14_AuAu200_VpdMB5_P16id ;
126 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run14_AuAu200_VpdMB30_P16id() {
127 return fgRefMultCorr_Run14_AuAu200_VpdMB30_P16id ;
131 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_LowMid_P16id() {
132 return fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_LowMid_P16id ;
136 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_High_P15ic() {
137 return fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_High_P15ic ;
141 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run16_AuAu200_VpdMB5_P16ij() {
142 return fgRefMultCorr_Run16_AuAu200_VpdMB5_P16ij ;
146 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run16_AuAu200_VpdMBnoVtx_P16ij() {
147 return fgRefMultCorr_Run16_AuAu200_VpdMBnoVtx_P16ij ;
151 void CentralityMaker::help()
const {
153 cout <<
"//------------------------------------------------------------------------------" << endl;
154 cout <<
"How to get centrality bins by CentralityMaker ?" << endl;
155 cout <<
" (Please also take a look at StRoot/StRefMultCorr/macros/getCentralityBins.C" << endl;
157 cout <<
"1. Initialize run index to read proper data base" << endl;
158 cout <<
" Suppose we want to get centrality from refmult at run index 11078000" << endl;
160 cout <<
" // NOTE:" << endl;
161 cout <<
" // Use BBC coincidence rate (NOT ZDC coincidence rate) for refmult2)" << endl;
162 cout <<
" StRefMultCorr* refmultCorr = CentralityMaker::instance()->getRefMultCorr();" << endl;
163 cout <<
" refmultCorr->init(11078000);" << endl;
165 cout <<
"2. Initialize relevant variables event-by-event" << endl;
167 cout <<
" // NOTE:" << endl;
168 cout <<
" // 1st argument is original multiplicity" << endl;
169 cout <<
" // If one wants to have centrality from refmult2, you have to put refmult2" << endl;
170 cout <<
" refmultCorr->initEvent(refmult, vz, zdcCoincidenceRate);" << endl;
172 cout <<
"3. Get centrality bins" << endl;
174 cout <<
" const Int_t cent16 = refmultCorr->getCentralityBin16() ;" << endl;
175 cout <<
" const Int_t cent9 = refmultCorr->getCentralityBin9() ;" << endl;
176 cout <<
"//------------------------------------------------------------------------------" << endl;
StRefMultCorr * getRefMultCorr()
Default destructor.