00001 #ifndef METSIG_SIGINPUTOBJ_H
00002 #define METSIG_SIGINPUTOBJ_H
00003
00004
00005
00006
00007
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <vector>
00025 #include <string>
00026 #include <iostream>
00027 #include <sstream>
00028
00029
00030 namespace metsig{
00031 class SigInputObj{
00032
00033 public:
00034 SigInputObj():
00035 type(""),energy(0.),phi(0.),sigma_e(0.),sigma_tan(0.)
00036 {;}
00037
00038 SigInputObj( std::string & m_type, double & m_energy,
00039 double & m_phi, double & m_sigm_e, double & m_sigma_phi);
00040 ~SigInputObj() {;}
00041
00042 std::string get_type(){return(type);};
00043 double get_energy() const {return(energy);};
00044 double get_phi() const {return(phi);};
00045 double get_sigma_e() const {return(sigma_e);};
00046 double get_sigma_tan() const {return(sigma_tan);};
00047
00048 void set(const std::string & m_type, const double & m_energy,
00049 const double & m_phi, const double & m_sigma_e,
00050 const double & m_sigma_tan){
00051 type.clear(); type.append(m_type);
00052 energy = m_energy;
00053 phi = m_phi;
00054 sigma_e = m_sigma_e;
00055 sigma_tan = m_sigma_tan;
00056 }
00057
00058 private:
00059 std::string type;
00060
00061
00062 double energy;
00063 double phi;
00064 double sigma_e;
00065 double sigma_tan;
00066
00067 void set_type(const std::string & m_type){type.clear(); type.append(m_type);};
00068 void set_energy(const double & m_energy){energy=m_energy;};
00069 void set_phi(const double & m_phi){phi=m_phi;};
00070 void set_sigma_e(const double & m_sigma_e){sigma_e=m_sigma_e;};
00071 void set_sigma_tan(const double & m_sigma_tan){sigma_tan=m_sigma_tan;};
00072 };
00073 }
00074
00075 #endif