32 #include "StRefMultCorr.h"
33 #include "CentralityMaker.h"
54 fgRefMultCorr_Run14_AuAu200_VpdMB5_P16id =
new StRefMultCorr(
"grefmult",
"Run14_AuAu200_VpdMB5",
"P16id") ;
55 fgRefMultCorr_Run14_AuAu200_VpdMB30_P16id =
new StRefMultCorr(
"grefmult",
"Run14_AuAu200_VpdMB30",
"P16id") ;
56 fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_LowMid_P16id =
new StRefMultCorr(
"grefmult",
"Run14_AuAu200_VpdMBnoVtx_LowMid",
"P16id") ;
57 fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_High_P15ic =
new StRefMultCorr(
"grefmult",
"Run14_AuAu200_VpdMBnoVtx_High",
"P15ic") ;
58 fgRefMultCorr_Run16_AuAu200_VpdMB5_P16ij =
new StRefMultCorr(
"grefmult",
"Run16_AuAu200_VpdMB5",
"P16ij") ;
59 fgRefMultCorr_Run16_AuAu200_VpdMBnoVtx_P16ij =
new StRefMultCorr(
"grefmult",
"Run16_AuAu200_VpdMBnoVtx",
"P16ij") ;
63 CentralityMaker::~CentralityMaker(){
84 return fRefMult2Corr ;
89 return fRefMult3Corr ;
94 return fRefMultCorr_Isobar ;
99 return fRefMultCorrFxt;
104 return fRefMult6Corr;
121 return fgRefMultCorr ;
125 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run14_AuAu200_VpdMB5_P16id() {
126 return fgRefMultCorr_Run14_AuAu200_VpdMB5_P16id ;
130 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run14_AuAu200_VpdMB30_P16id() {
131 return fgRefMultCorr_Run14_AuAu200_VpdMB30_P16id ;
135 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_LowMid_P16id() {
136 return fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_LowMid_P16id ;
140 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_High_P15ic() {
141 return fgRefMultCorr_Run14_AuAu200_VpdMBnoVtx_High_P15ic ;
145 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run16_AuAu200_VpdMB5_P16ij() {
146 return fgRefMultCorr_Run16_AuAu200_VpdMB5_P16ij ;
150 StRefMultCorr* CentralityMaker::getgRefMultCorr_Run16_AuAu200_VpdMBnoVtx_P16ij() {
151 return fgRefMultCorr_Run16_AuAu200_VpdMBnoVtx_P16ij ;
155 void CentralityMaker::help()
const {
157 cout <<
"//------------------------------------------------------------------------------" << endl;
158 cout <<
"How to get centrality bins by CentralityMaker ?" << endl;
159 cout <<
" (Please also take a look at StRoot/StRefMultCorr/macros/getCentralityBins.C" << endl;
161 cout <<
"1. Initialize run index to read proper data base" << endl;
162 cout <<
" Suppose we want to get centrality from refmult at run index 11078000" << endl;
164 cout <<
" // NOTE:" << endl;
165 cout <<
" // Use BBC coincidence rate (NOT ZDC coincidence rate) for refmult2)" << endl;
166 cout <<
" StRefMultCorr* refmultCorr = CentralityMaker::instance()->getRefMultCorr();" << endl;
167 cout <<
" refmultCorr->init(11078000);" << endl;
169 cout <<
"2. Initialize relevant variables event-by-event" << endl;
171 cout <<
" // NOTE:" << endl;
172 cout <<
" // 1st argument is original multiplicity" << endl;
173 cout <<
" // If one wants to have centrality from refmult2, you have to put refmult2" << endl;
174 cout <<
" refmultCorr->initEvent(refmult, vz, zdcCoincidenceRate);" << endl;
176 cout <<
"3. Get centrality bins" << endl;
178 cout <<
" const Int_t cent16 = refmultCorr->getCentralityBin16() ;" << endl;
179 cout <<
" const Int_t cent9 = refmultCorr->getCentralityBin9() ;" << endl;
180 cout <<
"//------------------------------------------------------------------------------" << endl;
StRefMultCorr * getRefMultCorr()
Default destructor.