PandaRoot
PndSttMatchTracks.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmStsMatchTracks header file -----
3 // ----- Created 22/11/05 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
15 #ifndef PNDSTTMATCHTRACKS_H
16 #define PNDSTTMATCHTRACKS_H 1
17 
18 #include <PndPersistencyTask.h>
19 #include <vector>
20 #include <map>
21 #include "PndSttHit.h"
22 #include "FairMCPoint.h"
23 
24 class TClonesArray;
25 
27 
28  public:
31 
33  PndSttMatchTracks(Int_t verbose);
34 
41  PndSttMatchTracks(const char *name, const char *title = "Pnd Stt Match Tracks Task", Int_t verbose = 1);
42 
44  virtual ~PndSttMatchTracks();
45 
47  virtual InitStatus Init();
48 
50  virtual void Exec(Option_t *opt);
51 
53  virtual void Finish();
54 
56  void AddHitCollectionName(char *hitCollectionName, char *pointCollectionName);
57  PndSttHit *GetHitFromCollections(Int_t hitCounter);
58  FairMCPoint *GetPointFromCollections(Int_t hitCounter);
59 
61  void SetPersistence(Bool_t persistence) { SetPersistency(persistence); }
62 
63  private:
64  void AddAllCollections();
65  void AddHitCollection(char const *collectionName, char const *pointCollectionName);
66 
67  TClonesArray *fTrackCandidates; // Array of PndTrackCand
68  TClonesArray *fMatches; // Array of PndSttTrackMatch
69 
71  std::map<Int_t, Int_t> fMatchMap;
72 
74  Int_t fVerbose;
75 
76  Bool_t fCollectionsComplete;
77 
78  std::vector<std::string> fHitCollectionNames;
79  std::vector<std::string> fPointCollectionNames;
80  TList fHitCollectionList;
81  TList fPointCollectionList;
82 
84  PndSttMatchTracks &operator=(const PndSttMatchTracks &) { return *this; };
85 
86  ClassDef(PndSttMatchTracks, 1);
87 };
88 
89 #endif
void SetPersistency(Bool_t val=kTRUE)
void AddHitCollectionName(char *hitCollectionName, char *pointCollectionName)
virtual ~PndSttMatchTracks()
virtual void Finish()
virtual InitStatus Init()
void SetPersistence(Bool_t persistence)
FairMCPoint * GetPointFromCollections(Int_t hitCounter)
PndSttHit * GetHitFromCollections(Int_t hitCounter)
virtual void Exec(Option_t *opt)