FairRoot/PandaRoot
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PndEventDisplay Class Reference

display of hits inside the gGeoManager More...

#include <PndEventDisplay.h>

Public Member Functions

 PndEventDisplay ()
 
 PndEventDisplay (PndEventDisplay &display)
 
virtual ~PndEventDisplay ()
 
void AddNewGroup (TString groupName, PndGeoHitList *newList)
 
void AddHit (TString groupName, FairHit *hit, Bool_t vis=kTRUE)
 
void AddHit (TString groupName, Double_t x, Double_t y, Double_t z, Bool_t vis=kTRUE)
 
void AddHit (TString groupName, TGeoMatrix *mat, Bool_t vis=kTRUE)
 
void AddHits (TString groupName, TClonesArray *hits, Bool_t vis=kTRUE)
 
void SetHits (TString groupName, TClonesArray *hits, Bool_t vis=kTRUE)
 
void ClearHits (TString groupName)
 
PndGeoHitListGetHitList (TString ListName)
 
std::map< TString,
PndGeoHitList * > 
GetHitListMap ()
 
PndEventDisplayoperator= (PndEventDisplay &display)
 

Private Member Functions

 ClassDef (PndEventDisplay, 1)
 

Private Attributes

std::map< TString,
PndGeoHitList * > 
fHitListMap
 

Detailed Description

display of hits inside the gGeoManager

PndEventDisplay

Author
Tobias Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de
Since
29.10.2007

This class allows the display of event information within the gGeoManager. First a new group has to be created via the AddNewGroup command. A Group contains a unique name for the informations which should be displayed and a pointer to a PndGeoHitList. After the creation of the group hits can be added to the group by the name of the group and various imput possibilities.

Definition at line 25 of file PndEventDisplay.h.

Constructor & Destructor Documentation

PndEventDisplay::PndEventDisplay ( )

Definition at line 5 of file PndEventDisplay.cxx.

5  : fHitListMap()
6 {
7 }
std::map< TString, PndGeoHitList * > fHitListMap
PndEventDisplay::PndEventDisplay ( PndEventDisplay display)

Definition at line 9 of file PndEventDisplay.cxx.

9  :
10  fHitListMap(display.GetHitListMap())
11 {}
std::map< TString, PndGeoHitList * > GetHitListMap()
std::map< TString, PndGeoHitList * > fHitListMap
PndEventDisplay::~PndEventDisplay ( )
virtual

Definition at line 13 of file PndEventDisplay.cxx.

14 {
15 }

Member Function Documentation

void PndEventDisplay::AddHit ( TString  groupName,
FairHit *  hit,
Bool_t  vis = kTRUE 
)

Definition at line 22 of file PndEventDisplay.cxx.

References fHitListMap.

Referenced by PndMvdAllDataEventAna::Create3DGeoHits().

23 {
24  fHitListMap[groupName]->AddHit(hit, vis);
25 }
PndSdsMCPoint * hit
Definition: anasim.C:70
std::map< TString, PndGeoHitList * > fHitListMap
void PndEventDisplay::AddHit ( TString  groupName,
Double_t  x,
Double_t  y,
Double_t  z,
Bool_t  vis = kTRUE 
)

Definition at line 27 of file PndEventDisplay.cxx.

References fHitListMap.

28 {
29  fHitListMap[groupName]->AddHit(x, y, z, vis);
30 }
Double_t z
Double_t x
Double_t y
std::map< TString, PndGeoHitList * > fHitListMap
void PndEventDisplay::AddHit ( TString  groupName,
TGeoMatrix *  mat,
Bool_t  vis = kTRUE 
)

Definition at line 32 of file PndEventDisplay.cxx.

References fHitListMap.

33 {
34  fHitListMap[groupName]->AddHit(mat, vis);
35 }
std::map< TString, PndGeoHitList * > fHitListMap
void PndEventDisplay::AddHits ( TString  groupName,
TClonesArray *  hits,
Bool_t  vis = kTRUE 
)

Definition at line 37 of file PndEventDisplay.cxx.

References fHitListMap.

38 {
39  fHitListMap[groupName]->AddHits(hits, vis);
40 }
CbmHit * hits[nHits]
Definition: RiemannTest.C:19
std::map< TString, PndGeoHitList * > fHitListMap
void PndEventDisplay::AddNewGroup ( TString  groupName,
PndGeoHitList newList 
)

Definition at line 17 of file PndEventDisplay.cxx.

References fHitListMap.

Referenced by PndMvdAllDataEventAna::PndMvdAllDataEventAna().

18 {
19  fHitListMap[groupName] = newList;
20 }
std::map< TString, PndGeoHitList * > fHitListMap
PndEventDisplay::ClassDef ( PndEventDisplay  ,
 
)
private
void PndEventDisplay::ClearHits ( TString  groupName)

Definition at line 47 of file PndEventDisplay.cxx.

References fHitListMap.

Referenced by PndMvdAllDataEventAna::ClearHistos().

48 {
49  fHitListMap[groupName]->RemoveGeoHits(0);
50 }
std::map< TString, PndGeoHitList * > fHitListMap
PndGeoHitList * PndEventDisplay::GetHitList ( TString  ListName)

Definition at line 52 of file PndEventDisplay.cxx.

References fHitListMap.

53 {
54  if (fHitListMap[ListName] == 0)
55  std::cout << "-E- PndEventDisplay: " << ListName << " does not exist!" << std::endl;
56  return fHitListMap[ListName];
57 }
std::map< TString, PndGeoHitList * > fHitListMap
std::map<TString, PndGeoHitList*> PndEventDisplay::GetHitListMap ( )
inline

Definition at line 41 of file PndEventDisplay.h.

References fHitListMap.

Referenced by operator=().

41 {return fHitListMap;};
std::map< TString, PndGeoHitList * > fHitListMap
PndEventDisplay& PndEventDisplay::operator= ( PndEventDisplay display)
inline

Definition at line 42 of file PndEventDisplay.h.

References fHitListMap, and GetHitListMap().

42 {fHitListMap = display.GetHitListMap();return *this;};
std::map< TString, PndGeoHitList * > GetHitListMap()
std::map< TString, PndGeoHitList * > fHitListMap
void PndEventDisplay::SetHits ( TString  groupName,
TClonesArray *  hits,
Bool_t  vis = kTRUE 
)

Definition at line 42 of file PndEventDisplay.cxx.

References fHitListMap.

Referenced by PndMvdAllDataEventAna::Create3DGeoHits().

43 {
44  fHitListMap[groupName]->SetHits(hits, vis);
45 }
CbmHit * hits[nHits]
Definition: RiemannTest.C:19
std::map< TString, PndGeoHitList * > fHitListMap

Member Data Documentation

std::map<TString, PndGeoHitList*> PndEventDisplay::fHitListMap
private

The documentation for this class was generated from the following files: