]> git.uio.no Git - u/mrichter/AliRoot.git/blob - CORRFW/AliCFAcceptanceCuts.h
Minor fix for compatibility with MacOS
[u/mrichter/AliRoot.git] / CORRFW / AliCFAcceptanceCuts.h
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16
17 ///////////////////////////////////////////////////////////////////////////
18 //          ----   CORRECTION FRAMEWORK   ----
19 // AliCFAcceptanceCuts implementation
20 // Class to cut on the number of AliTrackReference's 
21 // for each detector
22 ///////////////////////////////////////////////////////////////////////////
23 // author : R. Vernet (renaud.vernet@cern.ch)
24 ///////////////////////////////////////////////////////////////////////////
25
26
27 #ifndef ALICFACCEPTANCECUTS_H
28 #define ALICFACCEPTANCECUTS_H
29
30 #include "AliCFCutBase.h"
31
32 class AliMCEventHandler;
33
34 class AliCFAcceptanceCuts : public AliCFCutBase
35 {
36  public :
37   AliCFAcceptanceCuts() ;
38   AliCFAcceptanceCuts(const Char_t* name, const Char_t* title) ;
39   AliCFAcceptanceCuts(const AliCFAcceptanceCuts& c) ;
40   AliCFAcceptanceCuts& operator=(const AliCFAcceptanceCuts& c) ;
41   virtual ~AliCFAcceptanceCuts() { };
42   virtual Bool_t IsSelected(TObject* obj) ;   
43   virtual void   SetEvtInfo(TObject* mcInfo) ;
44   void SetMinNHitITS (Int_t nhits) {fMinNHitITS=nhits;} 
45   void SetMinNHitTPC (Int_t nhits) {fMinNHitTPC=nhits;} 
46   void SetMinNHitTRD (Int_t nhits) {fMinNHitTRD=nhits;} 
47   void SetMinNHitTOF (Int_t nhits) {fMinNHitTOF=nhits;} 
48   void SetMinNHitMUON(Int_t nhits) {fMinNHitMUON=nhits;}
49
50  protected:
51   AliMCEventHandler *fMCInfo;   // pointer to MC Information
52   Int_t      fMinNHitITS ;      // min number of track references in ITS 
53   Int_t      fMinNHitTPC ;      // min number of track references in TPC 
54   Int_t      fMinNHitTRD ;      // min number of track references in TRD 
55   Int_t      fMinNHitTOF ;      // min number of track references in TOF 
56   Int_t      fMinNHitMUON ;     // min number of track references in MUON
57   
58   ClassDef(AliCFAcceptanceCuts,1);
59 };
60
61 #endif