AliPhysics  2c6b7ad (2c6b7ad)
AliAnalysisTaskIPInfo.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKIPINFO_H
2 #define ALIANALYSISTASKIPINFO_H
3 
4 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 class AliESDfriend;
8 class AliESDEvent;
9 class AliESDVertex;
11 
12 #include "AliAnalysisTask.h"
13 
15 {
16  public:
18  //
19  AliAnalysisTaskIPInfo(const char *name = "IPInfo");
20 
21  virtual ~AliAnalysisTaskIPInfo();
22  //
23  AliIntSpotEstimator* GetEstimator(Int_t i) const {return i>=0&&i<kNEst ? fIPEst[i] : 0;}
24  //
25  void SetOptions(Int_t estID, Bool_t recoVtx=kFALSE,
26  Double_t outcut=1e-4, Int_t ntrIP=2,Int_t nPhiBins=12,Int_t nestb=1000,
27  Double_t estmin=-4e-2,Double_t estmax=6e-2,
28  Int_t ntrBins=10,Int_t ntMn=2,Int_t ntMx=32,
29  Int_t nPBins=14,Double_t pmn=0.2,Double_t pmx=3.,Bool_t fillNt=kFALSE);
30  void SetIPCenIni(Int_t esdID, Double_t x=0,Double_t y=0,Double_t z=0);
31  Int_t CreateSPDTracklets(TClonesArray& tracks);
32  //
33  virtual void ConnectInputData(Option_t *);
34  virtual void CreateOutputObjects();
35  virtual void Exec(Option_t *option);
36  virtual void Terminate(Option_t *);
37  //
38  protected:
39  //
40  // options for estimators creation
56  //
59  AliESDfriend *fESDfriend;
62  static const Char_t* fEstNames[kNEst]; // estimator names
63  //
64  private:
65  //
66  AliAnalysisTaskIPInfo(const AliAnalysisTaskIPInfo&); // not implemented
67  AliAnalysisTaskIPInfo& operator=(const AliAnalysisTaskIPInfo&); // not implemented
68  AliESDVertex* ReconstructPrimaryVertexTPC() const;
69  AliESDVertex* ReconstructPrimaryVertexITSTPC() const;
70 
71  ClassDef(AliAnalysisTaskIPInfo,1); // IP, vertexing and DCA resolutions analysis
72 };
73 
74 #endif
double Double_t
Definition: External.C:58
Int_t fNTrMinIP[kNEst]
request to refit the vertex for given estimator
Double_t fEstMin[kNEst]
outliers cut level
Double_t fOutCut[kNEst]
max vtx multuplicity
char Char_t
Definition: External.C:18
Int_t fNTrMax[kNEst]
min vtx multuplicity
AliAnalysisTaskIPInfo & operator=(const AliAnalysisTaskIPInfo &)
AliIntSpotEstimator * fIPEst[kNEst]
request to fill ntuple
virtual void Terminate(Option_t *)
void SetOptions(Int_t estID, Bool_t recoVtx=kFALSE, Double_t outcut=1e-4, Int_t ntrIP=2, Int_t nPhiBins=12, Int_t nestb=1000, Double_t estmin=-4e-2, Double_t estmax=6e-2, Int_t ntrBins=10, Int_t ntMn=2, Int_t ntMx=32, Int_t nPBins=14, Double_t pmn=0.2, Double_t pmx=3., Bool_t fillNt=kFALSE)
Int_t CreateSPDTracklets(TClonesArray &tracks)
Double_t fEstMax[kNEst]
lower estimator boundary
Int_t fNPhiBins[kNEst]
min tracks for IP estimator
int Int_t
Definition: External.C:63
AliESDVertex * ReconstructPrimaryVertexITSTPC() const
TObjArray fTracks
list send on output slot 0
Int_t fNPBins[kNEst]
n of vtx.mult. bins
Int_t fNTrMin[kNEst]
n of track P bins
Bool_t fFillNt[kNEst]
initial estimate of IP Center
AliIntSpotEstimator * GetEstimator(Int_t i) const
virtual void Exec(Option_t *option)
TList * fOutput
ESD friend object.
Double_t fPMin[kNEst]
upper estimator boundary
Double_t fIPCenIni[kNEst][3]
upper P cut
AliESDEvent * fESD
estimators
Double_t fPMax[kNEst]
lower P cut
AliESDVertex * ReconstructPrimaryVertexTPC() const
void SetIPCenIni(Int_t esdID, Double_t x=0, Double_t y=0, Double_t z=0)
Int_t fNEstb[kNEst]
n bins in phi for IP
AliESDfriend * fESDfriend
ESD object.
virtual void ConnectInputData(Option_t *)
static const Char_t * fEstNames[kNEst]
temporary storage for extracted tracks
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
AliAnalysisTaskIPInfo(const char *name="IPInfo")
Int_t fNTrBins[kNEst]
n of estimator bins