// ------------------------------------------------------------------------- // ----- PndSdsIdealRecoTask header file ----- // ----- Created 20/03/07 by R.Kliemt ----- // ------------------------------------------------------------------------- /** PndSdsIdealRecoTask.h *@author R.Kliemt ** ** The ideal tracking produces tracks of type PndSdsHit by using MC information ** directly, but with the correct data interface. **/ #ifndef PNDSDSIDEALRECOTASK_H #define PNDSDSIDEALRECOTASK_H // Root includes #include "TVector3.h" #include "TRandom.h" #include "TString.h" #include "TGeoManager.h" // framework includes #include "PndSdsTask.h" // PndSds includes #include "PndSdsMCPoint.h" #include "PndGeoHandling.h" class TClonesArray; class PndSdsIdealRecoTask : public PndSdsTask { public: /** Default constructor **/ PndSdsIdealRecoTask(); PndSdsIdealRecoTask(Double_t sx, Double_t sy, Double_t sz); /** Destructor **/ virtual ~PndSdsIdealRecoTask(); /** Virtual method Init **/ virtual void SetParContainers(); virtual InitStatus Init(); /** Virtual method Exec **/ virtual void Exec(Option_t* opt); void SetPersistance(Bool_t p = kTRUE) {fPersistance=p;}; Bool_t GetPersistance() {return fPersistance;}; protected: Bool_t fPersistance; // switch to turn on/off storing the arrays to a file PndGeoHandling* fGeoH; /** Input array of Points **/ TClonesArray* fPointArray; TClonesArray* fMctruthArray; /** Output array of Hits **/ TClonesArray* fHitOutputArray; /** Properties **/ Double_t fSigmaX; // Variance vector of sensor smearing Double_t fSigmaY; // Variance vector of sensor smearing Double_t fSigmaZ; // Variance vector of sensor smearing PndSdsMCPoint* fCurrentPndSdsMCPoint; TGeoHMatrix* fCurrentTransMat; TMatrixT fHitCovMatrix; /** smearing and geometry access **/ void InitTransMat(); void smear(TVector3& pos); void smearLocal(TVector3& pos); void CalcDetPlane(TVector3& o,TVector3& u,TVector3& v); void Register(); void Reset(); void ProduceHits(); ClassDef(PndSdsIdealRecoTask,1); }; #endif