PandaRoot
CbmGeaneTrKalStt.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 #ifndef CBMGEANETRKALSTT_H
14 #define CBMGEANETRKALSTT_H 1
15 
16 #include "FairTask.h"
17 #include "TVector3.h"
18 #include "TFile.h"
19 #include "FairGeanePro.h"
20 #include "FairGeaneUtil.h"
21 
22 class TGeant3;
23 class TClonesArray;
24 class TTree;
25 class CbmPlanePoint;
26 class PndSttTrack;
27 class PndSttHit;
28 class PndSttPoint;
29 
30 class FairGeaneTrKalStt : public FairTask {
31  public:
34 
37 
39  virtual InitStatus Init();
40 
42  virtual void Exec(Option_t *opt);
43 
44  Bool_t CoordSDToMARS(TVector3 o, TVector3 y, TVector3 z, TMatrixT<double> coor, TVector3 &coordinate);
45 
46  Bool_t ProcessHit(PndSttTrack *pTrack, Int_t k, FairTrackParP *fRunningStart, FairTrackParP *fRunningRes, TString fb);
47  Bool_t Propagation(PndSttHit *currenthit, FairTrackParP *fRunningStart, FairTrackParP *fRunningRes, TString fb);
48  Bool_t Kalman(PndSttHit *currenthit, FairTrackParP *fRunningRes, FairTrackParP *fRunningStart);
49  Bool_t RetrieveVertex(PndSttTrack *pTrack);
50  Bool_t BackToVertex(FairTrackParP *fRunningRes, FairTrackParP *fRes);
51  Bool_t BackToVertex2(FairTrackParP *fRunningRes, FairTrackParP *fRes);
52  void FinishTask();
53 
54  private:
56  TClonesArray *fHitArray;
57  TClonesArray *fPointArray;
58  TClonesArray *fTrackArray;
59 
60  TTree *t;
61  TFile *f;
63  TClonesArray *fTrackParIni;
64  TClonesArray *fTrackParGeane;
65  TClonesArray *fTrackParFinal;
66 
67  TGeant3 *gMC3;
68  ClassDef(FairGeaneTrKalStt, 1);
69  Int_t fEvent;
70  FairGeanePro *fPro;
71  FairGeaneUtil *fUtil;
72 
73  Int_t PDGCode;
74  TVector3 StartPos;
75  TVector3 StartPosErr;
76  TVector3 StartMom;
77  TVector3 StartMomErr;
78 
79  Int_t welldone;
80  Int_t notdone;
81  Int_t notconsidered;
82  Int_t notbackprocessedhit;
83  Int_t notprocessedhit;
84  Int_t total;
85  Int_t tothits;
86 };
87 
88 #endif
Bool_t CoordSDToMARS(TVector3 o, TVector3 y, TVector3 z, TMatrixT< double > coor, TVector3 &coordinate)
Bool_t ProcessHit(PndSttTrack *pTrack, Int_t k, FairTrackParP *fRunningStart, FairTrackParP *fRunningRes, TString fb)
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
Bool_t BackToVertex(FairTrackParP *fRunningRes, FairTrackParP *fRes)
Bool_t RetrieveVertex(PndSttTrack *pTrack)
Bool_t BackToVertex2(FairTrackParP *fRunningRes, FairTrackParP *fRes)
Bool_t Propagation(PndSttHit *currenthit, FairTrackParP *fRunningStart, FairTrackParP *fRunningRes, TString fb)
Bool_t Kalman(PndSttHit *currenthit, FairTrackParP *fRunningRes, FairTrackParP *fRunningStart)