]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/BASE/util/AliHLTESDTrackCuts.cxx
Update master to aliroot
[u/mrichter/AliRoot.git] / HLT / BASE / util / AliHLTESDTrackCuts.cxx
CommitLineData
173fc48d 1//-*- Mode: C++ -*-
efcfeaca 2// $Id$
173fc48d 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
efcfeaca 19/// @file AliHLTESDTrackCuts.cxx
20/// @author Jochen Thaeder <jochen@thaeder.de>
21/// @brief ESD track cuts used in the analysis of HLT data
22///
173fc48d 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
173fc48d 30#include "AliHLTESDTrackCuts.h"
31#include "AliESDtrack.h"
32
33/** ROOT macro for the implementation of ROOT specific class methods */
34ClassImp(AliHLTESDTrackCuts)
35
36/*
37 * ---------------------------------------------------------------------------------
38 * Constructor / Destructor
39 * ---------------------------------------------------------------------------------
40 */
41
42//##################################################################################
43AliHLTESDTrackCuts:: AliHLTESDTrackCuts(const Char_t* name, const Char_t* title)
44 : 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}
52
53//##################################################################################
54AliHLTESDTrackCuts::~AliHLTESDTrackCuts() {
55 // see header file for class documentation
56}
57
58/*
59 * ---------------------------------------------------------------------------------
60 * Selection
61 * ---------------------------------------------------------------------------------
62 */
63
64//##################################################################################
65Bool_t AliHLTESDTrackCuts::IsSelected(TObject* obj) {
66 // see header file for class documentation
67
68 AliESDtrack* esdTrack = dynamic_cast<AliESDtrack*>(obj);
69 if (!esdTrack)
70 return kFALSE;
71
72 return AcceptTrack(esdTrack);
73}
74
75/*
76 * ---------------------------------------------------------------------------------
77 * Standard Track Cut Definitions
78 * ---------------------------------------------------------------------------------
79 */
80
81//##################################################################################
82AliHLTESDTrackCuts* 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 AliHLTESDTrackCuts* esdTrackCuts = new AliHLTESDTrackCuts("ALiHLTESDTrackCuts","HLT standard track cuts 2010 for pp");
91
92 // -- turn off criteria
93 esdTrackCuts->SetDCAToVertex2D(kFALSE);
94 esdTrackCuts->SetRequireSigmaToVertex(kFALSE);
95 esdTrackCuts->SetRequireTPCRefit(kFALSE);
96 esdTrackCuts->SetRequireITSRefit(kFALSE);
97
98 // -- CleanSample
99 esdTrackCuts->SetMaxDCAToVertexXY(3.0);
6adf46d3 100 esdTrackCuts->SetMaxDCAToVertexZ(3.0);
101 esdTrackCuts->SetEtaRange(-0.9,0.9);
173fc48d 102 esdTrackCuts->SetMinNClustersTPC(60);
103
104 // -- CleanSample Pt
6adf46d3 105 esdTrackCuts->SetPtRange(0.3,200.);
173fc48d 106
107 return esdTrackCuts;
108}