27 #include "StFlowPicoEvent.h"
28 #include "StFlowConstants.h"
29 #include "TClonesArray.h"
42 if (!fgTracks) fgTracks =
new TClonesArray(
"StFlowPicoTrack", 4000);
50 void StFlowPicoEvent::Clear(Option_t *option) {
51 fTracks->Clear(option);
59 TClonesArray &tracks = *fTracks;
65 UInt_t StFlowPicoEvent::CalcCentrality() {
68 Int_t tracks = mMultEta;
70 if (mCenterOfMassEnergy == 0.) {
72 }
else if (mCenterOfMassEnergy >= 199.) {
73 if (fabs(mMagneticField) >= 4.) {
74 cent = Flow::cent200Full;
76 cent = Flow::cent200Half;
78 }
else if (mCenterOfMassEnergy <= 25.) {
80 }
else if (mCenterOfMassEnergy > 60. && mCenterOfMassEnergy < 65.) {
84 if (tracks < cent[0]) { mCentrality = 0; }
85 else if (tracks < cent[1]) { mCentrality = 1; }
86 else if (tracks < cent[2]) { mCentrality = 2; }
87 else if (tracks < cent[3]) { mCentrality = 3; }
88 else if (tracks < cent[4]) { mCentrality = 4; }
89 else if (tracks < cent[5]) { mCentrality = 5; }
90 else if (tracks < cent[6]) { mCentrality = 6; }
91 else if (tracks < cent[7]) { mCentrality = 7; }
92 else if (tracks < cent[8]) { mCentrality = 8; }
93 else { mCentrality = 9; }