PandaRoot
PndEmcHitClusterDraw.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 PndEmcHitClusterDraw_H
22 #define PndEmcHitClusterDraw_H
23 
24 #include "FairHitDraw.h"
25 
26 class PndEmcHitClusterDraw : public FairHitDraw {
27 
28  public:
30  PndEmcHitClusterDraw() { SetBoxDimensions(2.0, 2.0, 2.0); };
31 
36  PndEmcHitClusterDraw(const char *name, Int_t iVerbose = 1) : FairHitDraw(name, nullptr, iVerbose) { SetBoxDimensions(2.0, 2.0, 2.0); };
37 
39  virtual ~PndEmcHitClusterDraw(){};
40  virtual void Finish();
41 
42  protected:
43  virtual Int_t GetValue(TObject *obj, Int_t i);
44  int CalculateClusterNumber(std::set<int> clusterIDs);
45 
46  private:
47  std::map<int, int> fClusterID;
48 
49  ClassDef(PndEmcHitClusterDraw, 1);
50 };
51 
52 #endif
unsigned int i
Definition: P4_F32vec4.h:33
virtual Int_t GetValue(TObject *obj, Int_t i)
virtual void Finish()
PndEmcHitClusterDraw(const char *name, Int_t iVerbose=1)
int CalculateClusterNumber(std::set< int > clusterIDs)