00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef calculateEventPlaneEventCut_hh
00033 #define calculateEventPlaneEventCut_hh
00034
00035 #include "StMaker.h"
00036
00037 #include "StHbtMaker/Base/StHbtEventCut.h"
00038 class StFlowMaker;
00039 class StFlowEvent;
00040 class StFlowAnalysisMaker;
00041 class StFlowSelection;
00042
00043 class calculateEventPlaneEventCut : public StHbtEventCut {
00044
00045 public:
00046
00047 calculateEventPlaneEventCut();
00048 calculateEventPlaneEventCut(calculateEventPlaneEventCut&);
00049
00050
00051 int NEventsPassed();
00052 int NEventsFailed();
00053
00054 void SetEventMult(const int& lo,const int& hi);
00055 void SetVertZPos(const float& lo, const float& hi);
00056
00057 void SetFlowMaker(char* title);
00058 void SetFlowAnalysisMaker(char* title);
00059 void FillFromHBT(const int& hbt);
00060
00061 virtual StHbtString Report();
00062 virtual bool Pass(const StHbtEvent*);
00063
00064 calculateEventPlaneEventCut* Clone();
00065
00066 private:
00067 StFlowMaker* mFlowMaker;
00068 StFlowAnalysisMaker* mFlowAnalysisMaker;
00069
00070 int mEventMult[2];
00071 float mVertZPos[2];
00072
00073 int mFromHBT;
00074 long mNEventsPassed;
00075 long mNEventsFailed;
00076
00077 #ifdef __ROOT__
00078 ClassDef(calculateEventPlaneEventCut, 1)
00079 #endif
00080
00081 };
00082
00083 inline void calculateEventPlaneEventCut::SetEventMult(const int& lo, const int& hi)
00084 {mEventMult[0]=lo; mEventMult[1]=hi;}
00085 inline void calculateEventPlaneEventCut::SetVertZPos(const float& lo, const float& hi)
00086 {mVertZPos[0]=lo; mVertZPos[1]=hi;}
00087
00088 inline int calculateEventPlaneEventCut::NEventsPassed() {return mNEventsPassed;}
00089 inline int calculateEventPlaneEventCut::NEventsFailed() {return mNEventsFailed;}
00090 inline void calculateEventPlaneEventCut::SetFlowMaker(char* title){
00091 mFlowMaker = (StFlowMaker*)StMaker::GetChain()->GetMaker(title);
00092 if (!mFlowMaker) {
00093 cout << "No StFlowMaker found!" << endl;
00094 assert(0);
00095 }
00096 }
00097 inline void calculateEventPlaneEventCut::SetFlowAnalysisMaker(char* title) {
00098 StMaker tempMaker;
00099 mFlowAnalysisMaker = (StFlowAnalysisMaker*)tempMaker.GetMaker(title);
00100 if (!mFlowAnalysisMaker) {
00101 cout << "No StFlowAnalysisMaker found!" << endl;
00102 assert(0);
00103 }
00104 }
00105 inline void calculateEventPlaneEventCut::FillFromHBT(const int& hbt) {
00106 mFromHBT = hbt;
00107 }
00108 inline calculateEventPlaneEventCut* calculateEventPlaneEventCut::Clone() {
00109 calculateEventPlaneEventCut* c = new calculateEventPlaneEventCut(*this); return c;
00110 }
00111 inline calculateEventPlaneEventCut::calculateEventPlaneEventCut(calculateEventPlaneEventCut& c) : StHbtEventCut(c) {
00112 mNEventsPassed = 0;
00113 mNEventsFailed = 0;
00114 }
00115
00116
00117 #endif