PandaRoot
TtLinFitTask.h
Go to the documentation of this file.
1 // Simone Bianco
2 // 15.07.2010
3 
4 #ifndef TTLINFITTASK_H
5 #define TTLINFITTASK_H
6 
7 // Base Class Headers ----------------
8 #include "FairTask.h"
9 #include <TGraph2D.h>
10 #include <TGraph2DErrors.h>
11 #include "TH1F.h"
12 
13 // Collaborating Class Headers -------
14 #include <map>
15 #include "TString.h"
16 #include <iostream>
17 
18 using namespace std;
19 
20 // Collaborating Class Declarations --
21 class TClonesArray;
22 class TGeoManager;
23 
24 class TtLinFitTask : public FairTask {
25 
26  public:
27  // Constructors/Destructors ---------
28  TtLinFitTask();
29  // TtLinFitTask(const TtLinFitTask& o){};
30  // TtLinFitTask& operator=(const TtLinFitTask& o) { return *this;};
31  virtual ~TtLinFitTask();
32 
33  virtual InitStatus Init();
34 
35  virtual void Exec(Option_t *opt);
36 
37  private:
38  // Input Data------------
39  TClonesArray *fTCandArray;
40  TString fTCandBranchName;
41 
42  // Output Data----------
43  TClonesArray *fTrackArray;
44 
45  // Bool_t firstIt;
46 
47  Int_t fTrackcount;
48 
49  Int_t fEvent;
50 
51  Double_t fEloss[6]; // energy loss in each sensor
52 
53  // Fitting ------------
54 
55  void MyFit(Double_t *x, Double_t *y, Double_t *z, Double_t *Erx, Double_t *Ery, Double_t *Erz, Double_t *par, Double_t &chiX, Double_t &chiY);
56 
57  ClassDef(TtLinFitTask, 1);
58 };
59 
60 #endif
STL namespace.