PandaRoot
PndHoughSegment.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 
14 // PndHoughSegment
15 // Divides hits in tracklets depending on phi
17 
28 #ifndef PndHoughSegment_H_
29 #define PndHoughSegment_H_
30 
31 #include "PndTrackCand.h"
32 
33 #include "FairHit.h"
34 #include "TH1F.h"
35 #include "TClonesArray.h"
36 #include "PndHoughData.h"
37 
39 
40  public:
42  virtual ~PndHoughSegment();
43 
45  virtual void SetNBins(Int_t n) { fNBins = n; };
47  TClonesArray *CreateTrackCands(PndTrackCand &Cand);
48 
49  protected:
50  TH1F *CreateHisto(PndTrackCand &Cand);
51  std::vector<double> FindCuts2Zeros(TH1F &histo);
52  void FillSingleCand(TVector3 &myHit, std::vector<double> &cuts, FairLink &link, PndTrackCand fTrackCandMap[]);
53  TClonesArray *FillTrackCands(PndTrackCand &Cand, std::vector<double> &cuts);
54 
55  protected:
56  Int_t fNBins;
57  std::map<FairLink, FairHit *> fMapFairLinktoFairHit;
58  std::map<int, PndTrackCand> fTrackCandMap;
59 
61 };
62 
63 #endif /* PndHoughSegment_H_ */
virtual ~PndHoughSegment()
PndHoughSegment(PndHoughData *fData)
TH1F * CreateHisto(PndTrackCand &Cand)
void FillSingleCand(TVector3 &myHit, std::vector< double > &cuts, FairLink &link, PndTrackCand fTrackCandMap[])
std::vector< double > FindCuts2Zeros(TH1F &histo)
std::map< FairLink, FairHit * > fMapFairLinktoFairHit
virtual void SetNBins(Int_t n)
Sets the number of bins for a range from -180 to 180. The efficiency of the algorithm depends strongl...
ClassDef(PndHoughSegment, 2)
TClonesArray * CreateTrackCands(PndTrackCand &Cand)
Creates track candidates.
std::map< int, PndTrackCand > fTrackCandMap
TClonesArray * FillTrackCands(PndTrackCand &Cand, std::vector< double > &cuts)