PandaRoot
BSEmcMCDepositClusterDraw.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 // -------------------------------------------------------------------------
14 // ----- BSEmcMCDepositClusterDraw header file -----
15 // ----- Created 03/01/09 by T. Stockmanns -----
16 // -------------------------------------------------------------------------
17 
18 #ifndef BSEMCMCDEPOSITCLUSTERDRAW_HH
19 #define BSEMCMCDEPOSITCLUSTERDRAW_HH
20 
21 #include <map>
22 #include <set>
23 
24 #include "Rtypes.h"
25 #include "RtypesCore.h"
26 
27 #include "FairHitDraw.h"
28 
29 class TBuffer;
30 class TClass;
31 class TMemberInspector;
32 class TObject;
33 
40 class BSEmcMCDepositClusterDraw : public FairHitDraw {
41 
42 public:
44  BSEmcMCDepositClusterDraw() { SetBoxDimensions(2.0, 2.0, 2.0); };
45 
50  BSEmcMCDepositClusterDraw(const char *name, Int_t iVerbose = 1)
51  : FairHitDraw(name, nullptr, iVerbose) {
52  SetBoxDimensions(2.0, 2.0, 2.0);
53  };
54 
57  virtual void Finish();
58 
59  protected:
60  virtual Int_t GetValue(TObject *obj, Int_t i);
61  Int_t CalculateClusterNumber(const std::set<Int_t> &clusterIDs);
62 
63  private:
64  std::map<Int_t, Int_t> fClusterID;
65 
66  ClassDef(BSEmcMCDepositClusterDraw, 1);
67 };
68 
69 #endif /*BSEMCMCDEPOSITCLUSTERDRAW_HH*/
Int_t CalculateClusterNumber(const std::set< Int_t > &clusterIDs)
unsigned int i
Definition: P4_F32vec4.h:33
Task to display Emc MCHits in cluster form.
virtual Int_t GetValue(TObject *obj, Int_t i)
BSEmcMCDepositClusterDraw(const char *name, Int_t iVerbose=1)