1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#ifndef METSIG_SIGINPUTOBJ_H
#define METSIG_SIGINPUTOBJ_H
// -*- C++ -*-
//
// Package: METAlgorithms
// Class: SigInputObj
//
/**\class METSignificance SigInputObj.h DataFormats/METReco/include/SigInputObj.h
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: Kyle Story, Freya Blekman (Cornell University)
// Created: Fri Apr 18 11:58:33 CEST 2008
//
//
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
//=== Class SigInputObj ==============================//
namespace metsig {
class SigInputObj {
public:
SigInputObj() : type(""), energy(0.), phi(0.), sigma_e(0.), sigma_tan(0.) { ; } // default constructor
SigInputObj(const std::string& m_type, double m_energy, double m_phi, double m_sigm_e, double m_sigma_phi);
~SigInputObj() { ; }
std::string get_type() const { return (type); };
double get_energy() const { return (energy); };
double get_phi() const { return (phi); };
double get_sigma_e() const { return (sigma_e); };
double get_sigma_tan() const { return (sigma_tan); };
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) {
type.clear();
type.append(m_type);
energy = m_energy;
phi = m_phi;
sigma_e = m_sigma_e;
sigma_tan = m_sigma_tan;
}
private:
std::string type; //type of physics object
/*** note: type = "jet", "uc" (un-clustered energy),
"electron", "muon", "hot-cell", "vertex" ***/
double energy; //magnitude of the energy
double phi; //azimuthal angle
double sigma_e; //gaus width in radial direction
double sigma_tan; //gaus width in phi-hat direction (not in rad)
void set_type(const std::string& m_type) {
type.clear();
type.append(m_type);
};
void set_energy(const double& m_energy) { energy = m_energy; };
void set_phi(const double& m_phi) { phi = m_phi; };
void set_sigma_e(const double& m_sigma_e) { sigma_e = m_sigma_e; };
void set_sigma_tan(const double& m_sigma_tan) { sigma_tan = m_sigma_tan; };
};
} // namespace metsig
#endif
|