PandaRoot
PndSdsIdealClusterTask.h
Go to the documentation of this file.
1 
8 #ifndef PndSdsIdealClusterTASK_H
9 #define PndSdsIdealClusterTASK_H
10 
11 #include "PndSdsTask.h"
12 //#include "PndSdsGeoPar.h"
13 #include "PndSdsHit.h"
14 #include "PndSdsMCPoint.h"
15 #include "PndSdsPixel.h"
17 #include "FairGeoVector.h"
18 #include "FairGeoTransform.h"
19 #include "TVector3.h"
20 #include "TRandom.h"
21 #include "TGeoMatrix.h"
22 #include "TGeoBBox.h"
24 #include "PndSdsStripHitProducer.h"
25 #include "PndGeoHandling.h"
28 
29 #include <string>
30 #include <vector>
31 
32 class TClonesArray;
33 
35  public:
38  PndSdsIdealClusterTask(Double_t radius, Int_t FEcolumns, Int_t FErows, TString geoFile);
41  fHitArray(other.fHitArray), fGeoH(other.fGeoH), fRadius(other.fRadius), fFEcolumns(other.fFEcolumns), fFErows(other.fFErows), fGeoFile(other.fGeoFile), finder(other.finder),
42  mapping(other.mapping){};
44  virtual ~PndSdsIdealClusterTask();
46  {
47  fDigiArray = other.fDigiArray;
49  fClusterType = other.fClusterType;
51  fHitArray = other.fHitArray;
52  fGeoH = other.fGeoH;
53  fRadius = other.fRadius;
54  fFEcolumns = other.fFEcolumns;
55  fFErows = other.fFErows;
56  fGeoFile = other.fGeoFile;
57  finder = other.finder;
58  mapping = other.mapping;
59  return *this;
60  };
67  virtual void SetParContainers();
68  virtual InitStatus Init();
69  virtual InitStatus ReInit();
70 
71  virtual void SetInBranchId()
72  {
73  FairRootManager *ioman = FairRootManager::Instance();
74  fInBranchId = ioman->GetBranchId(fInBranchName);
75  std::cout << "InBranchId: " << fInBranchId << " for Branch: " << fInBranchName.Data() << std::endl;
76  fClusterType = ioman->GetBranchId(fClustBranchName);
77  }
78 
80  virtual void Exec(Option_t *opt);
81 
82  protected:
84  TClonesArray *fDigiArray;
85 
87  Int_t fClusterType;
88 
90  TClonesArray *fClusterArray;
91  TClonesArray *fHitArray;
92  // TClonesArray* fPixelArray;
93  // TClonesArray* fFePixelArray;
94 
96 
97  void Register();
98  void Reset();
99  void ProduceHits();
100 
101  Double_t fRadius;
102  Int_t fFEcolumns;
103  Int_t fFErows;
104  TString fGeoFile;
105 
106  // TGeoHMatrix GetTransformation (std::string detName);
107  // void GetLocalHitPoints(PndSdsMCPoint* myPoint, FairGeoVector& myHitIn, FairGeoVector& myHitOut);
108  // PndSdsHit CalcGlobalPoint(std::vector<PndSdsPixel> pixels);
109  // TVector3 GetSensorDimensions(std::string detName);
110 
113 
115 };
116 
117 #endif /* PndSdsIdealClusterTASK_H */
PndSdsIdealClusterTask(PndSdsIdealClusterTask &other)
Int_t fInBranchId
Definition: PndSdsTask.h:38
ClassDef(PndSdsIdealClusterTask, 1)
virtual void Exec(Option_t *opt)
PndSdsChargedWeightedPixelMapping: Gets a vector of DigiHits and calculates the cluster center weight...
PndSdsIdealPixelClusterFinder * finder
PndSdsChargeWeightedPixelMapping * mapping
Class to access the naming information of the MVD.
TString fInBranchName
Definition: PndSdsTask.h:34
virtual ~PndSdsIdealClusterTask()
virtual InitStatus ReInit()
virtual void SetParContainers()
PndSdsIdealClusterTask & operator=(PndSdsIdealClusterTask &other)
virtual InitStatus Init()