]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FEMTOSCOPY/AliFemto/AliFemtoBasicEventCut.h
Adding a reader for the Kine information
[u/mrichter/AliRoot.git] / PWG2 / FEMTOSCOPY / AliFemto / AliFemtoBasicEventCut.h
1 ////////////////////////////////////////////////////////////////////////////////
2 //                                                                            //
3 // AliFemtoBasicEventCut - the basic cut for events.                          //
4 // Only cuts on event multiplicity and z-vertex position                      //
5 //                                                                            //
6 ////////////////////////////////////////////////////////////////////////////////
7
8 #ifndef AliFemtoBasicEventCut_hh
9 #define AliFemtoBasicEventCut_hh
10
11 // do I need these lines ?
12 //#ifndef StMaker_H
13 //#include "StMaker.h"
14 //#endif
15
16 #include "AliFemtoEventCut.h"
17
18 class AliFemtoBasicEventCut : public AliFemtoEventCut {
19
20 public:
21
22   AliFemtoBasicEventCut();
23   AliFemtoBasicEventCut(AliFemtoBasicEventCut&);
24   //~AliFemtoBasicEventCut();
25
26   void SetEventMult(const int& lo,const int& hi);
27   void SetVertZPos(const float& lo, const float& hi);
28   int NEventsPassed();
29   int NEventsFailed();
30
31   virtual AliFemtoString Report();
32   virtual bool Pass(const AliFemtoEvent*);
33
34   AliFemtoBasicEventCut* Clone();
35
36 private:   // here are the quantities I want to cut on...
37
38   int fEventMult[2];      // range of multiplicity
39   float fVertZPos[2];     // range of z-position of vertex
40
41   long fNEventsPassed;
42   long fNEventsFailed;
43
44 #ifdef __ROOT__
45   ClassDef(AliFemtoBasicEventCut, 1)
46 #endif
47
48 };
49
50 inline void AliFemtoBasicEventCut::SetEventMult(const int& lo, const int& hi){fEventMult[0]=lo; fEventMult[1]=hi;}
51 inline void AliFemtoBasicEventCut::SetVertZPos(const float& lo, const float& hi){fVertZPos[0]=lo; fVertZPos[1]=hi;}
52 inline int  AliFemtoBasicEventCut::NEventsPassed() {return fNEventsPassed;}
53 inline int  AliFemtoBasicEventCut::NEventsFailed() {return fNEventsFailed;}
54 inline AliFemtoBasicEventCut* AliFemtoBasicEventCut::Clone() { AliFemtoBasicEventCut* c = new AliFemtoBasicEventCut(*this); return c;}
55 inline AliFemtoBasicEventCut::AliFemtoBasicEventCut(AliFemtoBasicEventCut& c) : AliFemtoEventCut(c), fNEventsPassed(0), fNEventsFailed(0) {
56   fEventMult[0] = c.fEventMult[0];
57   fEventMult[1] = c.fEventMult[1];
58   fVertZPos[0] = c.fVertZPos[0];
59   fVertZPos[1] = c.fVertZPos[1];
60 }
61
62
63 #endif