PandaRoot
PndTrkGemHitList.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 
18 #ifndef PNDTRKGEMHITLIST_H
19 #define PNDTRKGEMHITLIST_H 1
20 
21 #include "PndTrkHitList.h"
22 
23 #include "TVector3.h"
24 #include "TClonesArray.h"
25 #include "PndTrkHit.h"
26 #include "PndGemHit.h"
27 
28 #include <map>
29 
30 #define MAXNOFGEMHITS 1000 // CHECK consistency
31 
33 
34  public:
36  PndTrkGemHitList(Int_t iregion);
38 
39  static PndTrkGemHitList *Instance();
41 
42  void AddHit(Int_t hitid, Int_t detid, FairHit *hit);
43  void AddNonCombiHits(Int_t detID, TClonesArray *array, std::map<int, bool> hitTousable);
44 
45  void Clear()
46  {
47  ClearList();
48  fgemInstance = nullptr;
49  }
50 
51  protected:
53 
54  Int_t fIRegion;
56 };
57 
58 #endif
void AddHit(Int_t hitid, Int_t detid, FairHit *hit)
static PndTrkGemHitList * fgemInstance
void AddNonCombiHits(Int_t detID, TClonesArray *array, std::map< int, bool > hitTousable)
void ClearList()
Definition: PndTrkHitList.h:65
ClassDef(PndTrkGemHitList, 1)
PndTrkGemHitList * Instanciate()
static PndTrkGemHitList * Instance()