]> git.uio.no Git - u/mrichter/AliRoot.git/blob - CORRFW/AliCFPairIsPrimaryCuts.h
New support for QA histos
[u/mrichter/AliRoot.git] / CORRFW / AliCFPairIsPrimaryCuts.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 // Class to handle primariness criteria in track pairs
18 // The track pair object to use is AliCFPair
19 // author : renaud.vernet@cern.ch
20 ///////////////////////////////////////////////////////
21
22 #ifndef ALICFPAIRISPRIMARYCUTS_H
23 #define ALICFPAIRISPRIMARYCUTS_H
24
25 #include "AliCFCutBase.h"
26 #include "AliCFTrackIsPrimaryCuts.h"
27
28 class AliESDEvent;
29
30 class AliCFPairIsPrimaryCuts : public AliCFCutBase
31 {
32  public :
33   AliCFPairIsPrimaryCuts() ;
34   AliCFPairIsPrimaryCuts(Char_t* name, Char_t* title) ;
35   AliCFPairIsPrimaryCuts(const AliCFPairIsPrimaryCuts& c) ;
36   AliCFPairIsPrimaryCuts& operator=(const AliCFPairIsPrimaryCuts& c) ;
37   virtual ~AliCFPairIsPrimaryCuts() {delete fCutNeg; delete fCutPos; }
38
39   Bool_t IsSelected(TObject* obj) ;
40   Bool_t IsSelected(TList* /*list*/) {return kTRUE;}
41   virtual void SetMaxNSigmaToVertex(Double32_t neg, Double32_t pos) 
42   {fCutNeg->SetMaxNSigmaToVertex(neg); fCutPos->SetMaxNSigmaToVertex(pos);}
43   void SetRequireSigmaToVertex(Bool_t b1, Bool_t b2)
44   {fCutNeg->SetRequireSigmaToVertex(b1); fCutPos->SetRequireSigmaToVertex(b2);}
45
46   ClassDef(AliCFPairIsPrimaryCuts,1);
47
48  private :
49   AliCFTrackIsPrimaryCuts *fCutNeg ; //! isprimary cut on negative daughter
50   AliCFTrackIsPrimaryCuts *fCutPos ; //! isprimary cut on positive daughter
51
52 };
53
54 #endif