PandaRoot
PndLmdSigCleanTask.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndLmdSigCleanTask header file -----
15 // ----- Created 26/02/14 by A.Karavdina -----
16 // -------------------------------------------------------------------------
17 
25 #ifndef PndLmdSigCleanTask_H
26 #define PndLmdSigCleanTask_H
27 
28 // framework includes
29 #include "FairTask.h"
30 #include "TH1.h"
31 //#include "GFTrackCand.h"
32 //#include "FairGeanePro.h"
33 #include "FairTrackParH.h"
34 #include "FairTrackParP.h"
35 #include "TMatrixD.h"
36 #include "TNtuple.h"
37 #include "TVector3.h"
38 //#include "PndSdsGeoHandling.h"
39 #include <map>
40 #include <vector>
41 #include "PndGeoHandling.h"
42 // TMVA includes
43 #include "TMVA/MethodCuts.h"
44 #include "TMVA/Reader.h"
45 #include "TMVA/Tools.h"
46 //#include "PndMultiField.h"
47 class TClonesArray;
48 class PndSdsCluster;
49 class PndLmdSigCleanTask : public FairTask {
50  public:
53 
55  PndLmdSigCleanTask(Double_t pBeam, TString dir);
56 
59 
61  virtual void SetParContainers();
62  virtual InitStatus Init();
63 
65  virtual void Exec(Option_t *opt);
66 
67  virtual void Finish();
68 
69  bool CheckMVA(FairTrackParH *fTrk);
70  bool CheckMom(double prec);
71  bool Check(FairTrackParH *fTrk);
72  void SetXY(bool setXY) { fXYcut = setXY; };
73 
74  bool CheckXY(FairTrackParP *fTrk);
75  void SetDX(double dx) { fdX = dx; }
76  void SetDY(double dy) { fdY = dy; }
77 
78  private:
79  TClonesArray *fTrackParFinal;
80 
81  PndGeoHandling *fGeoH;
82  int fEventNr;
83  Double_t fPbeam;
84  bool fXYcut;
85 
86  // Input Data ----------
87  TClonesArray *fRecBPTracks;
88  TClonesArray *fTrkArray;
89 
90  // MVA Data -------
91  TString fdir;
92  TString fmethodName;
93  Float_t axrec, ayrec, aprec;
94  Float_t azrec, athrec, aphrec;
95  TMVA::Reader *reader;
96 
97  //----------------------------------------
98  double fdX; // beam shift in X
99  double fdY; // beam shift in Y
100 
101  TH1 *hResponse;
102 
103  ClassDef(PndLmdSigCleanTask, 2);
104 };
105 
106 #endif
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndSdsCluster.h:30
virtual void Finish()
virtual void Exec(Option_t *opt)
bool CheckXY(FairTrackParP *fTrk)
bool Check(FairTrackParH *fTrk)
virtual InitStatus Init()
bool CheckMom(double prec)
void SetDX(double dx)
Class to access the naming information of the MVD.
virtual void SetParContainers()
void SetXY(bool setXY)
void SetDY(double dy)
bool CheckMVA(FairTrackParH *fTrk)