BasicTracking.h 668 Bytes
Newer Older
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
#ifndef BASICTRACKING_H
#define BASICTRACKING_H 1

#include "Algorithm.h"
#include <iostream>
#include "TH1F.h"
#include "TH2F.h"
#include "TCanvas.h"
#include "Timepix3Pixel.h"
#include "Timepix3Cluster.h"
#include "Timepix3Track.h"

class BasicTracking : public Algorithm {
  
public:
  // Constructors and destructors
  BasicTracking(bool);
  ~BasicTracking(){}

  // Functions
  void initialise(Parameters*);
  int run(Clipboard*);
  void finalise();
  
  Timepix3Cluster* getNearestCluster(long long int, Timepix3Clusters);

  // Member variables
  TH1F* trackChi2;
  map<string,TH1F*> residualsX;
  map<string,TH1F*> residualsY;
  
};

#endif // BASICTRACKING_H