//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // FairTask for creation of laser-beams in the TPC // Laser Grid I/O is supplied by TpcLaserGrid // See "TpcLaser.h" for information on the Lasers // PrimaryClusters created are APPENDED // to the existing input array! // // // // Environment: // Software developed for the GEM-TPC detector // // Author List: // Felix Boehmer TUM (original author) // // //----------------------------------------------------------- #ifndef TPCLASERTASK_H #define TPCLASERTASK_H // Base Class Headers --------------------------------------- #include "FairTask.h" // External Headers ----------------------------------------- #include #include "TVector3.h" class TpcLaser; class TClonesArray; class TpcDigiPar; class TpcLaserTask : public FairTask { public: // Constructors --------------------------------------------- TpcLaserTask(); ~TpcLaserTask(); // ---------------------------------------------------------- virtual InitStatus Init(); virtual void Exec(Option_t* opt); virtual void SetParContainers(); void SetPersistence(Bool_t opt=kTRUE) {fpersistence=kTRUE;} //write out TpcLaser objects private: TClonesArray* fprimArray; TClonesArray* flaserArray; bool fpersistence; double fstartX,fstartY,fstartZ,fdirX,fdirY,fdirZ,fiondens,fwidth,ftime; unsigned int addCounter, NEcount; double fzMin,fzMax,frMin,frMax; TpcDigiPar* fpar; public: ClassDef(TpcLaserTask,3) }; #endif