BasicTracking.h 997 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
#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();
  
25
//  Timepix3Cluster* getNearestCluster(Timepix3Cluster*, map<Timepix3Cluster*, bool>, Timepix3Clusters*);
26
27
28
  Timepix3Cluster* getNearestCluster(long long int, Timepix3Clusters);

  // Member variables
29
30
  
  // Histograms
31
  TH1F* trackChi2;
32
33
  TH1F* clustersPerTrack;
  TH1F* trackChi2ndof;
34
  TH1F* tracksPerEvent;
35
36
  TH1F* trackAngleX;
  TH1F* trackAngleY;
37
38
39
  map<string,TH1F*> residualsX;
  map<string,TH1F*> residualsY;
  
40
  // Cuts for tracking
41
  double timingCut;
42
43
44
  double spatialCut;
  int minHitsOnTrack;
  
45
46
47
};

#endif // BASICTRACKING_H