test
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 //
19 //
20 
21 
22 
23 #include <vector>
24 #include <string>
25 #include <iostream>
26 #include <sstream>
27 
28 //=== Class SigInputObj ==============================//
29 namespace metsig{
30  class SigInputObj{
31 
32  public:
34  type(""),energy(0.),phi(0.),sigma_e(0.),sigma_tan(0.)
35  {;}// default constructor
36 
37  SigInputObj( const std::string& m_type, double m_energy,
38  double m_phi, double m_sigm_e, double m_sigma_phi);
40 
41  std::string get_type() const {return(type);};
42  double get_energy() const {return(energy);};
43  double get_phi() const {return(phi);};
44  double get_sigma_e() const {return(sigma_e);};
45  double get_sigma_tan() const {return(sigma_tan);};
46 
47  void set(const std::string & m_type, const double & m_energy,
48  const double & m_phi, const double & m_sigma_e,
49  const double & m_sigma_tan){
50  type.clear(); type.append(m_type);
51  energy = m_energy;
52  phi = m_phi;
53  sigma_e = m_sigma_e;
54  sigma_tan = m_sigma_tan;
55  }
56 
57  private:
58  std::string type; //type of physics object
59  /*** note: type = "jet", "uc" (un-clustered energy),
60  "electron", "muon", "hot-cell", "vertex" ***/
61  double energy; //magnitude of the energy
62  double phi; //azimuthal angle
63  double sigma_e; //gaus width in radial direction
64  double sigma_tan; //gaus width in phi-hat direction (not in rad)
65 
66  void set_type(const std::string & m_type){type.clear(); type.append(m_type);};
67  void set_energy(const double & m_energy){energy=m_energy;};
68  void set_phi(const double & m_phi){phi=m_phi;};
69  void set_sigma_e(const double & m_sigma_e){sigma_e=m_sigma_e;};
70  void set_sigma_tan(const double & m_sigma_tan){sigma_tan=m_sigma_tan;};
71  };
72 }
73 
74 #endif
type
Definition: HCALResponse.h:21
double get_sigma_tan() const
Definition: SigInputObj.h:45
double get_phi() const
Definition: SigInputObj.h:43
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:47
void set_phi(const double &m_phi)
Definition: SigInputObj.h:68
void set_sigma_e(const double &m_sigma_e)
Definition: SigInputObj.h:69
std::string type
Definition: SigInputObj.h:58
void set_energy(const double &m_energy)
Definition: SigInputObj.h:67
void set_sigma_tan(const double &m_sigma_tan)
Definition: SigInputObj.h:70
void set_type(const std::string &m_type)
Definition: SigInputObj.h:66
double get_energy() const
Definition: SigInputObj.h:42
std::string get_type() const
Definition: SigInputObj.h:41
double get_sigma_e() const
Definition: SigInputObj.h:44