PandaRoot
PndHypKalmanTask.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 // Ralf Kliemt, TU Dresden (Copied for MVD use)
26 //
27 //-----------------------------------------------------------
28 
29 #ifndef PNDHYPKALMANTASK_HH
30 #define PNDHYPKALMANTASK_HH
31 
32 // Base Class Headers ----------------
33 #include "FairTask.h"
34 
35 // Collaborating Class Headers -------
36 #include <map>
37 #include "TString.h"
38 #include "FairGeanePro.h"
39 
40 // Collaborating Class Declarations --
41 class TClonesArray;
42 class GFRecoHitFactory;
43 class TH1D;
44 class TGeoManager;
45 class FairField;
46 
47 class PndHypKalmanTask : 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 
62  // Operations ----------------------
63 
64  virtual InitStatus Init();
65 
66  virtual void Exec(Option_t *opt);
67 
68  void WriteHistograms(const TString &filename);
69 
70  private:
71  // Private Data Members ------------
72  TClonesArray *fTrackArray;
73  TClonesArray *fTrArray;
74  TString fTrackBranchName;
75  std::map<unsigned int, TString> fHitBranchMap;
76  Bool_t fPersistence;
77 
78  GFRecoHitFactory *fTheRecoHitFactory;
79  FairField *fField;
80 
81  TH1D *fPH; // momentum histo;
82  TH1D *fChi2H; // chi2 histo;
83  TH1D *fMassV0; // chi2 histo;
84  TH1D *fMassETAC; // chi2 histo;
85  TH1D *fMasses; // all particle histo;
86 
87  Int_t fTrackcount;
88  Int_t fEvent;
89  TGeant3 *gMC3;
90  FairGeanePro *fPro;
91  // Private Methods -----------------
92 
93  public:
95 };
96 
97 #endif
98 
99 //--------------------------------------------------------------
100 // $Log$
101 //--------------------------------------------------------------
void WriteHistograms(const TString &filename)
void AddHitBranch(unsigned int detId, const TString &m)
__m128 m
Definition: P4_F32vec4.h:38
void SetTrackBranchName(const TString &name)
virtual InitStatus Init()
ClassDef(PndHypKalmanTask, 2)
Factory object to create RecoHits from digitized and clustered data.
void SetPersistence(Bool_t opt=kTRUE)
virtual void Exec(Option_t *opt)