StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Vertex3D.h
1 #ifndef Vertex3D_h
2 #define Vertex3D_h
3 
4 #include "StGenericVertexMaker/StiPPVertex/TrackData.h"
5 using namespace std; // for vector
6 
7 class TH1;
8 class TObjArray;
9 
10 class Vertex3D {
11  private:
12  enum {mxHA=16, mxHE=10};
13  TH1 *hA[mxHA];
14  TH1 *hYX[mxHE], *hYZ[mxHE]; // event histogram
15  int nHE;// counter of used histos
16 
17  vector<TrackData*> track;
18  float cut_pT1,cut_pT2, cut_sigY;
19  unsigned int cut_numTrack;
20  int isFound;
21 
22  public:
23  Vertex3D();
24  virtual ~Vertex3D();
25  void clearEvent();
26  void clearTracks();
27  void initRun();
28  void addTrack(TrackData*);
29  void study(TVector3 r, int eveID);
30  void doExtrapolation(); // in both directions
31  void initHisto(TObjArray* );
32  void setCuts(float pT1 ,float pT2 , float sigY, int nTr){cut_pT1 = pT1;cut_pT2 = pT2; cut_sigY=sigY; cut_numTrack=nTr;}
33  // get-methods
34  bool isValid(){ return isFound;}
35  void dumpPrimTracks4beamLine(float z0, int eveID);
36  void trackChi2QA(float z0);
37 };
38 
39 
40 #endif