Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
METReco
interface
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
:
33
SigInputObj
():
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);
39
~SigInputObj
() {;}
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
type
Definition:
HCALResponse.h:21
metsig::SigInputObj::get_sigma_tan
double get_sigma_tan() const
Definition:
SigInputObj.h:45
metsig::SigInputObj::get_phi
double get_phi() const
Definition:
SigInputObj.h:43
metsig::SigInputObj::sigma_tan
double sigma_tan
Definition:
SigInputObj.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
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:47
metsig::SigInputObj::~SigInputObj
~SigInputObj()
Definition:
SigInputObj.h:39
metsig::SigInputObj::SigInputObj
SigInputObj()
Definition:
SigInputObj.h:33
metsig::SigInputObj::energy
double energy
Definition:
SigInputObj.h:61
metsig::SigInputObj::set_phi
void set_phi(const double &m_phi)
Definition:
SigInputObj.h:68
metsig::SigInputObj::set_sigma_e
void set_sigma_e(const double &m_sigma_e)
Definition:
SigInputObj.h:69
metsig::SigInputObj::type
std::string type
Definition:
SigInputObj.h:58
metsig::SigInputObj::phi
double phi
Definition:
SigInputObj.h:62
metsig::SigInputObj::sigma_e
double sigma_e
Definition:
SigInputObj.h:63
metsig::SigInputObj
Definition:
SigInputObj.h:30
metsig::SigInputObj::set_energy
void set_energy(const double &m_energy)
Definition:
SigInputObj.h:67
metsig::SigInputObj::set_sigma_tan
void set_sigma_tan(const double &m_sigma_tan)
Definition:
SigInputObj.h:70
metsig::SigInputObj::set_type
void set_type(const std::string &m_type)
Definition:
SigInputObj.h:66
metsig::SigInputObj::get_energy
double get_energy() const
Definition:
SigInputObj.h:42
metsig::SigInputObj::get_type
std::string get_type() const
Definition:
SigInputObj.h:41
metsig::SigInputObj::get_sigma_e
double get_sigma_e() const
Definition:
SigInputObj.h:44
Generated for CMSSW Reference Manual by
1.8.5