PandaRoot
PndMdtClusterTask.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 PNDMDTCLUSTERTASK_H
14 #define PNDMDTCLUSTERTASK_H 1
15 
16 #include <PndPersistencyTask.h>
17 #include "PndMdtCluster.h"
18 
19 class TClonesArray;
20 
21 using std::map;
22 using std::vector;
23 
25 
26  public:
29 
32 
34  virtual InitStatus Init();
35 
37  virtual void Exec(Option_t *opt);
38 
39  void SetPersistence(Bool_t pers) { SetPersistency(pers); };
40 
41  private:
42  Bool_t MdtMapping(); // Creates maps of MDT hits
43  void Reset(); // reset maps
44 
45  PndMdtCluster *AddClusterBox(std::vector<Int_t> digiList);
46  PndMdtCluster *AddClusterStrip(std::vector<Int_t> digiList);
47 
49  TClonesArray *fBoxIArray;
50  TClonesArray *fStripIArray;
51 
53  TClonesArray *fBoxOArray;
54  TClonesArray *fStripOArray;
55 
57  map<Int_t, Int_t> mapBox;
58  map<Int_t, Int_t> mapStrip;
59 
60  ClassDef(PndMdtClusterTask, 1);
61 };
62 
63 #endif
void SetPersistency(Bool_t val=kTRUE)
void SetPersistence(Bool_t pers)
virtual void Exec(Option_t *opt)
virtual InitStatus Init()