PandaRoot
PndEmcViewClusters.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id:$
4 //
5 // Description:
6 // Class PndEmcViewClusters
7 // Displays clusters and their content.
8 //
9 // Environment:
10 // Software developed for the PANDA experiment at GSI.
11 //
12 // Author List:
13 // Marcel Tiemens
14 //------------------------------------------------------------------------
15 //#pragma once
16 #ifndef PNDEMCVIEWCLUSTERS_H
17 #define PNDEMCVIEWCLUSTERS_H
18 
19 // Path of file:
20 // ----- $pandaroot/emc/EmcReco
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 #include <vector>
26 #include <map>
27 
28 #include "FairTask.h"
29 #include "TObject.h"
30 #include "PndEmcDataTypes.h"
31 #include "TH1.h"
32 #include "TH1F.h"
33 #include "TH2.h"
34 #include "TH2D.h"
35 #include "TCanvas.h"
36 #include "TAxis.h"
37 #include "TColor.h"
38 #include "TStyle.h"
39 #include "TClonesArray.h"
40 //#include "PndEmcDigiCalibrator.h"
41 //------------------------------------
42 // Collaborating Class Declarations --
43 //------------------------------------
44 
45 class PndEmcCluster;
46 class PndEmcBump;
47 class PndEmcDigi;
49 
50 class PndEmcGeoPar;
51 class PndEmcDigiPar;
52 class PndEmcRecoPar;
53 
54 class PndEmcSharedDigi;
55 
61 class PndEmcViewClusters : public FairTask {
62  public:
63  // Constructor
64  PndEmcViewClusters(Int_t verbose = 0);
65  // Destructor
66  virtual ~PndEmcViewClusters();
67 
68  // Methods
69  virtual InitStatus Init();
70  virtual void Exec(Option_t *opt);
71  virtual void FinishTask();
72 
73  void SetStorageOfData(Bool_t p = kTRUE) { fPersistance = p; };
74 
75  void SetClusterEnergyThreshold(Double_t ethres) { Ethres = ethres; }
76  void SetMode(Int_t mode) { fMode = mode; }
77 
78  protected:
80  virtual void SetParContainers();
81 
82  private:
83  // don't allow copying (-Weffc++)
84  PndEmcViewClusters(const PndEmcViewClusters &); // no implementation
85  PndEmcViewClusters &operator=(const PndEmcViewClusters &); // no implementation
86 
87  private:
89  TClonesArray *fClusterArray;
90 
91  PndEmcGeoPar *fGeoPar; //< Geometry parameter container
92  PndEmcDigiPar *fDigiPar; //< Digitisation parameter container
93  PndEmcRecoPar *fRecoPar; //< Reconstruction parameter container
94 
95  std::vector<Double_t> fClusterPosParam;
96 
97  Double_t Ethres;
98  Int_t fMode;
99 
100  // declare histograms to be filled
101  TH1F *h1;
102  TH2D *h2;
103 
104  TCanvas *c2;
105 
106  Bool_t fPersistance;
107 
108  /* Verbosity level */
109  // Int_t fVerbose; //do not shadow FairTask::fVerbose
110 
111  ClassDef(PndEmcViewClusters, 1);
112 };
113 #endif
PndEmcViewClusters(Int_t verbose=0)
stores crystal index coordinates (x,y) or (theta,phi)
virtual ~PndEmcViewClusters()
used to share PndEmcDigis between bumps
parameter set of Emc digitisation
Definition: PndEmcDigiPar.h:12
virtual void SetParContainers()
virtual void Exec(Option_t *opt)
virtual void FinishTask()
void SetClusterEnergyThreshold(Double_t ethres)
splits clusters based on local maxima in the Phi direction for use with Bremstrahlung correction...
void SetStorageOfData(Bool_t p=kTRUE)
represents a reconstructed (splitted) emc cluster
Definition: PndEmcBump.h:34
Parameter set for Emc Reco.
Definition: PndEmcRecoPar.h:12
virtual InitStatus Init()
void SetMode(Int_t mode)