Add some protections, comments' cleanup
[u/mrichter/AliRoot.git] / CORRFW / AliCFPairIsPrimaryCuts.h
CommitLineData
2fbc0b17 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
28class AliESDEvent;
29
30class 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 virtual Bool_t IsSelected(TObject* obj) ;
40 virtual void SetMaxNSigmaToVertex(Double32_t neg, Double32_t pos)
41 {fCutNeg->SetMaxNSigmaToVertex(neg); fCutPos->SetMaxNSigmaToVertex(pos);}
42 void SetRequireSigmaToVertex(Bool_t b1, Bool_t b2)
43 {fCutNeg->SetRequireSigmaToVertex(b1); fCutPos->SetRequireSigmaToVertex(b2);}
44
45 ClassDef(AliCFPairIsPrimaryCuts,1);
46
47 private :
48 AliCFTrackIsPrimaryCuts *fCutNeg ; //! isprimary cut on negative daughter
49 AliCFTrackIsPrimaryCuts *fCutPos ; //! isprimary cut on positive daughter
50
51};
52
53#endif