PandaRoot
RhoVtxPoca.h
Go to the documentation of this file.
1 #ifndef RHOVTXPOCA_H
2 #define RHOVTXPOCA_H
3 // //
5 // RhoVtxPoca //
6 // //
7 // Author: R. Kliemt 2010 //
8 // extended for multiple tracks //
9 // //
11 
12 #include <vector>
13 #include "TVector3.h"
14 class RhoCandidate;
15 class RhoCandList;
16 
17 class RhoVtxPoca {
18  public:
19  RhoVtxPoca();
20  virtual ~RhoVtxPoca();
21  Double_t GetPocaVtx(TVector3 &vertex, RhoCandidate *composite);
22  Double_t GetPocaVtx(TVector3 &vertex, RhoCandList &cands);
23  Double_t GetPocaVtx(TVector3 &vertex, std::vector<RhoCandidate *> &cands);
24 
25  private:
26  Double_t GetPoca(TVector3 &vertex, RhoCandidate *a, RhoCandidate *b);
27  Double_t GetPocaTwoCharged(TVector3 &vertex, RhoCandidate *a, RhoCandidate *b);
28  Double_t GetPocaChargedToNeutral(TVector3 &vertex, RhoCandidate *a, RhoCandidate *b);
29  Double_t GetPocaTwoNeutral(TVector3 &vertex, RhoCandidate *a, RhoCandidate *b);
30 
31  ClassDef(RhoVtxPoca, 1) // A poca Vertex Finder
32 };
33 
34 #endif
virtual ~RhoVtxPoca()
Double_t GetPocaVtx(TVector3 &vertex, RhoCandidate *composite)