Line data Source code
1 : //-*- Mode: C++ -*-
2 : // $Id$
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 : #include "AliHLTESDTrackCuts.h"
31 : #include "AliESDtrack.h"
32 :
33 : /** ROOT macro for the implementation of ROOT specific class methods */
34 8 : ClassImp(AliHLTESDTrackCuts)
35 :
36 : /*
37 : * ---------------------------------------------------------------------------------
38 : * Constructor / Destructor
39 : * ---------------------------------------------------------------------------------
40 : */
41 :
42 : //##################################################################################
43 6 : AliHLTESDTrackCuts:: AliHLTESDTrackCuts(const Char_t* name, const Char_t* title)
44 30 : : AliESDtrackCuts(name,title) {
45 : // see header file for class documentation
46 : // or
47 : // refer to README to build package
48 : // or
49 : // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
50 :
51 12 : }
52 :
53 : //##################################################################################
54 0 : AliHLTESDTrackCuts::~AliHLTESDTrackCuts() {
55 : // see header file for class documentation
56 0 : }
57 :
58 : /*
59 : * ---------------------------------------------------------------------------------
60 : * Selection
61 : * ---------------------------------------------------------------------------------
62 : */
63 :
64 : //##################################################################################
65 : Bool_t AliHLTESDTrackCuts::IsSelected(TObject* obj) {
66 : // see header file for class documentation
67 :
68 0 : AliESDtrack* esdTrack = dynamic_cast<AliESDtrack*>(obj);
69 0 : if (!esdTrack)
70 0 : return kFALSE;
71 :
72 0 : return AcceptTrack(esdTrack);
73 0 : }
74 :
75 : /*
76 : * ---------------------------------------------------------------------------------
77 : * Standard Track Cut Definitions
78 : * ---------------------------------------------------------------------------------
79 : */
80 :
81 : //##################################################################################
82 : AliHLTESDTrackCuts* AliHLTESDTrackCuts::GetStandardTrackCuts2010pp() {
83 : // see header file for class documentation
84 :
85 : //
86 : // !!! Be aware - this is not the final yet
87 : //
88 :
89 : // -- HLT adopted track cuts
90 0 : AliHLTESDTrackCuts* esdTrackCuts = new AliHLTESDTrackCuts("ALiHLTESDTrackCuts","HLT standard track cuts 2010 for pp");
91 :
92 : // -- turn off criteria
93 0 : esdTrackCuts->SetDCAToVertex2D(kFALSE);
94 0 : esdTrackCuts->SetRequireSigmaToVertex(kFALSE);
95 0 : esdTrackCuts->SetRequireTPCRefit(kFALSE);
96 0 : esdTrackCuts->SetRequireITSRefit(kFALSE);
97 :
98 : // -- CleanSample
99 0 : esdTrackCuts->SetMaxDCAToVertexXY(3.0);
100 0 : esdTrackCuts->SetMaxDCAToVertexZ(3.0);
101 0 : esdTrackCuts->SetEtaRange(-0.9,0.9);
102 0 : esdTrackCuts->SetMinNClustersTPC(60);
103 :
104 : // -- CleanSample Pt
105 0 : esdTrackCuts->SetPtRange(0.3,200.);
106 :
107 0 : return esdTrackCuts;
108 0 : }
|