]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/TRD/info/AliTRDeventCuts.h
Updates in D+ histos and ntuples (Renu, Francesco, Elena)
[u/mrichter/AliRoot.git] / PWGPP / TRD / info / AliTRDeventCuts.h
1 #ifndef ALITRDEVENTCUTS_H
2 #define ALITRDEVENTCUTS_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 /* $Id$ */
7
8
9 ////////////////////////////////////////////////////////////////////////////
10 //                                                                        //
11 // Event cut class for the TRD Performance Train                          //
12 //                                                                        //
13 // author                                                                 //
14 // Markus Fasel <m.fasel@gsi.de>                                          //
15 //                                                                        //
16 ////////////////////////////////////////////////////////////////////////////
17
18 #include <TNamed.h>
19
20 class TObjArray;
21 class AliESDEvent;
22 class AliTRDeventCuts : public TNamed
23 {
24 public:
25   AliTRDeventCuts();
26   AliTRDeventCuts(const Char_t *name);
27   AliTRDeventCuts(const AliTRDeventCuts &ref);
28   ~AliTRDeventCuts();
29
30   void    AddTrigger(const Char_t *name);
31   Bool_t  CheckTrigger(const Char_t *name);
32   Bool_t  IsSelected(AliESDEvent *event, Bool_t col=kTRUE);
33
34   void    Print(Option_t *opt="") const;
35
36   void    SetEventType(Int_t n)     { fEventType = n; };
37   void    SetVertexN(Int_t n)       { fVertexN = n; };
38   void    SetVertexZ(Double_t z)    { fVertexZ = z; };
39   void    SetBunchSelection(Int_t n, Int_t bunches[]);
40
41 private:
42   AliTRDeventCuts &operator=(const AliTRDeventCuts &);
43
44   TObjArray *fTriggerNames; // Container for Trigger names
45   Int_t     *fBunches;      // List of bunches accepted for analysis
46   UInt_t    fEventType;     // Event type
47   Int_t     fVertexN;       // Min number of contributors to Vertex
48   Double_t  fVertexZ;       // Max Abs(z) of the reconstructed Vertex
49
50   ClassDef(AliTRDeventCuts, 1)   //Event Cut class for TRD PWGPP Train 
51 };
52 #endif