AnalysisDataFormats
EWK
interface
WMuNuCandidatePtr.h
Go to the documentation of this file.
1
#ifndef AnalysisDataFormat_EWK_WMuNuCandidatePtr_h
2
#define AnalysisDataFormat_EWK_WMuNuCandidatePtr_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/CompositePtrCandidate.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
WMuNuCandidatePtr
:
public
reco::CompositePtrCandidate
{
18
public
:
19
WMuNuCandidatePtr
();
20
WMuNuCandidatePtr
(
const
reco::CandidatePtr
,
const
reco::CandidatePtr
);
21
~WMuNuCandidatePtr
()
override
;
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... WMuNuCandidatePtrs 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
private
:
42
edm::Ptr<Muon>
muon_
;
43
edm::Ptr<MET>
neutrino_
;
44
};
45
46
typedef
std::vector<reco::WMuNuCandidatePtr>
WMuNuCandidatePtrCollection
;
47
}
// namespace reco
48
49
#endif
Muon.h
reco::WMuNuCandidatePtr::muon_
edm::Ptr< Muon > muon_
Definition:
WMuNuCandidatePtr.h:39
reco::WMuNuCandidatePtr::~WMuNuCandidatePtr
~WMuNuCandidatePtr() override
Definition:
WMuNuCandidatePtr.cc:24
reco::WMuNuCandidatePtr::neutrino_
edm::Ptr< MET > neutrino_
Definition:
WMuNuCandidatePtr.h:43
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
RecoCandidate.h
reco::WMuNuCandidatePtr::getNeutrino
const reco::MET & getNeutrino() const
Definition:
WMuNuCandidatePtr.h:39
reco::Muon
Definition:
Muon.h:27
reco::WMuNuCandidatePtr::eT
double eT() const
Definition:
WMuNuCandidatePtr.cc:26
reco::MET
Definition:
MET.h:41
CompositePtrCandidate.h
reco::WMuNuCandidatePtr::acop
double acop() const
Definition:
WMuNuCandidatePtr.cc:43
MuonFwd.h
reco::WMuNuCandidatePtr::WMuNuCandidatePtr
WMuNuCandidatePtr()
Definition:
WMuNuCandidatePtr.cc:10
reco::WMuNuCandidatePtr::getMuon
const reco::Muon & getMuon() const
Definition:
WMuNuCandidatePtr.h:38
reco::WMuNuCandidatePtr::massT
double massT() const
Definition:
WMuNuCandidatePtr.cc:32
ShallowClonePtrCandidate.h
reco::WMuNuCandidatePtrCollection
std::vector< reco::WMuNuCandidatePtr > WMuNuCandidatePtrCollection
Definition:
WMuNuCandidatePtr.h:46
edm::Ptr< Candidate >
MET.h
METFwd.h
reco::CompositePtrCandidate
Definition:
CompositePtrCandidate.h:17
reco::WMuNuCandidatePtr
Definition:
WMuNuCandidatePtr.h:17
Candidate.h
Generated for CMSSW Reference Manual by
1.8.16