1 ////////////////////////////////////////////////////////////////////////////////
3 // AliFemtoBasicEventCut - the basic cut for events. //
4 // Only cuts on event multiplicity and z-vertex position //
6 ////////////////////////////////////////////////////////////////////////////////
8 #ifndef ALIFEMTOBASICEVENTCUT_H
9 #define ALIFEMTOBASICEVENTCUT_H
11 // do I need these lines ?
13 //#include "StMaker.h"
16 #include "AliFemtoEventCut.h"
18 class AliFemtoBasicEventCut : public AliFemtoEventCut {
22 AliFemtoBasicEventCut();
23 AliFemtoBasicEventCut(AliFemtoBasicEventCut& c);
24 virtual ~AliFemtoBasicEventCut();
26 void SetEventMult(const int& lo,const int& hi);
27 void SetVertZPos(const float& lo, const float& hi);
28 void SetAcceptBadVertex(bool b);
29 int NEventsPassed() const;
30 int NEventsFailed() const;
31 bool GetAcceptBadVertex();
33 virtual AliFemtoString Report();
34 virtual bool Pass(const AliFemtoEvent* event);
36 AliFemtoBasicEventCut* Clone();
38 private: // here are the quantities I want to cut on...
40 int fEventMult[2]; // range of multiplicity
41 float fVertZPos[2]; // range of z-position of vertex
42 bool fAcceptBadVertex; // Set to true to accept events with bad vertex
43 long fNEventsPassed; // Number of events checked by this cut that passed
44 long fNEventsFailed; // Number of events checked by this cut that failed
47 ClassDef(AliFemtoBasicEventCut, 1)
52 inline void AliFemtoBasicEventCut::SetEventMult(const int& lo, const int& hi){fEventMult[0]=lo; fEventMult[1]=hi;}
53 inline void AliFemtoBasicEventCut::SetVertZPos(const float& lo, const float& hi){fVertZPos[0]=lo; fVertZPos[1]=hi;}
54 inline int AliFemtoBasicEventCut::NEventsPassed() const {return fNEventsPassed;}
55 inline int AliFemtoBasicEventCut::NEventsFailed() const {return fNEventsFailed;}
56 inline AliFemtoBasicEventCut* AliFemtoBasicEventCut::Clone() { AliFemtoBasicEventCut* c = new AliFemtoBasicEventCut(*this); return c;}
57 inline AliFemtoBasicEventCut::AliFemtoBasicEventCut(AliFemtoBasicEventCut& c) : AliFemtoEventCut(c), fAcceptBadVertex(false), fNEventsPassed(0), fNEventsFailed(0) {
58 fEventMult[0] = c.fEventMult[0];
59 fEventMult[1] = c.fEventMult[1];
60 fVertZPos[0] = c.fVertZPos[0];
61 fVertZPos[1] = c.fVertZPos[1];