PandaRoot
PndWayFollower.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 /*
14  * PndWayFollower.h
15  *
16  * Created on: Jul 26, 2016
17  * Author: kibellus
18  */
19 
20 #ifndef PNDTOOLS_PNDFORWARDTRACKFINDER_PNDWAYFOLLOWER_H_
21 #define PNDTOOLS_PNDFORWARDTRACKFINDER_PNDWAYFOLLOWER_H_
22 
23 #include <map>
24 #include <vector>
25 #include <iostream>
27 #include "PndLineApproximation.h"
28 #include "PndFtsLineComparator.h"
29 #include "PndTrackCollection.h"
30 #include "PndLine.h"
31 #include "Tuple.h"
32 #include "TClonesArray.h"
33 
34 using namespace std;
35 
37  public:
38  static Double_t compDist;
39  static Double_t compAngle;
40  static Double_t qualiT;
41  PndWayFollower(TClonesArray *p, TClonesArray *p2) : fLineComp(compDist, compAngle), planes(p), planesHit(p2) {}
42  virtual ~PndWayFollower();
43  vector<PndTrackCollection> followLines(Int_t begin);
44  void init(vector<PndLineApproximation> b, map<Int_t, vector<PndFtsExpandedTrackCand>> c)
45  {
46  fBefore = b;
47  cands = c;
48  }
49  PndLineApproximation getBestApproxTo(PndLine l1, Int_t layer);
50  PndLineApproximation getBestSkewedApproxTo(PndLine l2, Int_t layer);
51 
52  private:
53  vector<PndLineApproximation> fBefore;
54  map<Int_t, vector<PndFtsExpandedTrackCand>> cands;
55  PndFtsLineComparator fLineComp;
56  TClonesArray *planes;
57  TClonesArray *planesHit;
58 
59  int asd = 0;
60 };
61 
62 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDWAYFOLLOWER_H_ */
static Double_t qualiT
PndWayFollower(TClonesArray *p, TClonesArray *p2)
STL namespace.
void init(vector< PndLineApproximation > b, map< Int_t, vector< PndFtsExpandedTrackCand >> c)
static Double_t compDist
static Double_t compAngle