PandaRoot
PndTrkSttClusterFinder.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 PndTrkSttClusterFinder_H
14 #define PndTrkSttClusterFinder_H 1
15 
16 #include "TClonesArray.h"
17 
19 
20  public:
23 
25  virtual ~PndTrkSttClusterFinder();
26 
27  Short_t FindTrackPattern(bool *InclusionListStt, // input; here it is the exclusion of Stt hits for Stt multiple hits
28  // OR because the hit was already used in another cluster;
29  Short_t *ListHitsinCluster, // output
30  Short_t (*ListParContiguous)[6], // input, this is the list of contiguous TubeID ;
31  Short_t MAXHITSINCLUSTER, // input;
32  Short_t *nParContiguous, // input; number of contiguous Stt axial straws to a given Stt axial straw;
33  Short_t number_straws, // input
34  Short_t SeedHit, // input
35  Short_t *SttStrawOn, // input; SttStrawOn[i] >= 0 --> it is the Stt hit
36  // number corresponding to Stt i-th Tube ID;
37  // SttStrawOn[i] == -1 --> i-th Stt straw NOT hit;
38  Short_t *TubeID // input
39 
40  );
41 
42  void GetClusters(bool *InclusionListStt, // input; this is the exclusion of Stt hits for Stt multiple hits
43  // OR because the hit was already used in another cluster;
44  Short_t ListParContiguous[][6], // input list (axial Stt); first dimension is NUMBER_STRAWS;
45  Short_t *ListSttParHits, // input
46  Short_t *nParContiguous, // input; number of contiguous straws (axial Stt);
47  // NUMBER_STRAWS even if the numbering scheme for the Stt straws goes
48  // from 1 to NUMBER_STRAWS included;
49  Short_t nSttParHit, // input;
50  const Short_t MAXFOUNDCLUSTERS, // input;
51  const Short_t MAXHITSINCLUSTER, // input;
52  const Short_t MAXSTTHITS, // input; number of maximux allowed total Stt hits;
53  const Short_t NUMBER_STRAWS, // input; number of Stt Straws in total;
54  Short_t *StrawCode, // input;
55  Short_t *StrawCode2, // input;
56  Short_t *SttStrawOn, // input;
57  TClonesArray *SttTubeArray, // input; array of the Stt tubes;
58  Short_t *TubeID, // input;
59 
60  Short_t *ListHitsinCluster, // output;
61  Short_t &nFoundClusters, // output;
62  Short_t *nHitsinCluster // output;
63  );
64 
66 };
67 
68 #endif
void GetClusters(bool *InclusionListStt, Short_t ListParContiguous[][6], Short_t *ListSttParHits, Short_t *nParContiguous, Short_t nSttParHit, const Short_t MAXFOUNDCLUSTERS, const Short_t MAXHITSINCLUSTER, const Short_t MAXSTTHITS, const Short_t NUMBER_STRAWS, Short_t *StrawCode, Short_t *StrawCode2, Short_t *SttStrawOn, TClonesArray *SttTubeArray, Short_t *TubeID, Short_t *ListHitsinCluster, Short_t &nFoundClusters, Short_t *nHitsinCluster)
ClassDef(PndTrkSttClusterFinder, 1)
virtual ~PndTrkSttClusterFinder()
const int MAXFOUNDCLUSTERS
const int MAXHITSINCLUSTER
Short_t FindTrackPattern(bool *InclusionListStt, Short_t *ListHitsinCluster, Short_t(*ListParContiguous)[6], Short_t MAXHITSINCLUSTER, Short_t *nParContiguous, Short_t number_straws, Short_t SeedHit, Short_t *SttStrawOn, Short_t *TubeID)