-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fitter.h
56 lines (41 loc) · 1.51 KB
/
Fitter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*!
* \file Fitter.h
* \brief
* \author Dmitry Arkhipkin <arkhipkin@gmail.com>
*/
#ifndef PHGENFIT2_FITTER_H
#define PHGENFIT2_FITTER_H
#include "GenFit/Exception.h"
#include "GenFit/KalmanFitter.h"
#include "GenFit/Track.h"
#include <string>
#include "Track.h"
class TGeoManager;
class PHField;
namespace PHGenFit2
{
class Fitter
{
public:
Fitter( TGeoManager* tgeo_manager, PHField* field );
~Fitter();
genfit::KalmanFitter* getFitter5() { return _fitter5; }
genfit::KalmanFitter* getFitter1() { return _fitter5; }
void processTrack5( PHGenFit2::Track* track ) { return processTrack5( track->getGenFitTrack() ); }
void processTrack1( PHGenFit2::Track* track ) { return processTrack1( track->getGenFitTrack() ); }
void processTrack5( genfit::Track* track ) { return _fitter5->processTrack( track ); }
void processTrack1( genfit::Track* track ) { return _fitter1->processTrack( track ); }
void processTrackPartially( PHGenFit2::Track* track, int startId = 0, int endId = -1 ) {
return processTrackPartially( track->getGenFitTrack(), startId, endId );
}
void processTrackPartially( genfit::Track* track, int startId = 0, int endId = -1 ) {
return _fitter1->processTrackPartially( track, track->getCardinalRep(), startId, endId );
}
private:
TGeoManager* _tgeo_manager;
PHField* _field;
genfit::KalmanFitter* _fitter5; // KalmanFitter with maxIterations = 5
genfit::KalmanFitter* _fitter1; // KalmanFitter with maxIterations = 1
}; //class Fitter
} // namespace PHGenFit2
#endif