00001
00002 #ifndef TimeCandle_H
00003 #define TimeCandle_H
00004
00013 #include "Spectrum.h"
00014 #include <string>
00015
00016 class DOM_Element;
00017
00018
00019
00020
00022
00023 class TimeCandle : public Spectrum {
00024 public:
00025 TimeCandle(const std::string& params);
00026
00027 TimeCandle();
00028
00029
00030 virtual float operator()(float f)const;
00031 virtual const char* particleName()const;
00032 virtual std::string title()const;
00033
00034 virtual std::pair<float,float> dir(float)const{
00035 return std::make_pair<float,float>(1.0,0.0);
00036 }
00037
00038 virtual std::pair<double,double> dir(double energy, HepRandomEngine* engine){return std::make_pair<double,double>(1.0,0.0);}
00039
00040 double energySrc(HepRandomEngine* engine, double time){ return (*this)(engine->flat());}
00041
00042 double interval (double time)
00043 {
00044 return m_T0;
00045 }
00046 private:
00047 float parseParamList(std::string input, int index);
00048
00049 double m_T0;
00050 std::string m_name;
00051
00052
00053 };
00054
00055 #endif