PandaRoot
RhoVtxPoca.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef RHOVTXPOCA_H
14 #define RHOVTXPOCA_H
15 // //
17 // RhoVtxPoca //
18 // //
19 // Author: R. Kliemt 2010 //
20 // extended for multiple tracks //
21 // //
23 
24 #include <vector>
25 #include "TVector3.h"
26 class RhoCandidate;
27 class RhoCandList;
28 
29 class RhoVtxPoca {
30  public:
31  RhoVtxPoca();
32  virtual ~RhoVtxPoca();
33  Double_t GetPocaVtx(TVector3 &vertex, RhoCandidate *composite);
34  Double_t GetPocaVtx(TVector3 &vertex, RhoCandList &cands);
35  Double_t GetPocaVtx(TVector3 &vertex, std::vector<RhoCandidate *> &cands);
36 
37  private:
38  Double_t GetPoca(TVector3 &vertex, RhoCandidate *a, RhoCandidate *b);
39  Double_t GetPocaTwoCharged(TVector3 &vertex, RhoCandidate *a, RhoCandidate *b);
40  Double_t GetPocaChargedToNeutral(TVector3 &vertex, RhoCandidate *a, RhoCandidate *b);
41  Double_t GetPocaTwoNeutral(TVector3 &vertex, RhoCandidate *a, RhoCandidate *b);
42 
43  ClassDef(RhoVtxPoca, 1) // A poca Vertex Finder
44 };
45 
46 #endif
virtual ~RhoVtxPoca()
Double_t GetPocaVtx(TVector3 &vertex, RhoCandidate *composite)