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