]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - CORRFW/AliCFEventGenCuts.h
Changing fabs into TMath::Abs
[u/mrichter/AliRoot.git] / CORRFW / AliCFEventGenCuts.h
... / ...
CommitLineData
1
2#ifndef ALICFEVENTGENCUTS_H
3#define ALICFEVENTGENCUTS_H
4/**************************************************************************
5 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
9 * *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
18// Cut on the Event at generator level: for the moment just
19// the requirements on the MB process type, on the number of charged tracks
20// and on the vertex 3-D position are implemented
21// The argument of IsSelected member function (passed object) is cast into
22// an AliMCEvent. In the future may be modified to use AliVEvent interface
23// and to include more cut variables.
24// The class derives from AliCFCutBase
25// Author:S.Arcelli Silvia.Arcelli@cern.ch
26
27
28#include "AliCFCutBase.h"
29class TBits;
30class AliEventGenHeader;
31class AliMCEvent;
32//____________________________________________________________________________
33class AliCFEventGenCuts: public AliCFCutBase
34{
35 public :
36 AliCFEventGenCuts() ;
37 AliCFEventGenCuts(Char_t* name, Char_t* title) ;
38 AliCFEventGenCuts(const AliCFEventGenCuts& c) ;
39 AliCFEventGenCuts& operator=(const AliCFEventGenCuts& c) ;
40 ~AliCFEventGenCuts();
41 void GetBitMap(TObject *obj, TBits *bitmap);
42 Bool_t IsSelected(TObject* obj);
43 Bool_t IsSelected(TList* /*list*/) {return kTRUE;}
44 void Init(){;};
45
46 //number of embedded cuts
47 enum{kNCuts=5};
48
49 //Label the MB MC processes
50 enum PrType {
51 kND, kSD, kDD
52 };
53
54
55 static Int_t ProcType(AliGenEventHeader *genHeader);
56 static Bool_t IsMBProcType(AliMCEvent *ev, PrType iproc);
57
58
59 void SetMBSelProcType(PrType iproc = kND) {fMBProcType=iproc;} // cut values setter
60 Int_t GetMBSelProcType()const {return fMBProcType;} // cut values getter
61
62
63
64 void SetNTracksCut(Int_t xMin=-1, Int_t xMax=1000000) {fNTracksMin=xMin; fNTracksMax=xMax;} // cut values setter
65
66 void SetRequireVtxCuts(Bool_t vtx=kFALSE) {fRequireVtxCuts=vtx;} // cut values setter
67 void SetVertexXCut(Double_t xMin=-1.e99, Double_t xMax=1.e99) { fVtxXMin=xMin; fVtxXMax=xMax;} // cut values setter
68 void SetVertexYCut(Double_t yMin=-1.e99, Double_t yMax=1.e99) { fVtxYMin=yMin; fVtxYMax=yMax;} // cut values setter
69 void SetVertexZCut(Double_t zMin=-1.e99, Double_t zMax=1.e99) { fVtxZMin=zMin; fVtxZMax=zMax;} // cut values setter
70
71 Int_t GetNTracksMin() const {return fNTracksMin;} // cut values getter
72 Int_t GetNTracksMax() const {return fNTracksMax;} // cut values getter
73 Bool_t GetRequireVtxCuts() const {return fRequireVtxCuts;} // cut value getter
74 Double_t GetVertexXMax() const {return fVtxXMax;} // cut values getter
75 Double_t GetVertexYMax() const {return fVtxYMax;} // cut values getter
76 Double_t GetVertexZMax() const {return fVtxZMax;} // cut values getter
77 Double_t GetVertexXMin() const {return fVtxXMin;} // cut values getter
78 Double_t GetVertexYMin() const {return fVtxYMin;} // cut values getter
79 Double_t GetVertexZMin() const {return fVtxZMin;} // cut values getter
80
81
82 private:
83
84 TBits * SelectionBitMap(TObject* obj);
85
86 Int_t fMBProcType ; //the type of selected MB process
87 Int_t fNTracksMin; //minimum number of particles in the event
88 Int_t fNTracksMax; //maximum number of particles in the event
89 Bool_t fRequireVtxCuts ; //The type of trigger to be checked
90 Double_t fVtxXMax ; //X vertex position, maximum value
91 Double_t fVtxYMax ; //Y vertex position, maximum value
92 Double_t fVtxZMax ; //Z vertex position, maximum value
93 Double_t fVtxXMin ; //X vertex position, minimum value
94 Double_t fVtxYMin ; //Y vertex position, minimum value
95 Double_t fVtxZMin ; //Z vertex position, minimum value
96
97 TBits *fBitMap ; //cut mask
98
99 ClassDef(AliCFEventGenCuts,1);
100};
101
102#endif