11 #ifndef _StFlowSelection_INCLUDED_
12 #define _StFlowSelection_INCLUDED_
18 #include "StFlowConstants.h"
36 Float_t PtMaxPart()
const;
37 Int_t PtBinsPart()
const;
38 void PrintList()
const;
39 void SetPidPart(
const Char_t*);
40 void SetPtPart(
const Float_t,
const Float_t);
41 void SetPtBinsPart(
const Int_t);
42 void SetPPart(
const Float_t,
const Float_t);
43 void SetEtaPart(
const Float_t,
const Float_t);
44 void SetYPart(
const Float_t,
const Float_t);
45 void SetFitPtsPart(
const Int_t,
const Int_t);
46 void SetDedxPtsPart(
const Int_t,
const Int_t);
47 void SetFitOverMaxPtsPart(
const Float_t,
const Float_t);
48 void SetChiSqPart(
const Float_t,
const Float_t);
49 void SetDcaGlobalPart(
const Float_t,
const Float_t);
50 void SetHarmonic(
const Int_t&);
51 void SetSelection(
const Int_t&);
52 void SetSubevent(
const Int_t&);
64 Int_t mDedxPtsPart[2];
65 Float_t mFitOverMaxPtsPart[2];
66 Float_t mChiSqPart[2];
67 Float_t mDcaGlobalPart[2];
76 inline Char_t* StFlowSelection::PidPart() {
return mPidPart; }
78 inline Float_t StFlowSelection::PtMaxPart()
const {
return mPtPart[1]; }
80 inline Int_t StFlowSelection::PtBinsPart()
const {
return mPtBinsPart; }
82 inline Int_t StFlowSelection::Sel()
const {
return mSelection; }
84 inline Int_t StFlowSelection::Har()
const {
return mHarmonic; }
86 inline Int_t StFlowSelection::Sub()
const {
return mSubevent; }
88 inline void StFlowSelection::SetPidPart(
const Char_t* pid) {
89 strncpy(mPidPart, pid, 9); mPidPart[9] =
'\0'; }
91 inline void StFlowSelection::SetPtPart(
const Float_t lo,
const Float_t hi) {
92 mPtPart[0] = lo; mPtPart[1] = hi; }
94 inline void StFlowSelection::SetPtBinsPart(
const Int_t bins) {
97 inline void StFlowSelection::SetPPart(
const Float_t lo,
const Float_t hi) {
98 mPPart[0] = lo; mPPart[1] = hi; }
100 inline void StFlowSelection::SetEtaPart(
const Float_t lo,
const Float_t hi) {
101 mEtaPart[0] = lo; mEtaPart[1] = hi; }
103 inline void StFlowSelection::SetYPart(
const Float_t lo,
const Float_t hi) {
104 mYPart[0] = lo; mYPart[1] = hi; }
106 inline void StFlowSelection::SetFitPtsPart(
const Int_t lo,
const Int_t hi) {
107 mFitPtsPart[0] = lo; mFitPtsPart[1] = hi; }
109 inline void StFlowSelection::SetDedxPtsPart(
const Int_t lo,
const Int_t hi) {
110 mDedxPtsPart[0] = lo; mDedxPtsPart[1] = hi; }
112 inline void StFlowSelection::SetFitOverMaxPtsPart(
const Float_t lo,
const Float_t hi) {
113 mFitOverMaxPtsPart[0] = lo; mFitOverMaxPtsPart[1] = hi; }
115 inline void StFlowSelection::SetChiSqPart(
const Float_t lo,
const Float_t hi) {
116 mChiSqPart[0] = lo; mChiSqPart[1] = hi; }
118 inline void StFlowSelection::SetDcaGlobalPart(
const Float_t lo,
const Float_t hi) {
119 mDcaGlobalPart[0] = lo; mDcaGlobalPart[1] = hi; }
121 inline void StFlowSelection::SetHarmonic(
const Int_t& harN) {
122 if (harN < 0 || harN >= Flow::nHars) {
123 cout <<
"### Harmonic " << harN <<
" not valid" << endl;
125 }
else { mHarmonic = harN; } }
127 inline void StFlowSelection::SetSelection(
const Int_t& selN) {
128 if (selN < 0 || selN >= Flow::nSels) {
129 cout <<
"### Selection " << selN <<
" not valid" << endl;
131 }
else { mSelection = selN; } }
133 inline void StFlowSelection::SetSubevent(
const Int_t& subN) {
134 if (subN < -1 || subN > Flow::nSubs) {
135 cout <<
"### Subevent " << subN <<
" not valid" << endl;
137 }
else { mSubevent = subN; } }