CMS 3D CMS Logo

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