PandaRoot
GFDaf.h
Go to the documentation of this file.
1 /* Copyright 2011, Technische Universitaet Muenchen,
2 Authors: Karl Bicker, Christian Hoeppner
3 
4 This file is part of GENFIT.
5 
6 GENFIT is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published
8 by the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10 
11 GENFIT is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
15 
16 You should have received a copy of the GNU Lesser General Public License
17 along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
18  */
23 #ifndef GFDAF_H
24 #define GFDAF_H
25 
26 #include <assert.h>
27 #include <cmath>
28 #include "GFAbsRecoHit.h"
29 #include <GFDafHit.h>
30 #include <GFKalman.h>
31 #include <GFTrack.h>
32 #include <stdlib.h>
33 #include <vector>
34 
46 class GFDaf : GFKalman {
47  public:
48  GFDaf();
49  ~GFDaf(){};
50 
53  void processTrack(GFTrack *trk);
54 
65  const std::vector<std::vector<std::vector<double>>> getWeights() { return fWeights; };
66 
75  void setProbCut(double prob_cut);
76 
82  void setBetas(double b1, double b2, double b3 = -1., double b4 = -1., double b5 = -1., double b6 = -1., double b7 = -1., double b8 = -1., double b9 = -1., double b10 = -1.);
83 
84  private:
87  std::vector<GFDafHit *> initHitsWeights(GFTrack *trk);
88 
91  std::vector<std::vector<double>> calcWeights(GFTrack *trk, double beta);
92 
95  void copySmoothing(GFTrack *source, GFTrack *target, int target_ire);
96 
97  std::vector<std::vector<std::vector<double>>> fWeights;
98  std::vector<double> fBeta;
99  std::map<int, double> fchi2Cuts;
100 };
101 
102 #endif
103 
Determinstic Annealing Filter (DAF) implementation.
Definition: GFDaf.h:46
Track object for genfit. genfit algorithms work on these objects.
Definition: GFTrack.h:59
Generic Kalman Filter implementation.
Definition: GFKalman.h:49
~GFDaf()
Definition: GFDaf.h:49
void setProbCut(double prob_cut)
Set the probabilty cut for the weight calculation for the hits.
const std::vector< std::vector< std::vector< double > > > getWeights()
Return the weights present after the track was processed.
Definition: GFDaf.h:65
void processTrack(GFTrack *trk)
Process a track using the DAF.
void setBetas(double b1, double b2, double b3=-1., double b4=-1., double b5=-1., double b6=-1., double b7=-1., double b8=-1., double b9=-1., double b10=-1.)
Configure the annealing scheme.