PandaRoot
PndEmcInspectClusters.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id:$
4 //
5 // Description:
6 // Class PndEmcInspectClusters
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 PNDEMCINSPECTCLUSTERS_H
17 #define PNDEMCINSPECTCLUSTERS_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 "TH1I.h"
33 #include "TCanvas.h"
34 #include "TAxis.h"
35 #include "TColor.h"
36 #include "TStyle.h"
37 #include "TStopwatch.h"
38 #include "TClonesArray.h"
39 //#include "PndEmcDigiCalibrator.h"
40 //------------------------------------
41 // Collaborating Class Declarations --
42 //------------------------------------
43 
44 class PndEmcCluster;
45 class PndEmcBump;
46 class PndEmcDigi;
48 
49 class PndEmcGeoPar;
50 class PndEmcDigiPar;
51 class PndEmcRecoPar;
52 
53 class PndEmcSharedDigi;
54 
60 class PndEmcInspectClusters : public FairTask {
61  public:
62  // Constructor
63  PndEmcInspectClusters(Int_t verbose = 0);
64  // Destructor
65  virtual ~PndEmcInspectClusters();
66 
67  // Methods
68  virtual InitStatus Init();
69  virtual void Exec(Option_t *opt);
70  virtual void FinishTask();
71 
72  /*
73  private:
74  // don't allow copying (-Weffc++)
75  PndEmcInspectClusters(const PndEmcInspectClusters&); // no implementation
76  PndEmcInspectClusters& operator= (const PndEmcInspectClusters&); // no implementation
77  */
78  private:
80  TClonesArray *fClusterArray;
81 
82  PndEmcGeoPar *fGeoPar; //< Geometry parameter container
83  PndEmcDigiPar *fDigiPar; //< Digitisation parameter container
84  PndEmcRecoPar *fRecoPar; //< Reconstruction parameter container
85 
86  std::vector<Double_t> fClusterPosParam;
87 
88  Int_t fEventCounter;
89  Int_t fNrOfEvents;
90  Int_t fNrOfDigis;
91  Int_t fClusterCounter;
92  Int_t nInspProg;
93  Double_t stoptime;
94 
95  TStopwatch fTimer;
96 
97  // declare histograms to be filled
98  TH1I *hEventMultiplicity;
99 
101  virtual void SetParContainers();
102 
103  /* Verbosity level */
104  // Int_t fVerbose; //do not shadow FairTask::fVerbose
105 
106  ClassDef(PndEmcInspectClusters, 1);
107 };
108 #endif
virtual ~PndEmcInspectClusters()
stores crystal index coordinates (x,y) or (theta,phi)
virtual InitStatus Init()
used to share PndEmcDigis between bumps
parameter set of Emc digitisation
Definition: PndEmcDigiPar.h:12
PndEmcInspectClusters(Int_t verbose=0)
virtual void Exec(Option_t *opt)
represents a reconstructed (splitted) emc cluster
Definition: PndEmcBump.h:34
virtual void FinishTask()
Parameter set for Emc Reco.
Definition: PndEmcRecoPar.h:12
splits clusters based on local maxima in the Phi direction for use with Bremstrahlung correction...