PandaRoot
PndHypDKalmanTask.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 // File and Version Information:
15 // $Id$
16 //
17 // Description:
18 // GFKalman Filter Task
19 //
20 // Environment:
21 // Software developed for the PANDA Detector at FAIR.
22 //
23 // Author List:
24 // Sebastian Neubert TUM (original author)
25 //
26 //
27 //-----------------------------------------------------------
28 
29 #ifndef PNDHYPDKALMANTASK_HH
30 #define PNDHYPDKALMANTASK_HH
31 
32 // Base Class Headers ----------------
33 #include "FairTask.h"
34 
35 // Collaborating Class Headers -------
36 #include <map>
37 #include "TString.h"
38 
39 // Collaborating Class Declarations --
40 class TClonesArray;
41 class GFRecoHitFactory;
42 class TH1D;
43 class TH2D;
44 class TGeoManager;
45 class FairField;
46 
47 class PndHypDKalmanTask : public FairTask {
48  public:
49  // Constructors/Destructors ---------
52 
53  // Operators
54 
55  // Accessors -----------------------
56 
57  // Modifiers -----------------------
58  void SetTrackBranchName(const TString &name) { fTrackBranchName = name; }
59  void AddHitBranch(unsigned int detId, const TString &m) { fHitBranchMap[detId] = m; };
60  void SetPersistence(Bool_t opt = kTRUE) { fPersistence = opt; }
61  void SetSmooth(Bool_t opt = kTRUE) { fSmooth = opt; }
62  void UseMVD(bool mvd) { fUseMVD = mvd; }
63 
64  // Operations ----------------------
65 
66  virtual InitStatus Init();
67 
68  virtual void Exec(Option_t *opt);
69 
70  void WriteHistograms(const TString &filename);
71 
72  private:
73  // Private Data Members ------------
74  TString fTrackBranchName;
75  std::map<unsigned int, TString> fHitBranchMap;
76  TClonesArray *fTrackArray;
77 
78  Bool_t fPersistence;
79 
80  GFRecoHitFactory *fTheRecoHitFactory;
81  FairField *fField;
82 
83  TH1D *fPH; // momentum histo;
84  TH1D *fChi2H; // chi2 histo;
85  TH1D *fXresH;
86  TH1D *fYresH;
87  TH1D *fXresFitH;
88  TH1D *fYresFitH;
89  TH1D *fPEnd;
90  TH1D *fPull;
91 
92  int fTrackcount;
93  Bool_t fSmooth;
94  int fEvt; // event counter
95  bool fUseMVD;
96 
97  // Private Methods -----------------
98 
99  public:
100  ClassDef(PndHypDKalmanTask, 4)
101 };
102 
103 #endif
104 
105 //--------------------------------------------------------------
106 // $Log$
107 //--------------------------------------------------------------
virtual InitStatus Init()
__m128 m
Definition: P4_F32vec4.h:38
void SetPersistence(Bool_t opt=kTRUE)
void SetTrackBranchName(const TString &name)
Factory object to create RecoHits from digitized and clustered data.
void UseMVD(bool mvd)
void WriteHistograms(const TString &filename)
void SetSmooth(Bool_t opt=kTRUE)
virtual void Exec(Option_t *opt)
void AddHitBranch(unsigned int detId, const TString &m)