er  dev
ERmuSiVertexFinder.h
1 // -------------------------------------------------------------------------
2 // ----- ERmuSiVertexFinder header file -----
3 // ----- Created 03/16 by V.Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef ERMUSIVERTEXFINDER_H
7 #define ERMUSIVERTEXFINDER_H
8 
9 #include "TClonesArray.h"
10 
11 #include "FairTask.h"
12 
13 #include "ERmuSiVertex.h"
14 
15 class ERmuSiVertexFinder : public FairTask {
16 
17 public:
20 
24  ERmuSiVertexFinder(Int_t verbose);
25 
28 
30  virtual InitStatus Init();
31 
33  virtual void Exec(Option_t* opt);
34 
36  virtual void Finish();
37 
39  virtual void Reset();
40 
42  void SetTrackDistanceCut(Double_t dist){fDistanceCut = dist;}
44 protected:
45  //Input arrays
46  TClonesArray *fmuSiTracks;
47 
48  //Output arrays
49  TClonesArray *fmuSiVertices;
50 
51 
52  ERmuSiVertex* AddVertex(Float_t x, Float_t y, Float_t z);
53 protected:
54 
55 private:
56  Double_t fDistanceCut;
57 
58  virtual void SetParContainers();
59 
60  ClassDef(ERmuSiVertexFinder,1)
61 };
62 
63 #endif
void SetTrackDistanceCut(Double_t dist)
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
TClonesArray * fmuSiTracks