PandaRoot
PndHoughPreprocessing.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 PndHoughPreprocessing_H_
14 #define PndHoughPreprocessing_H_
15 
16 #include "FairTask.h"
17 #include "FairRootManager.h"
18 #include "PndTrackCand.h"
19 #include "PndHoughData.h"
20 
22 
23  public:
25  : fHits(data->GetHits()), fMapTubetoHit(data->GetMapTubetoHit()), fMapFairLinktoFairHit(data->GetMapFairLinktoFairHit()),
26  fMapFairLinktoIsochrone(data->GetMapFairLinktoIsochrone()), fMapFairLinktoIsochroneError(data->GetMapFairLinktoIsochroneError()),
27  fMapFairLinktoTubeId(data->GetMapFairLinktoTubeId()), fStrawMap(data->GetStrawMap())
28  {
29  ioman = FairRootManager::Instance();
30  };
31 
39 
40  private:
41  FairRootManager *ioman = nullptr;
42  PndSttStrawMap *fStrawMap = nullptr;
43  std::map<FairLink, FairHit *> fMapFairLinktoFairHit;
44  std::map<FairLink, Double_t> fMapFairLinktoIsochrone;
45  std::map<FairLink, Double_t> fMapFairLinktoIsochroneError;
46  std::map<FairLink, Int_t> fMapFairLinktoTubeId;
47  std::map<int, FairHit *> fMapTubetoHit; // maps hitted tube to FairHit
48  std::vector<FairHit *> fHits; // vector with selected hits of an event
49 
50  ClassDef(PndHoughPreprocessing, 1);
51 };
52 
53 #endif /*PndHoughPreprocessing_H_*/
PndTrackCand CleanData(PndTrackCand &trackCand)
Deletes all hits, where a tube is hitted twice or more.
PndTrackCand CleanAndRejectSkewed(PndTrackCand &trackCand)
Deletes all hits, where a tube is hitted twice or more and all skewed hits.
PndHoughPreprocessing(PndHoughData *data)
PndTrackCand RejectSkewed(PndTrackCand &trackCand)
Deletes all skewed hits.