PandaRoot
PndMdtClusterTask.h
Go to the documentation of this file.
1 #ifndef PNDMDTCLUSTERTASK_H
2 #define PNDMDTCLUSTERTASK_H 1
3 
4 #include <PndPersistencyTask.h>
5 #include "PndMdtCluster.h"
6 
7 class TClonesArray;
8 
9 using std::map;
10 using std::vector;
11 
13 
14  public:
17 
20 
22  virtual InitStatus Init();
23 
25  virtual void Exec(Option_t *opt);
26 
27  void SetPersistence(Bool_t pers) { SetPersistency(pers); };
28 
29  private:
30  Bool_t MdtMapping(); // Creates maps of MDT hits
31  void Reset(); // reset maps
32 
33  PndMdtCluster *AddClusterBox(std::vector<Int_t> digiList);
34  PndMdtCluster *AddClusterStrip(std::vector<Int_t> digiList);
35 
37  TClonesArray *fBoxIArray;
38  TClonesArray *fStripIArray;
39 
41  TClonesArray *fBoxOArray;
42  TClonesArray *fStripOArray;
43 
45  map<Int_t, Int_t> mapBox;
46  map<Int_t, Int_t> mapStrip;
47 
48  ClassDef(PndMdtClusterTask, 1);
49 };
50 
51 #endif
void SetPersistency(Bool_t val=kTRUE)
void SetPersistence(Bool_t pers)
virtual void Exec(Option_t *opt)
virtual InitStatus Init()