]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FEMTOSCOPY/AliFemto/AliFemtoBasicEventCut.h
Commiting files mistakenly omitted
[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_H
9 #define ALIFEMTOBASICEVENTCUT_H
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& c);
24   virtual ~AliFemtoBasicEventCut();
25
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();
32
33   virtual AliFemtoString Report();
34   virtual bool Pass(const AliFemtoEvent* event);
35
36   AliFemtoBasicEventCut* Clone();
37
38 private:   // here are the quantities I want to cut on...
39
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
45
46 #ifdef __ROOT__
47   ClassDef(AliFemtoBasicEventCut, 1)
48 #endif
49
50 };
51
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];
62 }
63
64
65 #endif