PandaRoot
PndFtsHitProducerMcPointCoordinates.h
Go to the documentation of this file.
1 // Digitization using MC point coordinates for hit positions instead of center of straws as in PndFtsHitProducerRealFast
2 // This class is a copy of PndFtsHitProducerRealFast with the only difference as described above
3 
4 #ifndef PndFtsHitProducerMcPointCoordinates_H
5 #define PndFtsHitProducerMcPointCoordinates_H 1
6 
7 #include "FairTask.h"
8 #include "PndGeoFtsPar.h"
9 #include "TVector3.h"
10 
11 class PndFtsHit;
12 class PndFtsHitInfo;
13 class TClonesArray;
14 class TObjectArray;
15 
16 class PndFtsHitProducerMcPointCoordinates : public FairTask {
17 
18  public:
21 
24 
26  virtual InitStatus Init();
27 
29  virtual void Exec(Option_t *opt);
30 
31  PndFtsHit *AddHit(Int_t detID, Int_t tubeID, Int_t chamberID, Int_t layerID, Int_t skew, Int_t iPoint, TVector3 &pos, TVector3 &dpos, Double_t p, Double_t rsim,
32  Double_t closestDistanceError, Double_t depcharge);
33 
34  PndFtsHitInfo *AddHitInfo(Int_t fileNumber, Int_t eventNumber, Int_t trackID, Int_t pointID, Int_t nMerged, Bool_t isFake);
35 
36  void FoldZPosWithResolution(Double_t &zpos, Double_t &zposError, TVector3 localInPos, TVector3 localOutPos);
37 
38  Double_t GetError(Double_t);
39 
41  void SetPersistence(Bool_t persistence) { fPersistence = persistence; }
42 
43  private:
44  void SetParContainers();
45 
47  TClonesArray *fPointArray;
48 
50  TClonesArray *fHitArray;
51 
52  TObjArray *fVolumeArray;
53 
55  TClonesArray *fHitInfoArray;
56  Int_t fevtn;
57 
58  PndGeoFtsPar *fFtsParameters;
59 
61  Bool_t fPersistence;
62 
63  TClonesArray *fTubeArray;
64 
67 
69 };
70 
71 #endif
PndFtsHitInfo * AddHitInfo(Int_t fileNumber, Int_t eventNumber, Int_t trackID, Int_t pointID, Int_t nMerged, Bool_t isFake)
PndFtsHit * AddHit(Int_t detID, Int_t tubeID, Int_t chamberID, Int_t layerID, Int_t skew, Int_t iPoint, TVector3 &pos, TVector3 &dpos, Double_t p, Double_t rsim, Double_t closestDistanceError, Double_t depcharge)
virtual void Exec(Option_t *opt)
void FoldZPosWithResolution(Double_t &zpos, Double_t &zposError, TVector3 localInPos, TVector3 localOutPos)