Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
AnalysisDataFormats
EWK
interface
WMuNuCandidate.h
Go to the documentation of this file.
1
#ifndef AnalysisDataFormats_EWK_WMuNu_h
2
#define AnalysisDataFormats_EWK_WMuNu_h
3
4
#include <map>
5
#include <memory>
6
7
#include "
DataFormats/MuonReco/interface/Muon.h
"
8
#include "
DataFormats/MuonReco/interface/MuonFwd.h
"
9
#include "
DataFormats/METReco/interface/MET.h
"
10
#include "
DataFormats/METReco/interface/METFwd.h
"
11
#include "
DataFormats/Candidate/interface/CompositeCandidate.h
"
12
#include "
DataFormats/Candidate/interface/Candidate.h
"
13
#include "
DataFormats/RecoCandidate/interface/RecoCandidate.h
"
14
#include "
DataFormats/Candidate/interface/ShallowClonePtrCandidate.h
"
15
namespace
reco
{
16
17
class
WMuNuCandidate
:
public
reco::CompositeCandidate
{
18
public
:
19
WMuNuCandidate
();
20
WMuNuCandidate
(
edm::Ptr<reco::Muon>
,
edm::Ptr<reco::MET>
);
21
~WMuNuCandidate
();
22
23
//WARNING: W Candidates combine the information from a Muon with the (px,py) information of the MET as the Neutrino
24
// --> There is no Pz information!!!!
25
// Be very careful when using the default Candidate functions (.mass, .mt, .et, etc). They may not be what you are looking for :-).
26
27
// Example: Candidates have a mt() function which computes the tranverse mass from E & pz.
28
// As MET does not have pz information... WMuNuCandidates have an alternative function used in the WMuNu Inclusive Analysis
29
// to compute mt just from px, py:
30
// Transverse Mass from px, py:
31
double
massT
()
const
;
32
// Transverse Energy from px, py:
33
double
eT
()
const
;
34
35
// Acoplanarity between the muon and the MET
36
double
acop
()
const
;
37
38
const
reco::Muon
&
getMuon
()
const
{
return
*
muon_
;};
39
const
reco::MET
&
getNeutrino
()
const
{
return
*
neutrino_
;};
40
41
42
private
:
43
44
45
edm::Ptr<Muon>
muon_
;
46
edm::Ptr<MET>
neutrino_
;
47
};
48
49
50
typedef
std::vector<reco::WMuNuCandidate>
WMuNuCandidateCollection
;
51
}
52
53
54
#endif
ShallowClonePtrCandidate.h
reco::WMuNuCandidate::~WMuNuCandidate
~WMuNuCandidate()
Definition:
WMuNuCandidate.cc:24
MET.h
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
METFwd.h
CompositeCandidate.h
reco::CompositeCandidate
Definition:
CompositeCandidate.h:21
reco::WMuNuCandidate
Definition:
WMuNuCandidate.h:17
MuonFwd.h
Candidate.h
reco::MET
Definition:
MET.h:42
reco::WMuNuCandidate::eT
double eT() const
Definition:
WMuNuCandidate.cc:28
reco::WMuNuCandidate::acop
double acop() const
Definition:
WMuNuCandidate.cc:44
edm::Ptr< reco::Muon >
Muon.h
reco::Muon
Definition:
Muon.h:27
reco::WMuNuCandidateCollection
std::vector< reco::WMuNuCandidate > WMuNuCandidateCollection
Definition:
WMuNuCandidate.h:50
reco::WMuNuCandidate::massT
double massT() const
Definition:
WMuNuCandidate.cc:34
reco::WMuNuCandidate::muon_
edm::Ptr< Muon > muon_
Definition:
WMuNuCandidate.h:39
reco::WMuNuCandidate::neutrino_
edm::Ptr< MET > neutrino_
Definition:
WMuNuCandidate.h:46
reco::WMuNuCandidate::getMuon
const reco::Muon & getMuon() const
Definition:
WMuNuCandidate.h:38
reco::WMuNuCandidate::getNeutrino
const reco::MET & getNeutrino() const
Definition:
WMuNuCandidate.h:39
reco::WMuNuCandidate::WMuNuCandidate
WMuNuCandidate()
Definition:
WMuNuCandidate.cc:10
RecoCandidate.h
Generated for CMSSW Reference Manual by
1.8.5