test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
Scouting
interface
ScoutingParticle.h
Go to the documentation of this file.
1
#ifndef DataFormats_ScoutingParticle_h
2
#define DataFormats_ScoutingParticle_h
3
4
#include <vector>
5
6
//class for holding PF candidate information, for use in data scouting
7
//IMPORTANT: the content of this class should be changed only in backwards compatible ways!
8
class
ScoutingParticle
9
{
10
public
:
11
//constructor with values for all data fields
12
ScoutingParticle
(
float
pt
,
float
eta
,
float
phi
,
float
m
,
13
int
pdgId
,
int
vertex
):
14
pt_
(pt),
eta_
(eta),
phi_
(phi),
m_
(m),
pdgId_
(pdgId),
vertex_
(vertex) {}
15
//default constructor
16
ScoutingParticle
():
pt_
(0),
eta_
(0),
phi_
(0),
m_
(0),
pdgId_
(0),
vertex_
(-1) {}
17
18
//accessor functions
19
float
pt
()
const
{
return
pt_
; }
20
float
eta
()
const
{
return
eta_
; }
21
float
phi
()
const
{
return
phi_
; }
22
float
m
()
const
{
return
m_
; }
23
int
pdgId
()
const
{
return
pdgId_
; }
24
int
vertex
()
const
{
return
vertex_
; }
25
26
private
:
27
float
pt_
;
28
float
eta_
;
29
float
phi_
;
30
float
m_
;
31
int
pdgId_
;
32
int
vertex_
;
33
};
34
35
typedef
std::vector<ScoutingParticle>
ScoutingParticleCollection
;
36
37
#endif
ScoutingParticle::phi
float phi() const
Definition:
ScoutingParticle.h:21
ScoutingParticle::pdgId
int pdgId() const
Definition:
ScoutingParticle.h:23
ScoutingParticle::m
float m() const
Definition:
ScoutingParticle.h:22
ScoutingParticle::m_
float m_
Definition:
ScoutingParticle.h:30
ScoutingParticle::eta
float eta() const
Definition:
ScoutingParticle.h:20
ScoutingParticle::pt
float pt() const
Definition:
ScoutingParticle.h:19
ScoutingParticle::ScoutingParticle
ScoutingParticle()
Definition:
ScoutingParticle.h:16
ScoutingParticle::vertex
int vertex() const
Definition:
ScoutingParticle.h:24
ScoutingParticleCollection
std::vector< ScoutingParticle > ScoutingParticleCollection
Definition:
ScoutingParticle.h:35
ScoutingParticle::ScoutingParticle
ScoutingParticle(float pt, float eta, float phi, float m, int pdgId, int vertex)
Definition:
ScoutingParticle.h:12
ScoutingParticle::phi_
float phi_
Definition:
ScoutingParticle.h:29
ScoutingParticle::eta_
float eta_
Definition:
ScoutingParticle.h:28
ScoutingParticle::vertex_
int vertex_
Definition:
ScoutingParticle.h:32
ScoutingParticle
Definition:
ScoutingParticle.h:8
ScoutingParticle::pdgId_
int pdgId_
Definition:
ScoutingParticle.h:31
ScoutingParticle::pt_
float pt_
Definition:
ScoutingParticle.h:27
Generated for CMSSW Reference Manual by
1.8.5