#ifndef _TGENPLABTF1_H_INCLUDED #define _TGENPLABTF1_H_INCLUDED ////////////////////////////////////////////////////////////////////////// // // // TGenPlabTF1 // // // // Generates distribution of laboratory momentum according // // to 1D-function and Theta uniformly // // // ////////////////////////////////////////////////////////////////////////// #include #include "TGenPlab.h" class TGenPlabTF1 : public TGenPlab { protected: TF1 *fdN_dPlab; //! dN/dPlab distribution in target system of reference public: TGenPlabTF1( const TF1* dN_dPlab ); TGenPlabTF1( const TGenPlabTF1& ); TF1* GetFunction() const { return(fdN_dPlab); }; void SetFunction( const TF1* dN_dPlab ); virtual TVector3 GenPlabTargetSR(); virtual void Print(Option_t *option="") const; virtual ~TGenPlabTF1(); ClassDef(TGenPlabTF1,0) // Generates distribution of laboratory momentum according to an analytical function of Plab }; #endif