]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/util/AliHLTESDTrackCuts.cxx
tracking at slice borders improved
[u/mrichter/AliRoot.git] / HLT / BASE / util / AliHLTESDTrackCuts.cxx
1 //-*- Mode: C++ -*-
2 // $Id: AliHLTESDTrackCuts.cxx  $
3 //**************************************************************************
4 //* This file is property of and copyright by the ALICE HLT Project        * 
5 //* ALICE Experiment at CERN, All rights reserved.                         *
6 //*                                                                        *
7 //* Primary Authors: Jochen Thaeder <jochen@thaeder.de>                    *
8 //*                  for The ALICE HLT Project.                            *
9 //*                                                                        *
10 //* Permission to use, copy, modify and distribute this software and its   *
11 //* documentation strictly for non-commercial purposes is hereby granted   *
12 //* without fee, provided that the above copyright notice appears in all   *
13 //* copies and that both the copyright notice and this permission notice   *
14 //* appear in the supporting documentation. The authors make no claims     *
15 //* about the suitability of this software for any purpose. It is          *
16 //* provided "as is" without express or implied warranty.                  *
17 //**************************************************************************
18
19 /** @file   AliHLTESDTrackCuts.cxx
20     @author Jochen Thaeder <jochen@thaeder.de>
21     @brief  ESD track cuts used in the analysis of HLT data
22 */
23
24 // see header file for class documentation
25 // or
26 // refer to README to build package
27 // or
28 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
29
30 #if __GNUC__>= 3
31    using namespace std;
32 #endif
33
34 #include "AliHLTESDTrackCuts.h"
35 #include "AliESDtrack.h"
36
37 /** ROOT macro for the implementation of ROOT specific class methods */
38 ClassImp(AliHLTESDTrackCuts)
39
40 /*
41  * ---------------------------------------------------------------------------------
42  *                            Constructor / Destructor
43  * ---------------------------------------------------------------------------------
44  */
45
46 //##################################################################################
47 AliHLTESDTrackCuts:: AliHLTESDTrackCuts(const Char_t* name, const Char_t* title) 
48   : AliESDtrackCuts(name,title) {  
49   // see header file for class documentation
50   // or
51   // refer to README to build package
52   // or
53   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
54   
55 }
56
57 //##################################################################################
58 AliHLTESDTrackCuts::~AliHLTESDTrackCuts() {
59   // see header file for class documentation
60 }
61
62 /*
63  * ---------------------------------------------------------------------------------
64  *                                     Selection
65  * ---------------------------------------------------------------------------------
66  */
67
68 //##################################################################################
69 Bool_t AliHLTESDTrackCuts::IsSelected(TObject* obj) {
70   // see header file for class documentation
71
72   AliESDtrack* esdTrack = dynamic_cast<AliESDtrack*>(obj);
73   if (!esdTrack)
74     return kFALSE;
75
76   return AcceptTrack(esdTrack);
77 }
78
79 /*
80  * ---------------------------------------------------------------------------------
81  *                           Standard Track Cut Definitions
82  * ---------------------------------------------------------------------------------
83  */
84
85 //##################################################################################
86 AliHLTESDTrackCuts* AliHLTESDTrackCuts::GetStandardTrackCuts2010pp() {
87   // see header file for class documentation
88
89   //
90   // !!! Be aware - this is not the final yet
91   //
92
93   // -- HLT adopted track cuts
94   AliHLTESDTrackCuts* esdTrackCuts = new AliHLTESDTrackCuts("ALiHLTESDTrackCuts","HLT standard track cuts 2010 for pp");
95
96   // -- turn off criteria
97   esdTrackCuts->SetDCAToVertex2D(kFALSE);
98   esdTrackCuts->SetRequireSigmaToVertex(kFALSE);
99   esdTrackCuts->SetRequireTPCRefit(kFALSE);
100   esdTrackCuts->SetRequireITSRefit(kFALSE);
101
102   // -- CleanSample
103   esdTrackCuts->SetMaxDCAToVertexXY(3.0);
104   esdTrackCuts->SetMaxDCAToVertexZ(3.0);
105   esdTrackCuts->SetEtaRange(-0.9,0.9);
106   esdTrackCuts->SetMinNClustersTPC(60);
107
108   // -- CleanSample Pt
109   esdTrackCuts->SetPtRange(0.3,200.);         
110   
111   return esdTrackCuts;
112 }