1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- // --------------------------------------------------------------------------
- // ----- Header for the MpdSftHitProducer ------
- // ----- Created by E. Cordier 14/09/05 ------
- // ----- Modified by D. Gonzalez-Diaz 07/09/06 ------
- // ----- Modified by D. Gonzalez-Diaz 02/02/07 ------
- // --------------------------------------------------------------------------
- #ifndef MPDSFTHITPRODUCER_H
- #define MPDSFTHITPRODUCER_H
- #include "FairTask.h"
- class TClonesArray;
- class TString;
- class MpdSftHitProducer : public FairTask {
- public:
- MpdSftHitProducer();
- MpdSftHitProducer(const char *name, Int_t verbose = 1);
- virtual ~MpdSftHitProducer();
- virtual InitStatus Init();
- virtual void Exec(Option_t * option);
- virtual void Finish();
- void AddHit(Int_t detID, TVector3 &posHit, TVector3 &posHitErr,
- Int_t ref, Double_t tHit, Int_t flag);
- void SetSigmaT(Double_t sigma);
- void SetSigmaXY(Double_t sigma);
- void SetSigmaY(Double_t sigma);
- void SetSigmaZ(Double_t sigma);
- Double_t GetSigmaT();
- Double_t GetSigmaXY();
- Double_t GetSigmaY();
- Double_t GetSigmaZ();
- private:
- Int_t fVerbose;
- TClonesArray *fTofPoints; // TOF MC points
- TClonesArray *fMCTracks; // MC tracks
- TClonesArray *fHitCollection; // TOFhits
- //Temporary substitute of the parameter container. FIXME
-
- Float_t X [10][500][500]; //X-Position in cm */
- Float_t Dx[10][500][500]; //Resolution in position in cm */
- Float_t Y [10][500][500]; //Y-Position in cm */
- Float_t Dy[10][500][500]; //Resolution in position in cm */
- TString type[10][500][500]; //Type of cell [pad, strip]
- //End of temporary data members
- //Members to store the hit during loop over all the points. FIXME
- Float_t tl[10][500][500];
- Float_t tr[10][500][500];
- Int_t trackID_left[10][500][500];
- Int_t trackID_right[10][500][500];
- Int_t point_left[10][500][500];
- Int_t point_right[10][500][500];
- //End of storing data members
- Double_t fSigmaT; //Resolution in time in ns
- Double_t fSigmaXY; //Resolution in x/y in cm
- Double_t fSigmaY; //Resolution in y in cm
- Double_t fSigmaZ; //Resolution in z in cm
-
- TString fVersion; //
- Int_t fNHits; //Index of the MpdEtofHit TClonesArray
- ClassDef(MpdSftHitProducer,1) //MPDSFTHitProducer
- };
- #endif
|