PandaRoot
TtAliTask.h
Go to the documentation of this file.
1 #ifndef TTALITASK_H
2 #define TTALITASK_H
3 
4 // Base Class Headers ----------------
5 #include "FairTask.h"
6 #include <TGraph2D.h>
7 #include <TGraph2DErrors.h>
8 #include "TH1F.h"
9 #include "TVector2.h"
10 
11 // Collaborating Class Headers -------
12 #include <map>
13 #include "TString.h"
14 #include <iostream>
15 
16 using namespace std;
17 
18 // Collaborating Class Declarations --
19 class TClonesArray;
20 class TGeoManager;
21 
22 class TtAliTask : public FairTask {
23 
24  public:
25  // Constructors/Destructors ---------
26  TtAliTask();
27  TtAliTask(Int_t ExcludedBox);
28  TtAliTask(const TtAliTask &) = delete;
29  TtAliTask &operator=(const TtAliTask &) = delete;
30  virtual ~TtAliTask();
31 
32  virtual InitStatus Init();
33  virtual void Exec(Option_t *opt);
34  virtual void FinishTask();
35 
36  void SetExcludedBox(Int_t excl)
37  {
38  if (excl > 0 && excl < 7)
39  fExclBox = excl;
40  else
41  cout << "Set a wrong value!!! Leaving fExclBox as it was" << std::endl;
42  };
43 
44  void PrintVal();
45  void PrintMeanResiduals();
46  void PrintSigmaResiduals();
47  TVector2 GetRes();
48  void PrintHistos();
49  void FlagPrint(Int_t flag) { fPrint = flag; }; // 1 to print residuals
50 
51  private:
52  // Input Data------------
53  TClonesArray *fTCandArray;
54  TString fTCandBranchName;
55 
56  // Bool_t firstIt;
57  Int_t fTrackcount;
58 
59  Int_t fEvent;
60  Int_t fExclBox;
61 
62  Int_t fPrint; // flag
63 
64  Double_t sX[6], sY[6]; // shifts
65  Double_t sigX[6], sigY[6]; // sigma residuals
66  Double_t m_X[6], m_Y[6]; // residuals
67 
68  TH1F *hx;
69  TH1F *hy;
70 
71  // Fitting ------------
72  void
73  MyFit(Double_t *x, Double_t *y, Double_t *z, Double_t *Erx, Double_t *Ery, Double_t *Erz, Double_t realX, Double_t realY, Double_t realZ, Double_t &DELTAX, Double_t &DELTAY);
74 
75  ClassDef(TtAliTask, 1);
76 };
77 
78 #endif
STL namespace.
void SetExcludedBox(Int_t excl)
Definition: TtAliTask.h:36
void FlagPrint(Int_t flag)
Definition: TtAliTask.h:49