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
31
class
SigInputObj
{
32
33
public
:
34
SigInputObj
():
35
type
(
""
),
energy
(0.),
phi
(0.),
sigma_e
(0.),
sigma_tan
(0.)
36
{;}
// default constructor
37
38
SigInputObj
(
const
std::string
& m_type,
double
m_energy,
39
double
m_phi,
double
m_sigm_e,
double
m_sigma_phi);
40
~SigInputObj
() {;}
41
42
std::string
get_type
()
const
{
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
type
Definition:
HCALResponse.h:21
metsig::SigInputObj::get_sigma_tan
double get_sigma_tan() const
Definition:
SigInputObj.h:46
metsig::SigInputObj::get_phi
double get_phi() const
Definition:
SigInputObj.h:44
metsig::SigInputObj::sigma_tan
double sigma_tan
Definition:
SigInputObj.h:65
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:48
metsig::SigInputObj::~SigInputObj
~SigInputObj()
Definition:
SigInputObj.h:40
metsig::SigInputObj::SigInputObj
SigInputObj()
Definition:
SigInputObj.h:34
metsig::SigInputObj::energy
double energy
Definition:
SigInputObj.h:62
metsig::SigInputObj::set_phi
void set_phi(const double &m_phi)
Definition:
SigInputObj.h:69
metsig::SigInputObj::set_sigma_e
void set_sigma_e(const double &m_sigma_e)
Definition:
SigInputObj.h:70
metsig::SigInputObj::type
std::string type
Definition:
SigInputObj.h:59
metsig::SigInputObj::phi
double phi
Definition:
SigInputObj.h:63
metsig::SigInputObj::sigma_e
double sigma_e
Definition:
SigInputObj.h:64
metsig::SigInputObj
Definition:
SigInputObj.h:31
metsig::SigInputObj::set_energy
void set_energy(const double &m_energy)
Definition:
SigInputObj.h:68
metsig::SigInputObj::set_sigma_tan
void set_sigma_tan(const double &m_sigma_tan)
Definition:
SigInputObj.h:71
metsig::SigInputObj::set_type
void set_type(const std::string &m_type)
Definition:
SigInputObj.h:67
metsig::SigInputObj::get_energy
double get_energy() const
Definition:
SigInputObj.h:43
metsig::SigInputObj::get_type
std::string get_type() const
Definition:
SigInputObj.h:42
metsig::SigInputObj::get_sigma_e
double get_sigma_e() const
Definition:
SigInputObj.h:45
Generated for CMSSW Reference Manual by
1.8.5