CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SigInputObj.h
Go to the documentation of this file.
1 #ifndef METSIG_SIGINPUTOBJ_H
2 #define METSIG_SIGINPUTOBJ_H
3 // -*- C++ -*-
4 //
5 // Package: METAlgorithms
6 // Class: SigInputObj
7 //
15 //
16 // Original Author: Kyle Story, Freya Blekman (Cornell University)
17 // Created: Fri Apr 18 11:58:33 CEST 2008
18 // $Id$
19 //
20 //
21 
22 
23 
24 #include <vector>
25 #include <string>
26 #include <iostream>
27 #include <sstream>
28 
29 //=== Class SigInputObj ==============================//
30 namespace metsig{
31  class SigInputObj{
32 
33  public:
35  type(""),energy(0.),phi(0.),sigma_e(0.),sigma_tan(0.)
36  {;}// default constructor
37 
38  SigInputObj( std::string & m_type, double & m_energy,
39  double & m_phi, double & m_sigm_e, double & m_sigma_phi);
41 
42  std::string get_type(){return(type);};
43  double get_energy() const {return(energy);};
44  double get_phi() const {return(phi);};
45  double get_sigma_e() const {return(sigma_e);};
46  double get_sigma_tan() const {return(sigma_tan);};
47 
48  void set(const std::string & m_type, const double & m_energy,
49  const double & m_phi, const double & m_sigma_e,
50  const double & m_sigma_tan){
51  type.clear(); type.append(m_type);
52  energy = m_energy;
53  phi = m_phi;
54  sigma_e = m_sigma_e;
55  sigma_tan = m_sigma_tan;
56  }
57 
58  private:
59  std::string type; //type of physics object
60  /*** note: type = "jet", "uc" (un-clustered energy),
61  "electron", "muon", "hot-cell", "vertex" ***/
62  double energy; //magnitude of the energy
63  double phi; //azimuthal angle
64  double sigma_e; //gaus width in radial direction
65  double sigma_tan; //gaus width in phi-hat direction (not in rad)
66 
67  void set_type(const std::string & m_type){type.clear(); type.append(m_type);};
68  void set_energy(const double & m_energy){energy=m_energy;};
69  void set_phi(const double & m_phi){phi=m_phi;};
70  void set_sigma_e(const double & m_sigma_e){sigma_e=m_sigma_e;};
71  void set_sigma_tan(const double & m_sigma_tan){sigma_tan=m_sigma_tan;};
72  };
73 }
74 
75 #endif
type
Definition: HCALResponse.h:22
double get_sigma_tan() const
Definition: SigInputObj.h:46
double get_phi() const
Definition: SigInputObj.h:44
void set(const std::string &m_type, const double &m_energy, const double &m_phi, const double &m_sigma_e, const double &m_sigma_tan)
Definition: SigInputObj.h:48
void set_phi(const double &m_phi)
Definition: SigInputObj.h:69
void set_sigma_e(const double &m_sigma_e)
Definition: SigInputObj.h:70
std::string type
Definition: SigInputObj.h:59
std::string get_type()
Definition: SigInputObj.h:42
void set_energy(const double &m_energy)
Definition: SigInputObj.h:68
void set_sigma_tan(const double &m_sigma_tan)
Definition: SigInputObj.h:71
void set_type(const std::string &m_type)
Definition: SigInputObj.h:67
double get_energy() const
Definition: SigInputObj.h:43
double get_sigma_e() const
Definition: SigInputObj.h:45