PandaRoot
BSEmcMCHitClusterDraw.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- BSEmcMCHitClusterDraw header file -----
3 // ----- Created 03/01/09 by T. Stockmanns -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef BSEMCMCHITCLUSTERDRAW_HH
7 #define BSEMCMCHITCLUSTERDRAW_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 BSEmcMCHitClusterDraw : public FairHitDraw {
29 
30  public:
32  BSEmcMCHitClusterDraw() { SetBoxDimensions(2.0, 2.0, 2.0); };
33 
38  BSEmcMCHitClusterDraw(const char *name, Int_t iVerbose = 1) : FairHitDraw(name, nullptr, iVerbose) { SetBoxDimensions(2.0, 2.0, 2.0); };
39 
42  virtual void Finish();
43 
44  protected:
45  virtual Int_t GetValue(TObject *obj, Int_t i);
46  Int_t CalculateClusterNumber(const std::set<Int_t> &clusterIDs);
47 
48  private:
49  std::map<Int_t, Int_t> fClusterID;
50 
51  ClassDef(BSEmcMCHitClusterDraw, 1);
52 };
53 
54 #endif /*BSEMCMCHITCLUSTERDRAW_HH*/
virtual void Finish()
unsigned int i
Definition: P4_F32vec4.h:21
Int_t CalculateClusterNumber(const std::set< Int_t > &clusterIDs)
Task to display Emc MCHits in cluster form.
BSEmcMCHitClusterDraw(const char *name, Int_t iVerbose=1)
virtual Int_t GetValue(TObject *obj, Int_t i)