PandaRoot
BSEmcMCDepositClusterDraw.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- BSEmcMCDepositClusterDraw header file -----
3 // ----- Created 03/01/09 by T. Stockmanns -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef BSEMCMCDEPOSITCLUSTERDRAW_HH
7 #define BSEMCMCDEPOSITCLUSTERDRAW_HH
8 
9 #include <map>
10 #include <set>
11 
12 #include "Rtypes.h"
13 #include "RtypesCore.h"
14 
15 #include "FairHitDraw.h"
16 
17 class TBuffer;
18 class TClass;
19 class TMemberInspector;
20 class TObject;
21 
28 class BSEmcMCDepositClusterDraw : public FairHitDraw {
29 
30 public:
32  BSEmcMCDepositClusterDraw() { SetBoxDimensions(2.0, 2.0, 2.0); };
33 
38  BSEmcMCDepositClusterDraw(const char *name, Int_t iVerbose = 1)
39  : FairHitDraw(name, nullptr, iVerbose) {
40  SetBoxDimensions(2.0, 2.0, 2.0);
41  };
42 
45  virtual void Finish();
46 
47  protected:
48  virtual Int_t GetValue(TObject *obj, Int_t i);
49  Int_t CalculateClusterNumber(const std::set<Int_t> &clusterIDs);
50 
51  private:
52  std::map<Int_t, Int_t> fClusterID;
53 
54  ClassDef(BSEmcMCDepositClusterDraw, 1);
55 };
56 
57 #endif /*BSEMCMCDEPOSITCLUSTERDRAW_HH*/
Int_t CalculateClusterNumber(const std::set< Int_t > &clusterIDs)
unsigned int i
Definition: P4_F32vec4.h:21
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)