FairRoot/PandaRoot
PndTrkNeighboringMap.h
Go to the documentation of this file.
1 
6 #ifndef PNDTRKNEIGHBORINGMAP_H
7 #define PNDTRKNEIGHBORINGMAP_H 1
8 
9 #include "TVector3.h"
10 #include "TMap.h"
11 #include "PndTrkHit.h"
12 #include "PndTrkHitList.h"
13 #include "FairHit.h"
14 
15 #include "TObjArray.h"
16 #include "TClonesArray.h"
17 
18 class PndTrkNeighboringMap : public TObject
19 {
20 
21  public:
22 
23  PndTrkNeighboringMap(TClonesArray *tubearray);
27 
28  void Clear();
29 
30  void AddNeighboringsToHit(PndTrkHit *hit, TObjArray *hits);
31  TObjArray GetNeighboringsToHit(PndTrkHit *hit);
32  void SetOwnerValue(Bool_t enable = kTRUE) { hit2neigh.SetOwnerValue(enable); }
33  TMapIter *GetIterator();
34  TObjArray GetStandalone() { return fStandalone ; }
35  TObjArray GetSeeds(); // { return fOneNeigh; }
36  TObjArray GetCandseeds();
37  TObjArray GetIndivisibles();
38  TObjArray GetIndivisiblesToHit(PndTrkHit *hit);
39  void PrintIndivisibleMap();
40  TObjArray GetHitWithNNeighborings(int nofhits);
41 
42 
43  protected:
45  TClonesArray *fTubeArray;
47 
48 
50 };
51 
52 
53 #endif
void AddNeighboringsToHit(PndTrkHit *hit, TObjArray *hits)
TObjArray GetHitWithNNeighborings(int nofhits)
PndTrkNeighboringMap & operator=(const PndTrkNeighboringMap &thismap)
TObjArray GetNeighboringsToHit(PndTrkHit *hit)
void SetOwnerValue(Bool_t enable=kTRUE)
PndTrkNeighboringMap(TClonesArray *tubearray)
ClassDef(PndTrkNeighboringMap, 1)
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
Definition: hit.C:1
TObjArray GetIndivisiblesToHit(PndTrkHit *hit)
CbmHit * hits[nHits]
Definition: RiemannTest.C:19