FairRoot/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 
6 
17 #ifndef PNDSTTMATCHTRACKS_H
18 #define PNDSTTMATCHTRACKS_H 1
19 
20 #include <PndPersistencyTask.h>
21 #include <vector>
22 #include <map>
23 #include "PndSttHit.h"
24 #include "FairMCPoint.h"
25 
26 class TClonesArray;
27 
28 
29 
31 {
32 
33  public:
34 
37 
38 
41 
42 
49  PndSttMatchTracks(const char* name, const char* title = "Pnd Stt Match Tracks Task",
50  Int_t verbose = 1);
51 
52 
54  virtual ~PndSttMatchTracks();
55 
56 
58  virtual InitStatus Init();
59 
60 
62  virtual void Exec(Option_t* opt);
63 
64 
66  virtual void Finish();
67 
69  void AddHitCollectionName(char *hitCollectionName, char *pointCollectionName);
70  PndSttHit* GetHitFromCollections(Int_t hitCounter);
71  FairMCPoint* GetPointFromCollections(Int_t hitCounter);
72 
74  void SetPersistence(Bool_t persistence) { SetPersistency(persistence); }
75 
76  private:
77  void AddAllCollections();
78  void AddHitCollection(char const *collectionName, char const *pointCollectionName);
79 
80  TClonesArray* fTrackCandidates; // Array of PndTrackCand
81  TClonesArray* fMatches; // Array of PndSttTrackMatch
82 
84  std::map<Int_t, Int_t> fMatchMap;
85 
87  Int_t fVerbose;
88 
90 
91  std::vector<std::string> fHitCollectionNames;
92  std::vector<std::string> fPointCollectionNames;
95 
98 
100 };
101 
102 #endif
std::vector< std::string > fHitCollectionNames
std::vector< std::string > fPointCollectionNames
#define verbose
FairMCPoint * GetPointFromCollections(Int_t hitCounter)
void SetPersistency(Bool_t val=kTRUE)
TClonesArray * fTrackCandidates
PndSttMatchTracks & operator=(const PndSttMatchTracks &)
PndSttHit * GetHitFromCollections(Int_t hitCounter)
void AddHitCollectionName(char *hitCollectionName, char *pointCollectionName)
TString name
TClonesArray * fMatches
void SetPersistence(Bool_t persistence)
virtual void Exec(Option_t *opt)
void AddHitCollection(char const *collectionName, char const *pointCollectionName)
virtual InitStatus Init()
std::map< Int_t, Int_t > fMatchMap
ClassDef(PndSttMatchTracks, 1)