1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
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 ///////////////////////////////////////////////////////
22 #ifndef ALICFPAIRISPRIMARYCUTS_H
23 #define ALICFPAIRISPRIMARYCUTS_H
25 #include "AliCFCutBase.h"
26 #include "AliCFTrackIsPrimaryCuts.h"
30 class AliCFPairIsPrimaryCuts : public AliCFCutBase
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; }
39 Bool_t IsSelected(TObject* obj) ;
40 Bool_t IsSelected(TList* /*list*/) {return kTRUE;}
41 virtual AliCFTrackIsPrimaryCuts* GetNegCut() const {return fCutNeg;}
42 virtual AliCFTrackIsPrimaryCuts* GetPosCut() const {return fCutPos;}
44 ClassDef(AliCFPairIsPrimaryCuts,2);
47 AliCFTrackIsPrimaryCuts *fCutNeg ; // isprimary cut on negative daughter
48 AliCFTrackIsPrimaryCuts *fCutPos ; // isprimary cut on positive daughter