PandaRoot
PndTrkSdsHitList.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 PNDTRKSDSHITLIST_H
19 #define PNDTRKSDSHITLIST_H 1
20 
21 #include "PndTrkHitList.h"
22 
23 #include "TVector3.h"
24 #include "PndTrkHit.h"
25 #include "PndSdsHit.h"
26 
27 #define MAXNOFSDSHITS 1000 // CHECK consistency
28 
30 
31  public:
33  PndTrkSdsHitList(Int_t iregion);
35 
36  static PndTrkSdsHitList *Instance();
42 
43  void AddHit(Int_t hitid, Int_t detid, FairHit *hit);
44 
45  void SetRegion(Int_t reg) { fIRegion = reg; }
46 
47  void Clear()
48  {
49  ClearList();
50  fpixInstance = nullptr;
51  fstrInstance = nullptr;
52  }
53 
54  protected:
57 
58  Int_t fIRegion;
60 };
61 
62 #endif
void ClearList()
Definition: PndTrkHitList.h:65
void AddHit(Int_t hitid, Int_t detid, FairHit *hit)
void SetRegion(Int_t reg)
PndTrkSdsHitList * Instanciate()
static PndTrkSdsHitList * InstanceStrip()
static PndTrkSdsHitList * fstrInstance
static PndTrkSdsHitList * InstancePixel()
ClassDef(PndTrkSdsHitList, 1)
static PndTrkSdsHitList * Instance()
PndTrkSdsHitList * InstanciatePixel()
static PndTrkSdsHitList * fpixInstance
PndTrkSdsHitList * InstanciateStrip()