PandaRoot
PndMdtTrkProducer.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 PNDMDTTRKPRODUCER_H
14 #define PNDMDTTRKPRODUCER_H 1
15 
16 #include <PndPersistencyTask.h>
17 #include <map>
18 #include <vector>
19 
20 #include "PndMdtTrk.h"
21 #include "PndMdtRecoPar.h"
22 
23 #include "PndTrack.h"
24 #include "FairGeanePro.h"
25 
26 class TClonesArray;
27 
28 using std::map;
29 using std::vector;
30 
32 
33  public:
36 
39 
41  virtual InitStatus Init();
42 
44  virtual void Exec(Option_t *opt);
45 
46  virtual void SetParContainers();
47 
48  virtual void AlgorithmWithLheGenTrack();
49 
50  void SetRecMethod(Int_t rec_method) { fRec_method = rec_method; }
51 
52  private:
53  Int_t fRec_method; // 0; previous method, use mdt info only; 1; use lhetrack as seed
54 
55  PndMdtTrk *AddTrk(PndMdtTrk *track);
56 
57  Bool_t MdtMapping(); // Creates maps of MDT hits
58  void Reset(); // reset maps
59  void SetGeometry(); // setting layer positions
60 
62  TClonesArray *fHitArray;
63 
65  TClonesArray *fLheGenTrack;
66 
68  TClonesArray *fTrkArray;
69 
70  // PndMdtRecoPar *fRecoPar;
71 
72  map<Int_t, vector<Int_t>> mapMdtBarrel;
73  map<Int_t, vector<Int_t>> mapMdtEndcap;
74  map<Int_t, vector<Int_t>> mapMdtForward;
75 
76  map<Int_t, TVector3> mapHitDirection;
77  map<Int_t, Float_t> mapHitDistance;
78  Float_t mdtLayerPos[3][20];
79  Float_t mdtIronThickness[3][20];
80  Float_t mdtModule1MaxZ;
81 
82  ClassDef(PndMdtTrkProducer, 1);
83 };
84 
85 #endif
void SetRecMethod(Int_t rec_method)
virtual InitStatus Init()
virtual void SetParContainers()
virtual void Exec(Option_t *opt)
virtual void AlgorithmWithLheGenTrack()