]> git.uio.no Git - u/mrichter/AliRoot.git/blob - CORRFW/AliCFPairAcceptanceCuts.h
QA added
[u/mrichter/AliRoot.git] / CORRFW / AliCFPairAcceptanceCuts.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 // Class to cut on the number of AliTrackReference's 
20 // for each detector. Applies on pair of tracks (AliCFPair)
21 ///////////////////////////////////////////////////////////////////////////
22 // author : R. Vernet (renaud.vernet@cern.ch)
23 ///////////////////////////////////////////////////////////////////////////
24
25
26 #ifndef ALICFPAIRACCEPTANCECUTS_H
27 #define ALICFPAIRACCEPTANCECUTS_H
28
29 #include "AliCFAcceptanceCuts.h"
30 #include "AliCFCutBase.h"
31
32 class AliMCEventHandler;
33
34 class AliCFPairAcceptanceCuts : public AliCFCutBase
35 {
36  public :
37   AliCFPairAcceptanceCuts() ;
38   AliCFPairAcceptanceCuts(const Char_t* name, const Char_t* title) ;
39   AliCFPairAcceptanceCuts(const AliCFPairAcceptanceCuts& c) ;
40   AliCFPairAcceptanceCuts& operator=(const AliCFPairAcceptanceCuts& c) ;
41   virtual ~AliCFPairAcceptanceCuts() {delete fCutNeg; delete fCutPos; }
42   virtual Bool_t IsSelected(TObject* obj) ;   
43   virtual void SetEvtInfo(TObject *mcInfo) ;
44   virtual void SetMinNHitITS  (Int_t nHitNeg, Int_t nHitPos) {fCutNeg->SetMinNHitITS (nHitNeg); fCutPos->SetMinNHitITS (nHitPos);}
45   virtual void SetMinNHitTPC  (Int_t nHitNeg, Int_t nHitPos) {fCutNeg->SetMinNHitTPC (nHitNeg); fCutPos->SetMinNHitTPC (nHitPos);}
46   virtual void SetMinNHitTRD  (Int_t nHitNeg, Int_t nHitPos) {fCutNeg->SetMinNHitTRD (nHitNeg); fCutPos->SetMinNHitTRD (nHitPos);}
47   virtual void SetMinNHitTOF  (Int_t nHitNeg, Int_t nHitPos) {fCutNeg->SetMinNHitTOF (nHitNeg); fCutPos->SetMinNHitTOF (nHitPos);}
48   virtual void SetMinNHitMUON (Int_t nHitNeg, Int_t nHitPos) {fCutNeg->SetMinNHitMUON(nHitNeg); fCutPos->SetMinNHitMUON(nHitPos);}
49
50  protected:
51   AliMCEventHandler   *fMCInfo ; // global event information
52   AliCFAcceptanceCuts *fCutNeg ; // acceptance cut on negative daughter
53   AliCFAcceptanceCuts *fCutPos ; // acceptance cut on positive daughter
54   
55   ClassDef(AliCFPairAcceptanceCuts,1);
56 };
57
58 #endif