FairRoot/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 
8 #include "FairTask.h"
9 #include "PndGeoFtsPar.h"
10 #include "TVector3.h"
11 
12 class PndFtsHit;
13 class PndFtsHitInfo;
14 class TClonesArray;
15 class TObjectArray;
16 
17 class PndFtsHitProducerMcPointCoordinates : public FairTask
18 {
19 
20  public:
21 
24 
25 
28 
29 
31  virtual InitStatus Init();
32 
33 
35  virtual void Exec(Option_t* opt);
36 
37  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);
38 
39  PndFtsHitInfo* AddHitInfo(Int_t fileNumber, Int_t eventNumber, Int_t trackID, Int_t pointID, Int_t nMerged, Bool_t isFake);
40 
41  void FoldZPosWithResolution(Double_t &zpos, Double_t &zposError, TVector3 localInPos, TVector3 localOutPos);
42 
44 
45 
47  void SetPersistence(Bool_t persistence) { fPersistence = persistence; }
48 
49  private:
50 
51  void SetParContainers();
52 
53 
55  TClonesArray* fPointArray;
56 
58  TClonesArray* fHitArray;
59 
60  TObjArray *fVolumeArray;
61 
63  TClonesArray* fHitInfoArray;
64  Int_t fevtn;
65 
67 
70 
71 
72  TClonesArray* fTubeArray;
73 
74 
77 
79 
80 };
81 
82 #endif
TVector3 pos
Double_t p
Definition: anasim.C:58
double skew
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)
PndFtsHitProducerMcPointCoordinates & operator=(const PndFtsHitProducerMcPointCoordinates &)
Double_t
const Double_t zpos
PndFtsHitInfo * AddHitInfo(Int_t fileNumber, Int_t eventNumber, Int_t trackID, Int_t pointID, Int_t nMerged, Bool_t isFake)
ClassDef(PndFtsHitProducerMcPointCoordinates, 1)
void FoldZPosWithResolution(Double_t &zpos, Double_t &zposError, TVector3 localInPos, TVector3 localOutPos)