//////////////////////////////////////////////////////////////////////////
#include <TArrayD.h>
+#include "AliITSVertexer.h"
class TTree;
class AliESDVertex;
-class AliITSgeom;
-class AliITSVertexer3DTapan : public TObject {
+class AliITSVertexer3DTapan : public AliITSVertexer {
public:
- AliITSVertexer3DTapan(Int_t n=10000):fITSgeom(0),
- fX1(n),fY1(n),fZ1(n), fPhi1(n), ficlu1(0),
- fX2(n),fY2(n),fZ2(n), fPhi2(n), ficlu2(0) {;}
- AliITSVertexer3DTapan(const AliITSgeom *g, Int_t n=10000): fITSgeom(g),
+ AliITSVertexer3DTapan(Int_t n=10000):
fX1(n),fY1(n),fZ1(n), fPhi1(n), ficlu1(0),
fX2(n),fY2(n),fZ2(n), fPhi2(n), ficlu2(0) {;}
virtual ~AliITSVertexer3DTapan(){}
-
- Int_t LoadClusters(TTree *cf);
- void FindVertexForCurrentEvent(AliESDVertex *vtx);
+ virtual AliESDVertex *FindVertexForCurrentEvent(TTree *cTree);
+ virtual void PrintStatus() const {}
protected:
+ void LoadClusters(TTree *cTree);
void CalculatePhi(Float_t fx, Float_t fy, Float_t & phi);
void CalculateVertex3d1(Double_t pos[3], Float_t cuts[3], Int_t &ncontr);
void CalculateVertex3d2(Double_t pos[3], Float_t cuts[3], Int_t &ncontr, Double_t sigpos[3]);
AliITSVertexer3DTapan(AliITSVertexer3DTapan &);
AliITSVertexer3DTapan& operator=(const AliITSVertexer3DTapan &);
- const AliITSgeom *fITSgeom; //the ITS geometry
-
TArrayD fX1; // X position of cluster on layer 1 of ITS
TArrayD fY1; // Y position of cluster on layer 1 of ITS
TArrayD fZ1; // Z position of cluster on layer 1 of ITS
TArrayD fPhi2; // Phi position of cluster on layer 2 of ITS
Int_t ficlu2; // Number of clusters on layer 2 of ITS
- ClassDef(AliITSVertexer3DTapan,1);
+ ClassDef(AliITSVertexer3DTapan,3);
};
#endif