PandaRoot
PndEventDisplay.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 
25 #ifndef PNDEVENTDISPLAY_H
26 #define PNDEVENTDISPLAY_H
27 
28 #include "PndGeoHitList.h"
29 
30 #include "FairHit.h"
31 
32 #include "TString.h"
33 #include "TClonesArray.h"
34 
35 #include <map>
36 
38  public:
41  virtual ~PndEventDisplay();
42 
43  void AddNewGroup(TString groupName, PndGeoHitList *newList);
44  void AddHit(TString groupName, FairHit *hit, Bool_t vis = kTRUE);
45  void AddHit(TString groupName, Double_t x, Double_t y, Double_t z, Bool_t vis = kTRUE);
46  void AddHit(TString groupName, TGeoMatrix *mat, Bool_t vis = kTRUE);
47  void AddHits(TString groupName, TClonesArray *hits, Bool_t vis = kTRUE);
48  void SetHits(TString groupName, TClonesArray *hits, Bool_t vis = kTRUE);
49  void ClearHits(TString groupName);
50 
51  PndGeoHitList *GetHitList(TString ListName);
52  std::map<TString, PndGeoHitList *> GetHitListMap() { return fHitListMap; };
54  {
55  fHitListMap = display.GetHitListMap();
56  return *this;
57  };
58 
59  private:
60  std::map<TString, PndGeoHitList *> fHitListMap; //< Map between the name of a list and a pointer to the list object
61 
62  ClassDef(PndEventDisplay, 1);
63 };
64 
65 #endif /*PNDEVENTDISPLAY_H*/
void ClearHits(TString groupName)
void AddHit(TString groupName, FairHit *hit, Bool_t vis=kTRUE)
virtual ~PndEventDisplay()
display of hits inside the gGeoManager
void AddNewGroup(TString groupName, PndGeoHitList *newList)
PndEventDisplay & operator=(PndEventDisplay &display)
void AddHits(TString groupName, TClonesArray *hits, Bool_t vis=kTRUE)
void SetHits(TString groupName, TClonesArray *hits, Bool_t vis=kTRUE)
PndGeoHitList * GetHitList(TString ListName)
std::map< TString, PndGeoHitList * > GetHitListMap()