PandaRoot
PndDrcAccuDigiPixelDraw.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 
13 
21 #ifndef PNDDRCACCUDIGIPIXELDRAW_H_
22 #define PNDDRCACCUDIGIPIXELDRAW_H_
23 
24 #include "FairBoxSetDraw.h"
25 #include "PndGeoHandling.h"
26 #include "PndGeoDrc.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 typedef std::map<Int_t, Int_t>::iterator IntIter;
36 
37 class PndDrcAccuDigiPixelDraw : public FairBoxSetDraw {
38  public:
40  PndDrcAccuDigiPixelDraw(const char *name, TString digifile, Double_t weight = 0, Int_t ndigievents = 0, Int_t iVerbose = 1);
41 
42  virtual ~PndDrcAccuDigiPixelDraw();
43 
44  void Exec(Option_t *option);
45 
46  protected:
47  TVector3 GetVector(TObject *) { return TVector3(); } // obj //[R.K.03/2017] unused variable(s)
48 
49  InitStatus Init();
50 
51  void ReadAllHits();
52  void SortDigis(TClonesArray *digis);
53  TEveBoxSet *CreateNewBoxSet(TString &name);
54 
55  std::map<Int_t, TEveBoxSet *> fHitsArr;
56  std::map<Int_t, Int_t> fHitsN;
57  PndGeoHandling *fGeoH = nullptr;
58  TClonesArray *fClusterCands = nullptr;
59  TClonesArray *fRecoHits = nullptr;
60 
61  TString fDigiFile;
62  Int_t fNdigiEvents = 0;
63  Double_t fBoxHeight;
64  Bool_t fFirstEvent;
65 
66  Double_t fPixelSize;
67  Double_t fBoxSize;
68 
69  PndGeoDrc *fGeo = nullptr;
70 
72 };
73 
74 #endif /* PNDDRCACCUDIGIPIXELDRAW_H_ */
void SortDigis(TClonesArray *digis)
void Exec(Option_t *option)
std::map< Int_t, Int_t > fHitsN
std::map< Int_t, TEveBoxSet * > fHitsArr
Class to access the naming information of the MVD.
virtual ~PndDrcAccuDigiPixelDraw()
Class allows to plot DIRC digitized hits in accumulative mode using Event Display.
TEveBoxSet * CreateNewBoxSet(TString &name)
std::map< Int_t, Int_t >::iterator IntIter
ClassDef(PndDrcAccuDigiPixelDraw, 1)
std::map< Int_t, TEveBoxSet * >::iterator boxSetMapIter