CMS 3D CMS Logo

SigInputObj.h

Go to the documentation of this file.
00001 #ifndef METSIG_SIGINPUTOBJ_H
00002 #define METSIG_SIGINPUTOBJ_H
00003 // -*- C++ -*-
00004 //
00005 // Package:    METAlgorithms
00006 // Class:      SigInputObj
00007 // 
00015 //
00016 // Original Author:  Kyle Story, Freya Blekman (Cornell University)
00017 //         Created:  Fri Apr 18 11:58:33 CEST 2008
00018 // $Id: SigInputObj.h,v 1.1 2008/04/18 10:12:55 fblekman Exp $
00019 //
00020 //
00021 
00022 
00023 
00024 #include <vector>
00025 #include <string>
00026 #include <iostream>
00027 #include <sstream>
00028 
00029 //=== Class SigInputObj ==============================//
00030 namespace metsig{
00031   class SigInputObj{
00032 
00033   public:
00034     SigInputObj():
00035       type(""),energy(0.),phi(0.),sigma_e(0.),sigma_tan(0.)
00036       {;}// default constructor
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;       //type of physics object
00060     /*** note: type = "jet", "uc" (un-clustered energy),
00061          "electron", "muon", "hot-cell", "vertex" ***/
00062     double energy;    //magnitude of the energy
00063     double phi;       //azimuthal angle
00064     double sigma_e;   //gaus width in radial direction
00065     double sigma_tan; //gaus width in phi-hat direction (not in rad)
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

Generated on Tue Jun 9 17:44:06 2009 for CMSSW by  doxygen 1.5.4