FairRoot/PandaRoot
PndSdsIdealClusterTask.h
Go to the documentation of this file.
1 
9 #ifndef PndSdsIdealClusterTASK_H
10 #define PndSdsIdealClusterTASK_H
11 
12 #include "PndSdsTask.h"
13 //#include "PndSdsGeoPar.h"
14 #include "PndSdsHit.h"
15 #include "PndSdsMCPoint.h"
16 #include "PndSdsPixel.h"
18 #include "FairGeoVector.h"
19 #include "FairGeoTransform.h"
20 #include "TVector3.h"
21 #include "TRandom.h"
22 #include "TGeoMatrix.h"
23 #include "TGeoBBox.h"
25 #include "PndSdsStripHitProducer.h"
26 #include "PndGeoHandling.h"
29 
30 #include <string>
31 #include <vector>
32 
33 class TClonesArray;
34 
36 {
37  public:
38 
41  PndSdsIdealClusterTask(Double_t radius, Int_t FEcolumns, Int_t FErows, TString geoFile);
43  PndSdsTask(),
44  fDigiArray(other.fDigiArray),
48  fHitArray(other.fHitArray),
49  fGeoH(other.fGeoH),
50  fRadius(other.fRadius),
51  fFEcolumns(other.fFEcolumns),
52  fFErows(other.fFErows),
53  fGeoFile(other.fGeoFile),
54  finder(other.finder),
55  mapping(other.mapping)
56  {};
58  virtual ~PndSdsIdealClusterTask();
60  {
61  fDigiArray=other.fDigiArray;
65  fHitArray=other.fHitArray;
66  fGeoH=other.fGeoH;
67  fRadius=other.fRadius;
68  fFEcolumns=other.fFEcolumns;
69  fFErows=other.fFErows;
70  fGeoFile=other.fGeoFile;
71  finder=other.finder;
72  mapping=other.mapping;
73  return *this;
74  };
81  virtual void SetParContainers();
82  virtual InitStatus Init();
83  virtual InitStatus ReInit();
84 
85  virtual void SetInBranchId(){
86  FairRootManager *ioman = FairRootManager::Instance();
87  fInBranchId = ioman->GetBranchId(fInBranchName);
88  std::cout << "InBranchId: " << fInBranchId << " for Branch: " << fInBranchName.Data() << std::endl;
89  fClusterType = ioman->GetBranchId(fClustBranchName);
90  }
91 
93  virtual void Exec(Option_t* opt);
94 
95 protected:
96 
98  TClonesArray* fDigiArray;
99 
102 
104  TClonesArray* fClusterArray;
105  TClonesArray* fHitArray;
106 // TClonesArray* fPixelArray;
107 // TClonesArray* fFePixelArray;
108 
110 
111  void Register();
112  void Reset();
113  void ProduceHits();
114 
116  Int_t fFEcolumns;
117  Int_t fFErows;
119 
120 // TGeoHMatrix GetTransformation (std::string detName);
121 // void GetLocalHitPoints(PndSdsMCPoint* myPoint, FairGeoVector& myHitIn, FairGeoVector& myHitOut);
122 // PndSdsHit CalcGlobalPoint(std::vector<PndSdsPixel> pixels);
123 // TVector3 GetSensorDimensions(std::string detName);
124 
127 
129 
130 };
131 
132 #endif /* PndSdsIdealClusterTASK_H */
133 
PndSdsIdealClusterTask(PndSdsIdealClusterTask &other)
virtual void Exec(Option_t *opt)
Int_t fInBranchId
Definition: PndSdsTask.h:43
ClassDef(PndSdsIdealClusterTask, 1)
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.
Double_t
TString fInBranchName
Definition: PndSdsTask.h:39
PndSdsIdealClusterTask & operator=(PndSdsIdealClusterTask &other)