PandaRoot
PndMvdDigiPixelDraw.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 
21 #ifndef PNDMVDDIGIPIXELDRAW_H_
22 #define PNDMVDDIGIPIXELDRAW_H_
23 
24 #include "FairBoxSetDraw.h"
25 #include "PndSdsDigiPixel.h"
26 #include "PndGeoHandling.h"
27 
28 #include "TVector3.h"
29 #include "TEveBoxSet.h"
30 
31 #include <map>
32 #include <vector>
33 
34 typedef std::map<Int_t, TEveBoxSet *>::iterator boxSetMapIter;
35 
36 class PndMvdDigiPixelDraw : public FairBoxSetDraw {
37  public:
39  explicit PndMvdDigiPixelDraw(const char *name, Int_t iVerbose = 1);
40  virtual ~PndMvdDigiPixelDraw();
41 
42  void Exec(Option_t *option);
43 
44  void Reset();
45 
46  protected:
47  TVector3 GetVector(TObject *) { return TVector3(); } // obj //[R.K.03/2017] unused variable(s)
48 
49  InitStatus Init();
50 
51  void SortDigis(TClonesArray *digis);
52  TEveBoxSet *CreateNewBoxSet(TString &name);
53 
54  private:
55 
56  std::map<Int_t, TEveBoxSet *> fModules;
57  PndGeoHandling *fGeoH = nullptr;
58  TClonesArray *fClusterCands = nullptr;
59  TClonesArray *fRecoHits = nullptr;
60 
61  Double_t fPixelSize;
62  Double_t fBoxSize;
63 
64  Bool_t fUseCluster = kTRUE;
65 
66  ClassDef(PndMvdDigiPixelDraw, 1);
67 };
68 
69 #endif /* PNDMVDDIGIPIXELDRAW_H_ */
TEveBoxSet * CreateNewBoxSet(TString &name)
TVector3 GetVector(TObject *)
void SortDigis(TClonesArray *digis)
void Exec(Option_t *option)
Class to access the naming information of the MVD.
InitStatus Init()
Class to display MVD digis in the event display.
std::map< Int_t, TEveBoxSet * >::iterator boxSetMapIter
virtual ~PndMvdDigiPixelDraw()