1 #ifndef AliMeanVertexCalibTask_cxx
2 #define AliMeanVertexCalibTask_cxx
4 /**************************************************************************
5 * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
19 //*************************************************************************
20 // Class AliMeanVertexCalibTask
21 // AliAnalysisTask to extract from ESD the information on primary vertex
22 // reconstruction in order to compute the MeanVertex object
24 // Author:D.Caffarri, davide.caffarri@pd.infn.it
25 // A.Dainese, andrea.dainese@pd.infn.it
26 //*************************************************************************
31 #include "AliAnalysisTaskSE.h"
33 class AliMeanVertexCalibTask : public AliAnalysisTaskSE
37 AliMeanVertexCalibTask(const char *name = "AliMeanVertexCalibTask");
38 virtual ~AliMeanVertexCalibTask();
40 virtual void UserCreateOutputObjects();
41 virtual void UserExec(Option_t *option);
42 virtual void Terminate(Option_t *);
44 void SetOnlyITSTPCTracks() {fOnlyITSTPCTracks=kFALSE;}
45 void SetOnlyITSSATracks() {fOnlyITSSATracks=kTRUE;}
51 AliESDEvent *fESD; // ESD object
52 TList *fOutput; //! list send on output slot 0
54 Bool_t fOnlyITSTPCTracks; // only ITS-TPC tracks to redo ITSTPC vertex
55 Bool_t fOnlyITSSATracks; // only ITS-SA tracks to redo ITSTPC vertex
58 AliMeanVertexCalibTask(const AliMeanVertexCalibTask&);
59 AliMeanVertexCalibTask& operator=(const AliMeanVertexCalibTask&);
61 //AliESDVertex* ReconstructPrimaryVertex(Bool_t constr=kFALSE, Int_t mode=0) const;
63 ClassDef(AliMeanVertexCalibTask, 1);