PandaRoot
PndPreselectSttHitsTask.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 // PndPreselectSttHitsTask
15 // Finds Track
17 
27 #pragma once
28 
29 #include "FairTask.h"
30 #include <vector>
31 
32 #include "PndPreselectSttHits.h"
33 #include "PndSttStrawMap.h"
34 #include "PndGeoSttPar.h"
35 
36 struct TrackSolution;
37 
38 class PndPreselectSttHitsTask : public FairTask {
39  public:
42 
44  virtual ~PndPreselectSttHitsTask();
45 
47  virtual InitStatus Init();
48 
49  void SetParContainers();
50 
52  virtual void Exec(Option_t *opt);
53 
54  virtual void Finish();
55 
56  void SetPreselector(PndPreselectSttHits *preselector) { fPreselector = preselector; };
57 
58  virtual void AddBranchName(TString name)
59  {
60  fAdditionalBranchNames.push_back(name);
61  }
62 
63  protected:
64 
65  private:
66  PndGeoSttPar *fSttParameters = nullptr; // needed for SttStrawMap
67  TClonesArray *fTubeArray = nullptr; // needed for SttStrawMap
68 
69  TClonesArray *fTrackCandArray = nullptr;
70  TClonesArray *fSTTHits = nullptr;
71 
72  PndPreselectSttHits *fPreselector = nullptr;
73 
74  std::vector<TString> fAdditionalBranchNames;
75 
76  ClassDef(PndPreselectSttHitsTask, 1);
77 };
virtual void AddBranchName(TString name)
Search for tracks only in given branches. If no BranchName is given all tracking detectors are taken...
void SetPreselector(PndPreselectSttHits *preselector)
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
Initializes and loads the data for the PndPreselectSttHitsTask.
virtual void Finish()
virtual ~PndPreselectSttHitsTask()