FairRoot/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 
23 class TtAliTask : public FairTask {
24 
25 public:
26 
27  // Constructors/Destructors ---------
28  TtAliTask();
29  TtAliTask(Int_t ExcludedBox);
30  TtAliTask(const TtAliTask& ) = delete;
31  TtAliTask& operator=(const TtAliTask& ) = delete;
32  virtual ~TtAliTask();
33 
34  virtual InitStatus Init();
35  virtual void Exec(Option_t* opt);
36  virtual void FinishTask();
37 
38  void SetExcludedBox(Int_t excl){
39  if
40  (excl > 0 && excl < 7) fExclBox = excl;
41  else
42  cout << "Set a wrong value!!! Leaving fExclBox as it was" << std::endl;
43  };
44 
45  void PrintVal();
46  void PrintMeanResiduals();
47  void PrintSigmaResiduals();
48  TVector2 GetRes();
49  void PrintHistos();
50  void FlagPrint(Int_t flag){fPrint = flag;}; // 1 to print residuals
51 
52 private:
53 
54  // Input Data------------
55  TClonesArray* fTCandArray;
57 
58  //Bool_t firstIt;
59  Int_t fTrackcount;
60 
61  Int_t fEvent;
62  Int_t fExclBox;
63 
64  Int_t fPrint; // flag
65 
66  Double_t sX[6],sY[6]; // shifts
67  Double_t sigX[6],sigY[6]; // sigma residuals
68  Double_t m_X[6],m_Y[6]; // residuals
69 
70  TH1F *hx;
71  TH1F *hy;
72 
73  // Fitting ------------
74  void 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);
75 
76  ClassDef(TtAliTask,1);
77 
78 };
79 
80 #endif
81 
Int_t fExclBox
Definition: TtAliTask.h:62
TH1F * hx
Definition: TtAliTask.h:70
Double_t
Double_t z
void SetExcludedBox(Int_t excl)
Definition: TtAliTask.h:38
TH1F * hy
Definition: TtAliTask.h:71
Double_t x
Int_t fTrackcount
Definition: TtAliTask.h:59
Int_t fPrint
Definition: TtAliTask.h:64
fRun Init()
Definition: NHitsPerEvent.C:20
Double_t y
Int_t fEvent
Definition: TtAliTask.h:61
TString fTCandBranchName
Definition: TtAliTask.h:56